diff --git a/CHANGELOG.md b/CHANGELOG.md index a23b3f26..55b2298c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.5.0 + +[link](https://github.com/jlongster/prettier/compare/1.4.4...1.5.0) + +* [Release Notes](https://github.com/prettier/prettier/releases/tag/1.5.0) + # 1.4.4 * Fix postcss, I forgot to re-run the build script :( diff --git a/docs/index.html b/docs/index.html index 062c5a01..ce918e08 100644 --- a/docs/index.html +++ b/docs/index.html @@ -251,7 +251,7 @@
- + diff --git a/docs/lib/index.js b/docs/lib/index.js index 4510ecf6..5cdd3888 100644 --- a/docs/lib/index.js +++ b/docs/lib/index.js @@ -358,6 +358,9 @@ function locStart$1(node) { if (node.source) { return lineColumnToIndex(node.source.start, node.source.input.css) - 1; } + if (node.loc) { + return node.loc.start; + } } function locEnd$1(node) { @@ -376,6 +379,11 @@ function locEnd$1(node) { if (node.typeAnnotation) { return Math.max(loc, locEnd$1(node.typeAnnotation)); } + + if (node.loc && !loc) { + return node.loc.end; + } + return loc; } @@ -423,6 +431,9 @@ function getPrecedence(op) { function startsWithNoLookaheadToken(node, forbidFunctionAndClass) { node = getLeftMost(node); switch (node.type) { + // Hack. Remove after https://github.com/eslint/typescript-eslint-parser/issues/331 + case "ObjectPattern": + return !forbidFunctionAndClass; case "FunctionExpression": case "ClassExpression": return forbidFunctionAndClass; @@ -537,7 +548,7 @@ function getSortedChildNodes(node, text, resultArray) { } if (resultArray) { - if (node && node.type && node.type !== "CommentBlock" && node.type !== "CommentLine" && node.type !== "Line" && node.type !== "Block" && node.type !== "EmptyStatement" && node.type !== "TemplateElement") { + if (node && (node.type && node.type !== "CommentBlock" && node.type !== "CommentLine" && node.type !== "Line" && node.type !== "Block" && node.type !== "EmptyStatement" && node.type !== "TemplateElement" || node.kind && node.kind !== "Comment")) { // This reverse insertion sort almost always takes constant // time because we almost always (maybe always?) append the // nodes in order anyway. @@ -693,7 +704,7 @@ function attach(comments, ast, text) { addDanglingComment(ast, comment); } } else { - if (handleIfStatementComments(text, precedingNode, enclosingNode, followingNode, comment) || handleObjectPropertyAssignment(enclosingNode, precedingNode, comment) || handleCommentInEmptyParens(text, enclosingNode, comment) || handleOnlyComments(enclosingNode, ast, comment, isLastComment)) { + if (handleIfStatementComments(text, precedingNode, enclosingNode, followingNode, comment) || handleObjectPropertyAssignment(enclosingNode, precedingNode, comment) || handleCommentInEmptyParens(text, enclosingNode, comment) || handleMethodNameComments(enclosingNode, precedingNode, comment) || handleOnlyComments(enclosingNode, ast, comment, isLastComment)) { // We're good } else if (precedingNode && followingNode) { // Otherwise, text exists both before and after the comment on @@ -920,6 +931,17 @@ function handleObjectPropertyAssignment(enclosingNode, precedingNode, comment) { return false; } +function handleMethodNameComments(enclosingNode, precedingNode, comment) { + // This is only needed for estree parsers (flow, typescript) to attach + // after a method name: + // obj = { fn /*comment*/() {} }; + if (enclosingNode && precedingNode && (enclosingNode.type === "Property" || enclosingNode.type === "MethodDefinition") && precedingNode.type === "Identifier" && enclosingNode.key === precedingNode) { + addTrailingComment(precedingNode, comment); + return true; + } + return false; +} + function handleCommentInEmptyParens(text, enclosingNode, comment) { if (getNextNonSpaceNonCommentCharacter(text, comment) !== ")") { return false; @@ -1089,7 +1111,9 @@ function printComment(commentPath, options) { var comment = commentPath.getValue(); comment.printed = true; - switch (comment.type) { + switch (comment.type || comment.kind) { + case "Comment": + return "#" + comment.value; case "CommentBlock": case "Block": return "/*" + comment.value + "*/"; @@ -1205,7 +1229,7 @@ function printDanglingComments(path$$1, options, sameIndent) { } function prependCursorPlaceholder(path$$1, options, printed) { - if (path$$1.getNode() === options.cursorNode) { + if (path$$1.getNode() === options.cursorNode && path$$1.getValue()) { return concat([cursor, printed]); } return printed; @@ -1255,16 +1279,16 @@ var comments$1 = { }; var name = "prettier"; -var version$1 = "1.4.4"; +var version$1 = "1.5.0"; var description = "Prettier is an opinionated JavaScript formatter"; var bin = { "prettier": "./bin/prettier.js" }; var repository = "prettier/prettier"; var author = "James Long"; var license = "MIT"; var main = "./index.js"; -var dependencies = {}; -var devDependencies = { "babel-cli": "6.24.1", "babel-code-frame": "7.0.0-alpha.12", "babel-preset-es2015": "6.24.1", "babylon": "7.0.0-beta.10", "chalk": "1.1.3", "cross-spawn": "5.1.0", "diff": "3.2.0", "eslint": "3.19.0", "eslint-plugin-prettier": "2.1.1", "esutils": "2.0.2", "flow-parser": "0.47.0", "get-stdin": "5.0.1", "glob": "7.1.2", "graphql": "0.10.1", "jest": "20.0.0", "jest-validate": "20.0.3", "minimist": "1.2.0", "mkdirp": "^0.5.1", "parse5": "3.0.2", "postcss": "^6.0.1", "postcss-less": "^1.0.0", "postcss-media-query-parser": "0.2.3", "postcss-scss": "1.0.0", "postcss-selector-parser": "2.2.3", "postcss-values-parser": "git://github.com/shellscape/postcss-values-parser.git#5e351360479116f3fe309602cdd15b0a233bc29f", "prettier": "1.4.2", "rimraf": "2.6.1", "rollup": "0.41.1", "rollup-plugin-commonjs": "7.0.0", "rollup-plugin-json": "2.1.0", "rollup-plugin-node-builtins": "2.0.0", "rollup-plugin-node-globals": "1.1.0", "rollup-plugin-node-resolve": "2.0.0", "rollup-plugin-replace": "1.1.1", "typescript": "2.3.4", "typescript-eslint-parser": "git://github.com/eslint/typescript-eslint-parser.git#806251524424e3ad91e750da0f76b8de25ed0b42", "uglify-es": "3.0.15", "webpack": "2.6.1" }; -var scripts = { "test": "jest", "test-integration": "jest tests_integration", "lint": "eslint .", "build": "./scripts/build/build.sh" }; +var dependencies = { "babel-code-frame": "7.0.0-alpha.12", "babylon": "7.0.0-beta.14", "chalk": "1.1.3", "diff": "3.2.0", "esutils": "2.0.2", "flow-parser": "0.47.0", "get-stream": "3.0.0", "glob": "7.1.2", "graphql": "0.10.1", "jest-validate": "20.0.3", "json-to-ast": "2.0.0-alpha1.2", "minimist": "1.2.0", "parse5": "3.0.2", "postcss": "^6.0.1", "postcss-less": "^1.0.0", "postcss-media-query-parser": "0.2.3", "postcss-scss": "1.0.0", "postcss-selector-parser": "2.2.3", "postcss-values-parser": "git://github.com/shellscape/postcss-values-parser.git#5e351360479116f3fe309602cdd15b0a233bc29f", "typescript": "2.5.0-dev.20170617", "typescript-eslint-parser": "git://github.com/eslint/typescript-eslint-parser.git#cfddbfe3ebf550530aef2f1c6c4ea1d9e738d9c1" }; +var devDependencies = { "babel-cli": "6.24.1", "babel-preset-es2015": "6.24.1", "cross-spawn": "5.1.0", "eslint": "3.19.0", "eslint-friendly-formatter": "3.0.0", "eslint-plugin-prettier": "2.1.1", "jest": "20.0.0", "mkdirp": "^0.5.1", "prettier": "1.4.2", "rimraf": "2.6.1", "rollup": "0.41.1", "rollup-plugin-commonjs": "7.0.0", "rollup-plugin-json": "2.1.0", "rollup-plugin-node-builtins": "2.0.0", "rollup-plugin-node-globals": "1.1.0", "rollup-plugin-node-resolve": "2.0.0", "rollup-plugin-replace": "1.1.1", "sw-toolbox": "3.6.0", "uglify-es": "3.0.15", "webpack": "2.6.1" }; +var scripts = { "test": "jest", "test-integration": "jest tests_integration", "lint": "EFF_NO_LINK_RULES=true eslint . --format 'node_modules/eslint-friendly-formatter'", "build": "./scripts/build/build.sh" }; var jest = { "setupFiles": ["/tests_config/run_spec.js"], "snapshotSerializers": ["/tests_config/raw-serializer.js"], "testRegex": "jsfmt\\.spec\\.js$|__tests__/.*\\.js$", "testPathIgnorePatterns": ["tests/new_react", "tests/more_react"] }; var _package = { name: name, @@ -1607,7 +1631,7 @@ FastPath$1.prototype.needsParens = function (options) { case "TSParenthesizedType": { - if ((parent.type === "VariableDeclarator" || parent.type === "TypeAnnotation" || parent.type === "GenericTypeAnnotation") && node.typeAnnotation.type === "TypeAnnotation" && node.typeAnnotation.typeAnnotation.type !== "TSFunctionType") { + if ((parent.type === "TypeParameter" || parent.type === "VariableDeclarator" || parent.type === "TypeAnnotation" || parent.type === "GenericTypeAnnotation") && node.typeAnnotation.type === "TypeAnnotation" && node.typeAnnotation.typeAnnotation.type !== "TSFunctionType") { return false; } // Delegate to inner TSParenthesizedType @@ -1639,7 +1663,7 @@ FastPath$1.prototype.needsParens = function (options) { } case "YieldExpression": - if (parent.type === "UnaryExpression" || parent.type === "AwaitExpression" || parent.type === "TSAsExpression") { + if (parent.type === "UnaryExpression" || parent.type === "AwaitExpression" || parent.type === "TSAsExpression" || parent.type === "TSNonNullExpression") { return true; } // else fallthrough @@ -1651,6 +1675,7 @@ FastPath$1.prototype.needsParens = function (options) { case "SpreadElement": case "SpreadProperty": case "TSAsExpression": + case "TSNonNullExpression": return true; case "MemberExpression": @@ -1801,6 +1826,178 @@ function isStatement(node) { var fastPath = FastPath$1; +function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) { + function traverseDocRec(doc) { + var shouldRecurse = true; + if (onEnter) { + if (onEnter(doc) === false) { + shouldRecurse = false; + } + } + + if (shouldRecurse) { + if (doc.type === "concat" || doc.type === "fill") { + for (var i = 0; i < doc.parts.length; i++) { + traverseDocRec(doc.parts[i]); + } + } else if (doc.type === "if-break") { + if (doc.breakContents) { + traverseDocRec(doc.breakContents); + } + if (doc.flatContents) { + traverseDocRec(doc.flatContents); + } + } else if (doc.type === "group" && doc.expandedStates) { + if (shouldTraverseConditionalGroups) { + doc.expandedStates.forEach(traverseDocRec); + } else { + traverseDocRec(doc.contents); + } + } else if (doc.contents) { + traverseDocRec(doc.contents); + } + } + + if (onExit) { + onExit(doc); + } + } + + traverseDocRec(doc); +} + +function mapDoc(doc, func) { + doc = func(doc); + + if (doc.type === "concat" || doc.type === "fill") { + return Object.assign({}, doc, { + parts: doc.parts.map(function (d) { + return mapDoc(d, func); + }) + }); + } else if (doc.type === "if-break") { + return Object.assign({}, doc, { + breakContents: doc.breakContents && mapDoc(doc.breakContents, func), + flatContents: doc.flatContents && mapDoc(doc.flatContents, func) + }); + } else if (doc.contents) { + return Object.assign({}, doc, { contents: mapDoc(doc.contents, func) }); + } + return doc; +} + +function findInDoc(doc, fn, defaultValue) { + var result = defaultValue; + var hasStopped = false; + traverseDoc(doc, function (doc) { + var maybeResult = fn(doc); + if (maybeResult !== undefined) { + hasStopped = true; + result = maybeResult; + } + if (hasStopped) { + return false; + } + }); + return result; +} + +function isEmpty$1(n) { + return typeof n === "string" && n.length === 0; +} + +function isLineNext$1(doc) { + return findInDoc(doc, function (doc) { + if (typeof doc === "string") { + return false; + } + if (doc.type === "line") { + return true; + } + }, false); +} + +function willBreak$1(doc) { + return findInDoc(doc, function (doc) { + if (doc.type === "group" && doc.break) { + return true; + } + if (doc.type === "line" && doc.hard) { + return true; + } + if (doc.type === "break-parent") { + return true; + } + }, false); +} + +function breakParentGroup(groupStack) { + if (groupStack.length > 0) { + var parentGroup = groupStack[groupStack.length - 1]; + // Breaks are not propagated through conditional groups because + // the user is expected to manually handle what breaks. + if (!parentGroup.expandedStates) { + parentGroup.break = true; + } + } + return null; +} + +function propagateBreaks(doc) { + var alreadyVisited = new Map(); + var groupStack = []; + traverseDoc(doc, function (doc) { + if (doc.type === "break-parent") { + breakParentGroup(groupStack); + } + if (doc.type === "group") { + groupStack.push(doc); + if (alreadyVisited.has(doc)) { + return false; + } + alreadyVisited.set(doc, true); + } + }, function (doc) { + if (doc.type === "group") { + var _group = groupStack.pop(); + if (_group.break) { + breakParentGroup(groupStack); + } + } + }, + /* shouldTraverseConditionalGroups */true); +} + +function removeLines(doc) { + // Force this doc into flat mode by statically converting all + // lines into spaces (or soft lines into nothing). Hard lines + // should still output because there's too great of a chance + // of breaking existing assumptions otherwise. + return mapDoc(doc, function (d) { + if (d.type === "line" && !d.hard) { + return d.soft ? "" : " "; + } else if (d.type === "if-break") { + return d.flatContents || ""; + } + return d; + }); +} + +function rawText$1(node) { + return node.extra ? node.extra.raw : node.raw; +} + +var docUtils$2 = { + isEmpty: isEmpty$1, + willBreak: willBreak$1, + isLineNext: isLineNext$1, + traverseDoc: traverseDoc, + mapDoc: mapDoc, + propagateBreaks: propagateBreaks, + removeLines: removeLines, + rawText: rawText$1 +}; + function createCommonjsModule(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } @@ -2816,6 +3013,9 @@ var parsers = { }, get postcss() { return eval("require")("./parser-postcss"); + }, + get json() { + return eval("require")("./parser-json"); } }; @@ -2860,20 +3060,27 @@ function parse(text, opts) { var parser$1 = { parse: parse }; var util$6 = util$2; +var docUtils$1 = docUtils$2; var docBuilders$4 = docBuilders$1; +var comments$4 = comments$1; var indent$3 = docBuilders$4.indent; var hardline$3 = docBuilders$4.hardline; var softline$2 = docBuilders$4.softline; var concat$3 = docBuilders$4.concat; -function printSubtree(subtreeParser, options) { +function printSubtree(subtreeParser, path$$1, print, options) { var next = Object.assign({}, { transformDoc: function transformDoc(doc) { return doc; } }, subtreeParser); - next.options = Object.assign({}, options, next.options); + next.options = Object.assign({}, options, next.options, { + originalText: next.text + }); var ast = parser$1.parse(next.text, next.options); + var astComments = ast.comments; + delete ast.comments; + comments$4.attach(astComments, ast, next.text, next.options); var nextDoc = printer.printAstToDoc(ast, next.options); - return next.transformDoc(nextDoc); + return next.transformDoc(nextDoc, { path: path$$1, print: print }); } /** @@ -2894,44 +3101,31 @@ function fromBabylonFlowOrTypeScript(path$$1) { var node = path$$1.getValue(); switch (node.type) { + case "TemplateLiteral": + { + var isCss = [isStyledJsx, isStyledComponents].some(function (isIt) { + return isIt(path$$1); + }); + + if (isCss) { + // Get full template literal with expressions replaced by placeholders + var rawQuasis = node.quasis.map(function (q) { + return q.value.raw; + }); + var text = rawQuasis.join("@prettier-placeholder"); + return { + options: { parser: "postcss" }, + transformDoc: transformCssDoc, + text: text + }; + } + + break; + } case "TemplateElement": { var parent = path$$1.getParentNode(); var parentParent = path$$1.getParentNode(1); - var parentParentParent = path$$1.getParentNode(2); - - /* - * styled-jsx: - * ```jsx - * - * ``` - */ - if (parentParentParent && parent.quasis && parent.quasis.length === 1 && parentParent.type === "JSXExpressionContainer" && parentParentParent.type === "JSXElement" && parentParentParent.openingElement.name.name === "style" && parentParentParent.openingElement.attributes.some(function (attribute) { - return attribute.name.name === "jsx"; - })) { - return { - options: { parser: "postcss" }, - transformDoc: function transformDoc(doc) { - return concat$3([indent$3(concat$3([softline$2, stripTrailingHardline(doc)])), softline$2]); - }, - text: parent.quasis[0].value.raw - }; - } - - /* - * styled-components: - * styled.button`color: red` - * Foo.extend`color: red` - */ - if (parentParent && parentParent.type === "TaggedTemplateExpression" && parent.quasis.length === 1 && parentParent.tag.type === "MemberExpression" && (parentParent.tag.object.name === "styled" || /^[A-Z]/.test(parentParent.tag.object.name) && parentParent.tag.property.name === "extend")) { - return { - options: { parser: "postcss" }, - transformDoc: function transformDoc(doc) { - return concat$3([indent$3(concat$3([softline$2, stripTrailingHardline(doc)])), softline$2]); - }, - text: parent.quasis[0].value.raw - }; - } /* * react-relay and graphql-tag @@ -2939,15 +3133,11 @@ function fromBabylonFlowOrTypeScript(path$$1) { * graphql.experimental`...` * gql`...` */ - if (parentParent && parentParent.type === "TaggedTemplateExpression" && parent.quasis.length === 1 && ( - // ((parentParent.tag.type === "MemberExpression" && - // parentParent.tag.object.name === "Relay" && - // parentParent.tag.property.name === "QL") || - parentParent.tag.type === "MemberExpression" && parentParent.tag.object.name === "graphql" && parentParent.tag.property.name === "experimental" || parentParent.tag.type === "Identifier" && (parentParent.tag.name === "gql" || parentParent.tag.name === "graphql"))) { + if (parentParent && parentParent.type === "TaggedTemplateExpression" && parent.quasis.length === 1 && (parentParent.tag.type === "MemberExpression" && parentParent.tag.object.name === "graphql" && parentParent.tag.property.name === "experimental" || parentParent.tag.type === "Identifier" && (parentParent.tag.name === "gql" || parentParent.tag.name === "graphql"))) { return { options: { parser: "graphql" }, transformDoc: function transformDoc(doc) { - return concat$3([indent$3(concat$3([softline$2, doc])), softline$2]); + return concat$3([indent$3(concat$3([softline$2, stripTrailingHardline(doc)])), softline$2]); }, text: parent.quasis[0].value.raw }; @@ -3001,177 +3191,138 @@ function fromHtmlParser2(path$$1, options) { break; } + + case "attribute": + { + /* + * Vue binding sytax: JS expressions + * :class="{ 'some-key': value }" + * v-bind:id="'list-' + id" + * v-if="foo && !bar" + * @click="someFunction()" + */ + if (/(^@)|(^v-)|:/.test(node.key) && !/^\w+$/.test(node.value)) { + return { + text: node.value, + options: { + parser: parseJavaScriptExpression, + // Use singleQuote since HTML attributes use double-quotes. + // TODO(azz): We still need to do an entity escape on the attribute. + singleQuote: true + }, + transformDoc: function transformDoc(doc) { + return concat$3([node.key, '="', util$6.hasNewlineInRange(node.value, 0, node.value.length) ? doc : docUtils$1.removeLines(doc), '"']); + } + }; + } + } } } +function transformCssDoc(quasisDoc, parent) { + var parentNode = parent.path.getValue(); + var expressionDocs = parentNode.expressions ? parent.path.map(parent.print, "expressions") : []; + var newDoc = replacePlaceholders(quasisDoc, expressionDocs); + if (!newDoc) { + throw new Error("Couldn't insert all the expressions"); + } + return concat$3(["`", indent$3(concat$3([softline$2, stripTrailingHardline(newDoc)])), softline$2, "`"]); +} + +// Search all the placeholders in the quasisDoc tree +// and replace them with the expression docs one by one +// returns a new doc with all the placeholders replaced, +// or null if it couldn't replace any expression +function replacePlaceholders(quasisDoc, expressionDocs) { + if (!expressionDocs || !expressionDocs.length) { + return quasisDoc; + } + + var expressions = expressionDocs.slice(); + var newDoc = docUtils$1.mapDoc(quasisDoc, function (doc) { + if (!doc || !doc.parts || !doc.parts.length) { + return doc; + } + var parts = doc.parts; + if (parts.length > 1 && parts[0] === "@" && typeof parts[1] === "string" && parts[1].startsWith("prettier-placeholder")) { + // If placeholder is split, join it + var at = parts[0]; + var placeholder = parts[1]; + var rest = parts.slice(2); + parts = [at + placeholder].concat(rest); + } + if (typeof parts[0] === "string" && parts[0].startsWith("@prettier-placeholder")) { + var _placeholder = parts[0]; + var _rest = parts.slice(1); + + // When the expression has a suffix appended, like: + // animation: linear ${time}s ease-out; + var suffix = _placeholder.slice("@prettier-placeholder".length); + + var expression = expressions.shift(); + parts = ["${", expression, "}" + suffix].concat(_rest); + } + return Object.assign({}, doc, { + parts: parts + }); + }); + + return expressions.length === 0 ? newDoc : null; +} + +function parseJavaScriptExpression(text, parsers) { + // Force parsing as an expression + var ast = parsers.babylon('(' + text + ')'); + // Extract expression from the declaration + return { + type: "File", + program: ast.program.body[0].expression + }; +} + function getText(options, node) { return options.originalText.slice(util$6.locStart(node), util$6.locEnd(node)); } function stripTrailingHardline(doc) { // HACK remove ending hardline, original PR: #1984 - if (doc.type === "concat" && doc.parts[0].type === "concat" && doc.parts[0].parts.length === 2 && doc.parts[0].parts[1] === hardline$3) { + if (doc.type === "concat" && doc.parts[0].type === "concat" && doc.parts[0].parts.length === 2 && + // doc.parts[0].parts[1] === hardline : + doc.parts[0].parts[1].type === "concat" && doc.parts[0].parts[1].parts.length === 2 && doc.parts[0].parts[1].parts[0].hard && doc.parts[0].parts[1].parts[1].type === "break-parent") { return doc.parts[0].parts[0]; } return doc; } +/** + * Template literal in this context: + * + */ +function isStyledJsx(path$$1) { + var node = path$$1.getValue(); + var parent = path$$1.getParentNode(); + var parentParent = path$$1.getParentNode(1); + return parentParent && node.quasis && parent.type === "JSXExpressionContainer" && parentParent.type === "JSXElement" && parentParent.openingElement.name.name === "style" && parentParent.openingElement.attributes.some(function (attribute) { + return attribute.name.name === "jsx"; + }); +} + +/** + * Template literal in this context: + * styled.button`color: red` + * or + * Foo.extend`color: red` + */ +function isStyledComponents(path$$1) { + var parent = path$$1.getParentNode(); + return parent && parent.type === "TaggedTemplateExpression" && parent.tag.type === "MemberExpression" && (parent.tag.object.name === "styled" || /^[A-Z]/.test(parent.tag.object.name) && parent.tag.property.name === "extend"); +} + var multiparser$1 = { getSubtreeParser: getSubtreeParser, printSubtree: printSubtree }; -function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) { - function traverseDocRec(doc) { - var shouldRecurse = true; - if (onEnter) { - if (onEnter(doc) === false) { - shouldRecurse = false; - } - } - - if (shouldRecurse) { - if (doc.type === "concat" || doc.type === "fill") { - for (var i = 0; i < doc.parts.length; i++) { - traverseDocRec(doc.parts[i]); - } - } else if (doc.type === "if-break") { - if (doc.breakContents) { - traverseDocRec(doc.breakContents); - } - if (doc.flatContents) { - traverseDocRec(doc.flatContents); - } - } else if (doc.type === "group" && doc.expandedStates) { - if (shouldTraverseConditionalGroups) { - doc.expandedStates.forEach(traverseDocRec); - } else { - traverseDocRec(doc.contents); - } - } else if (doc.contents) { - traverseDocRec(doc.contents); - } - } - - if (onExit) { - onExit(doc); - } - } - - traverseDocRec(doc); -} - -function mapDoc(doc, func) { - doc = func(doc); - - if (doc.type === "concat" || doc.type === "fill") { - return Object.assign({}, doc, { - parts: doc.parts.map(function (d) { - return mapDoc(d, func); - }) - }); - } else if (doc.type === "if-break") { - return Object.assign({}, doc, { - breakContents: doc.breakContents && mapDoc(doc.breakContents, func), - flatContents: doc.flatContents && mapDoc(doc.flatContents, func) - }); - } else if (doc.contents) { - return Object.assign({}, doc, { contents: mapDoc(doc.contents, func) }); - } - return doc; -} - -function findInDoc(doc, fn, defaultValue) { - var result = defaultValue; - var hasStopped = false; - traverseDoc(doc, function (doc) { - var maybeResult = fn(doc); - if (maybeResult !== undefined) { - hasStopped = true; - result = maybeResult; - } - if (hasStopped) { - return false; - } - }); - return result; -} - -function isEmpty$1(n) { - return typeof n === "string" && n.length === 0; -} - -function isLineNext$1(doc) { - return findInDoc(doc, function (doc) { - if (typeof doc === "string") { - return false; - } - if (doc.type === "line") { - return true; - } - }, false); -} - -function willBreak$1(doc) { - return findInDoc(doc, function (doc) { - if (doc.type === "group" && doc.break) { - return true; - } - if (doc.type === "line" && doc.hard) { - return true; - } - if (doc.type === "break-parent") { - return true; - } - }, false); -} - -function breakParentGroup(groupStack) { - if (groupStack.length > 0) { - var parentGroup = groupStack[groupStack.length - 1]; - // Breaks are not propagated through conditional groups because - // the user is expected to manually handle what breaks. - if (!parentGroup.expandedStates) { - parentGroup.break = true; - } - } - return null; -} - -function propagateBreaks(doc) { - var alreadyVisited = new Map(); - var groupStack = []; - traverseDoc(doc, function (doc) { - if (doc.type === "break-parent") { - breakParentGroup(groupStack); - } - if (doc.type === "group") { - groupStack.push(doc); - if (alreadyVisited.has(doc)) { - return false; - } - alreadyVisited.set(doc, true); - } - }, function (doc) { - if (doc.type === "group") { - var _group = groupStack.pop(); - if (_group.break) { - breakParentGroup(groupStack); - } - } - }, - /* shouldTraverseConditionalGroups */true); -} - -var docUtils$1 = { - isEmpty: isEmpty$1, - willBreak: willBreak$1, - isLineNext: isLineNext$1, - traverseDoc: traverseDoc, - mapDoc: mapDoc, - propagateBreaks: propagateBreaks -}; - var docBuilders$5 = docBuilders$1; var concat$4 = docBuilders$5.concat; var join$3 = docBuilders$5.join; @@ -3195,11 +3346,11 @@ function genericPrint$1(path$$1, options, print) { switch (n.kind) { case "Document": { - return join$3(concat$4([hardline$4, hardline$4]), path$$1.map(print, "definitions")); + return concat$4([join$3(concat$4([hardline$4, hardline$4]), path$$1.map(print, "definitions")), hardline$4]); } case "OperationDefinition": { - return concat$4([n.name === null ? "" : n.operation, n.name ? concat$4([" ", path$$1.call(print, "name")]) : "", n.variableDefinitions && n.variableDefinitions.length ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "variableDefinitions"))])), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? n.name === null ? "" : " " : "", path$$1.call(print, "selectionSet")]); + return concat$4([n.name === null ? "" : n.operation, n.name ? concat$4([" ", path$$1.call(print, "name")]) : "", n.variableDefinitions && n.variableDefinitions.length ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "variableDefinitions"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? n.name === null ? "" : " " : "", path$$1.call(print, "selectionSet")]); } case "FragmentDefinition": { @@ -3211,7 +3362,7 @@ function genericPrint$1(path$$1, options, print) { } case "Field": { - return group$2(concat$4([n.alias ? concat$4([path$$1.call(print, "alias"), ": "]) : "", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "arguments"))])), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? " " : "", path$$1.call(print, "selectionSet")])); + return group$2(concat$4([n.alias ? concat$4([path$$1.call(print, "alias"), ": "]) : "", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "arguments"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? " " : "", path$$1.call(print, "selectionSet")])); } case "Name": { @@ -3241,11 +3392,11 @@ function genericPrint$1(path$$1, options, print) { } case "ListValue": { - return group$2(concat$4(["[", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "values"))])), softline$3, "]"])); + return group$2(concat$4(["[", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "values"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, "]"])); } case "ObjectValue": { - return group$2(concat$4(["{", n.fields.length > 0 ? " " : "", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "fields"))])), softline$3, ifBreak$2("", n.fields.length > 0 ? " " : ""), "}"])); + return group$2(concat$4(["{", options.bracketSpacing && n.fields.length > 0 ? " " : "", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "fields"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ifBreak$2("", options.bracketSpacing && n.fields.length > 0 ? " " : ""), "}"])); } case "ObjectField": case "Argument": @@ -3255,7 +3406,7 @@ function genericPrint$1(path$$1, options, print) { case "Directive": { - return concat$4(["@", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "arguments"))])), softline$3, ")"])) : ""]); + return concat$4(["@", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "arguments"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ")"])) : ""]); } case "NamedType": @@ -3313,7 +3464,7 @@ var docBuilders$6 = docBuilders$1; var concat$5 = docBuilders$6.concat; var join$4 = docBuilders$6.join; var hardline$5 = docBuilders$6.hardline; -// const line = docBuilders.line; +var line$3 = docBuilders$6.line; var softline$4 = docBuilders$6.softline; var group$3 = docBuilders$6.group; var indent$5 = docBuilders$6.indent; @@ -3350,7 +3501,7 @@ function genericPrint$2(path$$1, options, print) { switch (n.type) { case "root": { - return concat$5(path$$1.map(print, "children")); + return printChildren(path$$1, print); } case "directive": { @@ -3365,37 +3516,45 @@ function genericPrint$2(path$$1, options, print) { case "tag": { var selfClose = voidTags[n.name] ? ">" : " />"; - - var children = []; - path$$1.each(function (childPath) { - var child = childPath.getValue(); - if (child.type !== "text") { - children.push(softline$4); - } - children.push(childPath.call(print)); - }, "children"); + var children = printChildren(path$$1, print); var _hasNewline = util$7.hasNewlineInRange(options.originalText, util$7.locStart(n), util$7.locEnd(n)); - return group$3(concat$5([_hasNewline ? hardline$5 : "", "<", n.name, printAttributes(n.attribs), n.children.length ? ">" : selfClose, n.name.toLowerCase() === "html" ? concat$5(children) : indent$5(concat$5(children)), n.children.length ? concat$5([softline$4, ""]) : ""])); + return group$3(concat$5([_hasNewline ? hardline$5 : "", "<", n.name, printAttributes(path$$1, print), n.children.length ? ">" : selfClose, n.name.toLowerCase() === "html" ? concat$5([hardline$5, children]) : indent$5(children), n.children.length ? concat$5([softline$4, ""]) : hardline$5])); } case "comment": { return concat$5([""]); } + case "attribute": + { + if (!n.value) { + return n.key; + } + return concat$5([n.key, '="', n.value, '"']); + } + default: throw new Error("unknown htmlparser2 type: " + n.type); } } -function printAttributes(attribs) { - var attributeKeys = Object.keys(attribs); - return concat$5([attributeKeys.length ? " " : "", join$4(" ", attributeKeys.map(function (name) { - if (attribs[name] === "") { - return name; +function printAttributes(path$$1, print) { + var node = path$$1.getValue(); + + return concat$5([node.attributes.length ? " " : "", indent$5(join$4(line$3, path$$1.map(print, "attributes")))]); +} + +function printChildren(path$$1, print) { + var children = []; + path$$1.each(function (childPath) { + var child = childPath.getValue(); + if (child.type !== "text") { + children.push(hardline$5); } - return concat$5([name, '="', attribs[name], '"']); - }))]); + children.push(childPath.call(print)); + }, "children"); + return concat$5(children); } var printerHtmlparser2 = genericPrint$2; @@ -3404,12 +3563,16 @@ var util$8 = util$2; var docBuilders$7 = docBuilders$1; var concat$6 = docBuilders$7.concat; var join$5 = docBuilders$7.join; -var line$3 = docBuilders$7.line; +var line$4 = docBuilders$7.line; var hardline$6 = docBuilders$7.hardline; var softline$5 = docBuilders$7.softline; var group$4 = docBuilders$7.group; +var fill$2 = docBuilders$7.fill; var indent$6 = docBuilders$7.indent; +var docUtils$4 = docUtils$2; +var removeLines$1 = docUtils$4.removeLines; + function genericPrint$3(path$$1, options, print) { var n = path$$1.getValue(); @@ -3432,14 +3595,14 @@ function genericPrint$3(path$$1, options, print) { return n.raws.content; } var text = options.originalText.slice(util$8.locStart(n), util$8.locEnd(n)); - var rawText = n.raws.text || n.text; + var _rawText = n.raws.text || n.text; // Workaround a bug where the location is off. // https://github.com/postcss/postcss-scss/issues/63 - if (text.indexOf(rawText) === -1) { + if (text.indexOf(_rawText) === -1) { if (n.raws.inline) { - return concat$6(["// ", rawText]); + return concat$6(["// ", _rawText]); } - return concat$6(["/* ", rawText, " */"]); + return concat$6(["/* ", _rawText, " */"]); } return text; } @@ -3454,8 +3617,9 @@ function genericPrint$3(path$$1, options, print) { // less files with less, but we can hardcode this to work with scss as // well. var isValueExtend = n.value.type === "value-root" && n.value.group.type === "value-value" && n.value.group.group.type === "value-func" && n.value.group.group.value === "extend"; + var isComposed = n.value.type === "value-root" && n.value.group.type === "value-value" && n.prop === "composes"; - return concat$6([n.raws.before.replace(/[\s;]/g, ""), n.prop, ":", isValueExtend ? "" : " ", path$$1.call(print, "value"), n.important ? " !important" : "", n.nodes ? concat$6([" {", indent$6(concat$6([softline$5, printNodeSequence(path$$1, options, print)])), softline$5, "}"]) : ";"]); + return concat$6([n.raws.before.replace(/[\s;]/g, ""), n.prop, ":", isValueExtend ? "" : " ", isComposed ? removeLines$1(path$$1.call(print, "value")) : path$$1.call(print, "value"), n.important ? " !important" : "", n.nodes ? concat$6([" {", indent$6(concat$6([softline$5, printNodeSequence(path$$1, options, print)])), softline$5, "}"]) : ";"]); } case "css-atrule": { @@ -3477,7 +3641,7 @@ function genericPrint$3(path$$1, options, print) { } parts.push(childPath.call(print)); }, "nodes"); - return join$5(", ", parts); + return group$4(indent$6(join$5(concat$6([",", line$4]), parts))); } case "media-query": { @@ -3551,7 +3715,7 @@ function genericPrint$3(path$$1, options, print) { { if (n.value === "+" || n.value === ">" || n.value === "~") { var parent = path$$1.getParentNode(); - var leading = parent.type === "selector-selector" && parent.nodes[0] === n ? "" : line$3; + var leading = parent.type === "selector-selector" && parent.nodes[0] === n ? "" : line$4; return concat$6([leading, n.value, " "]); } return n.value; @@ -3587,12 +3751,12 @@ function genericPrint$3(path$$1, options, print) { if (n.groups[i + 1].type === "value-operator" && ["+", "-", "/", "*", "%"].indexOf(n.groups[i + 1].value) !== -1) { _parts.push(" "); } else { - _parts.push(line$3); + _parts.push(line$4); } } } - return group$4(indent$6(concat$6(_parts))); + return group$4(indent$6(fill$2(_parts))); } case "value-paren_group": { @@ -3604,10 +3768,19 @@ function genericPrint$3(path$$1, options, print) { } if (!n.open) { - return group$4(indent$6(join$5(concat$6([",", line$3]), path$$1.map(print, "groups")))); + var _printed = path$$1.map(print, "groups"); + var res = []; + + for (var _i5 = 0; _i5 < _printed.length; _i5++) { + if (_i5 !== 0) { + res.push(concat$6([",", line$4])); + } + res.push(_printed[_i5]); + } + return group$4(indent$6(fill$2(res))); } - return group$4(concat$6([n.open ? path$$1.call(print, "open") : "", indent$6(concat$6([softline$5, join$5(concat$6([",", line$3]), path$$1.map(print, "groups"))])), softline$5, n.close ? path$$1.call(print, "close") : ""])); + return group$4(concat$6([n.open ? path$$1.call(print, "open") : "", indent$6(concat$6([softline$5, join$5(concat$6([",", line$4]), path$$1.map(print, "groups"))])), softline$5, n.close ? path$$1.call(print, "close") : ""])); } case "value-value": { @@ -3620,7 +3793,7 @@ function genericPrint$3(path$$1, options, print) { case "value-paren": { if (n.raws.before !== "") { - return concat$6([line$3, n.value]); + return concat$6([line$4, n.value]); } return n.value; } @@ -3634,6 +3807,9 @@ function genericPrint$3(path$$1, options, print) { } case "value-word": { + if (n.isColor && n.isHex) { + return n.value.toLowerCase(); + } return n.value; } case "value-colon": @@ -3717,10 +3893,11 @@ var breakParent$2 = docBuilders$3.breakParent; var lineSuffixBoundary$1 = docBuilders$3.lineSuffixBoundary; var addAlignmentToDoc$1 = docBuilders$3.addAlignmentToDoc; -var docUtils = docUtils$1; +var docUtils = docUtils$2; var willBreak = docUtils.willBreak; var isLineNext = docUtils.isLineNext; var isEmpty = docUtils.isEmpty; +var rawText = docUtils.rawText; function shouldPrintComma(options, level) { level = level || "es5"; @@ -3772,7 +3949,7 @@ function genericPrint(path$$1, options, printPath, args) { var next = multiparser.getSubtreeParser(path$$1, options); if (next) { try { - return multiparser.printSubtree(next, options); + return multiparser.printSubtree(next, path$$1, printPath, options); } catch (error) { if (process.env.PRETTIER_DEBUG) { console.error(error); @@ -3930,7 +4107,7 @@ function genericPrintNoParens(path$$1, options, print, args) { } // Avoid indenting sub-expressions in assignment/return/etc statements. - if (parent.type === "AssignmentExpression" || parent.type === "VariableDeclarator" || shouldInlineLogicalExpression(n) || parent.type === "ReturnStatement" || parent.type === "JSXExpressionContainer" && parentParent.type === "JSXAttribute" || n === parent.body && parent.type === "ArrowFunctionExpression" || n !== parent.body && parent.type === "ForStatement") { + if (parent.type === "AssignmentExpression" || parent.type === "VariableDeclarator" || shouldInlineLogicalExpression(n) || parent.type === "ReturnStatement" || parent.type === "JSXExpressionContainer" && parentParent.type === "JSXAttribute" || n === parent.body && parent.type === "ArrowFunctionExpression" || n !== parent.body && parent.type === "ForStatement" || parent.type === "ObjectProperty" || parent.type === "Property" || parent.type === "ConditionalExpression") { return group$1(concat$2(_parts2)); } @@ -4143,6 +4320,10 @@ function genericPrintNoParens(path$$1, options, print, args) { } return path$$1.call(print, "id"); + case "TSExportAssigment": + { + return concat$2(["export = ", path$$1.call(print, "expression"), semi]); + } case "ExportDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": @@ -4197,7 +4378,9 @@ function genericPrintNoParens(path$$1, options, print, args) { } parts.push(" ", "from "); - } else if (n.importKind && n.importKind === "type") { + } else if (n.importKind && n.importKind === "type" || + // import {} from 'x' + /{\s*}/.test(options.originalText.slice(util$4.locStart(n), util$4.locStart(n.source)))) { parts.push("{} from "); } @@ -4266,26 +4449,28 @@ function genericPrintNoParens(path$$1, options, print, args) { parts.push(semi); return concat$2(parts); + case "NewExpression": case "CallExpression": { + var isNew = n.type === "NewExpression"; if ( // We want to keep require calls as a unit - n.callee.type === "Identifier" && n.callee.name === "require" || + !isNew && n.callee.type === "Identifier" && n.callee.name === "require" || // Template literals as single arguments n.arguments.length === 1 && isTemplateOnItsOwnLine(n.arguments[0], options.originalText) || // Keep test declarations on a single line // e.g. `it('long name', () => {` - n.callee.type === "Identifier" && (n.callee.name === "it" || n.callee.name === "test" || n.callee.name === "describe") && n.arguments.length === 2 && (n.arguments[0].type === "StringLiteral" || n.arguments[0].type === "TemplateLiteral" || n.arguments[0].type === "Literal" && typeof n.arguments[0].value === "string") && (n.arguments[1].type === "FunctionExpression" || n.arguments[1].type === "ArrowFunctionExpression") && n.arguments[1].params.length <= 1) { - return concat$2([path$$1.call(print, "callee"), path$$1.call(print, "typeParameters"), concat$2(["(", join$2(", ", path$$1.map(print, "arguments")), ")"])]); + !isNew && n.callee.type === "Identifier" && (n.callee.name === "it" || n.callee.name === "test" || n.callee.name === "describe") && n.arguments.length === 2 && (n.arguments[0].type === "StringLiteral" || n.arguments[0].type === "TemplateLiteral" || n.arguments[0].type === "Literal" && typeof n.arguments[0].value === "string") && (n.arguments[1].type === "FunctionExpression" || n.arguments[1].type === "ArrowFunctionExpression") && n.arguments[1].params.length <= 1) { + return concat$2([isNew ? "new " : "", path$$1.call(print, "callee"), path$$1.call(print, "typeParameters"), concat$2(["(", join$2(", ", path$$1.map(print, "arguments")), ")"])]); } // We detect calls on member lookups and possibly print them in a // special chain format. See `printMemberChain` for more info. - if (n.callee.type === "MemberExpression") { + if (!isNew && n.callee.type === "MemberExpression") { return printMemberChain(path$$1, options, print); } - return concat$2([path$$1.call(print, "callee"), printFunctionTypeParameters(path$$1, options, print), printArgumentsList(path$$1, options, print)]); + return concat$2([isNew ? "new " : "", path$$1.call(print, "callee"), printFunctionTypeParameters(path$$1, options, print), printArgumentsList(path$$1, options, print)]); } case "TSInterfaceDeclaration": parts.push(n.abstract ? "abstract " : "", printTypeScriptModifiers(path$$1, options, print), "interface ", path$$1.call(print, "id"), n.typeParameters ? path$$1.call(print, "typeParameters") : "", " "); @@ -4304,7 +4489,7 @@ function genericPrintNoParens(path$$1, options, print, args) { case "TSTypeLiteral": { var isTypeAnnotation = n.type === "ObjectTypeAnnotation"; - var shouldBreak = n.type !== "ObjectPattern" && util$4.hasNewlineInRange(options.originalText, util$4.locStart(n), util$4.locEnd(n)); + var shouldBreak = n.type === "TSInterfaceBody" || n.type !== "ObjectPattern" && util$4.hasNewlineInRange(options.originalText, util$4.locStart(n), util$4.locEnd(n)); var separator = n.type === "TSInterfaceBody" || n.type === "TSTypeLiteral" ? ifBreak$1(semi, ";") : ","; var fields = []; var leftBrace = n.exact ? "{|" : "{"; @@ -4526,17 +4711,9 @@ function genericPrintNoParens(path$$1, options, print, args) { return group$1(concat$2([path$$1.call(print, "test"), _parent7.type === "ConditionalExpression" ? printed : indent$2(printed)])); } - case "NewExpression": - parts.push("new ", path$$1.call(print, "callee"), printFunctionTypeParameters(path$$1, options, print)); - - if (n.arguments) { - parts.push(printArgumentsList(path$$1, options, print)); - } - - return concat$2(parts); case "VariableDeclaration": { - var _printed = path$$1.map(function (childPath) { + var _printed2 = path$$1.map(function (childPath) { return print(childPath); }, "declarations"); @@ -4551,14 +4728,14 @@ function genericPrintNoParens(path$$1, options, print, args) { }); var firstVariable = void 0; - if (_printed.length === 1) { - firstVariable = _printed[0]; - } else if (_printed.length > 1) { + if (_printed2.length === 1) { + firstVariable = _printed2[0]; + } else if (_printed2.length > 1) { // Indent first var to comply with eslint one-var rule - firstVariable = indent$2(_printed[0]); + firstVariable = indent$2(_printed2[0]); } - parts = [isNodeStartingWithDeclare(n, options) ? "declare " : "", n.kind, firstVariable ? concat$2([" ", firstVariable]) : "", indent$2(concat$2(_printed.slice(1).map(function (p) { + parts = [isNodeStartingWithDeclare(n, options) ? "declare " : "", n.kind, firstVariable ? concat$2([" ", firstVariable]) : "", indent$2(concat$2(_printed2.slice(1).map(function (p) { return concat$2([",", hasValue && !isParentForLoop ? hardline$2 : line$1, p]); })))]; @@ -4736,7 +4913,7 @@ function genericPrintNoParens(path$$1, options, print, args) { if (n.value) { var res = void 0; if (isStringLiteral(n.value)) { - var value = n.value.extra ? n.value.extra.raw : n.value.raw; + var value = rawText(n.value); res = '"' + value.slice(1, -1).replace(/"/g, """) + '"'; } else { res = path$$1.call(print, "value"); @@ -4746,11 +4923,6 @@ function genericPrintNoParens(path$$1, options, print, args) { return concat$2(parts); case "JSXIdentifier": - // Can be removed when this is fixed: - // https://github.com/eslint/typescript-eslint-parser/issues/307 - if (!n.name) { - return "this"; - } return "" + n.name; case "JSXNamespacedName": return join$2(":", [path$$1.call(print, "namespace"), path$$1.call(print, "name")]); @@ -4828,10 +5000,6 @@ function genericPrintNoParens(path$$1, options, print, args) { case "ClassProperty": case "TSAbstractClassProperty": { - var variance = getFlowVariance(n); - if (variance) { - parts.push(variance); - } if (n.accessibility) { parts.push(n.accessibility + " "); } @@ -4844,6 +5012,10 @@ function genericPrintNoParens(path$$1, options, print, args) { if (n.readonly) { parts.push("readonly "); } + var variance = getFlowVariance(n); + if (variance) { + parts.push(variance); + } if (n.computed) { parts.push("[", path$$1.call(print, "key"), "]"); } else { @@ -5067,15 +5239,15 @@ function genericPrintNoParens(path$$1, options, print, args) { { var types = path$$1.map(print, "types"); var result = []; - for (var _i5 = 0; _i5 < types.length; ++_i5) { - if (_i5 === 0) { - result.push(types[_i5]); - } else if (!isObjectType(n.types[_i5 - 1]) && !isObjectType(n.types[_i5])) { + for (var _i6 = 0; _i6 < types.length; ++_i6) { + if (_i6 === 0) { + result.push(types[_i6]); + } else if (!isObjectType(n.types[_i6 - 1]) && !isObjectType(n.types[_i6])) { // If no object is involved, go to the next line if it breaks - result.push(indent$2(concat$2([" &", line$1, types[_i5]]))); + result.push(indent$2(concat$2([" &", line$1, types[_i6]]))); } else { // If you go from object to non-object or vis-versa, then inline it - result.push(" & ", _i5 > 1 ? indent$2(types[_i5]) : types[_i5]); + result.push(" & ", _i6 > 1 ? indent$2(types[_i6]) : types[_i6]); } } return group$1(concat$2(result)); @@ -5105,7 +5277,7 @@ function genericPrintNoParens(path$$1, options, print, args) { // | child1 // // comment // | child2 - var _printed2 = path$$1.map(function (typePath) { + var _printed3 = path$$1.map(function (typePath) { var printedType = typePath.call(print); if (!shouldHug && shouldIndent) { printedType = align$1(2, printedType); @@ -5116,15 +5288,16 @@ function genericPrintNoParens(path$$1, options, print, args) { }, "types"); if (shouldHug) { - return join$2(" | ", _printed2); + return join$2(" | ", _printed3); } - var _code = concat$2([ifBreak$1(concat$2([shouldIndent ? line$1 : "", "| "])), join$2(concat$2([line$1, "| "]), _printed2)]); + var _code = concat$2([ifBreak$1(concat$2([shouldIndent ? line$1 : "", "| "])), join$2(concat$2([line$1, "| "]), _printed3)]); return group$1(shouldIndent ? indent$2(_code) : _code); } case "NullableTypeAnnotation": return concat$2(["?", path$$1.call(print, "typeAnnotation")]); + case "TSNullKeyword": case "NullLiteralTypeAnnotation": return "null"; case "ThisTypeAnnotation": @@ -5173,9 +5346,9 @@ function genericPrintNoParens(path$$1, options, print, args) { var canBreak = n.right.type === "StringLiteralTypeAnnotation"; - var _printed3 = printAssignmentRight(n.right, path$$1.call(print, "right"), canBreak, options); + var _printed4 = printAssignmentRight(n.right, path$$1.call(print, "right"), canBreak, options); - parts.push("type ", path$$1.call(print, "id"), path$$1.call(print, "typeParameters"), " =", _printed3, semi); + parts.push("type ", path$$1.call(print, "id"), path$$1.call(print, "typeParameters"), " =", _printed4, semi); return group$1(concat$2(parts)); } @@ -5365,9 +5538,9 @@ function genericPrintNoParens(path$$1, options, print, args) { parts.push("new "); } - parts.push(printFunctionParams(path$$1, print, options, + parts.push(group$1(printFunctionParams(path$$1, print, options, /* expandArg */false, - /* printTypeParams */true)); + /* printTypeParams */true))); if (n.typeAnnotation) { var isType = n.type === "TSConstructorType"; @@ -5398,9 +5571,7 @@ function genericPrintNoParens(path$$1, options, print, args) { return group$1(concat$2(parts)); case "TSNamespaceExportDeclaration": if (n.declaration) { - // Temporary fix until https://github.com/eslint/typescript-eslint-parser/issues/263 - var isDefault = options.originalText.slice(util$4.locStart(n), util$4.locStart(n.declaration)).match(/\bdefault\b/); - parts.push("export ", isDefault ? "default " : "", path$$1.call(print, "declaration")); + parts.push("export ", n.default ? "default " : "", path$$1.call(print, "declaration")); } else { parts.push("export as namespace ", path$$1.call(print, "name")); @@ -5482,6 +5653,8 @@ function genericPrintNoParens(path$$1, options, print, args) { return path$$1.call(function (bodyPath) { return printStatementSequence(bodyPath, options, print); }, "body"); + case "json-identifier": + return '"' + n.value + '"'; default: throw new Error("unknown type: " + JSON.stringify(n.type)); @@ -5727,8 +5900,10 @@ function printFunctionParams(path$$1, print, options, expandArg, printTypeParams // } b, // }) ) => { // }) - if (expandArg) { - return group$1(concat$2([removeLines(typeParams), "(", join$2(", ", printed.map(removeLines)), ")"])); + if (expandArg && !(fun[paramsField] && fun[paramsField].some(function (n) { + return n.comments; + }))) { + return group$1(concat$2([docUtils.removeLines(typeParams), "(", join$2(", ", printed.map(docUtils.removeLines)), ")"])); } // Single object destructuring should hug @@ -5758,7 +5933,7 @@ function printFunctionParams(path$$1, print, options, expandArg, printTypeParams } function canPrintParamsWithoutParens(node) { - return node.params.length === 1 && !node.rest && node.params[0].type === "Identifier" && !node.params[0].typeAnnotation && !util$4.hasBlockComments(node.params[0]) && !node.params[0].optional && !node.predicate && !node.returnType; + return node.params.length === 1 && !node.rest && node.params[0].type === "Identifier" && !node.params[0].typeAnnotation && !node.params[0].comments && !node.params[0].optional && !node.predicate && !node.returnType; } function printFunctionDeclaration(path$$1, print, options) { @@ -5834,12 +6009,7 @@ function printExportDeclaration(path$$1, options, print) { var parts = ["export "]; if (decl["default"] || decl.type === "ExportDefaultDeclaration") { - // Temp fix, delete after https://github.com/eslint/typescript-eslint-parser/issues/304 - if (decl.declaration && /=/.test(options.originalText.slice(util$4.locStart(decl), util$4.locStart(decl.declaration)))) { - parts.push("= "); - } else { - parts.push("default "); - } + parts.push("default "); } parts.push(comments$3.printDanglingComments(path$$1, options, /* sameIndent */true)); @@ -5847,7 +6017,7 @@ function printExportDeclaration(path$$1, options, print) { if (decl.declaration) { parts.push(path$$1.call(print, "declaration")); - if (decl.type === "ExportDefaultDeclaration" && decl.declaration.type !== "ClassDeclaration" && decl.declaration.type !== "FunctionDeclaration" && decl.declaration.type !== "TSAbstractClassDeclaration") { + if (decl.type === "ExportDefaultDeclaration" && decl.declaration.type !== "ClassDeclaration" && decl.declaration.type !== "FunctionDeclaration" && decl.declaration.type !== "TSAbstractClassDeclaration" && decl.declaration.type !== "TSNamespaceFunctionDeclaration") { parts.push(semi); } } else { @@ -6225,12 +6395,27 @@ function isEmptyJSXElement(node) { return false; } - // if there is one child but it's just a newline, treat as empty - var value = node.children[0].value; - if (!/\S/.test(value) && /\n/.test(value)) { - return true; - } - return false; + // if there is one text child and does not contain any meaningful text + // we can treat the element as empty. + var child = node.children[0]; + return isLiteral(child) && !isMeaningfulJSXText(child); +} + +// Only space, newline, carriage return, and tab are treated as whitespace +// inside JSX. +var jsxWhitespaceChars = " \n\r\t"; +var containsNonJsxWhitespaceRegex = new RegExp("[^" + jsxWhitespaceChars + "]"); +var matchJsxWhitespaceRegex = new RegExp("([" + jsxWhitespaceChars + "]+)"); + +// Meaningful if it contains non-whitespace characters, +// or it contains whitespace without a new line. +function isMeaningfulJSXText(node) { + return isLiteral(node) && (containsNonJsxWhitespaceRegex.test(rawText(node)) || !/\n/.test(rawText(node))); +} + +// Detect an expression node representing `{" "}` +function isJSXWhitespaceExpression(node) { + return node.type === "JSXExpressionContainer" && isLiteral(node.expression) && node.expression.value === " " && !node.expression.comments; } // JSX Children are strange, mostly for two reasons: @@ -6238,13 +6423,10 @@ function isEmptyJSXElement(node) { // 2. up to one whitespace between elements within a line is significant, // but not between lines. // -// So for one thing, '\n' needs to be parsed out of string literals -// and turned into hardlines (with string boundaries otherwise using softline) -// -// For another, leading, trailing, and lone whitespace all need to +// Leading, trailing, and lone whitespace all need to // turn themselves into the rather ugly `{' '}` when breaking. // -// Finally we print JSX using the `fill` doc primitive. +// We print JSX using the `fill` doc primitive. // This requires that we give it an array of alternating // content and whitespace elements. // To ensure this we add dummy `""` content elements as needed. @@ -6255,97 +6437,87 @@ function printJSXChildren(path$$1, options, print, jsxWhitespace) { // using `map` instead of `each` because it provides `i` path$$1.map(function (childPath, i) { var child = childPath.getValue(); - if (isLiteral(child) && typeof child.value === "string") { - var value = child.raw || child.extra.raw; + if (isLiteral(child)) { + var text = rawText(child); // Contains a non-whitespace character - if (/[^ \n\r\t]/.test(value)) { - // treat each line of text as its own entity - value.split(/(\r?\n\s*)/).forEach(function (textLine) { - var newlines = textLine.match(/\n/g); - if (newlines) { - children.push(""); + if (isMeaningfulJSXText(child)) { + var words = text.split(matchJsxWhitespaceRegex); + + // Starts with whitespace + if (words[0] === "") { + children.push(""); + words.shift(); + if (/\n/.test(words[0])) { children.push(hardline$2); - - // allow one extra newline - if (newlines.length > 1) { - children.push(""); - children.push(hardline$2); - } - return; - } - - if (textLine.length === 0) { - return; - } - - var beginSpace = /^[ \n\r\t]+/.test(textLine); - if (beginSpace) { - children.push(""); - children.push(jsxWhitespace); - } - - var stripped = textLine.replace(/^[ \n\r\t]+|[ \n\r\t]+$/g, ""); - // Split text into words separated by "line"s. - stripped.split(/([ \n\r\t]+)/).forEach(function (word) { - var space = /[ \n\r\t]+/.test(word); - if (space) { - children.push(line$1); - } else { - children.push(word); - } - }); - - var endSpace = /[ \n\r\t]+$/.test(textLine); - if (endSpace) { - children.push(jsxWhitespace); } else { - // Ideally this would be a `softline` to allow a break between - // tags and text. - // Unfortunately Facebook have a custom translation pipeline - // (https://github.com/prettier/prettier/issues/1581#issuecomment-300975032) - // that uses the JSX syntax, but does not follow the React whitespace - // rules. - // Ensuring that we never have a break between tags and text in JSX - // will allow Facebook to adopt Prettier without too much of an - // adverse effect on formatting algorithm. - children.push(""); + children.push(jsxWhitespace); + } + words.shift(); + } + + var endWhitespace = void 0; + // Ends with whitespace + if (util$4.getLast(words) === "") { + words.pop(); + endWhitespace = words.pop(); + } + + // This was whitespace only without a new line. + if (words.length === 0) { + return; + } + + words.forEach(function (word, i) { + if (i % 2 === 1) { + children.push(line$1); + } else { + children.push(word); } }); - } else if (/\n/.test(value)) { - children.push(""); - children.push(hardline$2); - // allow one extra newline - if (value.match(/\n/g).length > 1) { + if (endWhitespace !== undefined) { + if (/\n/.test(endWhitespace)) { + children.push(hardline$2); + } else { + children.push(jsxWhitespace); + } + } else { + // Ideally this would be a `hardline` to allow a break between + // tags and text. + // Unfortunately Facebook have a custom translation pipeline + // (https://github.com/prettier/prettier/issues/1581#issuecomment-300975032) + // that uses the JSX syntax, but does not follow the React whitespace + // rules. + // Ensuring that we never have a break between tags and text in JSX + // will allow Facebook to adopt Prettier without too much of an + // adverse effect on formatting algorithm. + children.push(""); + } + } else if (/\n/.test(text)) { + // Keep (up to one) blank line between tags/expressions/text. + // Note: We don't keep blank lines between text elements. + if (text.match(/\n/g).length > 1) { children.push(""); children.push(hardline$2); } - } else if (/[ \n\r\t]/.test(value)) { - // whitespace(s)-only without newlines, - // eg; one or more spaces separating two elements - for (var _i6 = 0; _i6 < value.length; ++_i6) { - // Because fill expects alternating content and whitespace parts - // we need to include an empty content part before each JSX - // whitespace. - children.push(""); - children.push(jsxWhitespace); - } + } else { + children.push(""); + children.push(jsxWhitespace); } } else { - children.push(print(childPath)); + var printedChild = print(childPath); + children.push(printedChild); var next = n.children[i + 1]; - var followedByJSXElement = next && !isLiteral(next); - var followedByJSXWhitespace = next && next.type === "JSXExpressionContainer" && isLiteral(next.expression) && next.expression.value === " "; - - if (followedByJSXElement && !followedByJSXWhitespace) { - children.push(softline$1); - } else { - // Ideally this would be a softline as well. + var directlyFollowedByMeaningfulText = next && isMeaningfulJSXText(next) && !/^[ \n\r\t]/.test(rawText(next)); + if (directlyFollowedByMeaningfulText) { + // Potentially this could be a hardline as well. // See the comment above about the Facebook translation pipeline as // to why this is an empty string. children.push(""); + } else { + children.push(hardline$2); } } }, "children"); @@ -6389,64 +6561,91 @@ function printJSXElement(path$$1, options, print) { assert$1.ok(!n.closingElement); return openingLines; } + + // Convert `{" "}` to text nodes containing a space. + // This makes it easy to turn them into `jsxWhitespace` which + // can then print as either a space or `{" "}` when breaking. + n.children = n.children.map(function (child) { + if (isJSXWhitespaceExpression(child)) { + return { + type: "JSXText", + value: " ", + raw: " " + }; + } + return child; + }); + + var parent = path$$1.getParentNode(); + var parentContainsText = parent.type === "JSXElement" && parent.children.filter(function (child) { + return isMeaningfulJSXText(child); + }).length > 0; + + var containsTag = n.children.filter(function (child) { + return child.type === "JSXElement"; + }).length > 0; + var numExpressions = n.children.filter(function (child) { + return child.type === "JSXExpressionContainer"; + }).length; + var containsMultipleAttributes = n.openingElement.attributes.length > 1; + // Record any breaks. Should never go from true to false, only false to true. - var forcedBreak = willBreak(openingLines); + var forcedBreak = willBreak(openingLines) || containsTag || containsMultipleAttributes || (parentContainsText ? numExpressions > 1 : numExpressions > 0); var rawJsxWhitespace = options.singleQuote ? "{' '}" : '{" "}'; var jsxWhitespace = ifBreak$1(concat$2([rawJsxWhitespace, softline$1]), " "); var children = printJSXChildren(path$$1, options, print, jsxWhitespace); - // Remove multiple filler empty strings - // These can occur when a text element is followed by a newline. + var containsText = n.children.filter(function (child) { + return isMeaningfulJSXText(child); + }).length > 0; + + // We can end up we multiple whitespace elements with empty string + // content between them. + // We need to remove empty whitespace and softlines before JSX whitespace + // to get the correct output. for (var i = children.length - 2; i >= 0; i--) { - if (children[i] === "" && children[i + 1] === "") { + var isPairOfEmptyStrings = children[i] === "" && children[i + 1] === ""; + var isPairOfHardlines = children[i] === hardline$2 && children[i + 1] === "" && children[i + 2] === hardline$2; + var isLineFollowedByJSXWhitespace = (children[i] === softline$1 || children[i] === hardline$2) && children[i + 1] === "" && children[i + 2] === jsxWhitespace; + var isJSXWhitespaceFollowedByLine = children[i] === jsxWhitespace && children[i + 1] === "" && (children[i + 2] === softline$1 || children[i + 2] === hardline$2); + + if (isPairOfHardlines && containsText || isPairOfEmptyStrings || isLineFollowedByJSXWhitespace) { children.splice(i, 2); + } else if (isJSXWhitespaceFollowedByLine) { + children.splice(i + 1, 2); } } - // Trim trailing lines (or empty strings), recording if there was a hardline - var numTrailingHard = 0; + // Trim trailing lines (or empty strings) while (children.length && (isLineNext(util$4.getLast(children)) || isEmpty(util$4.getLast(children)))) { - if (willBreak(util$4.getLast(children))) { - ++numTrailingHard; - forcedBreak = true; - } children.pop(); } - // allow one extra newline - if (numTrailingHard > 1) { - children.push(""); - children.push(hardline$2); - } - // Trim leading lines (or empty strings), recording if there was a hardline - var numLeadingHard = 0; + // Trim leading lines (or empty strings) while (children.length && (isLineNext(children[0]) || isEmpty(children[0])) && (isLineNext(children[1]) || isEmpty(children[1]))) { - if (willBreak(children[0]) || willBreak(children[1])) { - ++numLeadingHard; - forcedBreak = true; - } children.shift(); children.shift(); } - // allow one extra newline - if (numLeadingHard > 1) { - children.unshift(hardline$2); - children.unshift(""); - } // Tweak how we format children if outputting this element over multiple lines. // Also detect whether we will force this element to output over multiple lines. var multilineChildren = []; children.forEach(function (child, i) { - // Ensure that we display leading, trailing, and solitary whitespace as - // `{" "}` when outputting this element over multiple lines. + // There are a number of situations where we need to ensure we display + // whitespace as `{" "}` when outputting this element over multiple lines. if (child === jsxWhitespace) { if (i === 1 && children[i - 1] === "") { + // Leading whitespace multilineChildren.push(rawJsxWhitespace); return; } else if (i === children.length - 1) { + // Trailing whitespace + multilineChildren.push(rawJsxWhitespace); + return; + } else if (children[i - 1] === "" && children[i - 2] === hardline$2) { + // Whitespace after line break multilineChildren.push(rawJsxWhitespace); return; } @@ -6459,13 +6658,18 @@ function printJSXElement(path$$1, options, print) { } }); - var multiLineElem = group$1(concat$2([openingLines, indent$2(concat$2([hardline$2, fill$1(multilineChildren)])), hardline$2, closingLines])); + // If there is text we use `fill` to fit as much onto each line as possible. + // When there is no text (just tags and expressions) we use `group` + // to output each on a separate line. + var content = containsText ? fill$1(multilineChildren) : group$1(concat$2(multilineChildren), { shouldBreak: true }); + + var multiLineElem = group$1(concat$2([openingLines, indent$2(concat$2([hardline$2, content])), hardline$2, closingLines])); if (forcedBreak) { return multiLineElem; } - return conditionalGroup$1([group$1(concat$2([openingLines, fill$1(children), closingLines])), multiLineElem]); + return conditionalGroup$1([group$1(concat$2([openingLines, concat$2(children), closingLines])), multiLineElem]); } function maybeWrapJSXElementInParens(path$$1, elem) { @@ -6586,7 +6790,7 @@ function printAssignment(leftNode, printedLeft, operator, rightNode, printedRigh return printedLeft; } - var canBreak = isBinaryish(rightNode) && !shouldInlineLogicalExpression(rightNode) || (leftNode.type === "Identifier" || isStringLiteral(leftNode) || leftNode.type === "MemberExpression") && (isStringLiteral(rightNode) || isMemberExpressionChain(rightNode)); + var canBreak = isBinaryish(rightNode) && !shouldInlineLogicalExpression(rightNode) || rightNode.type === "ConditionalExpression" && isBinaryish(rightNode.test) && !shouldInlineLogicalExpression(rightNode.test) || (leftNode.type === "Identifier" || isStringLiteral(leftNode) || leftNode.type === "MemberExpression") && (isStringLiteral(rightNode) || isMemberExpressionChain(rightNode)); var printed = printAssignmentRight(rightNode, printedRight, canBreak, options); @@ -6606,7 +6810,7 @@ function adjustClause(node, clause, forceSpace) { } function nodeStr(node, options, isFlowOrTypeScriptDirectiveLiteral) { - var raw = node.extra ? node.extra.raw : node.raw; + var raw = rawText(node); // `rawContent` is the string exactly like it appeared in the input source // code, with its enclosing quote. var rawContent = raw.slice(1, -1); @@ -6636,7 +6840,7 @@ function nodeStr(node, options, isFlowOrTypeScriptDirectiveLiteral) { canChangeDirectiveQuotes = true; } - var enclosingQuote = shouldUseAlternateQuote ? alternate.quote : preferred.quote; + var enclosingQuote = options.parser === "json" ? double.quote : shouldUseAlternateQuote ? alternate.quote : preferred.quote; // Directives are exact code unit sequences, which means that you can't // change the escape sequences they use. @@ -6698,17 +6902,17 @@ function printRegex(node) { } function printNumber(rawNumber) { - return rawNumber.toLowerCase() + return rawNumber.toLowerCase // Remove unnecessary plus and zeroes from scientific notation. - .replace(/^([\d.]+e)(?:\+|(-))?0*(\d)/, "$1$2$3") + ().replace(/^([\d.]+e)(?:\+|(-))?0*(\d)/, "$1$2$3" // Remove unnecessary scientific notation (1e0). - .replace(/^([\d.]+)e[+-]?0+$/, "$1") + ).replace(/^([\d.]+)e[+-]?0+$/, "$1" // Make sure numbers always start with a digit. - .replace(/^\./, "0.") + ).replace(/^\./, "0." // Remove extraneous trailing decimal zeroes. - .replace(/(\.\d+?)0+(?=e|$)/, "$1") + ).replace(/(\.\d+?)0+(?=e|$)/, "$1" // Remove trailing dot. - .replace(/\.(?=e|$)/, ""); + ).replace(/\.(?=e|$)/, ""); } function isLastStatement(path$$1) { @@ -6916,7 +7120,7 @@ function shouldHugType(node) { if (node.type === "UnionTypeAnnotation" || node.type === "TSUnionType") { var voidCount = node.types.filter(function (n) { - return n.type === "VoidTypeAnnotation" || n.type === "TSVoidKeyword" || n.type === "NullLiteralTypeAnnotation" || n.type === "Literal" && n.value === null; + return n.type === "VoidTypeAnnotation" || n.type === "TSVoidKeyword" || n.type === "NullLiteralTypeAnnotation" || n.type === "TSNullKeyword"; }).length; var objectCount = node.types.filter(function (n) { @@ -6977,21 +7181,6 @@ function isStringLiteral(node) { return node.type === "StringLiteral" || node.type === "Literal" && typeof node.value === "string"; } -function removeLines(doc) { - // Force this doc into flat mode by statically converting all - // lines into spaces (or soft lines into nothing). Hard lines - // should still output because there's too great of a chance - // of breaking existing assumptions otherwise. - return docUtils.mapDoc(doc, function (d) { - if (d.type === "line" && !d.hard) { - return d.soft ? "" : " "; - } else if (d.type === "if-break") { - return d.flatContents || ""; - } - return d; - }); -} - function isObjectType(n) { return n.type === "ObjectTypeAnnotation" || n.type === "TSTypeLiteral"; } @@ -6999,27 +7188,47 @@ function isObjectType(n) { function printAstToDoc$1(ast, options, addAlignmentSize) { addAlignmentSize = addAlignmentSize || 0; + var cache = new Map(); + function printGenerically(path$$1, args) { var node = path$$1.getValue(); + + var shouldCache = node && (typeof node === 'undefined' ? 'undefined' : _typeof(node)) === "object" && args === undefined; + if (shouldCache && cache.has(node)) { + return cache.get(node); + } + var parent = path$$1.getParentNode(0); // We let JSXElement print its comments itself because it adds () around // UnionTypeAnnotation has to align the child without the comments + var res = void 0; if (node && node.type === "JSXElement" || parent && (parent.type === "UnionTypeAnnotation" || parent.type === "TSUnionType")) { - return genericPrint(path$$1, options, printGenerically, args); + res = genericPrint(path$$1, options, printGenerically, args); + } else { + res = comments$3.printComments(path$$1, function (p) { + return genericPrint(p, options, printGenerically, args); + }, options, args && args.needsSemi); } - return comments$3.printComments(path$$1, function (p) { - return genericPrint(p, options, printGenerically, args); - }, options, args && args.needsSemi); + if (shouldCache) { + cache.set(node, res); + } + + return res; } var doc = printGenerically(new FastPath(ast)); if (addAlignmentSize > 0) { // Add a hardline to make the indents take effect // It should be removed in index.js format() - doc = addAlignmentToDoc$1(removeLines(concat$2([hardline$2, doc])), addAlignmentSize, options.tabWidth); + doc = addAlignmentToDoc$1(docUtils.removeLines(concat$2([hardline$2, doc])), addAlignmentSize, options.tabWidth); } docUtils.propagateBreaks(doc); + + if (options.parser === "json") { + doc = concat$2([doc, hardline$2]); + } + return doc; } @@ -7027,7 +7236,7 @@ var printer = { printAstToDoc: printAstToDoc$1 }; var docBuilders$8 = docBuilders$1; var concat$7 = docBuilders$8.concat; -var fill$2 = docBuilders$8.fill; +var fill$3 = docBuilders$8.fill; var cursor$2 = docBuilders$8.cursor; var MODE_BREAK = 1; @@ -7319,7 +7528,7 @@ function printDocToString$1(doc, options) { } var remaining = parts.slice(2); - var remainingCmd = [ind, mode, fill$2(remaining)]; + var remainingCmd = [ind, mode, fill$3(remaining)]; var secondContent = parts[2]; var firstAndSecondContentFlatCmd = [ind, MODE_FLAT, concat$7([content, whitespace, secondContent])]; @@ -8656,7 +8865,16 @@ var index$26 = createCommonjsModule(function (module) { magenta: [35, 39], cyan: [36, 39], white: [37, 39], - gray: [90, 39] + gray: [90, 39], + + // Bright color + redBright: [91, 39], + greenBright: [92, 39], + yellowBright: [93, 39], + blueBright: [94, 39], + magentaBright: [95, 39], + cyanBright: [96, 39], + whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], @@ -8666,11 +8884,21 @@ var index$26 = createCommonjsModule(function (module) { bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], - bgWhite: [47, 49] + bgWhite: [47, 49], + + // Bright color + bgBlackBright: [100, 49], + bgRedBright: [101, 49], + bgGreenBright: [102, 49], + bgYellowBright: [103, 49], + bgBlueBright: [104, 49], + bgMagentaBright: [105, 49], + bgCyanBright: [106, 49], + bgWhiteBright: [107, 49] } }; - // fix humans + // Fix humans styles.color.grey = styles.color.gray; Object.keys(styles).forEach(function (groupName) { @@ -8679,10 +8907,12 @@ var index$26 = createCommonjsModule(function (module) { Object.keys(group).forEach(function (styleName) { var style = group[styleName]; - styles[styleName] = group[styleName] = { + styles[styleName] = { open: '\x1B[' + style[0] + 'm', close: '\x1B[' + style[1] + 'm' }; + + group[styleName] = styles[styleName]; }); Object.defineProperty(styles, groupName, { @@ -8885,7 +9115,7 @@ function isHTMLElement(value) { return value !== undefined && value !== null && (value.nodeType === 1 || value.nodeType === 3 || value.nodeType === 8) && value.constructor !== undefined && value.constructor.name !== undefined && HTML_ELEMENT_REGEXP.test(value.constructor.name); } -function printChildren(flatChildren, print, indent, colors, opts) { +function printChildren$1(flatChildren, print, indent, colors, opts) { return flatChildren.map(function (node) { if ((typeof node === 'undefined' ? 'undefined' : _typeof(node)) === 'object') { return print(node, print, indent, colors, opts); @@ -8933,7 +9163,7 @@ var print$3 = function print$3(element, print, indent, opts, colors) { var closeInNewLine = hasAttributes && !opts.min; if (flatChildren.length) { - var children = printChildren(flatChildren, print, indent, colors, opts); + var children = printChildren$1(flatChildren, print, indent, colors, opts); result += colors.tag.open + (closeInNewLine ? '\n' : '') + '>' + colors.tag.close + opts.edgeSpacing + indent(children) + opts.edgeSpacing + colors.tag.open + '' + colors.tag.close; } else { result += colors.tag.open + (closeInNewLine ? '\n' : ' ') + '/>' + colors.tag.close; @@ -9119,7 +9349,7 @@ var escapeHTML$2 = escapeHTML_1; /** } } -function printChildren$1(flatChildren, print, indent, colors, opts) { +function printChildren$2(flatChildren, print, indent, colors, opts) { return flatChildren.map(function (node) { if ((typeof node === 'undefined' ? 'undefined' : _typeof(node)) === 'object') { return print(node, print, indent, colors, opts); @@ -9176,7 +9406,7 @@ var print$10 = function print$10(element, print, indent, opts, colors) { traverseChildren(opaqueChildren, function (child) { flatChildren.push(child); }); - var children = printChildren$1(flatChildren, print, indent, colors, opts); + var children = printChildren$2(flatChildren, print, indent, colors, opts); result += colors.tag.open + (closeInNewLine ? '\n' : '') + '>' + colors.tag.close + opts.edgeSpacing + indent(children) + opts.edgeSpacing + colors.tag.open + '' + colors.tag.close; } else { result += colors.tag.open + (closeInNewLine ? '\n' : ' ') + '/>' + colors.tag.close; @@ -9199,7 +9429,7 @@ var escapeHTML$3 = escapeHTML_1; /** * of patent rights can be found in the PATENTS file in the same directory. * * - */var reactTestInstance = Symbol.for('react.test.json');function printChildren$2(children, print, indent, colors, opts) { + */var reactTestInstance = Symbol.for('react.test.json');function printChildren$3(children, print, indent, colors, opts) { return children.map(function (child) { return printInstance(child, print, indent, colors, opts); }).join(opts.edgeSpacing); @@ -9238,7 +9468,7 @@ function printInstance(instance, print, indent, colors, opts) { } if (instance.children) { - var children = printChildren$2(instance.children, print, indent, colors, opts); + var children = printChildren$3(instance.children, print, indent, colors, opts); result += colors.tag.open + (closeInNewLine ? '\n' : '') + '>' + colors.tag.close + opts.edgeSpacing + indent(children) + opts.edgeSpacing + colors.tag.open + '' + colors.tag.close; } else { @@ -10201,6 +10431,11 @@ function normalize(options) { normalized.parser = "parse5"; } else if (/\.(ts|tsx)$/.test(filepath)) { normalized.parser = "typescript"; + } else if (/\.graphql$/.test(filepath)) { + normalized.parser = "graphql"; + } else if (/\.json$/.test(filepath)) { + normalized.parser = "json"; + normalized.trailingComma = "none"; } if (typeof normalized.trailingComma === "boolean") { @@ -10339,10 +10574,10 @@ var docDebug = { } }; -var require$$1$13 = _package$1 && _package$1['default'] || _package$1; +var require$$1$12 = _package$1 && _package$1['default'] || _package$1; var comments = comments$1; -var version = require$$1$13.version; +var version = require$$1$12.version; var printAstToDoc = printer.printAstToDoc; var util = util$2; var _printDocToString = docPrinter.printDocToString; @@ -10448,7 +10683,7 @@ function findSiblingAncestors(startNodeAndParents, endNodeAndParents) { for (var _iterator2 = endNodeAndParents.parentNodes[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var endParent = _step2.value; - if (util.locStart(endParent) >= util.locStart(startNodeAndParents.node)) { + if (endParent.type !== "Program" && endParent.type !== "File" && util.locStart(endParent) >= util.locStart(startNodeAndParents.node)) { resultEndNode = endParent; } else { break; @@ -10477,7 +10712,7 @@ function findSiblingAncestors(startNodeAndParents, endNodeAndParents) { for (var _iterator3 = startNodeAndParents.parentNodes[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var startParent = _step3.value; - if (util.locEnd(startParent) <= util.locEnd(endNodeAndParents.node)) { + if (startParent.type !== "Program" && startParent.type !== "File" && util.locEnd(startParent) <= util.locEnd(endNodeAndParents.node)) { resultStartNode = startParent; } else { break; @@ -10574,6 +10809,17 @@ function isSourceElement(node) { case "VariableDeclaration": case "WhileStatement": case "WithStatement": + case "ClassDeclaration": // ES 2015 + case "ImportDeclaration": // Module + case "ExportDefaultDeclaration": // Module + case "ExportNamedDeclaration": // Module + case "ExportAllDeclaration": // Module + case "TypeAlias": // Flow + case "InterfaceDeclaration": // Flow, Typescript + case "TypeAliasDeclaration": // Typescript + case "ExportAssignment": // Typescript + case "ExportDeclaration": + // Typescript return true; } return false; @@ -10593,6 +10839,14 @@ function calculateRange(text, opts, ast) { var startNodeAndParents = findNodeAtOffset(ast, startNonWhitespace, isSourceElement); var endNodeAndParents = findNodeAtOffset(ast, endNonWhitespace, isSourceElement); + + if (!startNodeAndParents || !endNodeAndParents) { + return { + rangeStart: 0, + rangeEnd: 0 + }; + } + var siblingAncestors = findSiblingAncestors(startNodeAndParents, endNodeAndParents); var startNode = siblingAncestors.startNode; var endNode = siblingAncestors.endNode; diff --git a/docs/lib/parser-babylon.js b/docs/lib/parser-babylon.js index 1036a241..af178c7a 100644 --- a/docs/lib/parser-babylon.js +++ b/docs/lib/parser-babylon.js @@ -19,7 +19,7 @@ var babylon = function () { return e = { exports: {} }, t(e, e.exports), e.exports; }function parse(t) { var e = index, - s = { sourceType: "module", allowImportExportEverywhere: !1, allowReturnOutsideFunction: !0, plugins: ["jsx", "flow", "doExpressions", "objectRestSpread", "decorators", "classProperties", "exportExtensions", "asyncGenerators", "functionBind", "functionSent", "dynamicImport"] };var i = void 0;try { + s = { sourceType: "module", allowImportExportEverywhere: !0, allowReturnOutsideFunction: !0, plugins: ["jsx", "flow", "doExpressions", "objectRestSpread", "decorators", "classProperties", "exportExtensions", "asyncGenerators", "functionBind", "functionSent", "dynamicImport", "numericSeparator"] };var i = void 0;try { i = e.parse(t, s); } catch (r) { try { @@ -75,7 +75,7 @@ var babylon = function () { }function y(t, e) { var s = x(e, t);return s.options.strictMode && (s.state.strict = !0), s.getExpression(); }function x(t, e) { - return new (t && t.plugins ? v(t.plugins) : tt)(t, e); + return new (t && t.plugins ? v(t.plugins) : et)(t, e); }function v(t) { var e = t.filter(function (t) { return "estree" === t || "flow" === t || "jsx" === t; @@ -84,14 +84,14 @@ var babylon = function () { })).push("flow"), e.indexOf("estree") >= 0 && (e = e.filter(function (t) { return "estree" !== t; })).unshift("estree");var s = e.join("/"), - i = pt[s];if (!i) { - i = tt;for (var r = e, a = Array.isArray(r), n = 0, r = a ? r : r[Symbol.iterator]();;) { + i = ct[s];if (!i) { + i = et;for (var r = e, a = Array.isArray(r), n = 0, r = a ? r : r[Symbol.iterator]();;) { var o;if (a) { if (n >= r.length) break;o = r[n++]; } else { if ((n = r.next()).done) break;o = n.value; - }i = Z[o](i); - }pt[s] = i; + }i = tt[o](i); + }ct[s] = i; }return i; }Object.defineProperty(e, "__esModule", { value: !0 });var b = { sourceType: "script", sourceFilename: void 0, startLine: 1, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowSuperOutsideMethod: !1, plugins: [], strictMode: null, ranges: !1 }, g = function g(t, e) { @@ -117,7 +117,7 @@ var babylon = function () { return g(this, e), P(this, t.call(this, s, { beforeExpr: A, binop: i })); }return w(e, t), e; }(k), - C = { num: new k("num", { startsExpr: !0 }), regexp: new k("regexp", { startsExpr: !0 }), string: new k("string", { startsExpr: !0 }), name: new k("name", { startsExpr: !0 }), eof: new k("eof"), bracketL: new k("[", { beforeExpr: A, startsExpr: !0 }), bracketR: new k("]"), braceL: new k("{", { beforeExpr: A, startsExpr: !0 }), braceBarL: new k("{|", { beforeExpr: A, startsExpr: !0 }), braceR: new k("}"), braceBarR: new k("|}"), parenL: new k("(", { beforeExpr: A, startsExpr: !0 }), parenR: new k(")"), comma: new k(",", { beforeExpr: A }), semi: new k(";", { beforeExpr: A }), colon: new k(":", { beforeExpr: A }), doubleColon: new k("::", { beforeExpr: A }), dot: new k("."), question: new k("?", { beforeExpr: A }), arrow: new k("=>", { beforeExpr: A }), template: new k("template"), ellipsis: new k("...", { beforeExpr: A }), backQuote: new k("`", { startsExpr: !0 }), dollarBraceL: new k("${", { beforeExpr: A, startsExpr: !0 }), at: new k("@"), hash: new k("#"), eq: new k("=", { beforeExpr: A, isAssign: !0 }), assign: new k("_=", { beforeExpr: A, isAssign: !0 }), incDec: new k("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new k("prefix", { beforeExpr: A, prefix: !0, startsExpr: !0 }), logicalOR: new T("||", 1), logicalAND: new T("&&", 2), bitwiseOR: new T("|", 3), bitwiseXOR: new T("^", 4), bitwiseAND: new T("&", 5), equality: new T("==/!=", 6), relational: new T("", 7), bitShift: new T("<>", 8), plusMin: new k("+/-", { beforeExpr: A, binop: 9, prefix: !0, startsExpr: !0 }), modulo: new T("%", 10), star: new T("*", 10), slash: new T("/", 10), exponent: new k("**", { beforeExpr: A, binop: 11, rightAssociative: !0 }) }, + C = { num: new k("num", { startsExpr: !0 }), regexp: new k("regexp", { startsExpr: !0 }), string: new k("string", { startsExpr: !0 }), name: new k("name", { startsExpr: !0 }), eof: new k("eof"), bracketL: new k("[", { beforeExpr: A, startsExpr: !0 }), bracketR: new k("]"), braceL: new k("{", { beforeExpr: A, startsExpr: !0 }), braceBarL: new k("{|", { beforeExpr: A, startsExpr: !0 }), braceR: new k("}"), braceBarR: new k("|}"), parenL: new k("(", { beforeExpr: A, startsExpr: !0 }), parenR: new k(")"), comma: new k(",", { beforeExpr: A }), semi: new k(";", { beforeExpr: A }), colon: new k(":", { beforeExpr: A }), doubleColon: new k("::", { beforeExpr: A }), dot: new k("."), question: new k("?", { beforeExpr: A }), questionDot: new k("?."), arrow: new k("=>", { beforeExpr: A }), template: new k("template"), ellipsis: new k("...", { beforeExpr: A }), backQuote: new k("`", { startsExpr: !0 }), dollarBraceL: new k("${", { beforeExpr: A, startsExpr: !0 }), at: new k("@"), hash: new k("#"), eq: new k("=", { beforeExpr: A, isAssign: !0 }), assign: new k("_=", { beforeExpr: A, isAssign: !0 }), incDec: new k("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new k("prefix", { beforeExpr: A, prefix: !0, startsExpr: !0 }), logicalOR: new T("||", 1), logicalAND: new T("&&", 2), bitwiseOR: new T("|", 3), bitwiseXOR: new T("^", 4), bitwiseAND: new T("&", 5), equality: new T("==/!=", 6), relational: new T("", 7), bitShift: new T("<>", 8), plusMin: new k("+/-", { beforeExpr: A, binop: 9, prefix: !0, startsExpr: !0 }), modulo: new T("%", 10), star: new T("*", 10), slash: new T("/", 10), exponent: new k("**", { beforeExpr: A, binop: 11, rightAssociative: !0 }) }, N = { break: new E("break"), case: new E("case", { beforeExpr: A }), catch: new E("catch"), continue: new E("continue"), debugger: new E("debugger"), default: new E("default", { beforeExpr: A }), do: new E("do", { isLoop: !0, beforeExpr: A }), else: new E("else", { beforeExpr: A }), finally: new E("finally"), for: new E("for", { isLoop: !0 }), function: new E("function", { startsExpr: !0 }), if: new E("if"), return: new E("return", { beforeExpr: A }), switch: new E("switch"), throw: new E("throw", { beforeExpr: A }), try: new E("try"), var: new E("var"), let: new E("let"), const: new E("const"), while: new E("while", { isLoop: !0 }), with: new E("with"), new: new E("new", { beforeExpr: A, startsExpr: !0 }), this: new E("this", { startsExpr: !0 }), super: new E("super", { startsExpr: !0 }), class: new E("class"), extends: new E("extends", { beforeExpr: A }), export: new E("export"), import: new E("import", { startsExpr: !0 }), yield: new E("yield", { beforeExpr: A, startsExpr: !0 }), null: new E("null", { startsExpr: !0 }), true: new E("true", { startsExpr: !0 }), false: new E("false", { startsExpr: !0 }), in: new E("in", { beforeExpr: A, binop: 7 }), instanceof: new E("instanceof", { beforeExpr: A, binop: 7 }), typeof: new E("typeof", { beforeExpr: A, prefix: !0, startsExpr: !0 }), void: new E("void", { beforeExpr: A, prefix: !0, startsExpr: !0 }), delete: new E("delete", { beforeExpr: A, prefix: !0, startsExpr: !0 }) };Object.keys(N).forEach(function (t) { C["_" + t] = N[t]; });var S = { 6: i("enum await"), strict: i("implements interface let package private protected public static yield"), strictBind: i("eval arguments") }, @@ -179,10 +179,16 @@ var babylon = function () { var o = p(e);e.length > 0 && o.trailingComments && o.trailingComments[0].start >= t.end && (r = o.trailingComments, o.trailingComments = null); }for (e.length > 0 && p(e).start >= t.start && (s = e.pop()); e.length > 0 && p(e).start >= t.start;) { i = e.pop(); - }if (!i && s && (i = s), s && ("ObjectProperty" === s.type || "CallExpression" === t.type) && this.state.leadingComments.length > 0 && p(this.state.leadingComments).start >= t.start && this.state.commentPreviousNode) { - for (n = 0; n < this.state.leadingComments.length; n++) { - this.state.leadingComments[n].end < this.state.commentPreviousNode.end && (this.state.leadingComments.splice(n, 1), n--); - }this.state.leadingComments.length > 0 && (s.trailingComments = this.state.leadingComments, this.state.leadingComments = []); + }if (!i && s && (i = s), s && this.state.leadingComments.length > 0) { + var h = p(this.state.leadingComments);if ("ObjectProperty" === s.type) { + if (h.start >= t.start && this.state.commentPreviousNode) { + for (n = 0; n < this.state.leadingComments.length; n++) { + this.state.leadingComments[n].end < this.state.commentPreviousNode.end && (this.state.leadingComments.splice(n, 1), n--); + }this.state.leadingComments.length > 0 && (s.trailingComments = this.state.leadingComments, this.state.leadingComments = []); + } + } else if ("CallExpression" === t.type && t.arguments && t.arguments.length) { + var c = p(t.arguments);c && h.start >= c.start && h.end <= t.end && this.state.commentPreviousNode && this.state.leadingComments.length > 0 && (c.trailingComments = this.state.leadingComments, this.state.leadingComments = []); + } }if (i) { if (i.leadingComments) if (i !== t && p(i.leadingComments).end <= t.start) t.leadingComments = i.leadingComments, i.leadingComments = null;else for (a = i.leadingComments.length - 2; a >= 0; --a) { if (i.leadingComments[a].end <= t.start) { @@ -194,7 +200,7 @@ var babylon = function () { this.state.leadingComments[n].end < this.state.commentPreviousNode.end && (this.state.leadingComments.splice(n, 1), n--); }this.state.leadingComments.length > 0 && (t.leadingComments = this.state.leadingComments, this.state.leadingComments = []); } else { - for (a = 0; a < this.state.leadingComments.length && !(this.state.leadingComments[a].end > t.start); a++) {}var h = this.state.leadingComments.slice(0, a);t.leadingComments = 0 === h.length ? null : h, 0 === (r = this.state.leadingComments.slice(a)).length && (r = null); + for (a = 0; a < this.state.leadingComments.length && !(this.state.leadingComments[a].end > t.start); a++) {}var l = this.state.leadingComments.slice(0, a);t.leadingComments = 0 === l.length ? null : l, 0 === (r = this.state.leadingComments.slice(a)).length && (r = null); }this.state.commentPreviousNode = t, r && (r.length && r[0].start >= t.start && p(r).end <= t.end ? t.innerComments = r : t.trailingComments = r), e.push(t); } }, e; @@ -211,7 +217,7 @@ var babylon = function () { function t() { g(this, t); }return t.prototype.init = function (t, e) { - this.strict = !1 !== t.strictMode && "module" === t.sourceType, this.input = e, this.potentialArrowAt = -1, this.inMethod = this.inFunction = this.inGenerator = this.inAsync = this.inPropertyName = this.inType = this.inClass = this.inClassProperty = this.noAnonFunctionType = !1, this.labels = [], this.decorators = [], this.tokens = [], this.comments = [], this.trailingComments = [], this.leadingComments = [], this.commentStack = [], this.pos = this.lineStart = 0, this.curLine = t.startLine, this.type = C.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = [V.braceStatement], this.exprAllowed = !0, this.containsEsc = this.containsOctal = !1, this.octalPosition = null, this.invalidTemplateEscapePosition = null, this.exportedIdentifiers = []; + this.strict = !1 !== t.strictMode && "module" === t.sourceType, this.input = e, this.potentialArrowAt = -1, this.inMethod = this.inFunction = this.inGenerator = this.inAsync = this.inPropertyName = this.inType = this.inClass = this.inClassProperty = this.noAnonFunctionType = !1, this.labels = [], this.decorators = [], this.tokens = [], this.comments = [], this.trailingComments = [], this.leadingComments = [], this.commentStack = [], this.commentPreviousNode = null, this.pos = this.lineStart = 0, this.curLine = t.startLine, this.type = C.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = [V.braceStatement], this.exprAllowed = !0, this.containsEsc = this.containsOctal = !1, this.octalPosition = null, this.invalidTemplateEscapePosition = null, this.exportedIdentifiers = []; }, t.prototype.curPosition = function () { return new U(this.curLine, this.pos - this.lineStart); }, t.prototype.clone = function (e) { @@ -220,10 +226,11 @@ var babylon = function () { }return s; }, t; }(), - G = function t(e) { + G = { decBinOct: [46, 66, 69, 79, 95, 98, 101, 111], hex: [46, 88, 95, 120] }, + K = function t(e) { g(this, t), this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, this.loc = new X(e.startLoc, e.endLoc); }, - K = function (t) { + z = function (t) { function e() { return g(this, e), P(this, t.apply(this, arguments)); }return w(e, t), e.prototype.addExtra = function (t, e, s) { @@ -251,9 +258,9 @@ var babylon = function () { }, e; }(function (t) { function e(s, i) { - g(this, e);var r = P(this, t.call(this));return r.state = new W(), r.state.init(s, i), r; + g(this, e);var r = P(this, t.call(this));return r.state = new W(), r.state.init(s, i), r.isLookahead = !1, r; }return w(e, t), e.prototype.next = function () { - this.isLookahead || this.state.tokens.push(new G(this.state)), this.state.lastTokEnd = this.state.end, this.state.lastTokStart = this.state.start, this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken(); + this.isLookahead || this.state.tokens.push(new K(this.state)), this.state.lastTokEnd = this.state.end, this.state.lastTokStart = this.state.start, this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken(); }, e.prototype.eat = function (t) { return !!this.match(t) && (this.next(), !0); }, e.prototype.match = function (t) { @@ -261,7 +268,7 @@ var babylon = function () { }, e.prototype.isKeyword = function (t) { return L(t); }, e.prototype.lookahead = function () { - var t = this.state;this.state = t.clone(!0), this.isLookahead = !0, this.next(), this.isLookahead = !1;var e = this.state.clone(!0);return this.state = t, e; + var t = this.state;this.state = t.clone(!0), this.isLookahead = !0, this.next(), this.isLookahead = !1;var e = this.state;return this.state = t, e; }, e.prototype.setStrict = function (t) { if (this.state.strict = t, this.match(C.num) || this.match(C.string)) { for (this.state.pos = this.state.start; this.state.pos < this.state.lineStart;) { @@ -285,8 +292,10 @@ var babylon = function () { ++this.state.curLine, this.state.lineStart = i.index + i[0].length; }this.pushComment(!0, this.input.slice(e + 2, s), e, this.state.pos, t, this.state.curPosition()); }, e.prototype.skipLineComment = function (t) { - for (var e = this.state.pos, s = this.state.curPosition(), i = this.input.charCodeAt(this.state.pos += t); this.state.pos < this.input.length && 10 !== i && 13 !== i && 8232 !== i && 8233 !== i;) { - ++this.state.pos, i = this.input.charCodeAt(this.state.pos); + var e = this.state.pos, + s = this.state.curPosition(), + i = this.input.charCodeAt(this.state.pos += t);if (this.state.pos < this.input.length) for (; 10 !== i && 13 !== i && 8232 !== i && 8233 !== i && ++this.state.pos < this.input.length;) { + i = this.input.charCodeAt(this.state.pos); }this.pushComment(!1, this.input.slice(e + t, this.state.pos), e, this.state.pos, s, this.state.curPosition()); }, e.prototype.skipSpace = function () { t: for (; this.state.pos < this.input.length;) { @@ -321,6 +330,9 @@ var babylon = function () { s = 1;return e === t ? (s = 62 === t && 62 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2, 61 === this.input.charCodeAt(this.state.pos + s) ? this.finishOp(C.assign, s + 1) : this.finishOp(C.bitShift, s)) : 33 === e && 60 === t && 45 === this.input.charCodeAt(this.state.pos + 2) && 45 === this.input.charCodeAt(this.state.pos + 3) ? (this.inModule && this.unexpected(), this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (61 === e && (s = 2), this.finishOp(C.relational, s)); }, e.prototype.readToken_eq_excl = function (t) { var e = this.input.charCodeAt(this.state.pos + 1);return 61 === e ? this.finishOp(C.equality, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2) : 61 === t && 62 === e ? (this.state.pos += 2, this.finishToken(C.arrow)) : this.finishOp(61 === t ? C.eq : C.prefix, 1); + }, e.prototype.readToken_question = function () { + var t = this.input.charCodeAt(this.state.pos + 1), + e = this.input.charCodeAt(this.state.pos + 2);return 46 !== t || e >= 48 && e <= 57 ? (++this.state.pos, this.finishToken(C.question)) : (this.state.pos += 2, this.finishToken(C.questionDot)); }, e.prototype.getTokenFromCode = function (t) { switch (t) {case 35: if (this.hasPlugin("classPrivateProperties") && this.state.inClass) return ++this.state.pos, this.finishToken(C.hash);this.raise(this.state.pos, "Unexpected character '" + c(t) + "'");case 46: @@ -334,7 +346,7 @@ var babylon = function () { return this.hasPlugin("flow") && 124 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(C.braceBarL, 2) : (++this.state.pos, this.finishToken(C.braceL));case 125: return ++this.state.pos, this.finishToken(C.braceR);case 58: return this.hasPlugin("functionBind") && 58 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(C.doubleColon, 2) : (++this.state.pos, this.finishToken(C.colon));case 63: - return ++this.state.pos, this.finishToken(C.question);case 64: + return this.readToken_question();case 64: return ++this.state.pos, this.finishToken(C.at);case 96: return ++this.state.pos, this.finishToken(C.backQuote);case 48: var e = this.input.charCodeAt(this.state.pos + 1);if (120 === e || 88 === e) return this.readRadixNumber(16);if (111 === e || 79 === e) return this.readRadixNumber(8);if (98 === e || 66 === e) return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57: @@ -357,16 +369,21 @@ var babylon = function () { }++this.state.pos; }var r = this.input.slice(t, this.state.pos);++this.state.pos;var a = this.readWord1();return a && (/^[gmsiyu]*$/.test(a) || this.raise(t, "Invalid regular expression flag")), this.finishToken(C.regexp, { pattern: r, flags: a }); }, e.prototype.readInt = function (t, e) { - for (var s = this.state.pos, i = 0, r = 0, a = null == e ? 1 / 0 : e; r < a; ++r) { - var n = this.input.charCodeAt(this.state.pos), - o = void 0;if ((o = n >= 97 ? n - 97 + 10 : n >= 65 ? n - 65 + 10 : n >= 48 && n <= 57 ? n - 48 : 1 / 0) >= t) break;++this.state.pos, i = i * t + o; - }return this.state.pos === s || null != e && this.state.pos - s !== e ? null : i; + for (var s = this.state.pos, i = 16 === t ? G.hex : G.decBinOct, r = 0, a = 0, n = null == e ? 1 / 0 : e; a < n; ++a) { + var o = this.input.charCodeAt(this.state.pos), + h = void 0;if (this.hasPlugin("numericSeparator")) { + var p = this.input.charCodeAt(this.state.pos - 1), + c = this.input.charCodeAt(this.state.pos + 1);if (95 === o) { + (i.indexOf(p) > -1 || i.indexOf(c) > -1 || Number.isNaN(c)) && this.raise(this.state.pos, "Invalid NumericLiteralSeparator"), ++this.state.pos;continue; + } + }if ((h = o >= 97 ? o - 97 + 10 : o >= 65 ? o - 65 + 10 : o >= 48 && o <= 57 ? o - 48 : 1 / 0) >= t) break;++this.state.pos, r = r * t + h; + }return this.state.pos === s || null != e && this.state.pos - s !== e ? null : r; }, e.prototype.readRadixNumber = function (t) { this.state.pos += 2;var e = this.readInt(t);return null == e && this.raise(this.state.start + 2, "Expected number in radix " + t), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number"), this.finishToken(C.num, e); }, e.prototype.readNumber = function (t) { var e = this.state.pos, s = 48 === this.input.charCodeAt(e), - i = !1;t || null !== this.readInt(10) || this.raise(e, "Invalid number"), s && this.state.pos == e + 1 && (s = !1);var r = this.input.charCodeAt(this.state.pos);46 !== r || s || (++this.state.pos, this.readInt(10), i = !0, r = this.input.charCodeAt(this.state.pos)), 69 !== r && 101 !== r || s || (43 !== (r = this.input.charCodeAt(++this.state.pos)) && 45 !== r || ++this.state.pos, null === this.readInt(10) && this.raise(e, "Invalid number"), i = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number");var n = this.input.slice(e, this.state.pos), + i = !1;t || null !== this.readInt(10) || this.raise(e, "Invalid number"), s && this.state.pos == e + 1 && (s = !1);var r = this.input.charCodeAt(this.state.pos);46 !== r || s || (++this.state.pos, this.readInt(10), i = !0, r = this.input.charCodeAt(this.state.pos)), 69 !== r && 101 !== r || s || (43 !== (r = this.input.charCodeAt(++this.state.pos)) && 45 !== r || ++this.state.pos, null === this.readInt(10) && this.raise(e, "Invalid number"), i = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number");var n = this.input.slice(e, this.state.pos).replace(/_/g, ""), o = void 0;return i ? o = parseFloat(n) : s && 1 !== n.length ? this.state.strict ? this.raise(e, "Invalid number") : o = /[89]/.test(n) ? parseInt(n, 10) : parseInt(n, 8) : o = parseInt(n, 10), this.finishToken(C.num, o); }, e.prototype.readCodePoint = function (t) { var e = void 0;if (123 === this.input.charCodeAt(this.state.pos)) { @@ -427,24 +444,24 @@ var babylon = function () { }return t === C._return ? M.test(this.input.slice(this.state.lastTokEnd, this.state.start)) : t === C._else || t === C.semi || t === C.eof || t === C.parenR || (t === C.braceL ? this.curContext() === V.braceStatement : !this.state.exprAllowed); }, e.prototype.updateContext = function (t) { var e = this.state.type, - s = void 0;e.keyword && t === C.dot ? this.state.exprAllowed = !1 : (s = e.updateContext) ? s.call(this, t) : this.state.exprAllowed = e.beforeExpr; + s = void 0;!e.keyword || t !== C.dot && t !== C.questionDot ? (s = e.updateContext) ? s.call(this, t) : this.state.exprAllowed = e.beforeExpr : this.state.exprAllowed = !1; }, e; }(J)), - z = ["leadingComments", "trailingComments", "innerComments"], - Q = function () { + Q = ["leadingComments", "trailingComments", "innerComments"], + Y = function () { function t(e, s, i) { g(this, t), this.type = "", this.start = s, this.end = 0, this.loc = new X(i), e && e.options.ranges && (this.range = [s, 0]), e && e.filename && (this.loc.filename = e.filename); }return t.prototype.__clone = function () { var e = new t();for (var s in this) { - z.indexOf(s) < 0 && (e[s] = this[s]); + Q.indexOf(s) < 0 && (e[s] = this[s]); }return e; }, t; }(), - Y = [], - H = { kind: "loop" }, - $ = { kind: "switch" }, - Z = {}, - tt = function (t) { + H = [], + $ = { kind: "loop" }, + Z = { kind: "switch" }, + tt = {}, + et = function (t) { function e(i, r) { g(this, e), i = s(i);var a = P(this, t.call(this, i, r));return a.options = i, a.inModule = "module" === a.options.sourceType, a.input = r, a.plugins = l(a.options.plugins), a.filename = i.sourceFilename, 0 === a.state.pos && "#" === a.input[0] && "!" === a.input[1] && a.skipLineComment(2), a; }return w(e, t), e.prototype.parse = function () { @@ -482,7 +499,7 @@ var babylon = function () { return this.parseWithStatement(i);case C.braceL: return this.parseBlock();case C.semi: return this.parseEmptyStatement(i);case C._export:case C._import: - if (this.hasPlugin("dynamicImport") && this.lookahead().type === C.parenL) break;return this.options.allowImportExportEverywhere || (e || this.raise(this.state.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.state.start, "'import' and 'export' may appear only with 'sourceType: module'")), s === C._import ? this.parseImport(i) : this.parseExport(i);case C.name: + if (this.hasPlugin("dynamicImport") && this.lookahead().type === C.parenL || this.hasPlugin("importMeta") && this.lookahead().type === C.dot) break;return this.options.allowImportExportEverywhere || (e || this.raise(this.state.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.state.start, "'import' and 'export' may appear only with 'sourceType: module'")), s === C._import ? this.parseImport(i) : this.parseExport(i);case C.name: if ("async" === this.state.value) { var r = this.state.clone();if (this.next(), this.match(C._function) && !this.canInsertSemicolon()) return this.expect(C._function), this.parseFunction(i, !0, !1, !0);this.state = r; }}var a = this.state.value, @@ -504,9 +521,9 @@ var babylon = function () { }, e.prototype.parseDebuggerStatement = function (t) { return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement"); }, e.prototype.parseDoStatement = function (t) { - return this.next(), this.state.labels.push(H), t.body = this.parseStatement(!1), this.state.labels.pop(), this.expect(C._while), t.test = this.parseParenExpression(), this.eat(C.semi), this.finishNode(t, "DoWhileStatement"); + return this.next(), this.state.labels.push($), t.body = this.parseStatement(!1), this.state.labels.pop(), this.expect(C._while), t.test = this.parseParenExpression(), this.eat(C.semi), this.finishNode(t, "DoWhileStatement"); }, e.prototype.parseForStatement = function (t) { - this.next(), this.state.labels.push(H);var e = !1;if (this.hasPlugin("asyncGenerators") && this.state.inAsync && this.isContextual("await") && (e = !0, this.next()), this.expect(C.parenL), this.match(C.semi)) return e && this.unexpected(), this.parseFor(t, null);if (this.match(C._var) || this.match(C._let) || this.match(C._const)) { + this.next(), this.state.labels.push($);var e = !1;if (this.hasPlugin("asyncGenerators") && this.state.inAsync && this.isContextual("await") && (e = !0, this.next()), this.expect(C.parenL), this.match(C.semi)) return e && this.unexpected(), this.parseFor(t, null);if (this.match(C._var) || this.match(C._let) || this.match(C._const)) { var s = this.startNode(), i = this.state.type;return this.next(), this.parseVar(s, !0, i), this.finishNode(s, "VariableDeclaration"), !this.match(C._in) && !this.isContextual("of") || 1 !== s.declarations.length || s.declarations[0].init ? (e && this.unexpected(), this.parseFor(t, s)) : this.parseForIn(t, s, e); }var r = { start: 0 }, @@ -520,7 +537,7 @@ var babylon = function () { }, e.prototype.parseReturnStatement = function (t) { return this.state.inFunction || this.options.allowReturnOutsideFunction || this.raise(this.state.start, "'return' outside of function"), this.next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement"); }, e.prototype.parseSwitchStatement = function (t) { - this.next(), t.discriminant = this.parseParenExpression();var e = t.cases = [];this.expect(C.braceL), this.state.labels.push($);for (var s, i = void 0; !this.match(C.braceR);) { + this.next(), t.discriminant = this.parseParenExpression();var e = t.cases = [];this.expect(C.braceL), this.state.labels.push(Z);for (var s, i = void 0; !this.match(C.braceR);) { if (this.match(C._case) || this.match(C._default)) { var r = this.match(C._case);i && this.finishNode(i, "SwitchCase"), e.push(i = this.startNode()), i.consequent = [], this.next(), r ? i.test = this.parseExpression() : (s && this.raise(this.state.lastTokStart, "Multiple default clauses"), s = !0, i.test = null), this.expect(C.colon); } else i ? i.consequent.push(this.parseStatement(!0)) : this.unexpected(); @@ -530,11 +547,11 @@ var babylon = function () { }, e.prototype.parseTryStatement = function (t) { if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(C._catch)) { var e = this.startNode();this.next(), this.expect(C.parenL), e.param = this.parseBindingAtom(), this.checkLVal(e.param, !0, Object.create(null), "catch clause"), this.expect(C.parenR), e.body = this.parseBlock(), t.handler = this.finishNode(e, "CatchClause"); - }return t.guardedHandlers = Y, t.finalizer = this.eat(C._finally) ? this.parseBlock() : null, t.handler || t.finalizer || this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement"); + }return t.guardedHandlers = H, t.finalizer = this.eat(C._finally) ? this.parseBlock() : null, t.handler || t.finalizer || this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement"); }, e.prototype.parseVarStatement = function (t, e) { return this.next(), this.parseVar(t, !1, e), this.semicolon(), this.finishNode(t, "VariableDeclaration"); }, e.prototype.parseWhileStatement = function (t) { - return this.next(), t.test = this.parseParenExpression(), this.state.labels.push(H), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); + return this.next(), t.test = this.parseParenExpression(), this.state.labels.push($), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); }, e.prototype.parseWithStatement = function (t) { return this.state.strict && this.raise(this.state.start, "'with' in strict mode"), this.next(), t.object = this.parseParenExpression(), t.body = this.parseStatement(!1), this.finishNode(t, "WithStatement"); }, e.prototype.parseEmptyStatement = function (t) { @@ -584,26 +601,25 @@ var babylon = function () { }, e.prototype.isNonstaticConstructor = function (t) { return !(t.computed || t.static || "constructor" !== t.key.name && "constructor" !== t.key.value); }, e.prototype.parseClassBody = function (t) { - var e = this.state.strict;this.state.strict = !0, this.state.inClass = !0;var s = !1, + var e = this.state.strict;this.state.strict = !0, this.state.inClass = !0;var s = { hadConstructor: !1 }, i = [], r = this.startNode();for (r.body = [], this.expect(C.braceL); !this.eat(C.braceR);) { if (this.eat(C.semi)) i.length > 0 && this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");else if (this.match(C.at)) i.push(this.parseDecorator());else { - var a = this.startNode();if (i.length && (a.decorators = i, i = []), this.hasPlugin("classPrivateProperties") && this.match(C.hash)) this.next(), this.parsePropertyName(a), r.body.push(this.parsePrivateClassProperty(a));else { - if (a.static = !1, this.match(C.name) && "static" === this.state.value) { - var n = this.parseIdentifier(!0);if (this.isClassMethod()) { - a.kind = "method", a.computed = !1, a.key = n, this.parseClassMethod(r, a, !1, !1);continue; - }if (this.isClassProperty()) { - a.computed = !1, a.key = n, r.body.push(this.parseClassProperty(a));continue; - }a.static = !0; - }if (this.eat(C.star)) a.kind = "method", this.parsePropertyName(a), this.isNonstaticConstructor(a) && this.raise(a.key.start, "Constructor can't be a generator"), a.computed || !a.static || "prototype" !== a.key.name && "prototype" !== a.key.value || this.raise(a.key.start, "Classes may not have static property named prototype"), this.parseClassMethod(r, a, !0, !1);else { - var o = this.match(C.name), - h = this.parsePropertyName(a);if (a.computed || !a.static || "prototype" !== a.key.name && "prototype" !== a.key.value || this.raise(a.key.start, "Classes may not have static property named prototype"), this.isClassMethod()) this.isNonstaticConstructor(a) ? (s ? this.raise(h.start, "Duplicate constructor in the same class") : a.decorators && this.raise(a.start, "You can't attach decorators to a class constructor"), s = !0, a.kind = "constructor") : a.kind = "method", this.parseClassMethod(r, a, !1, !1);else if (this.isClassProperty()) this.isNonstaticConstructor(a) && this.raise(a.key.start, "Classes may not have a non-static field named 'constructor'"), r.body.push(this.parseClassProperty(a));else if (o && "async" === h.name && !this.isLineTerminator()) { - var p = this.hasPlugin("asyncGenerators") && this.eat(C.star);a.kind = "method", this.parsePropertyName(a), this.isNonstaticConstructor(a) && this.raise(a.key.start, "Constructor can't be an async function"), this.parseClassMethod(r, a, p, !0); - } else !o || "get" !== h.name && "set" !== h.name || this.isLineTerminator() && this.match(C.star) ? this.isLineTerminator() ? (this.isNonstaticConstructor(a) && this.raise(a.key.start, "Classes may not have a non-static field named 'constructor'"), r.body.push(this.parseClassProperty(a))) : this.unexpected() : (a.kind = h.name, this.parsePropertyName(a), this.isNonstaticConstructor(a) && this.raise(a.key.start, "Constructor can't have get/set modifier"), this.parseClassMethod(r, a, !1, !1), this.checkGetterSetterParamCount(a)); - } - } + var a = this.startNode();i.length && (a.decorators = i, i = []), this.parseClassMember(r, a, s); } }i.length && this.raise(this.state.start, "You have trailing decorators with no method"), t.body = this.finishNode(r, "ClassBody"), this.state.inClass = !1, this.state.strict = e; + }, e.prototype.parseClassMember = function (t, e, s) { + var i = e, + r = i, + a = i, + n = i;if (this.hasPlugin("classPrivateProperties") && this.match(C.hash)) { + this.next();var o = i;return o.key = this.parseIdentifier(!0), void t.body.push(this.parsePrivateClassProperty(o)); + }if (r.static = !1, this.match(C.name) && "static" === this.state.value) { + var h = this.parseIdentifier(!0);if (this.isClassMethod()) return a.kind = "method", a.computed = !1, a.key = h, void this.parseClassMethod(t, a, !1, !1);if (this.isClassProperty()) return n.computed = !1, n.key = h, void t.body.push(this.parseClassProperty(n));r.static = !0; + }if (this.eat(C.star)) return a.kind = "method", this.parsePropertyName(a), this.isNonstaticConstructor(a) && this.raise(a.key.start, "Constructor can't be a generator"), a.computed || !a.static || "prototype" !== a.key.name && "prototype" !== a.key.value || this.raise(a.key.start, "Classes may not have static property named prototype"), void this.parseClassMethod(t, a, !0, !1);var p = this.match(C.name), + c = this.parsePropertyName(r);if (r.computed || !r.static || "prototype" !== r.key.name && "prototype" !== r.key.value || this.raise(r.key.start, "Classes may not have static property named prototype"), this.isClassMethod()) this.isNonstaticConstructor(a) ? (s.hadConstructor ? this.raise(c.start, "Duplicate constructor in the same class") : a.decorators && this.raise(a.start, "You can't attach decorators to a class constructor"), s.hadConstructor = !0, a.kind = "constructor") : a.kind = "method", this.parseClassMethod(t, a, !1, !1);else if (this.isClassProperty()) this.isNonstaticConstructor(n) && this.raise(n.key.start, "Classes may not have a non-static field named 'constructor'"), t.body.push(this.parseClassProperty(n));else if (p && "async" === c.name && !this.isLineTerminator()) { + var l = this.hasPlugin("asyncGenerators") && this.eat(C.star);a.kind = "method", this.parsePropertyName(a), this.isNonstaticConstructor(a) && this.raise(a.key.start, "Constructor can't be an async function"), this.parseClassMethod(t, a, l, !0); + } else !p || "get" !== c.name && "set" !== c.name || this.isLineTerminator() && this.match(C.star) ? this.isLineTerminator() ? (this.isNonstaticConstructor(n) && this.raise(n.key.start, "Classes may not have a non-static field named 'constructor'"), t.body.push(this.parseClassProperty(n))) : this.unexpected() : (a.kind = c.name, this.parsePropertyName(a), this.isNonstaticConstructor(a) && this.raise(a.key.start, "Constructor can't have get/set modifier"), this.parseClassMethod(t, a, !1, !1), this.checkGetterSetterParamCount(a)); }, e.prototype.parsePrivateClassProperty = function (t) { return this.state.inClassProperty = !0, this.match(C.eq) ? (this.next(), t.value = this.parseMaybeAssign()) : t.value = null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassPrivateProperty"); }, e.prototype.parseClassProperty = function (t) { @@ -724,9 +740,9 @@ var babylon = function () { var i = this.state.start, r = this.state.startLoc, a = this.parseExprOps(t, e);return e && e.start ? a : this.parseConditional(a, t, i, r, s); - }, e.prototype.parseConditional = function (t, e, s, i) { + }, e.prototype.parseConditional = function (t, e, s, i, r) { if (this.eat(C.question)) { - var r = this.startNodeAt(s, i);return r.test = t, r.consequent = this.parseMaybeAssign(), this.expect(C.colon), r.alternate = this.parseMaybeAssign(e), this.finishNode(r, "ConditionalExpression"); + var a = this.startNodeAt(s, i);return a.test = t, a.consequent = this.parseMaybeAssign(), this.expect(C.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression"); }return t; }, e.prototype.parseExprOps = function (t, e) { var s = this.state.start, @@ -752,21 +768,27 @@ var babylon = function () { i = this.state.potentialArrowAt, r = this.parseExprAtom(t);return "ArrowFunctionExpression" === r.type && r.start === i ? r : t && t.start ? r : this.parseSubscripts(r, e, s); }, e.prototype.parseSubscripts = function (t, e, s, i) { - for (;;) { - if (!i && this.eat(C.doubleColon)) { - var r = this.startNodeAt(e, s);return r.object = t, r.callee = this.parseNoCallExpr(), this.parseSubscripts(this.finishNode(r, "BindExpression"), e, s, i); - }if (this.eat(C.dot)) { - var a = this.startNodeAt(e, s);a.object = t, a.property = this.hasPlugin("classPrivateProperties") ? this.parseMaybePrivateName() : this.parseIdentifier(!0), a.computed = !1, t = this.finishNode(a, "MemberExpression"); - } else if (this.eat(C.bracketL)) { - var n = this.startNodeAt(e, s);n.object = t, n.property = this.parseExpression(), n.computed = !0, this.expect(C.bracketR), t = this.finishNode(n, "MemberExpression"); - } else if (!i && this.match(C.parenL)) { - var o = this.state.potentialArrowAt === t.start && "Identifier" === t.type && "async" === t.name && !this.canInsertSemicolon();this.next();var h = this.startNodeAt(e, s);if (h.callee = t, h.arguments = this.parseCallExpressionArguments(C.parenR, o), "Import" === h.callee.type) { - 1 !== h.arguments.length && this.raise(h.start, "import() requires exactly one argument");var p = h.arguments[0];p && "SpreadElement" === p.type && this.raise(p.start, "... is not allowed in import()"); - }if (t = this.finishNode(h, "CallExpression"), o && this.shouldParseAsyncArrow()) return this.parseAsyncArrowFromCallExpression(this.startNodeAt(e, s), h);this.toReferencedList(h.arguments); - } else { - if (!this.match(C.backQuote)) return t;var c = this.startNodeAt(e, s);c.tag = t, c.quasi = this.parseTemplate(!0), t = this.finishNode(c, "TaggedTemplateExpression"); - } - }throw new Error("Unreachable"); + var r = { stop: !1 };do { + t = this.parseSubscript(t, e, s, i, r); + } while (!r.stop);return t; + }, e.prototype.parseSubscript = function (t, e, s, i, r) { + if (!i && this.eat(C.doubleColon)) { + var a = this.startNodeAt(e, s);return a.object = t, a.callee = this.parseNoCallExpr(), r.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpression"), e, s, i); + }if (this.match(C.questionDot)) { + if (this.hasPlugin("optionalChaining") || this.raise(e, "You can only use optional-chaining when the 'optionalChaining' plugin is enabled."), i && this.lookahead().type == C.parenL) return r.stop = !0, t;this.next();var n = this.startNodeAt(e, s);if (this.eat(C.bracketL)) return n.object = t, n.property = this.parseExpression(), n.computed = !0, n.optional = !0, this.expect(C.bracketR), this.finishNode(n, "MemberExpression");if (this.eat(C.parenL)) { + var o = this.state.potentialArrowAt === t.start && "Identifier" === t.type && "async" === t.name && !this.canInsertSemicolon();return n.callee = t, n.arguments = this.parseCallExpressionArguments(C.parenR, o), n.optional = !0, this.finishNode(n, "CallExpression"); + }return n.object = t, n.property = this.parseIdentifier(!0), n.computed = !1, n.optional = !0, this.finishNode(n, "MemberExpression"); + }if (this.eat(C.dot)) { + var h = this.startNodeAt(e, s);return h.object = t, h.property = this.hasPlugin("classPrivateProperties") ? this.parseMaybePrivateName() : this.parseIdentifier(!0), h.computed = !1, this.finishNode(h, "MemberExpression"); + }if (this.eat(C.bracketL)) { + var p = this.startNodeAt(e, s);return p.object = t, p.property = this.parseExpression(), p.computed = !0, this.expect(C.bracketR), this.finishNode(p, "MemberExpression"); + }if (!i && this.match(C.parenL)) { + var c = this.state.potentialArrowAt === t.start && "Identifier" === t.type && "async" === t.name && !this.canInsertSemicolon();this.next();var l = this.startNodeAt(e, s);if (l.callee = t, l.arguments = this.parseCallExpressionArguments(C.parenR, c), "Import" === l.callee.type) { + 1 !== l.arguments.length && this.raise(l.start, "import() requires exactly one argument");var u = l.arguments[0];u && "SpreadElement" === u.type && this.raise(u.start, "... is not allowed in import()"); + }return this.finishNode(l, "CallExpression"), c && this.shouldParseAsyncArrow() ? (r.stop = !0, this.parseAsyncArrowFromCallExpression(this.startNodeAt(e, s), l)) : (this.toReferencedList(l.arguments), l); + }if (this.match(C.backQuote)) { + var d = this.startNodeAt(e, s);return d.tag = t, d.quasi = this.parseTemplate(!0), this.finishNode(d, "TaggedTemplateExpression"); + }return r.stop = !0, t; }, e.prototype.parseCallExpressionArguments = function (t, e) { for (var s = [], i = void 0, r = !0; !this.eat(t);) { if (r) r = !1;else if (this.expect(C.comma), this.eat(t)) break;this.match(C.parenL) && !i && (i = this.state.start), s.push(this.parseExprListItem(!1, e ? { start: 0 } : void 0, e ? { start: 0 } : void 0)); @@ -782,7 +804,7 @@ var babylon = function () { var e = this.state.potentialArrowAt === this.state.start, s = void 0;switch (this.state.type) {case C._super: return this.state.inMethod || this.state.inClassProperty || this.options.allowSuperOutsideMethod || this.raise(this.state.start, "'super' outside of function or class"), s = this.startNode(), this.next(), this.match(C.parenL) || this.match(C.bracketL) || this.match(C.dot) || this.unexpected(), this.match(C.parenL) && "constructor" !== this.state.inMethod && !this.options.allowSuperOutsideMethod && this.raise(s.start, "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."), this.finishNode(s, "Super");case C._import: - return this.hasPlugin("dynamicImport") || this.unexpected(), s = this.startNode(), this.next(), this.match(C.parenL) || this.unexpected(null, C.parenL), this.finishNode(s, "Import");case C._this: + return this.hasPlugin("importMeta") && this.lookahead().type === C.dot ? this.parseImportMetaProperty() : (this.hasPlugin("dynamicImport") || this.unexpected(), s = this.startNode(), this.next(), this.match(C.parenL) || this.unexpected(null, C.parenL), this.finishNode(s, "Import"));case C._this: return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");case C._yield: this.state.inGenerator && this.unexpected();case C.name: s = this.startNode();var i = "await" === this.state.value && this.state.inAsync, @@ -796,7 +818,7 @@ var babylon = function () { }return e && !this.canInsertSemicolon() && this.eat(C.arrow) ? this.parseArrowExpression(s, [a]) : a;case C._do: if (this.hasPlugin("doExpressions")) { var o = this.startNode();this.next();var h = this.state.inFunction, - p = this.state.labels;return this.state.labels = [], this.state.inFunction = !1, o.body = this.parseBlock(!1, !0), this.state.inFunction = h, this.state.labels = p, this.finishNode(o, "DoExpression"); + p = this.state.labels;return this.state.labels = [], this.state.inFunction = !1, o.body = this.parseBlock(!1), this.state.inFunction = h, this.state.labels = p, this.finishNode(o, "DoExpression"); }case C.regexp: var c = this.state.value;return s = this.parseLiteral(c.value, "RegExpLiteral"), s.pattern = c.pattern, s.flags = c.flags, s;case C.num: return this.parseLiteral(this.state.value, "NumericLiteral");case C.string: @@ -809,7 +831,7 @@ var babylon = function () { return this.parseFunctionExpression();case C.at: this.parseDecorators();case C._class: return s = this.startNode(), this.takeDecorators(s), this.parseClass(s, !1);case C.hash: - if (this.hasPlugin("classPrivateProperties")) return this.parseMaybePrivateName();this.unexpected();case C._new: + if (this.hasPlugin("classPrivateProperties")) return this.parseMaybePrivateName();throw this.unexpected();case C._new: return this.parseNew();case C.backQuote: return this.parseTemplate(!1);case C.doubleColon: s = this.startNode(), this.next(), s.object = null;var l = s.callee = this.parseNoCallExpr();if ("MemberExpression" === l.type) return this.finishNode(s, "BindExpression");throw this.raise(l.start, "Binding should be performed on object property.");default: @@ -822,7 +844,10 @@ var babylon = function () { var t = this.startNode(), e = this.parseIdentifier(!0);return this.state.inGenerator && this.eat(C.dot) && this.hasPlugin("functionSent") ? this.parseMetaProperty(t, e, "sent") : this.parseFunction(t, !1); }, e.prototype.parseMetaProperty = function (t, e, s) { - return t.meta = e, t.property = this.parseIdentifier(!0), t.property.name !== s && this.raise(t.property.start, "The only valid meta property for new is " + e.name + "." + s), this.finishNode(t, "MetaProperty"); + return t.meta = e, t.property = this.parseIdentifier(!0), t.property.name !== s && this.raise(t.property.start, "The only valid meta property for " + e.name + " is " + e.name + "." + s), this.finishNode(t, "MetaProperty"); + }, e.prototype.parseImportMetaProperty = function () { + var t = this.startNode(), + e = this.parseIdentifier(!0);return this.expect(C.dot), this.inModule || this.raise(e.start, "import.meta may appear only with 'sourceType: module'"), this.parseMetaProperty(t, e, "meta"); }, e.prototype.parseLiteral = function (t, e, s, i) { s = s || this.state.start, i = i || this.state.startLoc;var r = this.startNodeAt(s, i);return this.addExtra(r, "rawValue", t), this.addExtra(r, "raw", this.input.slice(s, this.state.end)), r.value = t, this.next(), this.finishNode(r, e); }, e.prototype.parseParenExpression = function () { @@ -857,9 +882,9 @@ var babylon = function () { var t = this.startNode(), e = this.parseIdentifier(!0);if (this.eat(C.dot)) { var s = this.parseMetaProperty(t, e, "target");return this.state.inFunction || this.raise(s.property.start, "new.target can only be used in functions"), s; - }return t.callee = this.parseNoCallExpr(), this.eat(C.parenL) ? (t.arguments = this.parseExprList(C.parenR), this.toReferencedList(t.arguments)) : t.arguments = [], this.finishNode(t, "NewExpression"); + }t.callee = this.parseNoCallExpr();var i = this.eat(C.questionDot);return this.eat(C.parenL) ? (t.arguments = this.parseExprList(C.parenR), this.toReferencedList(t.arguments)) : t.arguments = [], i && (t.optional = !0), this.finishNode(t, "NewExpression"); }, e.prototype.parseTemplateElement = function (t) { - var e = this.startNode();return null === this.state.value && (t ? this.state.invalidTemplateEscapePosition = null : this.raise(this.state.invalidTemplateEscapePosition, "Invalid escape sequence in template")), e.value = { raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"), cooked: this.state.value }, this.next(), e.tail = this.match(C.backQuote), this.finishNode(e, "TemplateElement"); + var e = this.startNode();return null === this.state.value && (t ? this.state.invalidTemplateEscapePosition = null : this.raise(this.state.invalidTemplateEscapePosition || 0, "Invalid escape sequence in template")), e.value = { raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"), cooked: this.state.value }, this.next(), e.tail = this.match(C.backQuote), this.finishNode(e, "TemplateElement"); }, e.prototype.parseTemplate = function (t) { var e = this.startNode();this.next(), e.expressions = [];var s = this.parseTemplateElement(t);for (e.quasis = [s]; !s.tail;) { this.expect(C.dollarBraceL), e.expressions.push(this.parseExpression()), this.expect(C.braceR), e.quasis.push(s = this.parseTemplateElement(t)); @@ -1032,9 +1057,9 @@ var babylon = function () { function e() { return g(this, e), P(this, t.apply(this, arguments)); }return w(e, t), e.prototype.startNode = function () { - return new Q(this, this.state.start, this.state.startLoc); + return new Y(this, this.state.start, this.state.startLoc); }, e.prototype.startNodeAt = function (t, e) { - return new Q(this, t, e); + return new Y(this, t, e); }, e.prototype.finishNode = function (t, e) { return this.finishNodeAt(t, e, this.state.lastTokEnd, this.state.lastTokEndLoc); }, e.prototype.finishNodeAt = function (t, e, s, i) { @@ -1042,8 +1067,8 @@ var babylon = function () { }, e.prototype.resetStartLocationFromNode = function (t, e) { t.start = e.start, t.loc.start = e.loc.start, this.options.ranges && (t.range[0] = e.range[0]); }, e; - }(K))))), - et = function et(t) { + }(z))))), + st = function st(t) { return function (t) { function e() { return g(this, e), P(this, t.apply(this, arguments)); @@ -1065,15 +1090,12 @@ var babylon = function () { var e = "get" === t.kind ? 0 : 1;if (t.value.params.length !== e) { var s = t.start;"get" === t.kind ? this.raise(s, "getter should have no params") : this.raise(s, "setter should have exactly one param"); } - }, e.prototype.checkLVal = function (e, s, i) { - var r, - a = this;switch (e.type) {case "ObjectPattern": + }, e.prototype.checkLVal = function (e, s, i, r) { + var a = this;switch (e.type) {case "ObjectPattern": e.properties.forEach(function (t) { a.checkLVal("Property" === t.type ? t.value : t, s, i, "object destructuring pattern"); });break;default: - for (var n = arguments.length, o = Array(n > 3 ? n - 3 : 0), h = 3; h < n; h++) { - o[h - 3] = arguments[h]; - }(r = t.prototype.checkLVal).call.apply(r, [this, e, s, i].concat(o));} + t.prototype.checkLVal.call(this, e, s, i, r);} }, e.prototype.checkPropClash = function (t, e) { if (!t.computed && u(t)) { var s = t.key;"__proto__" === ("Identifier" === s.type ? s.name : String(s.value)) && (e.proto && this.raise(s.start, "Redefinition of __proto__ property"), e.proto = !0); @@ -1088,61 +1110,47 @@ var babylon = function () { }return !1; }, e.prototype.isValidDirective = function (t) { return !("ExpressionStatement" !== t.type || "Literal" !== t.expression.type || "string" != typeof t.expression.value || t.expression.extra && t.expression.extra.parenthesized); - }, e.prototype.parseBlockBody = function (e) { - for (var s, i = this, r = arguments.length, a = Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) { - a[n - 1] = arguments[n]; - }(s = t.prototype.parseBlockBody).call.apply(s, [this, e].concat(a));var o = e.directives.map(function (t) { - return i.directiveToStmt(t); - });e.body = o.concat(e.body), delete e.directives; - }, e.prototype.parseClassMethod = function (e) { - for (var s, i = arguments.length, r = Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) { - r[a - 1] = arguments[a]; - }(s = t.prototype.parseClassMethod).call.apply(s, [this, e].concat(r));var n = e.body;n[n.length - 1].type = "MethodDefinition"; - }, e.prototype.parseExprAtom = function () { - var e;switch (this.state.type) {case C.regexp: + }, e.prototype.stmtToDirective = function (e) { + var s = t.prototype.stmtToDirective.call(this, e), + i = e.expression.value;return s.value.value = i, s; + }, e.prototype.parseBlockBody = function (e, s, i, r) { + var a = this;t.prototype.parseBlockBody.call(this, e, s, i, r);var n = e.directives.map(function (t) { + return a.directiveToStmt(t); + });e.body = n.concat(e.body), delete e.directives; + }, e.prototype.parseClassMethod = function (t, e, s, i) { + this.parseMethod(e, s, i), e.typeParameters && (e.value.typeParameters = e.typeParameters, delete e.typeParameters), t.body.push(this.finishNode(e, "MethodDefinition")); + }, e.prototype.parseExprAtom = function (e) { + switch (this.state.type) {case C.regexp: return this.estreeParseRegExpLiteral(this.state.value);case C.num:case C.string: return this.estreeParseLiteral(this.state.value);case C._null: return this.estreeParseLiteral(null);case C._true: return this.estreeParseLiteral(!0);case C._false: return this.estreeParseLiteral(!1);default: - for (var s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }return (e = t.prototype.parseExprAtom).call.apply(e, [this].concat(i));} - }, e.prototype.parseLiteral = function () { - for (var e, s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }var a = (e = t.prototype.parseLiteral).call.apply(e, [this].concat(i));return a.raw = a.extra.raw, delete a.extra, a; - }, e.prototype.parseMethod = function (e) { - var s, - i = this.startNode();i.kind = e.kind;for (var r = arguments.length, a = Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) { - a[n - 1] = arguments[n]; - }return i = (s = t.prototype.parseMethod).call.apply(s, [this, i].concat(a)), delete i.kind, e.value = this.finishNode(i, "FunctionExpression"), e; - }, e.prototype.parseObjectMethod = function () { - for (var e, s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }var a = (e = t.prototype.parseObjectMethod).call.apply(e, [this].concat(i));return a && ("method" === a.kind && (a.kind = "init"), a.type = "Property"), a; - }, e.prototype.parseObjectProperty = function () { - for (var e, s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }var a = (e = t.prototype.parseObjectProperty).call.apply(e, [this].concat(i));return a && (a.kind = "init", a.type = "Property"), a; - }, e.prototype.toAssignable = function (e, s) { - for (var i, r = arguments.length, a = Array(r > 2 ? r - 2 : 0), n = 2; n < r; n++) { - a[n - 2] = arguments[n]; - }if (u(e)) return this.toAssignable.apply(this, [e.value, s].concat(a)), e;if ("ObjectExpression" === e.type) { - e.type = "ObjectPattern";for (var o = e.properties, h = Array.isArray(o), p = 0, o = h ? o : o[Symbol.iterator]();;) { - var c;if (h) { - if (p >= o.length) break;c = o[p++]; + return t.prototype.parseExprAtom.call(this, e);} + }, e.prototype.parseLiteral = function (e, s, i, r) { + var a = t.prototype.parseLiteral.call(this, e, s, i, r);return a.raw = a.extra.raw, delete a.extra, a; + }, e.prototype.parseMethod = function (e, s, i) { + var r = this.startNode();return r.kind = e.kind, r = t.prototype.parseMethod.call(this, r, s, i), delete r.kind, e.value = this.finishNode(r, "FunctionExpression"), e; + }, e.prototype.parseObjectMethod = function (e, s, i, r) { + var a = t.prototype.parseObjectMethod.call(this, e, s, i, r);return a && (a.type = "Property", "method" === a.kind && (a.kind = "init"), a.shorthand = !1), a; + }, e.prototype.parseObjectProperty = function (e, s, i, r, a) { + var n = t.prototype.parseObjectProperty.call(this, e, s, i, r, a);return n && (n.kind = "init", n.type = "Property"), n; + }, e.prototype.toAssignable = function (e, s, i) { + if (u(e)) return this.toAssignable(e.value, s, i), e;if ("ObjectExpression" === e.type) { + e.type = "ObjectPattern";for (var r = e.properties, a = Array.isArray(r), n = 0, r = a ? r : r[Symbol.iterator]();;) { + var o;if (a) { + if (n >= r.length) break;o = r[n++]; } else { - if ((p = o.next()).done) break;c = p.value; - }var l = c;"get" === l.kind || "set" === l.kind ? this.raise(l.key.start, "Object pattern can't contain getter or setter") : l.method ? this.raise(l.key.start, "Object pattern can't contain methods") : this.toAssignable(l, s, "object destructuring pattern"); + if ((n = r.next()).done) break;o = n.value; + }var h = o;"get" === h.kind || "set" === h.kind ? this.raise(h.key.start, "Object pattern can't contain getter or setter") : h.method ? this.raise(h.key.start, "Object pattern can't contain methods") : this.toAssignable(h, s, "object destructuring pattern"); }return e; - }return (i = t.prototype.toAssignable).call.apply(i, [this, e, s].concat(a)); + }return t.prototype.toAssignable.call(this, e, s, i); }, e; }(t); }, - st = ["any", "mixed", "empty", "bool", "boolean", "number", "string", "void", "null"], - it = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }, - rt = function rt(t) { + it = ["any", "mixed", "empty", "bool", "boolean", "number", "string", "void", "null"], + rt = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }, + at = function at(t) { return function (t) { function e() { return g(this, e), P(this, t.apply(this, arguments)); @@ -1179,7 +1187,7 @@ var babylon = function () { }, e.prototype.flowParseDeclareExportDeclaration = function (t, e) { if (this.expect(C._export), this.eat(C._default)) return this.match(C._function) || this.match(C._class) ? t.declaration = this.flowParseDeclare(this.startNode()) : (t.declaration = this.flowParseType(), this.semicolon()), t.default = !0, this.finishNode(t, "DeclareExportDeclaration");if (this.match(C._const) || this.match(C._let) || (this.isContextual("type") || this.isContextual("interface")) && !e) { var s = this.state.value, - i = it[s];this.unexpected(this.state.start, "`declare export " + s + "` is not supported. Use `" + i + "` instead"); + i = rt[s];this.unexpected(this.state.start, "`declare export " + s + "` is not supported. Use `" + i + "` instead"); }if (this.match(C._var) || this.match(C._function) || this.match(C._class)) return t.declaration = this.flowParseDeclare(this.startNode()), t.default = !1, this.finishNode(t, "DeclareExportDeclaration");if (this.match(C.star) || this.match(C.braceL) || this.isContextual("interface") || this.isContextual("type")) return "ExportNamedDeclaration" === (t = this.parseExport(t)).type && (t.type = "ExportDeclaration", t.default = !1, delete t.exportKind), t.type = "Declare" + t.type, t;throw this.unexpected(); }, e.prototype.flowParseDeclareModuleExports = function (t) { return this.expectContextual("module"), this.expect(C.dot), this.expectContextual("exports"), t.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(t, "DeclareModuleExports"); @@ -1200,7 +1208,7 @@ var babylon = function () { }, e.prototype.flowParseInterface = function (t) { return this.flowParseInterfaceish(t), this.finishNode(t, "InterfaceDeclaration"); }, e.prototype.flowParseRestrictedIdentifier = function (t) { - return st.indexOf(this.state.value) > -1 && this.raise(this.state.start, "Cannot overwrite primitive type " + this.state.value), this.parseIdentifier(t); + return it.indexOf(this.state.value) > -1 && this.raise(this.state.start, "Cannot overwrite primitive type " + this.state.value), this.parseIdentifier(t); }, e.prototype.flowParseTypeAlias = function (t) { return t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.right = this.flowParseTypeInitialiser(C.eq), this.semicolon(), this.finishNode(t, "TypeAlias"); }, e.prototype.flowParseTypeParameter = function () { @@ -1264,7 +1272,7 @@ var babylon = function () { i = this.startNode(), r = this.lookahead();return r.type === C.colon || r.type === C.question ? (t = this.parseIdentifier(), this.eat(C.question) && (e = !0), s = this.flowParseTypeInitialiser()) : s = this.flowParseType(), i.name = t, i.optional = e, i.typeAnnotation = s, this.finishNode(i, "FunctionTypeParam"); }, e.prototype.reinterpretTypeAsFunctionTypeParam = function (t) { - var e = this.startNodeAt(t.start, t.loc);return e.name = null, e.optional = !1, e.typeAnnotation = t, this.finishNode(e, "FunctionTypeParam"); + var e = this.startNodeAt(t.start, t.loc.start);return e.name = null, e.optional = !1, e.typeAnnotation = t, this.finishNode(e, "FunctionTypeParam"); }, e.prototype.flowParseFunctionTypeParams = function () { for (var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], e = null; !this.match(C.parenR) && !this.match(C.ellipsis);) { t.push(this.flowParseFunctionTypeParam()), this.match(C.parenR) || this.expect(C.comma); @@ -1313,7 +1321,7 @@ var babylon = function () { var t = this.startNode();return this.eat(C.question) ? (t.typeAnnotation = this.flowParsePrefixType(), this.finishNode(t, "NullableTypeAnnotation")) : this.flowParsePostfixType(); }, e.prototype.flowParseAnonFunctionWithoutParens = function () { var t = this.flowParsePrefixType();if (!this.state.noAnonFunctionType && this.eat(C.arrow)) { - var e = this.startNodeAt(t.start, t.loc);return e.params = [this.reinterpretTypeAsFunctionTypeParam(t)], e.rest = null, e.returnType = this.flowParseType(), e.typeParameters = null, this.finishNode(e, "FunctionTypeAnnotation"); + var e = this.startNodeAt(t.start, t.loc.start);return e.params = [this.reinterpretTypeAsFunctionTypeParam(t)], e.rest = null, e.returnType = this.flowParseType(), e.typeParameters = null, this.finishNode(e, "FunctionTypeAnnotation"); }return t; }, e.prototype.flowParseIntersectionType = function () { var t = this.startNode();this.eat(C.bitwiseAND);var e = this.flowParseAnonFunctionWithoutParens();for (t.types = [e]; this.eat(C.bitwiseAND);) { @@ -1324,7 +1332,7 @@ var babylon = function () { t.types.push(this.flowParseIntersectionType()); }return 1 === t.types.length ? e : this.finishNode(t, "UnionTypeAnnotation"); }, e.prototype.flowParseType = function () { - var t = this.state.inType;this.state.inType = !0;var e = this.flowParseUnionType();return this.state.inType = t, e; + var t = this.state.inType;this.state.inType = !0;var e = this.flowParseUnionType();return this.state.inType = t, this.state.exprAllowed = !1, e; }, e.prototype.flowParseTypeAnnotation = function () { var t = this.startNode();return t.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(t, "TypeAnnotation"); }, e.prototype.flowParseTypeAnnotatableIdentifier = function () { @@ -1372,10 +1380,8 @@ var babylon = function () { }if (this.isContextual("interface")) { e.exportKind = "type";var i = this.startNode();return this.next(), this.flowParseInterface(i); }return t.prototype.parseExportDeclaration.call(this, e); - }, e.prototype.parseClassId = function (e) { - for (var s, i = arguments.length, r = Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) { - r[a - 1] = arguments[a]; - }(s = t.prototype.parseClassId).call.apply(s, [this, e].concat(r)), this.isRelational("<") && (e.typeParameters = this.flowParseTypeParameterDeclaration()); + }, e.prototype.parseClassId = function (e, s, i) { + t.prototype.parseClassId.call(this, e, s, i), this.isRelational("<") && (e.typeParameters = this.flowParseTypeParameterDeclaration()); }, e.prototype.isKeyword = function (e) { return (!this.state.inType || "void" !== e) && t.prototype.isKeyword.call(this, e); }, e.prototype.readToken = function (e) { @@ -1390,16 +1396,11 @@ var babylon = function () { for (var e = 0; e < t.length; e++) { var s = t[e];s && s._exprListItem && "TypeCastExpression" === s.type && this.raise(s.start, "Unexpected type cast"); }return t; - }, e.prototype.parseExprListItem = function () { - for (var e, s = this.startNode(), i = arguments.length, r = Array(i), a = 0; a < i; a++) { - r[a] = arguments[a]; - }var n = (e = t.prototype.parseExprListItem).call.apply(e, [this].concat(r));return this.match(C.colon) ? (s._exprListItem = !0, s.expression = n, s.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(s, "TypeCastExpression")) : n; - }, e.prototype.checkLVal = function (e) { - if ("TypeCastExpression" !== e.type) { - for (var s, i = arguments.length, r = Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) { - r[a - 1] = arguments[a]; - }return (s = t.prototype.checkLVal).call.apply(s, [this, e].concat(r)); - } + }, e.prototype.parseExprListItem = function (e, s, i) { + var r = this.startNode(), + a = t.prototype.parseExprListItem.call(this, e, s, i);return this.match(C.colon) ? (r._exprListItem = !0, r.expression = a, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression")) : a; + }, e.prototype.checkLVal = function (e, s, i, r) { + if ("TypeCastExpression" !== e.type) return t.prototype.checkLVal.call(this, e, s, i, r); }, e.prototype.parseClassProperty = function (e) { return this.match(C.colon) && (e.typeAnnotation = this.flowParseTypeAnnotation()), t.prototype.parseClassProperty.call(this, e); }, e.prototype.isClassMethod = function () { @@ -1408,29 +1409,23 @@ var babylon = function () { return this.match(C.colon) || t.prototype.isClassProperty.call(this); }, e.prototype.isNonstaticConstructor = function (e) { return !this.match(C.colon) && t.prototype.isNonstaticConstructor.call(this, e); - }, e.prototype.parseClassMethod = function (e, s) { - var i;s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration());for (var r = arguments.length, a = Array(r > 2 ? r - 2 : 0), n = 2; n < r; n++) { - a[n - 2] = arguments[n]; - }(i = t.prototype.parseClassMethod).call.apply(i, [this, e, s].concat(a)); - }, e.prototype.parseClassSuper = function (e, s) { - if (t.prototype.parseClassSuper.call(this, e, s), e.superClass && this.isRelational("<") && (e.superTypeParameters = this.flowParseTypeParameterInstantiation()), this.isContextual("implements")) { - this.next();var i = e.implements = [];do { - var r = this.startNode();r.id = this.parseIdentifier(), this.isRelational("<") ? r.typeParameters = this.flowParseTypeParameterInstantiation() : r.typeParameters = null, i.push(this.finishNode(r, "ClassImplements")); + }, e.prototype.parseClassMethod = function (e, s, i, r) { + s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.parseClassMethod.call(this, e, s, i, r); + }, e.prototype.parseClassSuper = function (e) { + if (t.prototype.parseClassSuper.call(this, e), e.superClass && this.isRelational("<") && (e.superTypeParameters = this.flowParseTypeParameterInstantiation()), this.isContextual("implements")) { + this.next();var s = e.implements = [];do { + var i = this.startNode();i.id = this.parseIdentifier(), this.isRelational("<") ? i.typeParameters = this.flowParseTypeParameterInstantiation() : i.typeParameters = null, s.push(this.finishNode(i, "ClassImplements")); } while (this.eat(C.comma)); } }, e.prototype.parsePropertyName = function (e) { var s = this.flowParseVariance(), i = t.prototype.parsePropertyName.call(this, e);return e.variance = s, i; - }, e.prototype.parseObjPropValue = function (e) { - var s;e.variance && this.unexpected(e.variance.start), delete e.variance;var i = void 0;this.isRelational("<") && (i = this.flowParseTypeParameterDeclaration(), this.match(C.parenL) || this.unexpected());for (var r = arguments.length, a = Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) { - a[n - 1] = arguments[n]; - }(s = t.prototype.parseObjPropValue).call.apply(s, [this, e].concat(a)), i && ((e.value || e).typeParameters = i); + }, e.prototype.parseObjPropValue = function (e, s, i, r, a, n, o) { + e.variance && this.unexpected(e.variance.start), delete e.variance;var h = void 0;this.isRelational("<") && (h = this.flowParseTypeParameterDeclaration(), this.match(C.parenL) || this.unexpected()), t.prototype.parseObjPropValue.call(this, e, s, i, r, a, n, o), h && ((e.value || e).typeParameters = h); }, e.prototype.parseAssignableListItemTypes = function (t) { return this.eat(C.question) && (t.optional = !0), this.match(C.colon) && (t.typeAnnotation = this.flowParseTypeAnnotation()), this.finishNode(t, t.type), t; - }, e.prototype.parseMaybeDefault = function () { - for (var e, s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }var a = (e = t.prototype.parseMaybeDefault).call.apply(e, [this].concat(i));return "AssignmentPattern" === a.type && a.typeAnnotation && a.right.start < a.typeAnnotation.start && this.raise(a.typeAnnotation.start, "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"), a; + }, e.prototype.parseMaybeDefault = function (e, s, i) { + var r = t.prototype.parseMaybeDefault.call(this, e, s, i);return "AssignmentPattern" === r.type && r.typeAnnotation && r.right.start < r.typeAnnotation.start && this.raise(r.typeAnnotation.start, "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"), r; }, e.prototype.parseImportSpecifiers = function (e) { e.importKind = "value";var s = null;if (this.match(C._typeof) ? s = "typeof" : this.isContextual("type") && (s = "type"), s) { var i = this.lookahead();(i.type === C.name && "from" !== i.value || i.type === C.braceL || i.type === C.star) && (this.next(), e.importKind = s); @@ -1452,23 +1447,21 @@ var babylon = function () { }return t.prototype.parseAsyncArrowFromCallExpression.call(this, e, s); }, e.prototype.shouldParseAsyncArrow = function () { return this.match(C.colon) || t.prototype.shouldParseAsyncArrow.call(this); - }, e.prototype.parseMaybeAssign = function () { - for (var e, s = null, i = arguments.length, r = Array(i), a = 0; a < i; a++) { - r[a] = arguments[a]; - }if (C.jsxTagStart && this.match(C.jsxTagStart)) { + }, e.prototype.parseMaybeAssign = function (e, s, i, r) { + var a = null;if (C.jsxTagStart && this.match(C.jsxTagStart)) { var n = this.state.clone();try { - var o;return (o = t.prototype.parseMaybeAssign).call.apply(o, [this].concat(r)); + return t.prototype.parseMaybeAssign.call(this, e, s, i, r); } catch (t) { - if (!(t instanceof SyntaxError)) throw t;this.state = n, this.state.context.length -= 2, s = t; + if (!(t instanceof SyntaxError)) throw t;this.state = n, this.state.context.length -= 2, a = t; } - }if (null != s || this.isRelational("<")) { - var h = void 0, - p = void 0;try { - var c;p = this.flowParseTypeParameterDeclaration(), (h = (c = t.prototype.parseMaybeAssign).call.apply(c, [this].concat(r))).typeParameters = p, this.resetStartLocationFromNode(h, p); + }if (null != a || this.isRelational("<")) { + var o = void 0, + h = void 0;try { + h = this.flowParseTypeParameterDeclaration(), (o = t.prototype.parseMaybeAssign.call(this, e, s, i, r)).typeParameters = h, this.resetStartLocationFromNode(o, h); } catch (t) { - throw s || t; - }if ("ArrowFunctionExpression" === h.type) return h;if (null != s) throw s;this.raise(p.start, "Expected an arrow function after this type parameter declaration"); - }return (e = t.prototype.parseMaybeAssign).call.apply(e, [this].concat(r)); + throw a || t; + }if ("ArrowFunctionExpression" === o.type) return o;if (null != a) throw a;this.raise(h.start, "Expected an arrow function after this type parameter declaration"); + }return t.prototype.parseMaybeAssign.call(this, e, s, i, r); }, e.prototype.parseArrow = function (e) { if (this.match(C.colon)) { var s = this.state.clone();try { @@ -1483,13 +1476,13 @@ var babylon = function () { }, e; }(t); }, - at = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "­", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "‌", zwj: "‍", lrm: "‎", rlm: "‏", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, - nt = /^[\da-fA-F]+$/, - ot = /^\d+$/;V.j_oTag = new q("...", !0, !0), C.jsxName = new k("jsxName"), C.jsxText = new k("jsxText", { beforeExpr: !0 }), C.jsxTagStart = new k("jsxTagStart", { startsExpr: !0 }), C.jsxTagEnd = new k("jsxTagEnd"), C.jsxTagStart.updateContext = function () { + nt = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "­", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "‌", zwj: "‍", lrm: "‎", rlm: "‏", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, + ot = /^[\da-fA-F]+$/, + ht = /^\d+$/;V.j_oTag = new q("...", !0, !0), C.jsxName = new k("jsxName"), C.jsxText = new k("jsxText", { beforeExpr: !0 }), C.jsxTagStart = new k("jsxTagStart", { startsExpr: !0 }), C.jsxTagEnd = new k("jsxTagEnd"), C.jsxTagStart.updateContext = function () { this.state.context.push(V.j_expr), this.state.context.push(V.j_oTag), this.state.exprAllowed = !1; }, C.jsxTagEnd.updateContext = function (t) { var e = this.state.context.pop();e === V.j_oTag && t === C.slash || e === V.j_cTag ? (this.state.context.pop(), this.state.exprAllowed = this.curContext() === V.j_expr) : this.state.exprAllowed = !0; - };var ht = function ht(t) { + };var pt = function pt(t) { return function (t) { function e() { return g(this, e), P(this, t.apply(this, arguments)); @@ -1510,7 +1503,7 @@ var babylon = function () { }, e.prototype.jsxReadEntity = function () { for (var t = "", e = 0, s = void 0, i = this.input[this.state.pos], r = ++this.state.pos; this.state.pos < this.input.length && e++ < 10;) { if (";" === (i = this.input[this.state.pos++])) { - "#" === t[0] ? "x" === t[1] ? (t = t.substr(2), nt.test(t) && (s = String.fromCodePoint(parseInt(t, 16)))) : (t = t.substr(1), ot.test(t) && (s = String.fromCodePoint(parseInt(t, 10)))) : s = at[t];break; + "#" === t[0] ? "x" === t[1] ? (t = t.substr(2), ot.test(t) && (s = String.fromCodePoint(parseInt(t, 16)))) : (t = t.substr(1), ht.test(t) && (s = String.fromCodePoint(parseInt(t, 10)))) : s = nt[t];break; }t += i; }return s || (this.state.pos = r, "&"); }, e.prototype.jsxReadWord = function () { @@ -1579,7 +1572,7 @@ var babylon = function () { } }, e; }(t); - };Z.estree = et, Z.flow = rt, Z.jsx = ht;var pt = {};e.parse = m, e.parseExpression = y, e.tokTypes = C; + };tt.estree = st, tt.flow = at, tt.jsx = pt;var ct = {};e.parse = m, e.parseExpression = y, e.tokTypes = C; });var createError = parserCreateError;var parserBabylon = parse;module.exports = parserBabylon; }); diff --git a/docs/lib/parser-graphql.js b/docs/lib/parser-graphql.js index 84663a3b..73a67a47 100644 --- a/docs/lib/parser-graphql.js +++ b/docs/lib/parser-graphql.js @@ -8,7 +8,7 @@ function createCommonjsModule(fn, module) { } var parserGraphql_1 = createCommonjsModule(function (module) { -"use strict";function createError$1(e,n){const r=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return r.loc=n,r}function createCommonjsModule$$1(e,n){return n={exports:{}},e(n,n.exports),n.exports}function parse(e){const n=index;try{const r=n.parse(e);return r}catch(e){const n=index$2.GraphQLError;throw e instanceof n?createError(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}}var parserCreateError=createError$1,location=createCommonjsModule$$1(function(e,n){function r(e,n){for(var r=/\r\n|[\n\r]/g,t=1,i=n+1,o=void 0;(o=r.exec(e.body))&&o.index0){var l=n[0];c=l&&l.loc&&l.loc.source;}var s=o;!s&&n&&(s=n.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),s&&0===s.length&&(s=void 0);var d=void 0,f=c;f&&s&&(d=s.map(function(e){return(0,t.getLocation)(f,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:n||void 0},source:{value:c||void 0},positions:{value:s||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0});}Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r;var t=location;r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"}});}),syntaxError_1=createCommonjsModule$$1(function(e,n){function r(e,n,r){var i=(0,o.getLocation)(e,n);return new a.GraphQLError("Syntax Error "+e.name+" ("+i.line+":"+i.column+") "+r+"\n\n"+t(e,i),void 0,e,[n])}function t(e,n){var r=n.line,t=(r-1).toString(),o=r.toString(),a=(r+1).toString(),u=a.length,c=e.body.split(/\r\n|[\n\r]/g);return(r>=2?i(u,t)+": "+c[r-2]+"\n":"")+i(u,o)+": "+c[r-1]+"\n"+Array(2+u+n.column).join(" ")+"^\n"+(r=i)return new o(y,i,i,f,p,n);var E=M.call(t,u);if(E<32&&9!==E&&10!==E&&13!==E)throw(0,k.syntaxError)(r,u,"Cannot contain the invalid character "+a(E)+".");switch(E){case 33:return new o(N,u,u+1,f,p,n);case 35:return s(r,u,f,p,n);case 36:return new o(I,u,u+1,f,p,n);case 40:return new o(O,u,u+1,f,p,n);case 41:return new o(_,u,u+1,f,p,n);case 46:if(46===M.call(t,u+1)&&46===M.call(t,u+2))return new o(h,u,u+3,f,p,n);break;case 58:return new o(A,u,u+1,f,p,n);case 61:return new o(D,u,u+1,f,p,n);case 64:return new o(g,u,u+1,f,p,n);case 91:return new o(b,u,u+1,f,p,n);case 93:return new o(L,u,u+1,f,p,n);case 123:return new o(S,u,u+1,f,p,n);case 124:return new o(R,u,u+1,f,p,n);case 125:return new o(C,u,u+1,f,p,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return T(r,u,f,p,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d(r,u,E,f,p,n);case 34:return v(r,u,f,p,n)}throw(0,k.syntaxError)(r,u,c(E))}function c(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+a(e)+"."}function l(e,n,r){for(var t=e.length,i=n;i31||9===u));return new o(j,n,c,r,t,i,V.call(a,n+1,c))}function d(e,n,r,t,i,u){var c=e.body,l=r,s=n,d=!1;if(45===l&&(l=M.call(c,++s)),48===l){if((l=M.call(c,++s))>=48&&l<=57)throw(0,k.syntaxError)(e,s,"Invalid number, unexpected digit after 0: "+a(l)+".")}else s=f(e,s,l),l=M.call(c,s);return 46===l&&(d=!0,l=M.call(c,++s),s=f(e,s,l),l=M.call(c,s)),69!==l&&101!==l||(d=!0,43!==(l=M.call(c,++s))&&45!==l||(l=M.call(c,++s)),s=f(e,s,l)),new o(d?F:K,n,s,t,i,u,V.call(c,n,s))}function f(e,n,r){var t=e.body,i=n,o=r;if(o>=48&&o<=57){do{o=M.call(t,++i);}while(o>=48&&o<=57);return i}throw(0,k.syntaxError)(e,i,"Invalid number, expected digit but got: "+a(o)+".")}function v(e,n,r,t,i){for(var u=e.body,c=n+1,l=c,s=0,d="";c=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T(e,n,r,t,i){for(var a=e.body,u=a.length,c=n+1,l=0;c!==u&&null!==(l=M.call(a,c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new o(P,n,c,r,t,i,V.call(a,n,c))}Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.createLexer=r,n.getTokenDesc=i;var k=index$2,m="",y="",N="!",I="$",O="(",_=")",h="...",A=":",D="=",g="@",b="[",L="]",S="{",R="|",C="}",P="Name",K="Int",F="Float",w="String",j="Comment",M=(n.TokenKind={SOF:m,EOF:y,BANG:N,DOLLAR:I,PAREN_L:O,PAREN_R:_,SPREAD:h,COLON:A,EQUALS:D,AT:g,BRACKET_L:b,BRACKET_R:L,BRACE_L:S,PIPE:R,BRACE_R:C,NAME:P,INT:K,FLOAT:F,STRING:w,COMMENT:j},String.prototype.charCodeAt),V=String.prototype.slice;o.prototype.toJSON=o.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};}),source=createCommonjsModule$$1(function(e,n){function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});n.Source=function e(n,t){r(this,e),this.body=n,this.name=t||"GraphQL request";};}),kinds=createCommonjsModule$$1(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});n.NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.VARIABLE="Variable",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition";}),parser=createCommonjsModule$$1(function(e,n){function r(e,n){var r="string"==typeof e?new ie.Source(e):e;if(!(r instanceof ie.Source))throw new TypeError("Must provide Source. Received: "+String(r));return a((0,ae.createLexer)(r,n||{}))}function t(e,n){var r="string"==typeof e?new ie.Source(e):e,t=(0,ae.createLexer)(r,n||{});Z(t,ae.TokenKind.SOF);var i=I(t,!1);return Z(t,ae.TokenKind.EOF),i}function i(e,n){var r="string"==typeof e?new ie.Source(e):e,t=(0,ae.createLexer)(r,n||{});Z(t,ae.TokenKind.SOF);var i=L(t);return Z(t,ae.TokenKind.EOF),i}function o(e){var n=Z(e,ae.TokenKind.NAME);return{kind:ue.NAME,value:n.value,loc:W(e,n)}}function a(e){var n=e.token;Z(e,ae.TokenKind.SOF);var r=[];do{r.push(u(e));}while(!z(e,ae.TokenKind.EOF));return{kind:ue.DOCUMENT,definitions:r,loc:W(e,n)}}function u(e){if(X(e,ae.TokenKind.BRACE_L))return c(e);if(X(e,ae.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return c(e);case"fragment":return y(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return R(e)}throw ne(e)}function c(e){var n=e.token;if(X(e,ae.TokenKind.BRACE_L))return{kind:ue.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:v(e),loc:W(e,n)};var r=l(e),t=void 0;return X(e,ae.TokenKind.NAME)&&(t=o(e)),{kind:ue.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:s(e),directives:g(e),selectionSet:v(e),loc:W(e,n)}}function l(e){var n=Z(e,ae.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw ne(e,n)}function s(e){return X(e,ae.TokenKind.PAREN_L)?te(e,ae.TokenKind.PAREN_L,d,ae.TokenKind.PAREN_R):[]}function d(e){var n=e.token;return{kind:ue.VARIABLE_DEFINITION,variable:f(e),type:(Z(e,ae.TokenKind.COLON),L(e)),defaultValue:z(e,ae.TokenKind.EQUALS)?I(e,!0):null,loc:W(e,n)}}function f(e){var n=e.token;return Z(e,ae.TokenKind.DOLLAR),{kind:ue.VARIABLE,name:o(e),loc:W(e,n)}}function v(e){var n=e.token;return{kind:ue.SELECTION_SET,selections:te(e,ae.TokenKind.BRACE_L,p,ae.TokenKind.BRACE_R),loc:W(e,n)}}function p(e){return X(e,ae.TokenKind.SPREAD)?m(e):E(e)}function E(e){var n=e.token,r=o(e),t=void 0,i=void 0;return z(e,ae.TokenKind.COLON)?(t=r,i=o(e)):(t=null,i=r),{kind:ue.FIELD,alias:t,name:i,arguments:T(e),directives:g(e),selectionSet:X(e,ae.TokenKind.BRACE_L)?v(e):null,loc:W(e,n)}}function T(e){return X(e,ae.TokenKind.PAREN_L)?te(e,ae.TokenKind.PAREN_L,k,ae.TokenKind.PAREN_R):[]}function k(e){var n=e.token;return{kind:ue.ARGUMENT,name:o(e),value:(Z(e,ae.TokenKind.COLON),I(e,!1)),loc:W(e,n)}}function m(e){var n=e.token;if(Z(e,ae.TokenKind.SPREAD),X(e,ae.TokenKind.NAME)&&"on"!==e.token.value)return{kind:ue.FRAGMENT_SPREAD,name:N(e),directives:g(e),loc:W(e,n)};var r=null;return"on"===e.token.value&&(e.advance(),r=S(e)),{kind:ue.INLINE_FRAGMENT,typeCondition:r,directives:g(e),selectionSet:v(e),loc:W(e,n)}}function y(e){var n=e.token;return ee(e,"fragment"),{kind:ue.FRAGMENT_DEFINITION,name:N(e),typeCondition:(ee(e,"on"),S(e)),directives:g(e),selectionSet:v(e),loc:W(e,n)}}function N(e){if("on"===e.token.value)throw ne(e);return o(e)}function I(e,n){var r=e.token;switch(r.kind){case ae.TokenKind.BRACKET_L:return h(e,n);case ae.TokenKind.BRACE_L:return A(e,n);case ae.TokenKind.INT:return e.advance(),{kind:ue.INT,value:r.value,loc:W(e,r)};case ae.TokenKind.FLOAT:return e.advance(),{kind:ue.FLOAT,value:r.value,loc:W(e,r)};case ae.TokenKind.STRING:return e.advance(),{kind:ue.STRING,value:r.value,loc:W(e,r)};case ae.TokenKind.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:ue.BOOLEAN,value:"true"===r.value,loc:W(e,r)}):"null"===r.value?(e.advance(),{kind:ue.NULL,loc:W(e,r)}):(e.advance(),{kind:ue.ENUM,value:r.value,loc:W(e,r)});case ae.TokenKind.DOLLAR:if(!n)return f(e)}throw ne(e)}function O(e){return I(e,!0)}function _(e){return I(e,!1)}function h(e,n){var r=e.token,t=n?O:_;return{kind:ue.LIST,values:re(e,ae.TokenKind.BRACKET_L,t,ae.TokenKind.BRACKET_R),loc:W(e,r)}}function A(e,n){var r=e.token;Z(e,ae.TokenKind.BRACE_L);for(var t=[];!z(e,ae.TokenKind.BRACE_R);)t.push(D(e,n));return{kind:ue.OBJECT,fields:t,loc:W(e,r)}}function D(e,n){var r=e.token;return{kind:ue.OBJECT_FIELD,name:o(e),value:(Z(e,ae.TokenKind.COLON),I(e,n)),loc:W(e,r)}}function g(e){for(var n=[];X(e,ae.TokenKind.AT);)n.push(b(e));return n}function b(e){var n=e.token;return Z(e,ae.TokenKind.AT),{kind:ue.DIRECTIVE,name:o(e),arguments:T(e),loc:W(e,n)}}function L(e){var n=e.token,r=void 0;return z(e,ae.TokenKind.BRACKET_L)?(r=L(e),Z(e,ae.TokenKind.BRACKET_R),r={kind:ue.LIST_TYPE,type:r,loc:W(e,n)}):r=S(e),z(e,ae.TokenKind.BANG)?{kind:ue.NON_NULL_TYPE,type:r,loc:W(e,n)}:r}function S(e){var n=e.token;return{kind:ue.NAMED_TYPE,name:o(e),loc:W(e,n)}}function R(e){if(X(e,ae.TokenKind.NAME))switch(e.token.value){case"schema":return C(e);case"scalar":return K(e);case"type":return F(e);case"interface":return x(e);case"union":return B(e);case"enum":return G(e);case"input":return Q(e);case"extend":return J(e);case"directive":return q(e)}throw ne(e)}function C(e){var n=e.token;ee(e,"schema");var r=g(e),t=te(e,ae.TokenKind.BRACE_L,P,ae.TokenKind.BRACE_R);return{kind:ue.SCHEMA_DEFINITION,directives:r,operationTypes:t,loc:W(e,n)}}function P(e){var n=e.token,r=l(e);Z(e,ae.TokenKind.COLON);var t=S(e);return{kind:ue.OPERATION_TYPE_DEFINITION,operation:r,type:t,loc:W(e,n)}}function K(e){var n=e.token;ee(e,"scalar");var r=o(e),t=g(e);return{kind:ue.SCALAR_TYPE_DEFINITION,name:r,directives:t,loc:W(e,n)}}function F(e){var n=e.token;ee(e,"type");var r=o(e),t=w(e),i=g(e),a=re(e,ae.TokenKind.BRACE_L,j,ae.TokenKind.BRACE_R);return{kind:ue.OBJECT_TYPE_DEFINITION,name:r,interfaces:t,directives:i,fields:a,loc:W(e,n)}}function w(e){var n=[];if("implements"===e.token.value){e.advance();do{n.push(S(e));}while(X(e,ae.TokenKind.NAME))}return n}function j(e){var n=e.token,r=o(e),t=M(e);Z(e,ae.TokenKind.COLON);var i=L(e),a=g(e);return{kind:ue.FIELD_DEFINITION,name:r,arguments:t,type:i,directives:a,loc:W(e,n)}}function M(e){return X(e,ae.TokenKind.PAREN_L)?te(e,ae.TokenKind.PAREN_L,V,ae.TokenKind.PAREN_R):[]}function V(e){var n=e.token,r=o(e);Z(e,ae.TokenKind.COLON);var t=L(e),i=null;z(e,ae.TokenKind.EQUALS)&&(i=O(e));var a=g(e);return{kind:ue.INPUT_VALUE_DEFINITION,name:r,type:t,defaultValue:i,directives:a,loc:W(e,n)}}function x(e){var n=e.token;ee(e,"interface");var r=o(e),t=g(e),i=re(e,ae.TokenKind.BRACE_L,j,ae.TokenKind.BRACE_R);return{kind:ue.INTERFACE_TYPE_DEFINITION,name:r,directives:t,fields:i,loc:W(e,n)}}function B(e){var n=e.token;ee(e,"union");var r=o(e),t=g(e);Z(e,ae.TokenKind.EQUALS);var i=U(e);return{kind:ue.UNION_TYPE_DEFINITION,name:r,directives:t,types:i,loc:W(e,n)}}function U(e){var n=[];do{n.push(S(e));}while(z(e,ae.TokenKind.PIPE));return n}function G(e){var n=e.token;ee(e,"enum");var r=o(e),t=g(e),i=te(e,ae.TokenKind.BRACE_L,Y,ae.TokenKind.BRACE_R);return{kind:ue.ENUM_TYPE_DEFINITION,name:r,directives:t,values:i,loc:W(e,n)}}function Y(e){var n=e.token,r=o(e),t=g(e);return{kind:ue.ENUM_VALUE_DEFINITION,name:r,directives:t,loc:W(e,n)}}function Q(e){var n=e.token;ee(e,"input");var r=o(e),t=g(e),i=re(e,ae.TokenKind.BRACE_L,V,ae.TokenKind.BRACE_R);return{kind:ue.INPUT_OBJECT_TYPE_DEFINITION,name:r,directives:t,fields:i,loc:W(e,n)}}function J(e){var n=e.token;ee(e,"extend");var r=F(e);return{kind:ue.TYPE_EXTENSION_DEFINITION,definition:r,loc:W(e,n)}}function q(e){var n=e.token;ee(e,"directive"),Z(e,ae.TokenKind.AT);var r=o(e),t=M(e);ee(e,"on");var i=$(e);return{kind:ue.DIRECTIVE_DEFINITION,name:r,arguments:t,locations:i,loc:W(e,n)}}function $(e){var n=[];do{n.push(o(e));}while(z(e,ae.TokenKind.PIPE));return n}function W(e,n){if(!e.options.noLocation)return new H(n,e.lastToken,e.source)}function H(e,n,r){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r;}function X(e,n){return e.token.kind===n}function z(e,n){var r=e.token.kind===n;return r&&e.advance(),r}function Z(e,n){var r=e.token;if(r.kind===n)return e.advance(),r;throw(0,oe.syntaxError)(e.source,r.start,"Expected "+n+", found "+(0,ae.getTokenDesc)(r))}function ee(e,n){var r=e.token;if(r.kind===ae.TokenKind.NAME&&r.value===n)return e.advance(),r;throw(0,oe.syntaxError)(e.source,r.start,'Expected "'+n+'", found '+(0,ae.getTokenDesc)(r))}function ne(e,n){var r=n||e.token;return(0,oe.syntaxError)(e.source,r.start,"Unexpected "+(0,ae.getTokenDesc)(r))}function re(e,n,r,t){Z(e,n);for(var i=[];!z(e,t);)i.push(r(e));return i}function te(e,n,r,t){Z(e,n);for(var i=[r(e)];!z(e,t);)i.push(r(e));return i}Object.defineProperty(n,"__esModule",{value:!0}),n.parse=r,n.parseValue=t,n.parseType=i,n.parseConstValue=O,n.parseTypeReference=L,n.parseNamedType=S;var ie=source,oe=index$2,ae=lexer,ue=kinds;H.prototype.toJSON=H.prototype.inspect=function(){return{start:this.start,end:this.end}};}),visitor=createCommonjsModule$$1(function(e,n){function r(e,n,r){var i=r||u,o=void 0,l=Array.isArray(e),s=[e],d=-1,f=[],v=void 0,p=[],E=[],T=e;do{var k=++d===s.length,m=void 0,y=void 0,N=k&&0!==f.length;if(k){if(m=0===E.length?void 0:p.pop(),y=v,v=E.pop(),N){if(l)y=y.slice();else{var I={};for(var O in y)y.hasOwnProperty(O)&&(I[O]=y[O]);y=I;}for(var _=0,h=0;h"!==r.kind;)"Comment"===r.kind&&(Object.assign(r,{column:r.column-1}),n.push(r)),r=r.next;return n}function parse(e){const n=index;try{const r=n.parse(e);return r.comments=parseComments(r),r}catch(e){const n=index$2.GraphQLError;throw e instanceof n?createError(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}}var parserCreateError=createError$1,location=createCommonjsModule$$1(function(e,n){function r(e,n){for(var r=/\r\n|[\n\r]/g,t=1,i=n+1,o=void 0;(o=r.exec(e.body))&&o.index0){var s=n[0];c=s&&s.loc&&s.loc.source;}var l=o;!l&&n&&(l=n.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),l&&0===l.length&&(l=void 0);var d=void 0,f=c;f&&l&&(d=l.map(function(e){return(0,t.getLocation)(f,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:n||void 0},source:{value:c||void 0},positions:{value:l||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0});}Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r;var t=location;r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"}});}),syntaxError_1=createCommonjsModule$$1(function(e,n){function r(e,n,r){var i=(0,o.getLocation)(e,n);return new a.GraphQLError("Syntax Error "+e.name+" ("+i.line+":"+i.column+") "+r+"\n\n"+t(e,i),void 0,e,[n])}function t(e,n){var r=n.line,t=(r-1).toString(),o=r.toString(),a=(r+1).toString(),u=a.length,c=e.body.split(/\r\n|[\n\r]/g);return(r>=2?i(u,t)+": "+c[r-2]+"\n":"")+i(u,o)+": "+c[r-1]+"\n"+Array(2+u+n.column).join(" ")+"^\n"+(r=i)return new o(y,i,i,f,p,n);var E=M.call(t,u);if(E<32&&9!==E&&10!==E&&13!==E)throw(0,m.syntaxError)(r,u,"Cannot contain the invalid character "+a(E)+".");switch(E){case 33:return new o(N,u,u+1,f,p,n);case 35:return l(r,u,f,p,n);case 36:return new o(I,u,u+1,f,p,n);case 40:return new o(O,u,u+1,f,p,n);case 41:return new o(_,u,u+1,f,p,n);case 46:if(46===M.call(t,u+1)&&46===M.call(t,u+2))return new o(h,u,u+3,f,p,n);break;case 58:return new o(A,u,u+1,f,p,n);case 61:return new o(D,u,u+1,f,p,n);case 64:return new o(g,u,u+1,f,p,n);case 91:return new o(b,u,u+1,f,p,n);case 93:return new o(L,u,u+1,f,p,n);case 123:return new o(S,u,u+1,f,p,n);case 124:return new o(C,u,u+1,f,p,n);case 125:return new o(R,u,u+1,f,p,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return T(r,u,f,p,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d(r,u,E,f,p,n);case 34:return v(r,u,f,p,n)}throw(0,m.syntaxError)(r,u,c(E))}function c(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+a(e)+"."}function s(e,n,r){for(var t=e.length,i=n;i31||9===u));return new o(j,n,c,r,t,i,V.call(a,n+1,c))}function d(e,n,r,t,i,u){var c=e.body,s=r,l=n,d=!1;if(45===s&&(s=M.call(c,++l)),48===s){if((s=M.call(c,++l))>=48&&s<=57)throw(0,m.syntaxError)(e,l,"Invalid number, unexpected digit after 0: "+a(s)+".")}else l=f(e,l,s),s=M.call(c,l);return 46===s&&(d=!0,s=M.call(c,++l),l=f(e,l,s),s=M.call(c,l)),69!==s&&101!==s||(d=!0,43!==(s=M.call(c,++l))&&45!==s||(s=M.call(c,++l)),l=f(e,l,s)),new o(d?F:K,n,l,t,i,u,V.call(c,n,l))}function f(e,n,r){var t=e.body,i=n,o=r;if(o>=48&&o<=57){do{o=M.call(t,++i);}while(o>=48&&o<=57);return i}throw(0,m.syntaxError)(e,i,"Invalid number, expected digit but got: "+a(o)+".")}function v(e,n,r,t,i){for(var u=e.body,c=n+1,s=c,l=0,d="";c=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T(e,n,r,t,i){for(var a=e.body,u=a.length,c=n+1,s=0;c!==u&&null!==(s=M.call(a,c))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++c;return new o(P,n,c,r,t,i,V.call(a,n,c))}Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.createLexer=r,n.getTokenDesc=i;var m=index$2,k="",y="",N="!",I="$",O="(",_=")",h="...",A=":",D="=",g="@",b="[",L="]",S="{",C="|",R="}",P="Name",K="Int",F="Float",w="String",j="Comment",M=(n.TokenKind={SOF:k,EOF:y,BANG:N,DOLLAR:I,PAREN_L:O,PAREN_R:_,SPREAD:h,COLON:A,EQUALS:D,AT:g,BRACKET_L:b,BRACKET_R:L,BRACE_L:S,PIPE:C,BRACE_R:R,NAME:P,INT:K,FLOAT:F,STRING:w,COMMENT:j},String.prototype.charCodeAt),V=String.prototype.slice;o.prototype.toJSON=o.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};}),source=createCommonjsModule$$1(function(e,n){function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});n.Source=function e(n,t){r(this,e),this.body=n,this.name=t||"GraphQL request";};}),kinds=createCommonjsModule$$1(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});n.NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.VARIABLE="Variable",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition";}),parser=createCommonjsModule$$1(function(e,n){function r(e,n){var r="string"==typeof e?new ie.Source(e):e;if(!(r instanceof ie.Source))throw new TypeError("Must provide Source. Received: "+String(r));return a((0,ae.createLexer)(r,n||{}))}function t(e,n){var r="string"==typeof e?new ie.Source(e):e,t=(0,ae.createLexer)(r,n||{});Z(t,ae.TokenKind.SOF);var i=I(t,!1);return Z(t,ae.TokenKind.EOF),i}function i(e,n){var r="string"==typeof e?new ie.Source(e):e,t=(0,ae.createLexer)(r,n||{});Z(t,ae.TokenKind.SOF);var i=L(t);return Z(t,ae.TokenKind.EOF),i}function o(e){var n=Z(e,ae.TokenKind.NAME);return{kind:ue.NAME,value:n.value,loc:W(e,n)}}function a(e){var n=e.token;Z(e,ae.TokenKind.SOF);var r=[];do{r.push(u(e));}while(!z(e,ae.TokenKind.EOF));return{kind:ue.DOCUMENT,definitions:r,loc:W(e,n)}}function u(e){if(X(e,ae.TokenKind.BRACE_L))return c(e);if(X(e,ae.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return c(e);case"fragment":return y(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return C(e)}throw ne(e)}function c(e){var n=e.token;if(X(e,ae.TokenKind.BRACE_L))return{kind:ue.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:v(e),loc:W(e,n)};var r=s(e),t=void 0;return X(e,ae.TokenKind.NAME)&&(t=o(e)),{kind:ue.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:l(e),directives:g(e),selectionSet:v(e),loc:W(e,n)}}function s(e){var n=Z(e,ae.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw ne(e,n)}function l(e){return X(e,ae.TokenKind.PAREN_L)?te(e,ae.TokenKind.PAREN_L,d,ae.TokenKind.PAREN_R):[]}function d(e){var n=e.token;return{kind:ue.VARIABLE_DEFINITION,variable:f(e),type:(Z(e,ae.TokenKind.COLON),L(e)),defaultValue:z(e,ae.TokenKind.EQUALS)?I(e,!0):null,loc:W(e,n)}}function f(e){var n=e.token;return Z(e,ae.TokenKind.DOLLAR),{kind:ue.VARIABLE,name:o(e),loc:W(e,n)}}function v(e){var n=e.token;return{kind:ue.SELECTION_SET,selections:te(e,ae.TokenKind.BRACE_L,p,ae.TokenKind.BRACE_R),loc:W(e,n)}}function p(e){return X(e,ae.TokenKind.SPREAD)?k(e):E(e)}function E(e){var n=e.token,r=o(e),t=void 0,i=void 0;return z(e,ae.TokenKind.COLON)?(t=r,i=o(e)):(t=null,i=r),{kind:ue.FIELD,alias:t,name:i,arguments:T(e),directives:g(e),selectionSet:X(e,ae.TokenKind.BRACE_L)?v(e):null,loc:W(e,n)}}function T(e){return X(e,ae.TokenKind.PAREN_L)?te(e,ae.TokenKind.PAREN_L,m,ae.TokenKind.PAREN_R):[]}function m(e){var n=e.token;return{kind:ue.ARGUMENT,name:o(e),value:(Z(e,ae.TokenKind.COLON),I(e,!1)),loc:W(e,n)}}function k(e){var n=e.token;if(Z(e,ae.TokenKind.SPREAD),X(e,ae.TokenKind.NAME)&&"on"!==e.token.value)return{kind:ue.FRAGMENT_SPREAD,name:N(e),directives:g(e),loc:W(e,n)};var r=null;return"on"===e.token.value&&(e.advance(),r=S(e)),{kind:ue.INLINE_FRAGMENT,typeCondition:r,directives:g(e),selectionSet:v(e),loc:W(e,n)}}function y(e){var n=e.token;return ee(e,"fragment"),{kind:ue.FRAGMENT_DEFINITION,name:N(e),typeCondition:(ee(e,"on"),S(e)),directives:g(e),selectionSet:v(e),loc:W(e,n)}}function N(e){if("on"===e.token.value)throw ne(e);return o(e)}function I(e,n){var r=e.token;switch(r.kind){case ae.TokenKind.BRACKET_L:return h(e,n);case ae.TokenKind.BRACE_L:return A(e,n);case ae.TokenKind.INT:return e.advance(),{kind:ue.INT,value:r.value,loc:W(e,r)};case ae.TokenKind.FLOAT:return e.advance(),{kind:ue.FLOAT,value:r.value,loc:W(e,r)};case ae.TokenKind.STRING:return e.advance(),{kind:ue.STRING,value:r.value,loc:W(e,r)};case ae.TokenKind.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:ue.BOOLEAN,value:"true"===r.value,loc:W(e,r)}):"null"===r.value?(e.advance(),{kind:ue.NULL,loc:W(e,r)}):(e.advance(),{kind:ue.ENUM,value:r.value,loc:W(e,r)});case ae.TokenKind.DOLLAR:if(!n)return f(e)}throw ne(e)}function O(e){return I(e,!0)}function _(e){return I(e,!1)}function h(e,n){var r=e.token,t=n?O:_;return{kind:ue.LIST,values:re(e,ae.TokenKind.BRACKET_L,t,ae.TokenKind.BRACKET_R),loc:W(e,r)}}function A(e,n){var r=e.token;Z(e,ae.TokenKind.BRACE_L);for(var t=[];!z(e,ae.TokenKind.BRACE_R);)t.push(D(e,n));return{kind:ue.OBJECT,fields:t,loc:W(e,r)}}function D(e,n){var r=e.token;return{kind:ue.OBJECT_FIELD,name:o(e),value:(Z(e,ae.TokenKind.COLON),I(e,n)),loc:W(e,r)}}function g(e){for(var n=[];X(e,ae.TokenKind.AT);)n.push(b(e));return n}function b(e){var n=e.token;return Z(e,ae.TokenKind.AT),{kind:ue.DIRECTIVE,name:o(e),arguments:T(e),loc:W(e,n)}}function L(e){var n=e.token,r=void 0;return z(e,ae.TokenKind.BRACKET_L)?(r=L(e),Z(e,ae.TokenKind.BRACKET_R),r={kind:ue.LIST_TYPE,type:r,loc:W(e,n)}):r=S(e),z(e,ae.TokenKind.BANG)?{kind:ue.NON_NULL_TYPE,type:r,loc:W(e,n)}:r}function S(e){var n=e.token;return{kind:ue.NAMED_TYPE,name:o(e),loc:W(e,n)}}function C(e){if(X(e,ae.TokenKind.NAME))switch(e.token.value){case"schema":return R(e);case"scalar":return K(e);case"type":return F(e);case"interface":return x(e);case"union":return B(e);case"enum":return G(e);case"input":return Q(e);case"extend":return J(e);case"directive":return q(e)}throw ne(e)}function R(e){var n=e.token;ee(e,"schema");var r=g(e),t=te(e,ae.TokenKind.BRACE_L,P,ae.TokenKind.BRACE_R);return{kind:ue.SCHEMA_DEFINITION,directives:r,operationTypes:t,loc:W(e,n)}}function P(e){var n=e.token,r=s(e);Z(e,ae.TokenKind.COLON);var t=S(e);return{kind:ue.OPERATION_TYPE_DEFINITION,operation:r,type:t,loc:W(e,n)}}function K(e){var n=e.token;ee(e,"scalar");var r=o(e),t=g(e);return{kind:ue.SCALAR_TYPE_DEFINITION,name:r,directives:t,loc:W(e,n)}}function F(e){var n=e.token;ee(e,"type");var r=o(e),t=w(e),i=g(e),a=re(e,ae.TokenKind.BRACE_L,j,ae.TokenKind.BRACE_R);return{kind:ue.OBJECT_TYPE_DEFINITION,name:r,interfaces:t,directives:i,fields:a,loc:W(e,n)}}function w(e){var n=[];if("implements"===e.token.value){e.advance();do{n.push(S(e));}while(X(e,ae.TokenKind.NAME))}return n}function j(e){var n=e.token,r=o(e),t=M(e);Z(e,ae.TokenKind.COLON);var i=L(e),a=g(e);return{kind:ue.FIELD_DEFINITION,name:r,arguments:t,type:i,directives:a,loc:W(e,n)}}function M(e){return X(e,ae.TokenKind.PAREN_L)?te(e,ae.TokenKind.PAREN_L,V,ae.TokenKind.PAREN_R):[]}function V(e){var n=e.token,r=o(e);Z(e,ae.TokenKind.COLON);var t=L(e),i=null;z(e,ae.TokenKind.EQUALS)&&(i=O(e));var a=g(e);return{kind:ue.INPUT_VALUE_DEFINITION,name:r,type:t,defaultValue:i,directives:a,loc:W(e,n)}}function x(e){var n=e.token;ee(e,"interface");var r=o(e),t=g(e),i=re(e,ae.TokenKind.BRACE_L,j,ae.TokenKind.BRACE_R);return{kind:ue.INTERFACE_TYPE_DEFINITION,name:r,directives:t,fields:i,loc:W(e,n)}}function B(e){var n=e.token;ee(e,"union");var r=o(e),t=g(e);Z(e,ae.TokenKind.EQUALS);var i=U(e);return{kind:ue.UNION_TYPE_DEFINITION,name:r,directives:t,types:i,loc:W(e,n)}}function U(e){var n=[];do{n.push(S(e));}while(z(e,ae.TokenKind.PIPE));return n}function G(e){var n=e.token;ee(e,"enum");var r=o(e),t=g(e),i=te(e,ae.TokenKind.BRACE_L,Y,ae.TokenKind.BRACE_R);return{kind:ue.ENUM_TYPE_DEFINITION,name:r,directives:t,values:i,loc:W(e,n)}}function Y(e){var n=e.token,r=o(e),t=g(e);return{kind:ue.ENUM_VALUE_DEFINITION,name:r,directives:t,loc:W(e,n)}}function Q(e){var n=e.token;ee(e,"input");var r=o(e),t=g(e),i=re(e,ae.TokenKind.BRACE_L,V,ae.TokenKind.BRACE_R);return{kind:ue.INPUT_OBJECT_TYPE_DEFINITION,name:r,directives:t,fields:i,loc:W(e,n)}}function J(e){var n=e.token;ee(e,"extend");var r=F(e);return{kind:ue.TYPE_EXTENSION_DEFINITION,definition:r,loc:W(e,n)}}function q(e){var n=e.token;ee(e,"directive"),Z(e,ae.TokenKind.AT);var r=o(e),t=M(e);ee(e,"on");var i=$(e);return{kind:ue.DIRECTIVE_DEFINITION,name:r,arguments:t,locations:i,loc:W(e,n)}}function $(e){var n=[];do{n.push(o(e));}while(z(e,ae.TokenKind.PIPE));return n}function W(e,n){if(!e.options.noLocation)return new H(n,e.lastToken,e.source)}function H(e,n,r){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r;}function X(e,n){return e.token.kind===n}function z(e,n){var r=e.token.kind===n;return r&&e.advance(),r}function Z(e,n){var r=e.token;if(r.kind===n)return e.advance(),r;throw(0,oe.syntaxError)(e.source,r.start,"Expected "+n+", found "+(0,ae.getTokenDesc)(r))}function ee(e,n){var r=e.token;if(r.kind===ae.TokenKind.NAME&&r.value===n)return e.advance(),r;throw(0,oe.syntaxError)(e.source,r.start,'Expected "'+n+'", found '+(0,ae.getTokenDesc)(r))}function ne(e,n){var r=n||e.token;return(0,oe.syntaxError)(e.source,r.start,"Unexpected "+(0,ae.getTokenDesc)(r))}function re(e,n,r,t){Z(e,n);for(var i=[];!z(e,t);)i.push(r(e));return i}function te(e,n,r,t){Z(e,n);for(var i=[r(e)];!z(e,t);)i.push(r(e));return i}Object.defineProperty(n,"__esModule",{value:!0}),n.parse=r,n.parseValue=t,n.parseType=i,n.parseConstValue=O,n.parseTypeReference=L,n.parseNamedType=S;var ie=source,oe=index$2,ae=lexer,ue=kinds;H.prototype.toJSON=H.prototype.inspect=function(){return{start:this.start,end:this.end}};}),visitor=createCommonjsModule$$1(function(e,n){function r(e,n,r){var i=r||u,o=void 0,s=Array.isArray(e),l=[e],d=-1,f=[],v=void 0,p=[],E=[],T=e;do{var m=++d===l.length,k=void 0,y=void 0,N=m&&0!==f.length;if(m){if(k=0===E.length?void 0:p.pop(),y=v,v=E.pop(),N){if(s)y=y.slice();else{var I={};for(var O in y)y.hasOwnProperty(O)&&(I[O]=y[O]);y=I;}for(var _=0,h=0;h="1"&&e<="9"}function a(e){return e>="0"&&e<="9"}function c(e){return a(e)||e>="a"&&e<="f"||e>="A"&&e<="F"}function s(e){return"e"===e||"E"===e}function u(e,t,n,r){var o=e.charAt(t);if("\r"===o)t++,n++,r=1,"\n"===e.charAt(t)&&t++;else if("\n"===o)t++,n++,r=1;else{if("\t"!==o&&" "!==o)return null;t++,r++;}return{index:t,line:n,column:r}}function i(e,t,n,r){var o=e.charAt(t);return o in x?{type:x[o],line:n,column:r+1,index:t+1,value:null}:null}function f(e,t,n,r){for(var o in S)if(S.hasOwnProperty(o)&&e.substr(t,o.length)===o){var l=S[o],a=l.type,c=l.value;return{type:a,line:n,column:r+o.length,index:t+o.length,value:c}}return null}function p(e,t,n,r){for(var o=t,l="",a=N._START_;t0?{type:I.NUMBER,line:n,column:r+c-o,index:c,value:parseFloat(e.substring(o,c))}:null}function d(e,t){for(var n=1,r=1,o=0,l=[];o at "+t+":"+n}},C={cannotTokenizeSymbol:function(e,t,n){return"Cannot tokenize symbol <"+e+"> at "+t+":"+n}},I={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},x={"{":I.LEFT_BRACE,"}":I.RIGHT_BRACE,"[":I.LEFT_BRACKET,"]":I.RIGHT_BRACKET,":":I.COLON,",":I.COMMA},S={true:{type:I.TRUE,value:!0},false:{type:I.FALSE,value:!1},null:{type:I.NULL,value:null}},N={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},k={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},P={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7},g=[I.STRING,I.NUMBER,I.TRUE,I.FALSE,I.NULL],w={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},L={_START_:0,KEY:1,COLON:2},M={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},B={verbose:!0,source:null},G=function(e,t){var n=d(e,t=y({},B,t));0===n.length&&m(h.unexpectedEnd());var r=O(e,n,0,t);if(r.index===n.length)return r.value;var o=n[r.index];m(h.unexpectedToken(e.substring(o.loc.start.offset,o.loc.end.offset),o.loc.start.line,o.loc.start.column),e,o.loc.start.line,o.loc.start.column);};e.exports=G;});});const createError=parserCreateError;var parserJson=parse;var parserJson_1=parserJson; + +return parserJson_1; + +}()); diff --git a/docs/lib/parser-parse5.js b/docs/lib/parser-parse5.js index b59c78d3..10619359 100644 --- a/docs/lib/parser-parse5.js +++ b/docs/lib/parser-parse5.js @@ -2,7 +2,7 @@ var parse5 = (function (stream,util) { stream = 'default' in stream ? stream['default'] : stream; util = 'default' in util ? util['default'] : util; -function _interopDefault$1(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}function enquoteDoctypeId(e){var t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function hasPrefix(e,t){for(var n=0;n=55296&&e<=56319&&t>=56320&&t<=57343}function n(e,t){return 1024*(e-55296)+9216+t}var r=unicode.CODE_POINTS,i=e.exports=function(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.droppedBufferSize=0,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536;};Object.defineProperty(i.prototype,"sourcePos",{get:function(){return this.droppedBufferSize+this.pos}}),i.prototype.dropParsedChunk=function(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.droppedBufferSize+=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[]);},i.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos;},i.prototype._processHighRangeCodePoint=function(e){if(this.pos!==this.lastCharPos){var i=this.html.charCodeAt(this.pos+1);t(e,i)&&(this.pos++,e=n(e,i),this._addGap());}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,r.EOF;return e},i.prototype.write=function(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t;},i.prototype.insertHtmlAtCurrentPos=function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1;},i.prototype.advance=function(){if(++this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),r.EOF;var e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===r.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===r.CARRIAGE_RETURN?(this.skipNextNewLine=!0,r.LINE_FEED):(this.skipNextNewLine=!1,e>=55296?this._processHighRangeCodePoint(e):e)},i.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--;};}); var UNICODE=unicode; var $=UNICODE.CODE_POINTS; var assign=function(e){function t(e){e.location={line:s,col:i,startOffset:r,endOffset:-1};}var n=Object.getPrototypeOf(e),r=-1,i=-1,s=1,o=!1,T=0,a=-1,E=1;e._consume=function(){var e=n._consume.call(this);return o&&(o=!1,E++,T=this.preprocessor.sourcePos),e===$.LINE_FEED&&(o=!0),a=this.preprocessor.sourcePos-T+1,e},e._unconsume=function(){n._unconsume.call(this),o=!1,a=this.preprocessor.sourcePos-T+1;},e._createStartTagToken=function(){n._createStartTagToken.call(this),t(this.currentToken);},e._createEndTagToken=function(){n._createEndTagToken.call(this),t(this.currentToken);},e._createCommentToken=function(){n._createCommentToken.call(this),t(this.currentToken);},e._createDoctypeToken=function(e){n._createDoctypeToken.call(this,e),t(this.currentToken);},e._createCharacterToken=function(e,r){n._createCharacterToken.call(this,e,r),t(this.currentCharacterToken);},e._createAttr=function(e){n._createAttr.call(this,e),this.currentAttrLocation={line:E,col:a,startOffset:this.preprocessor.sourcePos,endOffset:-1};},e._leaveAttrName=function(e){n._leaveAttrName.call(this,e),this._attachCurrentAttrLocationInfo();},e._leaveAttrValue=function(e){n._leaveAttrValue.call(this,e),this._attachCurrentAttrLocationInfo();},e._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.preprocessor.sourcePos,this.currentToken.location.attrs||(this.currentToken.location.attrs=Object.create(null)),this.currentToken.location.attrs[this.currentAttr.name]=this.currentAttrLocation;},e._emitCurrentToken=function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=this.preprocessor.sourcePos+1,n._emitCurrentToken.call(this);},e._emitCurrentCharacterToken=function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=this.preprocessor.sourcePos),n._emitCurrentCharacterToken.call(this);},Object.keys(n.MODE).map(function(e){return n.MODE[e]}).forEach(function(t){e[t]=function(e){r=this.preprocessor.sourcePos,s=E,i=a,n[t].call(this,e);};});}; var tokenizer_mixin={assign:assign}; var named_entity_data=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]); var index$4=createCommonjsModule(function(e){function t(e){return e===u.SPACE||e===u.LINE_FEED||e===u.TABULATION||e===u.FORM_FEED}function n(e){return e>=u.DIGIT_0&&e<=u.DIGIT_9}function r(e){return e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_Z}function i(e){return e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_Z}function s(e){return i(e)||r(e)}function o(e){return s(e)||n(e)}function T(e,t){return n(e)||t&&(e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_F||e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_F)}function a(e){return e>=55296&&e<=57343||e>1114111}function E(e){return e+32}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function c(e){return String.fromCharCode(E(e))}function p(e,t){for(var n=m[++e],r=++e,i=r+n-1;r<=i;){var s=r+i>>>1,o=m[s];if(ot))return m[s+n];i=s-1;}}return-1}var A=preprocessor,h=tokenizer_mixin,l=unicode,m=named_entity_data,u=l.CODE_POINTS,N=l.CODE_POINT_SEQUENCES,C={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},d="DATA_STATE",S=e.exports=function(e){this.preprocessor=new A,this.tokenQueue=[],this.allowCDATA=!1,this.state=d,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null,e&&e.locationInfo&&h.assign(this);};S.CHARACTER_TOKEN="CHARACTER_TOKEN",S.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",S.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",S.START_TAG_TOKEN="START_TAG_TOKEN",S.END_TAG_TOKEN="END_TAG_TOKEN",S.COMMENT_TOKEN="COMMENT_TOKEN",S.DOCTYPE_TOKEN="DOCTYPE_TOKEN",S.EOF_TOKEN="EOF_TOKEN",S.HIBERNATION_TOKEN="HIBERNATION_TOKEN",S.MODE=S.prototype.MODE={DATA:d,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},S.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},S.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e);}return this.tokenQueue.shift()},S.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t);},S.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e);},S.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0;},S.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:S.HIBERNATION_TOKEN}),!0}return!1},S.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},S.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat();},S.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume();},S.prototype._reconsumeInState=function(e){this.state=e,this._unconsume();},S.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var r=0,i=!0,s=e.length,o=0,T=t,a=void 0;o0&&(T=this._consume(),r++),T===u.EOF){i=!1;break}if(a=e[o],T!==a&&(n||T!==E(a))){i=!1;break}}return i||this._unconsumeSeveral(r),i},S.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},S.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==N.SCRIPT_STRING.length)return!1;for(var e=0;e-1;){var a=m[T],E=a<7;if(E&&1&a&&(t=2&a?[m[++T],m[++T]]:[m[++T]],n=i,r===u.SEMICOLON)){s=!0;break}if(r=this._consume(),i++,r===u.EOF)break;T=E?4&a?p(T,r):-1:r===a?++T:-1;}if(t){if(!s&&(this._unconsumeSeveral(i-n),e)){var _=this._lookahead();if(_===u.EQUALS_SIGN||o(_))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(i),null},S.prototype._consumeCharacterReference=function(e,n){if(t(e)||e===u.GREATER_THAN_SIGN||e===u.AMPERSAND||e===this.additionalAllowedCp||e===u.EOF)return this._unconsume(),null;if(e===u.NUMBER_SIGN){var r=!1,i=this._lookahead();return i!==u.LATIN_SMALL_X&&i!==u.LATIN_CAPITAL_X||(this._consume(),r=!0),(i=this._lookahead())!==u.EOF&&T(i,r)?[this._consumeNumericEntity(r)]:(this._unconsumeSeveral(r?2:1),null)}return this._unconsume(),this._consumeNamedEntity(n)};var f=S.prototype;f[d]=function(e){this.preprocessor.dropParsedChunk(),e===u.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":e===u.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===u.NULL?this._emitCodePoint(e):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.CHARACTER_REFERENCE_IN_DATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=d);},f.RCDATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":e===u.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state="RCDATA_STATE");},f.RAWTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.SCRIPT_DATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.PLAINTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.TAG_OPEN_STATE=function(e){e===u.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===u.SOLIDUS?this.state="END_TAG_OPEN_STATE":s(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===u.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(d));},f.END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===u.GREATER_THAN_SIGN?this.state=d:e===u.EOF?(this._reconsumeInState(d),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE");},f.TAG_NAME_STATE=function(e){t(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===u.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===u.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):r(e)?this.currentToken.tagName+=c(e):e===u.NULL?this.currentToken.tagName+=l.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(d):this.currentToken.tagName+=_(e);},f.RCDATA_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"));},f.RCDATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"));},f.RCDATA_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this.state=d,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE");}},f.RAWTEXT_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"));},f.RAWTEXT_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"));},f.RAWTEXT_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE");}},f.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===u.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"));},f.SCRIPT_DATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"));},f.SCRIPT_DATA_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE");}},f.SCRIPT_DATA_ESCAPE_START_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE");},f.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE");},f.SCRIPT_DATA_ESCAPED_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._reconsumeInState(d):this._emitCodePoint(e);},f.SCRIPT_DATA_ESCAPED_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(e){e===u.HYPHEN_MINUS?this._emitChar("-"):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===u.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):s(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"));},f.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"));},f.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE");}},f.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):r(e)?(this.tempBuff.push(E(e)),this._emitCodePoint(e)):i(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE");},f.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._reconsumeInState(d):this._emitCodePoint(e);},f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(e){e===u.HYPHEN_MINUS?this._emitChar("-"):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===u.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE");},f.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):r(e)?(this.tempBuff.push(E(e)),this._emitCodePoint(e)):i(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE");},f.BEFORE_ATTRIBUTE_NAME_STATE=function(e){t(e)||(e===u.SOLIDUS||e===u.GREATER_THAN_SIGN||e===u.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===u.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")));},f.ATTRIBUTE_NAME_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN||e===u.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===u.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):r(e)?this.currentAttr.name+=c(e):e===u.QUOTATION_MARK||e===u.APOSTROPHE||e===u.LESS_THAN_SIGN?this.currentAttr.name+=_(e):e===u.NULL?this.currentAttr.name+=l.REPLACEMENT_CHARACTER:this.currentAttr.name+=_(e);},f.AFTER_ATTRIBUTE_NAME_STATE=function(e){t(e)||(e===u.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===u.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===u.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===u.EOF?this._reconsumeInState(d):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")));},f.BEFORE_ATTRIBUTE_VALUE_STATE=function(e){t(e)||(e===u.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===u.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"));},f.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(e){e===u.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===u.AMPERSAND?(this.additionalAllowedCp=u.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.NULL?this.currentAttr.value+=l.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(d):this.currentAttr.value+=_(e);},f.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(e){e===u.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===u.AMPERSAND?(this.additionalAllowedCp=u.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.NULL?this.currentAttr.value+=l.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(d):this.currentAttr.value+=_(e);},f.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(e){t(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===u.AMPERSAND?(this.additionalAllowedCp=u.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):e===u.NULL?this.currentAttr.value+=l.REPLACEMENT_CHARACTER:e===u.QUOTATION_MARK||e===u.APOSTROPHE||e===u.LESS_THAN_SIGN||e===u.EQUALS_SIGN||e===u.GRAVE_ACCENT?this.currentAttr.value+=_(e):e===u.EOF?this._reconsumeInState(d):this.currentAttr.value+=_(e);},f.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n=0;n--)if(this.items[n]===e){t=n;break}return t},o.prototype._isInTemplate=function(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s.HTML},o.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null;},o.prototype.push=function(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++;},o.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement();},o.prototype.replace=function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement();},o.prototype.insertAfter=function(e,t){var n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement();},o.prototype.popUntilTagNamePopped=function(e){for(;this.stackTop>-1;){var t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===s.HTML)break}},o.prototype.popUntilElementPopped=function(e){for(;this.stackTop>-1;){var t=this.current;if(this.pop(),t===e)break}},o.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===s.HTML)break}},o.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===s.HTML)break}},o.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement();},o.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop();},o.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop();},o.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop();},o.prototype.remove=function(e){for(var t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}},o.prototype.tryPeekProperlyNestedBodyElement=function(){var e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null},o.prototype.contains=function(e){return this._indexOf(e)>-1},o.prototype.getCommonAncestor=function(e){var t=this._indexOf(e);return--t>=0?this.items[t]:null},o.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===i.HTML},o.prototype.hasInScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),i=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&i===s.HTML)return!0;if(n(r,i))return!1}return!0},o.prototype.hasNumberedHeaderInScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&r===s.HTML)return!0;if(n(t,r))return!1}return!0},o.prototype.hasInListItemScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&o===s.HTML)return!0;if((r===i.UL||r===i.OL)&&o===s.HTML||n(r,o))return!1}return!0},o.prototype.hasInButtonScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&o===s.HTML)return!0;if(r===i.BUTTON&&o===s.HTML||n(r,o))return!1}return!0},o.prototype.hasInTableScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0},o.prototype.hasTableBodyContextInTableScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===s.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0},o.prototype.hasInSelectScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0},o.prototype.generateImpliedEndTags=function(){for(;t(this.currentTagName);)this.pop();},o.prototype.generateImpliedEndTagsWithExclusion=function(e){for(;t(this.currentTagName)&&this.currentTagName!==e;)this.pop();};}); var formatting_element_list=createCommonjsModule(function(e){var t=e.exports=function(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null;};t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",t.prototype._getNoahArkConditionCandidates=function(e){var n=[];if(this.length>=3)for(var r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e),o=this.length-1;o>=0;o--){var T=this.entries[o];if(T.type===t.MARKER_ENTRY)break;var a=T.element,E=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===i&&this.treeAdapter.getNamespaceURI(a)===s&&E.length===r&&n.push({idx:o,attrs:E});}return n.length<3?[]:n},t.prototype._ensureNoahArkCondition=function(e){var t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){for(var r=this.treeAdapter.getAttrList(e),i=r.length,s=Object.create(null),o=0;o=2;o--)this.entries.splice(t[o].idx,1),this.length--;}},t.prototype.insertMarker=function(){this.entries.push({type:t.MARKER_ENTRY}),this.length++;},t.prototype.pushElement=function(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++;},t.prototype.insertElementAfterBookmark=function(e,n){for(var r=this.length-1;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++;},t.prototype.removeEntry=function(e){for(var t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}},t.prototype.clearToLastMarker=function(){for(;this.length;){var e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}},t.prototype.getElementEntryInScopeWithTagName=function(e){for(var n=this.length-1;n>=0;n--){var r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null},t.prototype.getElementEntry=function(e){for(var n=this.length-1;n>=0;n--){var r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null};}); var OpenElementStack=open_element_stack; var Tokenizer=index$4; var HTML=html; var $$1=HTML.TAG_NAMES; var assign$1=function(e){function t(t,n){var i=t.__location;if(i)if(i.startTag||(i.startTag={line:i.line,col:i.col,startOffset:i.startOffset,endOffset:i.endOffset},i.attrs&&(i.startTag.attrs=i.attrs)),n.location){var s=n.location,o=r.getTagName(t),T=n.type===Tokenizer.END_TAG_TOKEN&&o===n.tagName;T&&(i.endTag={line:s.line,col:s.col,startOffset:s.startOffset,endOffset:s.endOffset}),i.endOffset=T?s.endOffset:s.startOffset;}else n.type===Tokenizer.EOF_TOKEN&&(i.endOffset=e.tokenizer.preprocessor.sourcePos);}var n=Object.getPrototypeOf(e),r=e.treeAdapter,i=null,s=null,o=null;e._bootstrap=function(r,T){n._bootstrap.call(this,r,T),i=null,s=null,o=null,e.openElements.pop=function(){t(this.current,o),OpenElementStack.prototype.pop.call(this);},e.openElements.popAllUpToHtmlElement=function(){for(var e=this.stackTop;e>0;e--)t(this.items[e],o);OpenElementStack.prototype.popAllUpToHtmlElement.call(this);},e.openElements.remove=function(e){t(e,o),OpenElementStack.prototype.remove.call(this,e);};},e._runParsingLoop=function(r){n._runParsingLoop.call(this,r);for(var i=e.openElements.stackTop;i>=0;i--)t(e.openElements.items[i],o);},e._processTokenInForeignContent=function(e){o=e,n._processTokenInForeignContent.call(this,e);},e._processToken=function(e){if(o=e,n._processToken.call(this,e),e.type===Tokenizer.END_TAG_TOKEN&&(e.tagName===$$1.HTML||e.tagName===$$1.BODY&&this.openElements.hasInScope($$1.BODY)))for(var r=this.openElements.stackTop;r>=0;r--){var i=this.openElements.items[r];if(this.treeAdapter.getTagName(i)===e.tagName){t(i,e);break}}},e._setDocumentType=function(e){n._setDocumentType.call(this,e);for(var t=this.treeAdapter.getChildNodes(this.document),r=t.length,i=0;i-1)return DOCUMENT_MODE.QUIRKS;var r=null===n?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(t,r))return DOCUMENT_MODE.QUIRKS;if(r=null===n?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(t,r))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}; var serializeContent=function(e,t,n){var r="!DOCTYPE ";return e&&(r+=e),null!==t?r+=" PUBLIC "+enquoteDoctypeId(t):null!==n&&(r+=" SYSTEM"),null!==n&&(r+=" "+enquoteDoctypeId(n)),r}; var doctype={getDocumentMode:getDocumentMode,serializeContent:serializeContent}; var foreign_content=createCommonjsModule(function(e,t){function n(e,t){return t===T.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}function r(e,t,n){if(t===T.MATHML&&e===o.ANNOTATION_XML)for(var r=0;r=0;r--){var i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i);}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function r(e,t,n){for(var r=t,s=e.openElements.getCommonAncestor(t),o=0,T=s;T!==n;o++,T=s){s=e.openElements.getCommonAncestor(T);var a=e.activeFormattingElements.getElementEntry(T),E=a&&o>=vt;!a||E?(E&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(T)):(T=i(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(T,r),r=T);}return r}function i(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function s(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===Pt.TEMPLATE&&i===Dt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n);}}function o(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s);}function T(e,i){for(var T,a=0;a0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode());}function I(e,t){e.openElements.pop(),e.insertionMode=yt,e._processToken(t);}function R(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.BODY?(e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=Kt):n===Pt.FRAMESET?(e._insertElement(t,Dt.HTML),e.insertionMode=Jt):n===Pt.BASE||n===Pt.BASEFONT||n===Pt.BGSOUND||n===Pt.LINK||n===Pt.META||n===Pt.NOFRAMES||n===Pt.SCRIPT||n===Pt.STYLE||n===Pt.TEMPLATE||n===Pt.TITLE?(e.openElements.push(e.headElement),f(e,t),e.openElements.remove(e.headElement)):n!==Pt.HEAD&&L(e,t);}function M(e,t){var n=t.tagName;n===Pt.BODY||n===Pt.HTML||n===Pt.BR?L(e,t):n===Pt.TEMPLATE&&O(e,t);}function L(e,t){e._insertFakeElement(Pt.BODY),e.insertionMode=Kt,e._processToken(t);}function P(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t);}function D(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1;}function g(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);}function H(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs));}function k(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Dt.HTML),e.insertionMode=Jt);}function U(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML);}function v(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==Pt.H1&&n!==Pt.H2&&n!==Pt.H3&&n!==Pt.H4&&n!==Pt.H5&&n!==Pt.H6||e.openElements.pop(),e._insertElement(t,Dt.HTML);}function F(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;}function G(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),n||(e.formElement=e.openElements.current));}function B(e,t){e.framesetOk=!1;for(var n=t.tagName,r=e.openElements.stackTop;r>=0;r--){var i=e.openElements.items[r],s=e.treeAdapter.getTagName(i),o=null;if(n===Pt.LI&&s===Pt.LI?o=Pt.LI:n!==Pt.DD&&n!==Pt.DT||s!==Pt.DD&&s!==Pt.DT||(o=s),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(s!==Pt.ADDRESS&&s!==Pt.DIV&&s!==Pt.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML);}function y(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.tokenizer.state=Nt.MODE.PLAINTEXT;}function K(e,t){e.openElements.hasInScope(Pt.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pt.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1;}function b(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Pt.A);n&&(T(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function x(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function Y(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Pt.NOBR)&&(T(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function w(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;}function X(e,t){e.treeAdapter.getDocumentMode(e.document)!==Lt.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=xt;}function Q(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML),e.framesetOk=!1;}function W(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML);var n=Nt.getTokenAttr(t,gt.TYPE);n&&n.toLowerCase()===kt||(e.framesetOk=!1);}function j(e,t){e._appendElement(t,Dt.HTML);}function z(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e.openElements.currentTagName===Pt.MENUITEM&&e.openElements.pop(),e._appendElement(t,Dt.HTML),e.framesetOk=!1;}function V(e,t){t.tagName=Pt.IMG,Q(e,t);}function $(e,t){e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Nt.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=bt;}function q(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Nt.MODE.RAWTEXT);}function J(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Nt.MODE.RAWTEXT);}function Z(e,t){e._switchToTextParsing(t,Nt.MODE.RAWTEXT);}function ee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode===xt||e.insertionMode===wt||e.insertionMode===Qt||e.insertionMode===Wt||e.insertionMode===jt?e.insertionMode=Vt:e.insertionMode=zt;}function te(e,t){e.openElements.currentTagName===Pt.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML);}function ne(e,t){e.openElements.hasInScope(Pt.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Dt.HTML);}function re(e,t){e.openElements.hasInScope(Pt.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Pt.RTC),e._insertElement(t,Dt.HTML);}function ie(e,t){e.openElements.currentTagName===Pt.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML);}function se(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e.openElements.currentTagName===Pt.MENUITEM&&e.openElements.pop(),e._insertElement(t,Dt.HTML);}function oe(e,t){e._reconstructActiveFormattingElements(),It.adjustTokenMathMLAttrs(t),It.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.MATHML):e._insertElement(t,Dt.MATHML);}function Te(e,t){e._reconstructActiveFormattingElements(),It.adjustTokenSVGAttrs(t),It.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.SVG):e._insertElement(t,Dt.SVG);}function ae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML);}function Ee(e,t){var n=t.tagName;switch(n.length){case 1:n===Pt.I||n===Pt.S||n===Pt.B||n===Pt.U?x(e,t):n===Pt.P?U(e,t):n===Pt.A?b(e,t):ae(e,t);break;case 2:n===Pt.DL||n===Pt.OL||n===Pt.UL?U(e,t):n===Pt.H1||n===Pt.H2||n===Pt.H3||n===Pt.H4||n===Pt.H5||n===Pt.H6?v(e,t):n===Pt.LI||n===Pt.DD||n===Pt.DT?B(e,t):n===Pt.EM||n===Pt.TT?x(e,t):n===Pt.BR?Q(e,t):n===Pt.HR?z(e,t):n===Pt.RB?ne(e,t):n===Pt.RT||n===Pt.RP?re(e,t):n!==Pt.TH&&n!==Pt.TD&&n!==Pt.TR&&ae(e,t);break;case 3:n===Pt.DIV||n===Pt.DIR||n===Pt.NAV?U(e,t):n===Pt.PRE?F(e,t):n===Pt.BIG?x(e,t):n===Pt.IMG||n===Pt.WBR?Q(e,t):n===Pt.XMP?q(e,t):n===Pt.SVG?Te(e,t):n===Pt.RTC?ne(e,t):n!==Pt.COL&&ae(e,t);break;case 4:n===Pt.HTML?g(e,t):n===Pt.BASE||n===Pt.LINK||n===Pt.META?f(e,t):n===Pt.BODY?H(e,t):n===Pt.MAIN?U(e,t):n===Pt.FORM?G(e,t):n===Pt.CODE||n===Pt.FONT?x(e,t):n===Pt.NOBR?Y(e,t):n===Pt.AREA?Q(e,t):n===Pt.MATH?oe(e,t):n===Pt.MENU?se(e,t):n!==Pt.HEAD&&ae(e,t);break;case 5:n===Pt.STYLE||n===Pt.TITLE?f(e,t):n===Pt.ASIDE?U(e,t):n===Pt.SMALL?x(e,t):n===Pt.TABLE?X(e,t):n===Pt.EMBED?Q(e,t):n===Pt.INPUT?W(e,t):n===Pt.PARAM||n===Pt.TRACK?j(e,t):n===Pt.IMAGE?V(e,t):n!==Pt.FRAME&&n!==Pt.TBODY&&n!==Pt.TFOOT&&n!==Pt.THEAD&&ae(e,t);break;case 6:n===Pt.SCRIPT?f(e,t):n===Pt.CENTER||n===Pt.FIGURE||n===Pt.FOOTER||n===Pt.HEADER||n===Pt.HGROUP?U(e,t):n===Pt.BUTTON?K(e,t):n===Pt.STRIKE||n===Pt.STRONG?x(e,t):n===Pt.APPLET||n===Pt.OBJECT?w(e,t):n===Pt.KEYGEN?Q(e,t):n===Pt.SOURCE?j(e,t):n===Pt.IFRAME?J(e,t):n===Pt.SELECT?ee(e,t):n===Pt.OPTION?te(e,t):ae(e,t);break;case 7:n===Pt.BGSOUND?f(e,t):n===Pt.DETAILS||n===Pt.ADDRESS||n===Pt.ARTICLE||n===Pt.SECTION||n===Pt.SUMMARY?U(e,t):n===Pt.LISTING?F(e,t):n===Pt.MARQUEE?w(e,t):n===Pt.NOEMBED?Z(e,t):n!==Pt.CAPTION&&ae(e,t);break;case 8:n===Pt.BASEFONT?f(e,t):n===Pt.MENUITEM?ie(e,t):n===Pt.FRAMESET?k(e,t):n===Pt.FIELDSET?U(e,t):n===Pt.TEXTAREA?$(e,t):n===Pt.TEMPLATE?f(e,t):n===Pt.NOSCRIPT?Z(e,t):n===Pt.OPTGROUP?te(e,t):n!==Pt.COLGROUP&&ae(e,t);break;case 9:n===Pt.PLAINTEXT?y(e,t):ae(e,t);break;case 10:n===Pt.BLOCKQUOTE||n===Pt.FIGCAPTION?U(e,t):ae(e,t);break;default:ae(e,t);}}function _e(e){e.openElements.hasInScope(Pt.BODY)&&(e.insertionMode=qt);}function ce(e,t){e.openElements.hasInScope(Pt.BODY)&&(e.insertionMode=qt,e._processToken(t));}function pe(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));}function Ae(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Pt.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Pt.FORM):e.openElements.remove(n));}function he(e){e.openElements.hasInButtonScope(Pt.P)||e._insertFakeElement(Pt.P),e._closePElement();}function le(e){e.openElements.hasInListItemScope(Pt.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Pt.LI),e.openElements.popUntilTagNamePopped(Pt.LI));}function me(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n));}function ue(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());}function Ne(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker());}function Ce(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Pt.BR),e.openElements.pop(),e.framesetOk=!1;}function de(e,t){for(var n=t.tagName,r=e.openElements.stackTop;r>0;r--){var i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Se(e,t){var n=t.tagName;switch(n.length){case 1:n===Pt.A||n===Pt.B||n===Pt.I||n===Pt.S||n===Pt.U?T(e,t):n===Pt.P?he(e,t):de(e,t);break;case 2:n===Pt.DL||n===Pt.UL||n===Pt.OL?pe(e,t):n===Pt.LI?le(e,t):n===Pt.DD||n===Pt.DT?me(e,t):n===Pt.H1||n===Pt.H2||n===Pt.H3||n===Pt.H4||n===Pt.H5||n===Pt.H6?ue(e,t):n===Pt.BR?Ce(e,t):n===Pt.EM||n===Pt.TT?T(e,t):de(e,t);break;case 3:n===Pt.BIG?T(e,t):n===Pt.DIR||n===Pt.DIV||n===Pt.NAV?pe(e,t):de(e,t);break;case 4:n===Pt.BODY?_e(e,t):n===Pt.HTML?ce(e,t):n===Pt.FORM?Ae(e,t):n===Pt.CODE||n===Pt.FONT||n===Pt.NOBR?T(e,t):n===Pt.MAIN||n===Pt.MENU?pe(e,t):de(e,t);break;case 5:n===Pt.ASIDE?pe(e,t):n===Pt.SMALL?T(e,t):de(e,t);break;case 6:n===Pt.CENTER||n===Pt.FIGURE||n===Pt.FOOTER||n===Pt.HEADER||n===Pt.HGROUP?pe(e,t):n===Pt.APPLET||n===Pt.OBJECT?Ne(e,t):n===Pt.STRIKE||n===Pt.STRONG?T(e,t):de(e,t);break;case 7:n===Pt.ADDRESS||n===Pt.ARTICLE||n===Pt.DETAILS||n===Pt.SECTION||n===Pt.SUMMARY?pe(e,t):n===Pt.MARQUEE?Ne(e,t):de(e,t);break;case 8:n===Pt.FIELDSET?pe(e,t):n===Pt.TEMPLATE?O(e,t):de(e,t);break;case 10:n===Pt.BLOCKQUOTE||n===Pt.FIGCAPTION?pe(e,t):de(e,t);break;default:de(e,t);}}function fe(e,t){e.tmplInsertionModeStackTop>-1?rt(e,t):e.stopped=!0;}function Oe(e,t){t.tagName===Pt.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode;}function Ie(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t);}function Re(e,t){var n=e.openElements.currentTagName;n===Pt.TABLE||n===Pt.TBODY||n===Pt.TFOOT||n===Pt.THEAD||n===Pt.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Yt,e._processToken(t)):Ge(e,t);}function Me(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Dt.HTML),e.insertionMode=wt;}function Le(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Xt;}function Pe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Pt.COLGROUP),e.insertionMode=Xt,e._processToken(t);}function De(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Qt;}function ge(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Pt.TBODY),e.insertionMode=Qt,e._processToken(t);}function He(e,t){e.openElements.hasInTableScope(Pt.TABLE)&&(e.openElements.popUntilTagNamePopped(Pt.TABLE),e._resetInsertionMode(),e._processToken(t));}function ke(e,t){var n=Nt.getTokenAttr(t,gt.TYPE);n&&n.toLowerCase()===kt?e._appendElement(t,Dt.HTML):Ge(e,t);}function Ue(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Dt.HTML),e.formElement=e.openElements.current,e.openElements.pop());}function ve(e,t){var n=t.tagName;switch(n.length){case 2:n===Pt.TD||n===Pt.TH||n===Pt.TR?ge(e,t):Ge(e,t);break;case 3:n===Pt.COL?Pe(e,t):Ge(e,t);break;case 4:n===Pt.FORM?Ue(e,t):Ge(e,t);break;case 5:n===Pt.TABLE?He(e,t):n===Pt.STYLE?f(e,t):n===Pt.TBODY||n===Pt.TFOOT||n===Pt.THEAD?De(e,t):n===Pt.INPUT?ke(e,t):Ge(e,t);break;case 6:n===Pt.SCRIPT?f(e,t):Ge(e,t);break;case 7:n===Pt.CAPTION?Me(e,t):Ge(e,t);break;case 8:n===Pt.COLGROUP?Le(e,t):n===Pt.TEMPLATE?f(e,t):Ge(e,t);break;default:Ge(e,t);}}function Fe(e,t){var n=t.tagName;n===Pt.TABLE?e.openElements.hasInTableScope(Pt.TABLE)&&(e.openElements.popUntilTagNamePopped(Pt.TABLE),e._resetInsertionMode()):n===Pt.TEMPLATE?O(e,t):n!==Pt.BODY&&n!==Pt.CAPTION&&n!==Pt.COL&&n!==Pt.COLGROUP&&n!==Pt.HTML&&n!==Pt.TBODY&&n!==Pt.TD&&n!==Pt.TFOOT&&n!==Pt.TH&&n!==Pt.THEAD&&n!==Pt.TR&&Ge(e,t);}function Ge(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n;}function Be(e,t){e.pendingCharacterTokens.push(t);}function ye(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0;}function Ke(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(Pt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0;}function it(e,t){t.tagName===Pt.HTML?Ee(e,t):ot(e,t);}function st(e,t){t.tagName===Pt.HTML?e.fragmentContext||(e.insertionMode=en):ot(e,t);}function ot(e,t){e.insertionMode=Kt,e._processToken(t);}function Tt(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.FRAMESET?e._insertElement(t,Dt.HTML):n===Pt.FRAME?e._appendElement(t,Dt.HTML):n===Pt.NOFRAMES&&f(e,t);}function at(e,t){t.tagName!==Pt.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Pt.FRAMESET||(e.insertionMode=Zt));}function Et(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.NOFRAMES&&f(e,t);}function _t(e,t){t.tagName===Pt.HTML&&(e.insertionMode=tn);}function ct(e,t){t.tagName===Pt.HTML?Ee(e,t):pt(e,t);}function pt(e,t){e.insertionMode=Kt,e._processToken(t);}function At(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.NOFRAMES&&f(e,t);}function ht(e,t){t.chars=Mt.REPLACEMENT_CHARACTER,e._insertCharacters(t);}function lt(e,t){e._insertCharacters(t),e.framesetOk=!1;}function mt(e,t){if(It.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Dt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t);}else{var n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Dt.MATHML?It.adjustTokenMathMLAttrs(t):r===Dt.SVG&&(It.adjustTokenSVGTagName(t),It.adjustTokenSVGAttrs(t)),It.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r);}}function ut(e,t){for(var n=e.openElements.stackTop;n>0;n--){var r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Dt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}var Nt=index$4,Ct=open_element_stack,dt=formatting_element_list,St=parser_mixin,ft=_default,Ot=doctype,It=foreign_content,Rt=merge_options,Mt=unicode,Lt=html,Pt=Lt.TAG_NAMES,Dt=Lt.NAMESPACES,gt=Lt.ATTRS,Ht={locationInfo:!1,treeAdapter:ft},kt="hidden",Ut=8,vt=3,Ft="BEFORE_HTML_MODE",Gt="BEFORE_HEAD_MODE",Bt="IN_HEAD_MODE",yt="AFTER_HEAD_MODE",Kt="IN_BODY_MODE",bt="TEXT_MODE",xt="IN_TABLE_MODE",Yt="IN_TABLE_TEXT_MODE",wt="IN_CAPTION_MODE",Xt="IN_COLUMN_GROUP_MODE",Qt="IN_TABLE_BODY_MODE",Wt="IN_ROW_MODE",jt="IN_CELL_MODE",zt="IN_SELECT_MODE",Vt="IN_SELECT_IN_TABLE_MODE",$t="IN_TEMPLATE_MODE",qt="AFTER_BODY_MODE",Jt="IN_FRAMESET_MODE",Zt="AFTER_FRAMESET_MODE",en="AFTER_AFTER_BODY_MODE",tn="AFTER_AFTER_FRAMESET_MODE",nn=Object.create(null);nn[Pt.TR]=Wt,nn[Pt.TBODY]=nn[Pt.THEAD]=nn[Pt.TFOOT]=Qt,nn[Pt.CAPTION]=wt,nn[Pt.COLGROUP]=Xt,nn[Pt.TABLE]=xt,nn[Pt.BODY]=Kt,nn[Pt.FRAMESET]=Jt;var rn=Object.create(null);rn[Pt.CAPTION]=rn[Pt.COLGROUP]=rn[Pt.TBODY]=rn[Pt.TFOOT]=rn[Pt.THEAD]=xt,rn[Pt.COL]=Xt,rn[Pt.TR]=Qt,rn[Pt.TD]=rn[Pt.TH]=Wt;var sn=Object.create(null);sn.INITIAL_MODE=Object.create(null),sn.INITIAL_MODE[Nt.CHARACTER_TOKEN]=sn.INITIAL_MODE[Nt.NULL_CHARACTER_TOKEN]=l,sn.INITIAL_MODE[Nt.WHITESPACE_CHARACTER_TOKEN]=a,sn.INITIAL_MODE[Nt.COMMENT_TOKEN]=E,sn.INITIAL_MODE[Nt.DOCTYPE_TOKEN]=h,sn.INITIAL_MODE[Nt.START_TAG_TOKEN]=sn.INITIAL_MODE[Nt.END_TAG_TOKEN]=sn.INITIAL_MODE[Nt.EOF_TOKEN]=l,sn[Ft]=Object.create(null),sn[Ft][Nt.CHARACTER_TOKEN]=sn[Ft][Nt.NULL_CHARACTER_TOKEN]=N,sn[Ft][Nt.WHITESPACE_CHARACTER_TOKEN]=a,sn[Ft][Nt.COMMENT_TOKEN]=E,sn[Ft][Nt.DOCTYPE_TOKEN]=a,sn[Ft][Nt.START_TAG_TOKEN]=m,sn[Ft][Nt.END_TAG_TOKEN]=u,sn[Ft][Nt.EOF_TOKEN]=N,sn[Gt]=Object.create(null),sn[Gt][Nt.CHARACTER_TOKEN]=sn[Gt][Nt.NULL_CHARACTER_TOKEN]=S,sn[Gt][Nt.WHITESPACE_CHARACTER_TOKEN]=a,sn[Gt][Nt.COMMENT_TOKEN]=E,sn[Gt][Nt.DOCTYPE_TOKEN]=a,sn[Gt][Nt.START_TAG_TOKEN]=C,sn[Gt][Nt.END_TAG_TOKEN]=d,sn[Gt][Nt.EOF_TOKEN]=S,sn[Bt]=Object.create(null),sn[Bt][Nt.CHARACTER_TOKEN]=sn[Bt][Nt.NULL_CHARACTER_TOKEN]=I,sn[Bt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Bt][Nt.COMMENT_TOKEN]=E,sn[Bt][Nt.DOCTYPE_TOKEN]=a,sn[Bt][Nt.START_TAG_TOKEN]=f,sn[Bt][Nt.END_TAG_TOKEN]=O,sn[Bt][Nt.EOF_TOKEN]=I,sn[yt]=Object.create(null),sn[yt][Nt.CHARACTER_TOKEN]=sn[yt][Nt.NULL_CHARACTER_TOKEN]=L,sn[yt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[yt][Nt.COMMENT_TOKEN]=E,sn[yt][Nt.DOCTYPE_TOKEN]=a,sn[yt][Nt.START_TAG_TOKEN]=R,sn[yt][Nt.END_TAG_TOKEN]=M,sn[yt][Nt.EOF_TOKEN]=L,sn[Kt]=Object.create(null),sn[Kt][Nt.CHARACTER_TOKEN]=D,sn[Kt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Kt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[Kt][Nt.COMMENT_TOKEN]=E,sn[Kt][Nt.DOCTYPE_TOKEN]=a,sn[Kt][Nt.START_TAG_TOKEN]=Ee,sn[Kt][Nt.END_TAG_TOKEN]=Se,sn[Kt][Nt.EOF_TOKEN]=fe,sn[bt]=Object.create(null),sn[bt][Nt.CHARACTER_TOKEN]=sn[bt][Nt.NULL_CHARACTER_TOKEN]=sn[bt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[bt][Nt.COMMENT_TOKEN]=sn[bt][Nt.DOCTYPE_TOKEN]=sn[bt][Nt.START_TAG_TOKEN]=a,sn[bt][Nt.END_TAG_TOKEN]=Oe,sn[bt][Nt.EOF_TOKEN]=Ie,sn[xt]=Object.create(null),sn[xt][Nt.CHARACTER_TOKEN]=sn[xt][Nt.NULL_CHARACTER_TOKEN]=sn[xt][Nt.WHITESPACE_CHARACTER_TOKEN]=Re,sn[xt][Nt.COMMENT_TOKEN]=E,sn[xt][Nt.DOCTYPE_TOKEN]=a,sn[xt][Nt.START_TAG_TOKEN]=ve,sn[xt][Nt.END_TAG_TOKEN]=Fe,sn[xt][Nt.EOF_TOKEN]=fe,sn[Yt]=Object.create(null),sn[Yt][Nt.CHARACTER_TOKEN]=ye,sn[Yt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Yt][Nt.WHITESPACE_CHARACTER_TOKEN]=Be,sn[Yt][Nt.COMMENT_TOKEN]=sn[Yt][Nt.DOCTYPE_TOKEN]=sn[Yt][Nt.START_TAG_TOKEN]=sn[Yt][Nt.END_TAG_TOKEN]=sn[Yt][Nt.EOF_TOKEN]=Ke,sn[wt]=Object.create(null),sn[wt][Nt.CHARACTER_TOKEN]=D,sn[wt][Nt.NULL_CHARACTER_TOKEN]=a,sn[wt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[wt][Nt.COMMENT_TOKEN]=E,sn[wt][Nt.DOCTYPE_TOKEN]=a,sn[wt][Nt.START_TAG_TOKEN]=be,sn[wt][Nt.END_TAG_TOKEN]=xe,sn[wt][Nt.EOF_TOKEN]=fe,sn[Xt]=Object.create(null),sn[Xt][Nt.CHARACTER_TOKEN]=sn[Xt][Nt.NULL_CHARACTER_TOKEN]=Xe,sn[Xt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Xt][Nt.COMMENT_TOKEN]=E,sn[Xt][Nt.DOCTYPE_TOKEN]=a,sn[Xt][Nt.START_TAG_TOKEN]=Ye,sn[Xt][Nt.END_TAG_TOKEN]=we,sn[Xt][Nt.EOF_TOKEN]=fe,sn[Qt]=Object.create(null),sn[Qt][Nt.CHARACTER_TOKEN]=sn[Qt][Nt.NULL_CHARACTER_TOKEN]=sn[Qt][Nt.WHITESPACE_CHARACTER_TOKEN]=Re,sn[Qt][Nt.COMMENT_TOKEN]=E,sn[Qt][Nt.DOCTYPE_TOKEN]=a,sn[Qt][Nt.START_TAG_TOKEN]=Qe,sn[Qt][Nt.END_TAG_TOKEN]=We,sn[Qt][Nt.EOF_TOKEN]=fe,sn[Wt]=Object.create(null),sn[Wt][Nt.CHARACTER_TOKEN]=sn[Wt][Nt.NULL_CHARACTER_TOKEN]=sn[Wt][Nt.WHITESPACE_CHARACTER_TOKEN]=Re,sn[Wt][Nt.COMMENT_TOKEN]=E,sn[Wt][Nt.DOCTYPE_TOKEN]=a,sn[Wt][Nt.START_TAG_TOKEN]=je,sn[Wt][Nt.END_TAG_TOKEN]=ze,sn[Wt][Nt.EOF_TOKEN]=fe,sn[jt]=Object.create(null),sn[jt][Nt.CHARACTER_TOKEN]=D,sn[jt][Nt.NULL_CHARACTER_TOKEN]=a,sn[jt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[jt][Nt.COMMENT_TOKEN]=E,sn[jt][Nt.DOCTYPE_TOKEN]=a,sn[jt][Nt.START_TAG_TOKEN]=Ve,sn[jt][Nt.END_TAG_TOKEN]=$e,sn[jt][Nt.EOF_TOKEN]=fe,sn[zt]=Object.create(null),sn[zt][Nt.CHARACTER_TOKEN]=p,sn[zt][Nt.NULL_CHARACTER_TOKEN]=a,sn[zt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[zt][Nt.COMMENT_TOKEN]=E,sn[zt][Nt.DOCTYPE_TOKEN]=a,sn[zt][Nt.START_TAG_TOKEN]=qe,sn[zt][Nt.END_TAG_TOKEN]=Je,sn[zt][Nt.EOF_TOKEN]=fe,sn[Vt]=Object.create(null),sn[Vt][Nt.CHARACTER_TOKEN]=p,sn[Vt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Vt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Vt][Nt.COMMENT_TOKEN]=E,sn[Vt][Nt.DOCTYPE_TOKEN]=a,sn[Vt][Nt.START_TAG_TOKEN]=Ze,sn[Vt][Nt.END_TAG_TOKEN]=et,sn[Vt][Nt.EOF_TOKEN]=fe,sn[$t]=Object.create(null),sn[$t][Nt.CHARACTER_TOKEN]=D,sn[$t][Nt.NULL_CHARACTER_TOKEN]=a,sn[$t][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[$t][Nt.COMMENT_TOKEN]=E,sn[$t][Nt.DOCTYPE_TOKEN]=a,sn[$t][Nt.START_TAG_TOKEN]=tt,sn[$t][Nt.END_TAG_TOKEN]=nt,sn[$t][Nt.EOF_TOKEN]=rt,sn[qt]=Object.create(null),sn[qt][Nt.CHARACTER_TOKEN]=sn[qt][Nt.NULL_CHARACTER_TOKEN]=ot,sn[qt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[qt][Nt.COMMENT_TOKEN]=_,sn[qt][Nt.DOCTYPE_TOKEN]=a,sn[qt][Nt.START_TAG_TOKEN]=it,sn[qt][Nt.END_TAG_TOKEN]=st,sn[qt][Nt.EOF_TOKEN]=A,sn[Jt]=Object.create(null),sn[Jt][Nt.CHARACTER_TOKEN]=sn[Jt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Jt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Jt][Nt.COMMENT_TOKEN]=E,sn[Jt][Nt.DOCTYPE_TOKEN]=a,sn[Jt][Nt.START_TAG_TOKEN]=Tt,sn[Jt][Nt.END_TAG_TOKEN]=at,sn[Jt][Nt.EOF_TOKEN]=A,sn[Zt]=Object.create(null),sn[Zt][Nt.CHARACTER_TOKEN]=sn[Zt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Zt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Zt][Nt.COMMENT_TOKEN]=E,sn[Zt][Nt.DOCTYPE_TOKEN]=a,sn[Zt][Nt.START_TAG_TOKEN]=Et,sn[Zt][Nt.END_TAG_TOKEN]=_t,sn[Zt][Nt.EOF_TOKEN]=A,sn[en]=Object.create(null),sn[en][Nt.CHARACTER_TOKEN]=pt,sn[en][Nt.NULL_CHARACTER_TOKEN]=pt,sn[en][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[en][Nt.COMMENT_TOKEN]=c,sn[en][Nt.DOCTYPE_TOKEN]=a,sn[en][Nt.START_TAG_TOKEN]=ct,sn[en][Nt.END_TAG_TOKEN]=pt,sn[en][Nt.EOF_TOKEN]=A,sn[tn]=Object.create(null),sn[tn][Nt.CHARACTER_TOKEN]=sn[tn][Nt.NULL_CHARACTER_TOKEN]=a,sn[tn][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[tn][Nt.COMMENT_TOKEN]=c,sn[tn][Nt.DOCTYPE_TOKEN]=a,sn[tn][Nt.START_TAG_TOKEN]=At,sn[tn][Nt.END_TAG_TOKEN]=a,sn[tn][Nt.EOF_TOKEN]=A;var on=e.exports=function(e){this.options=Rt(Ht,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.locationInfo&&St.assign(this);};on.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},on.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(Pt.TEMPLATE,Dt.HTML,[]));var n=this.treeAdapter.createElement("documentmock",Dt.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===Pt.TEMPLATE&&this._pushTmplInsertionMode($t),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i},on.prototype._bootstrap=function(e,t){this.tokenizer=new Nt(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new Ct(this.document,this.treeAdapter),this.activeFormattingElements=new dt(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1;},on.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===Nt.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===Nt.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1);}if(this._processInputToken(t),e&&this.pendingScript)break}},on.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e();},on.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Dt.HTML&&!this._isIntegrationPoint(e);},on.prototype._switchToTextParsing=function(e,t){this._insertElement(e,Dt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=bt;},on.prototype.switchToPlaintextParsing=function(){this.insertionMode=bt,this.originalInsertionMode=Kt,this.tokenizer.state=Nt.MODE.PLAINTEXT;},on.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},on.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Pt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e);}while(e)},on.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Dt.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===Pt.TITLE||e===Pt.TEXTAREA?this.tokenizer.state=Nt.MODE.RCDATA:e===Pt.STYLE||e===Pt.XMP||e===Pt.IFRAME||e===Pt.NOEMBED||e===Pt.NOFRAMES||e===Pt.NOSCRIPT?this.tokenizer.state=Nt.MODE.RAWTEXT:e===Pt.SCRIPT?this.tokenizer.state=Nt.MODE.SCRIPT_DATA:e===Pt.PLAINTEXT&&(this.tokenizer.state=Nt.MODE.PLAINTEXT);}},on.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId);},on.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e);}},on.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n);},on.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n);},on.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,Dt.HTML,[]);this._attachElementToTree(t),this.openElements.push(t);},on.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,Dt.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t);},on.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(Pt.HTML,Dt.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e);},on.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n);},on.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars);}},on.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n);}},on.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===Dt.HTML)return!1;if(this.treeAdapter.getTagName(t)===Pt.ANNOTATION_XML&&n===Dt.MATHML&&e.type===Nt.START_TAG_TOKEN&&e.tagName===Pt.SVG)return!1;var r=e.type===Nt.CHARACTER_TOKEN||e.type===Nt.NULL_CHARACTER_TOKEN||e.type===Nt.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===Nt.START_TAG_TOKEN&&e.tagName!==Pt.MGLYPH&&e.tagName!==Pt.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,Dt.MATHML))&&((e.type!==Nt.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,Dt.HTML))&&e.type!==Nt.EOF_TOKEN)},on.prototype._processToken=function(e){sn[this.insertionMode][e.type](this,e);},on.prototype._processTokenInBodyMode=function(e){sn[Kt][e.type](this,e);},on.prototype._processTokenInForeignContent=function(e){e.type===Nt.CHARACTER_TOKEN?lt(this,e):e.type===Nt.NULL_CHARACTER_TOKEN?ht(this,e):e.type===Nt.WHITESPACE_CHARACTER_TOKEN?p(this,e):e.type===Nt.COMMENT_TOKEN?E(this,e):e.type===Nt.START_TAG_TOKEN?mt(this,e):e.type===Nt.END_TAG_TOKEN&&ut(this,e);},on.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e);},on.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return It.isIntegrationPoint(n,r,i,t)},on.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===dt.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var r=t;r=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var r=this.treeAdapter.getTagName(n),i=nn[r];if(i){this.insertionMode=i;break}if(!(t||r!==Pt.TD&&r!==Pt.TH)){this.insertionMode=jt;break}if(!t&&r===Pt.HEAD){this.insertionMode=Bt;break}if(r===Pt.SELECT){this._resetInsertionModeForSelect(e);break}if(r===Pt.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===Pt.HTML){this.insertionMode=this.headElement?yt:Gt;break}if(t){this.insertionMode=Kt;break}}},on.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n);if(r===Pt.TEMPLATE)break;if(r===Pt.TABLE)return void(this.insertionMode=Vt)}this.insertionMode=zt;},on.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e;},on.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop];},on.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===Pt.TABLE||t===Pt.TBODY||t===Pt.TFOOT||t===Pt.THEAD||t===Pt.TR},on.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},on.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===Pt.TEMPLATE&&i===Dt.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===Pt.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},on.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e);},on.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e);},on.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return Lt.SPECIAL_ELEMENTS[n][t]};}); var index$6=createCommonjsModule(function(e){var t=_default,n=doctype,r=merge_options,i=html,s=i.TAG_NAMES,o=i.NAMESPACES,T={treeAdapter:t},a=/&/g,E=/\u00a0/g,_=/"/g,c=//g,A=e.exports=function(e,t){this.options=r(T,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e;};A.escapeString=function(e,t){return e=e.replace(a,"&").replace(E," "),e=t?e.replace(_,"""):e.replace(c,"<").replace(p,">")},A.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},A.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,r=t.length;n",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var r=t===s.TEMPLATE&&n===o.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(r),this.html+="";}},A.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,r=t.length;n";};}); var htmlparser2=createCommonjsModule(function(e,t){var n=doctype,r=html.DOCUMENT_MODE,i={element:1,text:3,cdata:4,comment:8},s={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o=function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);};o.prototype={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},Object.keys(s).forEach(function(e){var t=s[e];Object.defineProperty(o.prototype,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}});}),t.createDocument=function(){return new o({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":r.NO_QUIRKS})},t.createDocumentFragment=function(){return new o({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},t.createElement=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),s=Object.create(null),T=0;T({type:"attribute",key:t,value:e[t]}))}var require$$0=_interopDefault$1(require$$0); var require$$1=_interopDefault$1(require$$1); var REPLACEMENT_CHARACTER="�"; var CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533}; var CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],CDATA_END_STRING:[93,93,62],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]}; var unicode={REPLACEMENT_CHARACTER:REPLACEMENT_CHARACTER,CODE_POINTS:CODE_POINTS,CODE_POINT_SEQUENCES:CODE_POINT_SEQUENCES}; var preprocessor=createCommonjsModule(function(e){function t(e,t){return e>=55296&&e<=56319&&t>=56320&&t<=57343}function n(e,t){return 1024*(e-55296)+9216+t}var r=unicode.CODE_POINTS,i=e.exports=function(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.droppedBufferSize=0,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536;};Object.defineProperty(i.prototype,"sourcePos",{get:function(){return this.droppedBufferSize+this.pos}}),i.prototype.dropParsedChunk=function(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.droppedBufferSize+=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[]);},i.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos;},i.prototype._processHighRangeCodePoint=function(e){if(this.pos!==this.lastCharPos){var i=this.html.charCodeAt(this.pos+1);t(e,i)&&(this.pos++,e=n(e,i),this._addGap());}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,r.EOF;return e},i.prototype.write=function(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t;},i.prototype.insertHtmlAtCurrentPos=function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1;},i.prototype.advance=function(){if(++this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),r.EOF;var e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===r.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===r.CARRIAGE_RETURN?(this.skipNextNewLine=!0,r.LINE_FEED):(this.skipNextNewLine=!1,e>=55296?this._processHighRangeCodePoint(e):e)},i.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--;};}); var UNICODE=unicode; var $=UNICODE.CODE_POINTS; var assign=function(e){function t(e){e.location={line:s,col:i,startOffset:r,endOffset:-1};}var n=Object.getPrototypeOf(e),r=-1,i=-1,s=1,o=!1,T=0,a=-1,E=1;e._consume=function(){var e=n._consume.call(this);return o&&(o=!1,E++,T=this.preprocessor.sourcePos),e===$.LINE_FEED&&(o=!0),a=this.preprocessor.sourcePos-T+1,e},e._unconsume=function(){n._unconsume.call(this),o=!1,a=this.preprocessor.sourcePos-T+1;},e._createStartTagToken=function(){n._createStartTagToken.call(this),t(this.currentToken);},e._createEndTagToken=function(){n._createEndTagToken.call(this),t(this.currentToken);},e._createCommentToken=function(){n._createCommentToken.call(this),t(this.currentToken);},e._createDoctypeToken=function(e){n._createDoctypeToken.call(this,e),t(this.currentToken);},e._createCharacterToken=function(e,r){n._createCharacterToken.call(this,e,r),t(this.currentCharacterToken);},e._createAttr=function(e){n._createAttr.call(this,e),this.currentAttrLocation={line:E,col:a,startOffset:this.preprocessor.sourcePos,endOffset:-1};},e._leaveAttrName=function(e){n._leaveAttrName.call(this,e),this._attachCurrentAttrLocationInfo();},e._leaveAttrValue=function(e){n._leaveAttrValue.call(this,e),this._attachCurrentAttrLocationInfo();},e._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.preprocessor.sourcePos,this.currentToken.location.attrs||(this.currentToken.location.attrs=Object.create(null)),this.currentToken.location.attrs[this.currentAttr.name]=this.currentAttrLocation;},e._emitCurrentToken=function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=this.preprocessor.sourcePos+1,n._emitCurrentToken.call(this);},e._emitCurrentCharacterToken=function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=this.preprocessor.sourcePos),n._emitCurrentCharacterToken.call(this);},Object.keys(n.MODE).map(function(e){return n.MODE[e]}).forEach(function(t){e[t]=function(e){r=this.preprocessor.sourcePos,s=E,i=a,n[t].call(this,e);};});}; var tokenizer_mixin={assign:assign}; var named_entity_data=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]); var index$4=createCommonjsModule(function(e){function t(e){return e===u.SPACE||e===u.LINE_FEED||e===u.TABULATION||e===u.FORM_FEED}function n(e){return e>=u.DIGIT_0&&e<=u.DIGIT_9}function r(e){return e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_Z}function i(e){return e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_Z}function s(e){return i(e)||r(e)}function o(e){return s(e)||n(e)}function T(e,t){return n(e)||t&&(e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_F||e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_F)}function a(e){return e>=55296&&e<=57343||e>1114111}function E(e){return e+32}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function c(e){return String.fromCharCode(E(e))}function p(e,t){for(var n=m[++e],r=++e,i=r+n-1;r<=i;){var s=r+i>>>1,o=m[s];if(ot))return m[s+n];i=s-1;}}return-1}var A=preprocessor,h=tokenizer_mixin,l=unicode,m=named_entity_data,u=l.CODE_POINTS,N=l.CODE_POINT_SEQUENCES,d={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},C="DATA_STATE",S=e.exports=function(e){this.preprocessor=new A,this.tokenQueue=[],this.allowCDATA=!1,this.state=C,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null,e&&e.locationInfo&&h.assign(this);};S.CHARACTER_TOKEN="CHARACTER_TOKEN",S.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",S.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",S.START_TAG_TOKEN="START_TAG_TOKEN",S.END_TAG_TOKEN="END_TAG_TOKEN",S.COMMENT_TOKEN="COMMENT_TOKEN",S.DOCTYPE_TOKEN="DOCTYPE_TOKEN",S.EOF_TOKEN="EOF_TOKEN",S.HIBERNATION_TOKEN="HIBERNATION_TOKEN",S.MODE=S.prototype.MODE={DATA:C,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},S.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},S.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e);}return this.tokenQueue.shift()},S.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t);},S.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e);},S.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0;},S.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:S.HIBERNATION_TOKEN}),!0}return!1},S.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},S.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat();},S.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume();},S.prototype._reconsumeInState=function(e){this.state=e,this._unconsume();},S.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var r=0,i=!0,s=e.length,o=0,T=t,a=void 0;o0&&(T=this._consume(),r++),T===u.EOF){i=!1;break}if(a=e[o],T!==a&&(n||T!==E(a))){i=!1;break}}return i||this._unconsumeSeveral(r),i},S.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},S.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==N.SCRIPT_STRING.length)return!1;for(var e=0;e-1;){var a=m[T],E=a<7;if(E&&1&a&&(t=2&a?[m[++T],m[++T]]:[m[++T]],n=i,r===u.SEMICOLON)){s=!0;break}if(r=this._consume(),i++,r===u.EOF)break;T=E?4&a?p(T,r):-1:r===a?++T:-1;}if(t){if(!s&&(this._unconsumeSeveral(i-n),e)){var _=this._lookahead();if(_===u.EQUALS_SIGN||o(_))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(i),null},S.prototype._consumeCharacterReference=function(e,n){if(t(e)||e===u.GREATER_THAN_SIGN||e===u.AMPERSAND||e===this.additionalAllowedCp||e===u.EOF)return this._unconsume(),null;if(e===u.NUMBER_SIGN){var r=!1,i=this._lookahead();return i!==u.LATIN_SMALL_X&&i!==u.LATIN_CAPITAL_X||(this._consume(),r=!0),(i=this._lookahead())!==u.EOF&&T(i,r)?[this._consumeNumericEntity(r)]:(this._unconsumeSeveral(r?2:1),null)}return this._unconsume(),this._consumeNamedEntity(n)};var f=S.prototype;f[C]=function(e){this.preprocessor.dropParsedChunk(),e===u.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":e===u.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===u.NULL?this._emitCodePoint(e):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.CHARACTER_REFERENCE_IN_DATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=C);},f.RCDATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":e===u.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state="RCDATA_STATE");},f.RAWTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.SCRIPT_DATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.PLAINTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},f.TAG_OPEN_STATE=function(e){e===u.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===u.SOLIDUS?this.state="END_TAG_OPEN_STATE":s(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===u.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(C));},f.END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===u.GREATER_THAN_SIGN?this.state=C:e===u.EOF?(this._reconsumeInState(C),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE");},f.TAG_NAME_STATE=function(e){t(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===u.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===u.GREATER_THAN_SIGN?(this.state=C,this._emitCurrentToken()):r(e)?this.currentToken.tagName+=c(e):e===u.NULL?this.currentToken.tagName+=l.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(C):this.currentToken.tagName+=_(e);},f.RCDATA_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"));},f.RCDATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"));},f.RCDATA_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this.state=C,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE");}},f.RAWTEXT_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"));},f.RAWTEXT_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"));},f.RAWTEXT_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=C)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE");}},f.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===u.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"));},f.SCRIPT_DATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"));},f.SCRIPT_DATA_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=C)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE");}},f.SCRIPT_DATA_ESCAPE_START_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE");},f.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE");},f.SCRIPT_DATA_ESCAPED_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._reconsumeInState(C):this._emitCodePoint(e);},f.SCRIPT_DATA_ESCAPED_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(C):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(e){e===u.HYPHEN_MINUS?this._emitChar("-"):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===u.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(C):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):s(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"));},f.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"));},f.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=C)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE");}},f.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):r(e)?(this.tempBuff.push(E(e)),this._emitCodePoint(e)):i(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE");},f.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.NULL?this._emitChar(l.REPLACEMENT_CHARACTER):e===u.EOF?this._reconsumeInState(C):this._emitCodePoint(e);},f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(C):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(e){e===u.HYPHEN_MINUS?this._emitChar("-"):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===u.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(l.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(C):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e));},f.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE");},f.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):r(e)?(this.tempBuff.push(E(e)),this._emitCodePoint(e)):i(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE");},f.BEFORE_ATTRIBUTE_NAME_STATE=function(e){t(e)||(e===u.SOLIDUS||e===u.GREATER_THAN_SIGN||e===u.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===u.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")));},f.ATTRIBUTE_NAME_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN||e===u.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===u.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):r(e)?this.currentAttr.name+=c(e):e===u.QUOTATION_MARK||e===u.APOSTROPHE||e===u.LESS_THAN_SIGN?this.currentAttr.name+=_(e):e===u.NULL?this.currentAttr.name+=l.REPLACEMENT_CHARACTER:this.currentAttr.name+=_(e);},f.AFTER_ATTRIBUTE_NAME_STATE=function(e){t(e)||(e===u.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===u.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===u.GREATER_THAN_SIGN?(this.state=C,this._emitCurrentToken()):e===u.EOF?this._reconsumeInState(C):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")));},f.BEFORE_ATTRIBUTE_VALUE_STATE=function(e){t(e)||(e===u.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===u.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"));},f.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(e){e===u.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===u.AMPERSAND?(this.additionalAllowedCp=u.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.NULL?this.currentAttr.value+=l.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(C):this.currentAttr.value+=_(e);},f.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(e){e===u.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===u.AMPERSAND?(this.additionalAllowedCp=u.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.NULL?this.currentAttr.value+=l.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(C):this.currentAttr.value+=_(e);},f.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(e){t(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===u.AMPERSAND?(this.additionalAllowedCp=u.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.GREATER_THAN_SIGN?(this._leaveAttrValue(C),this._emitCurrentToken()):e===u.NULL?this.currentAttr.value+=l.REPLACEMENT_CHARACTER:e===u.QUOTATION_MARK||e===u.APOSTROPHE||e===u.LESS_THAN_SIGN||e===u.EQUALS_SIGN||e===u.GRAVE_ACCENT?this.currentAttr.value+=_(e):e===u.EOF?this._reconsumeInState(C):this.currentAttr.value+=_(e);},f.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n=0;n--)if(this.items[n]===e){t=n;break}return t},o.prototype._isInTemplate=function(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s.HTML},o.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null;},o.prototype.push=function(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++;},o.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement();},o.prototype.replace=function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement();},o.prototype.insertAfter=function(e,t){var n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement();},o.prototype.popUntilTagNamePopped=function(e){for(;this.stackTop>-1;){var t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===s.HTML)break}},o.prototype.popUntilElementPopped=function(e){for(;this.stackTop>-1;){var t=this.current;if(this.pop(),t===e)break}},o.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===s.HTML)break}},o.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===s.HTML)break}},o.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement();},o.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop();},o.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop();},o.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop();},o.prototype.remove=function(e){for(var t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}},o.prototype.tryPeekProperlyNestedBodyElement=function(){var e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null},o.prototype.contains=function(e){return this._indexOf(e)>-1},o.prototype.getCommonAncestor=function(e){var t=this._indexOf(e);return--t>=0?this.items[t]:null},o.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===i.HTML},o.prototype.hasInScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),i=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&i===s.HTML)return!0;if(n(r,i))return!1}return!0},o.prototype.hasNumberedHeaderInScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&r===s.HTML)return!0;if(n(t,r))return!1}return!0},o.prototype.hasInListItemScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&o===s.HTML)return!0;if((r===i.UL||r===i.OL)&&o===s.HTML||n(r,o))return!1}return!0},o.prototype.hasInButtonScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&o===s.HTML)return!0;if(r===i.BUTTON&&o===s.HTML||n(r,o))return!1}return!0},o.prototype.hasInTableScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0},o.prototype.hasTableBodyContextInTableScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===s.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0},o.prototype.hasInSelectScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0},o.prototype.generateImpliedEndTags=function(){for(;t(this.currentTagName);)this.pop();},o.prototype.generateImpliedEndTagsWithExclusion=function(e){for(;t(this.currentTagName)&&this.currentTagName!==e;)this.pop();};}); var formatting_element_list=createCommonjsModule(function(e){var t=e.exports=function(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null;};t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",t.prototype._getNoahArkConditionCandidates=function(e){var n=[];if(this.length>=3)for(var r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e),o=this.length-1;o>=0;o--){var T=this.entries[o];if(T.type===t.MARKER_ENTRY)break;var a=T.element,E=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===i&&this.treeAdapter.getNamespaceURI(a)===s&&E.length===r&&n.push({idx:o,attrs:E});}return n.length<3?[]:n},t.prototype._ensureNoahArkCondition=function(e){var t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){for(var r=this.treeAdapter.getAttrList(e),i=r.length,s=Object.create(null),o=0;o=2;o--)this.entries.splice(t[o].idx,1),this.length--;}},t.prototype.insertMarker=function(){this.entries.push({type:t.MARKER_ENTRY}),this.length++;},t.prototype.pushElement=function(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++;},t.prototype.insertElementAfterBookmark=function(e,n){for(var r=this.length-1;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++;},t.prototype.removeEntry=function(e){for(var t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}},t.prototype.clearToLastMarker=function(){for(;this.length;){var e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}},t.prototype.getElementEntryInScopeWithTagName=function(e){for(var n=this.length-1;n>=0;n--){var r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null},t.prototype.getElementEntry=function(e){for(var n=this.length-1;n>=0;n--){var r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null};}); var OpenElementStack=open_element_stack; var Tokenizer=index$4; var HTML=html; var $$1=HTML.TAG_NAMES; var assign$1=function(e){function t(t,n){var i=t.__location;if(i)if(i.startTag||(i.startTag={line:i.line,col:i.col,startOffset:i.startOffset,endOffset:i.endOffset},i.attrs&&(i.startTag.attrs=i.attrs)),n.location){var s=n.location,o=r.getTagName(t),T=n.type===Tokenizer.END_TAG_TOKEN&&o===n.tagName;T&&(i.endTag={line:s.line,col:s.col,startOffset:s.startOffset,endOffset:s.endOffset}),i.endOffset=T?s.endOffset:s.startOffset;}else n.type===Tokenizer.EOF_TOKEN&&(i.endOffset=e.tokenizer.preprocessor.sourcePos);}var n=Object.getPrototypeOf(e),r=e.treeAdapter,i=null,s=null,o=null;e._bootstrap=function(r,T){n._bootstrap.call(this,r,T),i=null,s=null,o=null,e.openElements.pop=function(){t(this.current,o),OpenElementStack.prototype.pop.call(this);},e.openElements.popAllUpToHtmlElement=function(){for(var e=this.stackTop;e>0;e--)t(this.items[e],o);OpenElementStack.prototype.popAllUpToHtmlElement.call(this);},e.openElements.remove=function(e){t(e,o),OpenElementStack.prototype.remove.call(this,e);};},e._runParsingLoop=function(r){n._runParsingLoop.call(this,r);for(var i=e.openElements.stackTop;i>=0;i--)t(e.openElements.items[i],o);},e._processTokenInForeignContent=function(e){o=e,n._processTokenInForeignContent.call(this,e);},e._processToken=function(e){if(o=e,n._processToken.call(this,e),e.type===Tokenizer.END_TAG_TOKEN&&(e.tagName===$$1.HTML||e.tagName===$$1.BODY&&this.openElements.hasInScope($$1.BODY)))for(var r=this.openElements.stackTop;r>=0;r--){var i=this.openElements.items[r];if(this.treeAdapter.getTagName(i)===e.tagName){t(i,e);break}}},e._setDocumentType=function(e){n._setDocumentType.call(this,e);for(var t=this.treeAdapter.getChildNodes(this.document),r=t.length,i=0;i-1)return DOCUMENT_MODE.QUIRKS;var r=null===n?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(t,r))return DOCUMENT_MODE.QUIRKS;if(r=null===n?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(t,r))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}; var serializeContent=function(e,t,n){var r="!DOCTYPE ";return e&&(r+=e),null!==t?r+=" PUBLIC "+enquoteDoctypeId(t):null!==n&&(r+=" SYSTEM"),null!==n&&(r+=" "+enquoteDoctypeId(n)),r}; var doctype={getDocumentMode:getDocumentMode,serializeContent:serializeContent}; var foreign_content=createCommonjsModule(function(e,t){function n(e,t){return t===T.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}function r(e,t,n){if(t===T.MATHML&&e===o.ANNOTATION_XML)for(var r=0;r=0;r--){var i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i);}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function r(e,t,n){for(var r=t,s=e.openElements.getCommonAncestor(t),o=0,T=s;T!==n;o++,T=s){s=e.openElements.getCommonAncestor(T);var a=e.activeFormattingElements.getElementEntry(T),E=a&&o>=vt;!a||E?(E&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(T)):(T=i(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(T,r),r=T);}return r}function i(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function s(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===Pt.TEMPLATE&&i===Dt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n);}}function o(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s);}function T(e,i){for(var T,a=0;a0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode());}function I(e,t){e.openElements.pop(),e.insertionMode=yt,e._processToken(t);}function R(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.BODY?(e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=bt):n===Pt.FRAMESET?(e._insertElement(t,Dt.HTML),e.insertionMode=Jt):n===Pt.BASE||n===Pt.BASEFONT||n===Pt.BGSOUND||n===Pt.LINK||n===Pt.META||n===Pt.NOFRAMES||n===Pt.SCRIPT||n===Pt.STYLE||n===Pt.TEMPLATE||n===Pt.TITLE?(e.openElements.push(e.headElement),f(e,t),e.openElements.remove(e.headElement)):n!==Pt.HEAD&&L(e,t);}function M(e,t){var n=t.tagName;n===Pt.BODY||n===Pt.HTML||n===Pt.BR?L(e,t):n===Pt.TEMPLATE&&O(e,t);}function L(e,t){e._insertFakeElement(Pt.BODY),e.insertionMode=bt,e._processToken(t);}function P(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t);}function D(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1;}function g(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);}function H(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs));}function k(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Dt.HTML),e.insertionMode=Jt);}function U(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML);}function v(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==Pt.H1&&n!==Pt.H2&&n!==Pt.H3&&n!==Pt.H4&&n!==Pt.H5&&n!==Pt.H6||e.openElements.pop(),e._insertElement(t,Dt.HTML);}function F(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;}function G(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),n||(e.formElement=e.openElements.current));}function B(e,t){e.framesetOk=!1;for(var n=t.tagName,r=e.openElements.stackTop;r>=0;r--){var i=e.openElements.items[r],s=e.treeAdapter.getTagName(i),o=null;if(n===Pt.LI&&s===Pt.LI?o=Pt.LI:n!==Pt.DD&&n!==Pt.DT||s!==Pt.DD&&s!==Pt.DT||(o=s),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(s!==Pt.ADDRESS&&s!==Pt.DIV&&s!==Pt.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML);}function y(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.tokenizer.state=Nt.MODE.PLAINTEXT;}function b(e,t){e.openElements.hasInScope(Pt.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Pt.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1;}function K(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Pt.A);n&&(T(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function x(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function Y(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Pt.NOBR)&&(T(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function w(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;}function X(e,t){e.treeAdapter.getDocumentMode(e.document)!==Lt.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=xt;}function Q(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML),e.framesetOk=!1;}function W(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML);var n=Nt.getTokenAttr(t,gt.TYPE);n&&n.toLowerCase()===kt||(e.framesetOk=!1);}function j(e,t){e._appendElement(t,Dt.HTML);}function z(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e.openElements.currentTagName===Pt.MENUITEM&&e.openElements.pop(),e._appendElement(t,Dt.HTML),e.framesetOk=!1;}function V(e,t){t.tagName=Pt.IMG,Q(e,t);}function $(e,t){e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Nt.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Kt;}function q(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Nt.MODE.RAWTEXT);}function J(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Nt.MODE.RAWTEXT);}function Z(e,t){e._switchToTextParsing(t,Nt.MODE.RAWTEXT);}function ee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode===xt||e.insertionMode===wt||e.insertionMode===Qt||e.insertionMode===Wt||e.insertionMode===jt?e.insertionMode=Vt:e.insertionMode=zt;}function te(e,t){e.openElements.currentTagName===Pt.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML);}function ne(e,t){e.openElements.hasInScope(Pt.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Dt.HTML);}function re(e,t){e.openElements.hasInScope(Pt.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Pt.RTC),e._insertElement(t,Dt.HTML);}function ie(e,t){e.openElements.currentTagName===Pt.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML);}function se(e,t){e.openElements.hasInButtonScope(Pt.P)&&e._closePElement(),e.openElements.currentTagName===Pt.MENUITEM&&e.openElements.pop(),e._insertElement(t,Dt.HTML);}function oe(e,t){e._reconstructActiveFormattingElements(),It.adjustTokenMathMLAttrs(t),It.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.MATHML):e._insertElement(t,Dt.MATHML);}function Te(e,t){e._reconstructActiveFormattingElements(),It.adjustTokenSVGAttrs(t),It.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.SVG):e._insertElement(t,Dt.SVG);}function ae(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML);}function Ee(e,t){var n=t.tagName;switch(n.length){case 1:n===Pt.I||n===Pt.S||n===Pt.B||n===Pt.U?x(e,t):n===Pt.P?U(e,t):n===Pt.A?K(e,t):ae(e,t);break;case 2:n===Pt.DL||n===Pt.OL||n===Pt.UL?U(e,t):n===Pt.H1||n===Pt.H2||n===Pt.H3||n===Pt.H4||n===Pt.H5||n===Pt.H6?v(e,t):n===Pt.LI||n===Pt.DD||n===Pt.DT?B(e,t):n===Pt.EM||n===Pt.TT?x(e,t):n===Pt.BR?Q(e,t):n===Pt.HR?z(e,t):n===Pt.RB?ne(e,t):n===Pt.RT||n===Pt.RP?re(e,t):n!==Pt.TH&&n!==Pt.TD&&n!==Pt.TR&&ae(e,t);break;case 3:n===Pt.DIV||n===Pt.DIR||n===Pt.NAV?U(e,t):n===Pt.PRE?F(e,t):n===Pt.BIG?x(e,t):n===Pt.IMG||n===Pt.WBR?Q(e,t):n===Pt.XMP?q(e,t):n===Pt.SVG?Te(e,t):n===Pt.RTC?ne(e,t):n!==Pt.COL&&ae(e,t);break;case 4:n===Pt.HTML?g(e,t):n===Pt.BASE||n===Pt.LINK||n===Pt.META?f(e,t):n===Pt.BODY?H(e,t):n===Pt.MAIN?U(e,t):n===Pt.FORM?G(e,t):n===Pt.CODE||n===Pt.FONT?x(e,t):n===Pt.NOBR?Y(e,t):n===Pt.AREA?Q(e,t):n===Pt.MATH?oe(e,t):n===Pt.MENU?se(e,t):n!==Pt.HEAD&&ae(e,t);break;case 5:n===Pt.STYLE||n===Pt.TITLE?f(e,t):n===Pt.ASIDE?U(e,t):n===Pt.SMALL?x(e,t):n===Pt.TABLE?X(e,t):n===Pt.EMBED?Q(e,t):n===Pt.INPUT?W(e,t):n===Pt.PARAM||n===Pt.TRACK?j(e,t):n===Pt.IMAGE?V(e,t):n!==Pt.FRAME&&n!==Pt.TBODY&&n!==Pt.TFOOT&&n!==Pt.THEAD&&ae(e,t);break;case 6:n===Pt.SCRIPT?f(e,t):n===Pt.CENTER||n===Pt.FIGURE||n===Pt.FOOTER||n===Pt.HEADER||n===Pt.HGROUP?U(e,t):n===Pt.BUTTON?b(e,t):n===Pt.STRIKE||n===Pt.STRONG?x(e,t):n===Pt.APPLET||n===Pt.OBJECT?w(e,t):n===Pt.KEYGEN?Q(e,t):n===Pt.SOURCE?j(e,t):n===Pt.IFRAME?J(e,t):n===Pt.SELECT?ee(e,t):n===Pt.OPTION?te(e,t):ae(e,t);break;case 7:n===Pt.BGSOUND?f(e,t):n===Pt.DETAILS||n===Pt.ADDRESS||n===Pt.ARTICLE||n===Pt.SECTION||n===Pt.SUMMARY?U(e,t):n===Pt.LISTING?F(e,t):n===Pt.MARQUEE?w(e,t):n===Pt.NOEMBED?Z(e,t):n!==Pt.CAPTION&&ae(e,t);break;case 8:n===Pt.BASEFONT?f(e,t):n===Pt.MENUITEM?ie(e,t):n===Pt.FRAMESET?k(e,t):n===Pt.FIELDSET?U(e,t):n===Pt.TEXTAREA?$(e,t):n===Pt.TEMPLATE?f(e,t):n===Pt.NOSCRIPT?Z(e,t):n===Pt.OPTGROUP?te(e,t):n!==Pt.COLGROUP&&ae(e,t);break;case 9:n===Pt.PLAINTEXT?y(e,t):ae(e,t);break;case 10:n===Pt.BLOCKQUOTE||n===Pt.FIGCAPTION?U(e,t):ae(e,t);break;default:ae(e,t);}}function _e(e){e.openElements.hasInScope(Pt.BODY)&&(e.insertionMode=qt);}function ce(e,t){e.openElements.hasInScope(Pt.BODY)&&(e.insertionMode=qt,e._processToken(t));}function pe(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));}function Ae(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Pt.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Pt.FORM):e.openElements.remove(n));}function he(e){e.openElements.hasInButtonScope(Pt.P)||e._insertFakeElement(Pt.P),e._closePElement();}function le(e){e.openElements.hasInListItemScope(Pt.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Pt.LI),e.openElements.popUntilTagNamePopped(Pt.LI));}function me(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n));}function ue(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());}function Ne(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker());}function de(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Pt.BR),e.openElements.pop(),e.framesetOk=!1;}function Ce(e,t){for(var n=t.tagName,r=e.openElements.stackTop;r>0;r--){var i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Se(e,t){var n=t.tagName;switch(n.length){case 1:n===Pt.A||n===Pt.B||n===Pt.I||n===Pt.S||n===Pt.U?T(e,t):n===Pt.P?he(e,t):Ce(e,t);break;case 2:n===Pt.DL||n===Pt.UL||n===Pt.OL?pe(e,t):n===Pt.LI?le(e,t):n===Pt.DD||n===Pt.DT?me(e,t):n===Pt.H1||n===Pt.H2||n===Pt.H3||n===Pt.H4||n===Pt.H5||n===Pt.H6?ue(e,t):n===Pt.BR?de(e,t):n===Pt.EM||n===Pt.TT?T(e,t):Ce(e,t);break;case 3:n===Pt.BIG?T(e,t):n===Pt.DIR||n===Pt.DIV||n===Pt.NAV?pe(e,t):Ce(e,t);break;case 4:n===Pt.BODY?_e(e,t):n===Pt.HTML?ce(e,t):n===Pt.FORM?Ae(e,t):n===Pt.CODE||n===Pt.FONT||n===Pt.NOBR?T(e,t):n===Pt.MAIN||n===Pt.MENU?pe(e,t):Ce(e,t);break;case 5:n===Pt.ASIDE?pe(e,t):n===Pt.SMALL?T(e,t):Ce(e,t);break;case 6:n===Pt.CENTER||n===Pt.FIGURE||n===Pt.FOOTER||n===Pt.HEADER||n===Pt.HGROUP?pe(e,t):n===Pt.APPLET||n===Pt.OBJECT?Ne(e,t):n===Pt.STRIKE||n===Pt.STRONG?T(e,t):Ce(e,t);break;case 7:n===Pt.ADDRESS||n===Pt.ARTICLE||n===Pt.DETAILS||n===Pt.SECTION||n===Pt.SUMMARY?pe(e,t):n===Pt.MARQUEE?Ne(e,t):Ce(e,t);break;case 8:n===Pt.FIELDSET?pe(e,t):n===Pt.TEMPLATE?O(e,t):Ce(e,t);break;case 10:n===Pt.BLOCKQUOTE||n===Pt.FIGCAPTION?pe(e,t):Ce(e,t);break;default:Ce(e,t);}}function fe(e,t){e.tmplInsertionModeStackTop>-1?rt(e,t):e.stopped=!0;}function Oe(e,t){t.tagName===Pt.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode;}function Ie(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t);}function Re(e,t){var n=e.openElements.currentTagName;n===Pt.TABLE||n===Pt.TBODY||n===Pt.TFOOT||n===Pt.THEAD||n===Pt.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Yt,e._processToken(t)):Ge(e,t);}function Me(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Dt.HTML),e.insertionMode=wt;}function Le(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Xt;}function Pe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Pt.COLGROUP),e.insertionMode=Xt,e._processToken(t);}function De(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Qt;}function ge(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Pt.TBODY),e.insertionMode=Qt,e._processToken(t);}function He(e,t){e.openElements.hasInTableScope(Pt.TABLE)&&(e.openElements.popUntilTagNamePopped(Pt.TABLE),e._resetInsertionMode(),e._processToken(t));}function ke(e,t){var n=Nt.getTokenAttr(t,gt.TYPE);n&&n.toLowerCase()===kt?e._appendElement(t,Dt.HTML):Ge(e,t);}function Ue(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Dt.HTML),e.formElement=e.openElements.current,e.openElements.pop());}function ve(e,t){var n=t.tagName;switch(n.length){case 2:n===Pt.TD||n===Pt.TH||n===Pt.TR?ge(e,t):Ge(e,t);break;case 3:n===Pt.COL?Pe(e,t):Ge(e,t);break;case 4:n===Pt.FORM?Ue(e,t):Ge(e,t);break;case 5:n===Pt.TABLE?He(e,t):n===Pt.STYLE?f(e,t):n===Pt.TBODY||n===Pt.TFOOT||n===Pt.THEAD?De(e,t):n===Pt.INPUT?ke(e,t):Ge(e,t);break;case 6:n===Pt.SCRIPT?f(e,t):Ge(e,t);break;case 7:n===Pt.CAPTION?Me(e,t):Ge(e,t);break;case 8:n===Pt.COLGROUP?Le(e,t):n===Pt.TEMPLATE?f(e,t):Ge(e,t);break;default:Ge(e,t);}}function Fe(e,t){var n=t.tagName;n===Pt.TABLE?e.openElements.hasInTableScope(Pt.TABLE)&&(e.openElements.popUntilTagNamePopped(Pt.TABLE),e._resetInsertionMode()):n===Pt.TEMPLATE?O(e,t):n!==Pt.BODY&&n!==Pt.CAPTION&&n!==Pt.COL&&n!==Pt.COLGROUP&&n!==Pt.HTML&&n!==Pt.TBODY&&n!==Pt.TD&&n!==Pt.TFOOT&&n!==Pt.TH&&n!==Pt.THEAD&&n!==Pt.TR&&Ge(e,t);}function Ge(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n;}function Be(e,t){e.pendingCharacterTokens.push(t);}function ye(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0;}function be(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(Pt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0;}function it(e,t){t.tagName===Pt.HTML?Ee(e,t):ot(e,t);}function st(e,t){t.tagName===Pt.HTML?e.fragmentContext||(e.insertionMode=en):ot(e,t);}function ot(e,t){e.insertionMode=bt,e._processToken(t);}function Tt(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.FRAMESET?e._insertElement(t,Dt.HTML):n===Pt.FRAME?e._appendElement(t,Dt.HTML):n===Pt.NOFRAMES&&f(e,t);}function at(e,t){t.tagName!==Pt.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Pt.FRAMESET||(e.insertionMode=Zt));}function Et(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.NOFRAMES&&f(e,t);}function _t(e,t){t.tagName===Pt.HTML&&(e.insertionMode=tn);}function ct(e,t){t.tagName===Pt.HTML?Ee(e,t):pt(e,t);}function pt(e,t){e.insertionMode=bt,e._processToken(t);}function At(e,t){var n=t.tagName;n===Pt.HTML?Ee(e,t):n===Pt.NOFRAMES&&f(e,t);}function ht(e,t){t.chars=Mt.REPLACEMENT_CHARACTER,e._insertCharacters(t);}function lt(e,t){e._insertCharacters(t),e.framesetOk=!1;}function mt(e,t){if(It.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Dt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t);}else{var n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Dt.MATHML?It.adjustTokenMathMLAttrs(t):r===Dt.SVG&&(It.adjustTokenSVGTagName(t),It.adjustTokenSVGAttrs(t)),It.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r);}}function ut(e,t){for(var n=e.openElements.stackTop;n>0;n--){var r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Dt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}var Nt=index$4,dt=open_element_stack,Ct=formatting_element_list,St=parser_mixin,ft=_default,Ot=doctype,It=foreign_content,Rt=merge_options,Mt=unicode,Lt=html,Pt=Lt.TAG_NAMES,Dt=Lt.NAMESPACES,gt=Lt.ATTRS,Ht={locationInfo:!1,treeAdapter:ft},kt="hidden",Ut=8,vt=3,Ft="BEFORE_HTML_MODE",Gt="BEFORE_HEAD_MODE",Bt="IN_HEAD_MODE",yt="AFTER_HEAD_MODE",bt="IN_BODY_MODE",Kt="TEXT_MODE",xt="IN_TABLE_MODE",Yt="IN_TABLE_TEXT_MODE",wt="IN_CAPTION_MODE",Xt="IN_COLUMN_GROUP_MODE",Qt="IN_TABLE_BODY_MODE",Wt="IN_ROW_MODE",jt="IN_CELL_MODE",zt="IN_SELECT_MODE",Vt="IN_SELECT_IN_TABLE_MODE",$t="IN_TEMPLATE_MODE",qt="AFTER_BODY_MODE",Jt="IN_FRAMESET_MODE",Zt="AFTER_FRAMESET_MODE",en="AFTER_AFTER_BODY_MODE",tn="AFTER_AFTER_FRAMESET_MODE",nn=Object.create(null);nn[Pt.TR]=Wt,nn[Pt.TBODY]=nn[Pt.THEAD]=nn[Pt.TFOOT]=Qt,nn[Pt.CAPTION]=wt,nn[Pt.COLGROUP]=Xt,nn[Pt.TABLE]=xt,nn[Pt.BODY]=bt,nn[Pt.FRAMESET]=Jt;var rn=Object.create(null);rn[Pt.CAPTION]=rn[Pt.COLGROUP]=rn[Pt.TBODY]=rn[Pt.TFOOT]=rn[Pt.THEAD]=xt,rn[Pt.COL]=Xt,rn[Pt.TR]=Qt,rn[Pt.TD]=rn[Pt.TH]=Wt;var sn=Object.create(null);sn.INITIAL_MODE=Object.create(null),sn.INITIAL_MODE[Nt.CHARACTER_TOKEN]=sn.INITIAL_MODE[Nt.NULL_CHARACTER_TOKEN]=l,sn.INITIAL_MODE[Nt.WHITESPACE_CHARACTER_TOKEN]=a,sn.INITIAL_MODE[Nt.COMMENT_TOKEN]=E,sn.INITIAL_MODE[Nt.DOCTYPE_TOKEN]=h,sn.INITIAL_MODE[Nt.START_TAG_TOKEN]=sn.INITIAL_MODE[Nt.END_TAG_TOKEN]=sn.INITIAL_MODE[Nt.EOF_TOKEN]=l,sn[Ft]=Object.create(null),sn[Ft][Nt.CHARACTER_TOKEN]=sn[Ft][Nt.NULL_CHARACTER_TOKEN]=N,sn[Ft][Nt.WHITESPACE_CHARACTER_TOKEN]=a,sn[Ft][Nt.COMMENT_TOKEN]=E,sn[Ft][Nt.DOCTYPE_TOKEN]=a,sn[Ft][Nt.START_TAG_TOKEN]=m,sn[Ft][Nt.END_TAG_TOKEN]=u,sn[Ft][Nt.EOF_TOKEN]=N,sn[Gt]=Object.create(null),sn[Gt][Nt.CHARACTER_TOKEN]=sn[Gt][Nt.NULL_CHARACTER_TOKEN]=S,sn[Gt][Nt.WHITESPACE_CHARACTER_TOKEN]=a,sn[Gt][Nt.COMMENT_TOKEN]=E,sn[Gt][Nt.DOCTYPE_TOKEN]=a,sn[Gt][Nt.START_TAG_TOKEN]=d,sn[Gt][Nt.END_TAG_TOKEN]=C,sn[Gt][Nt.EOF_TOKEN]=S,sn[Bt]=Object.create(null),sn[Bt][Nt.CHARACTER_TOKEN]=sn[Bt][Nt.NULL_CHARACTER_TOKEN]=I,sn[Bt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Bt][Nt.COMMENT_TOKEN]=E,sn[Bt][Nt.DOCTYPE_TOKEN]=a,sn[Bt][Nt.START_TAG_TOKEN]=f,sn[Bt][Nt.END_TAG_TOKEN]=O,sn[Bt][Nt.EOF_TOKEN]=I,sn[yt]=Object.create(null),sn[yt][Nt.CHARACTER_TOKEN]=sn[yt][Nt.NULL_CHARACTER_TOKEN]=L,sn[yt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[yt][Nt.COMMENT_TOKEN]=E,sn[yt][Nt.DOCTYPE_TOKEN]=a,sn[yt][Nt.START_TAG_TOKEN]=R,sn[yt][Nt.END_TAG_TOKEN]=M,sn[yt][Nt.EOF_TOKEN]=L,sn[bt]=Object.create(null),sn[bt][Nt.CHARACTER_TOKEN]=D,sn[bt][Nt.NULL_CHARACTER_TOKEN]=a,sn[bt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[bt][Nt.COMMENT_TOKEN]=E,sn[bt][Nt.DOCTYPE_TOKEN]=a,sn[bt][Nt.START_TAG_TOKEN]=Ee,sn[bt][Nt.END_TAG_TOKEN]=Se,sn[bt][Nt.EOF_TOKEN]=fe,sn[Kt]=Object.create(null),sn[Kt][Nt.CHARACTER_TOKEN]=sn[Kt][Nt.NULL_CHARACTER_TOKEN]=sn[Kt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Kt][Nt.COMMENT_TOKEN]=sn[Kt][Nt.DOCTYPE_TOKEN]=sn[Kt][Nt.START_TAG_TOKEN]=a,sn[Kt][Nt.END_TAG_TOKEN]=Oe,sn[Kt][Nt.EOF_TOKEN]=Ie,sn[xt]=Object.create(null),sn[xt][Nt.CHARACTER_TOKEN]=sn[xt][Nt.NULL_CHARACTER_TOKEN]=sn[xt][Nt.WHITESPACE_CHARACTER_TOKEN]=Re,sn[xt][Nt.COMMENT_TOKEN]=E,sn[xt][Nt.DOCTYPE_TOKEN]=a,sn[xt][Nt.START_TAG_TOKEN]=ve,sn[xt][Nt.END_TAG_TOKEN]=Fe,sn[xt][Nt.EOF_TOKEN]=fe,sn[Yt]=Object.create(null),sn[Yt][Nt.CHARACTER_TOKEN]=ye,sn[Yt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Yt][Nt.WHITESPACE_CHARACTER_TOKEN]=Be,sn[Yt][Nt.COMMENT_TOKEN]=sn[Yt][Nt.DOCTYPE_TOKEN]=sn[Yt][Nt.START_TAG_TOKEN]=sn[Yt][Nt.END_TAG_TOKEN]=sn[Yt][Nt.EOF_TOKEN]=be,sn[wt]=Object.create(null),sn[wt][Nt.CHARACTER_TOKEN]=D,sn[wt][Nt.NULL_CHARACTER_TOKEN]=a,sn[wt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[wt][Nt.COMMENT_TOKEN]=E,sn[wt][Nt.DOCTYPE_TOKEN]=a,sn[wt][Nt.START_TAG_TOKEN]=Ke,sn[wt][Nt.END_TAG_TOKEN]=xe,sn[wt][Nt.EOF_TOKEN]=fe,sn[Xt]=Object.create(null),sn[Xt][Nt.CHARACTER_TOKEN]=sn[Xt][Nt.NULL_CHARACTER_TOKEN]=Xe,sn[Xt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Xt][Nt.COMMENT_TOKEN]=E,sn[Xt][Nt.DOCTYPE_TOKEN]=a,sn[Xt][Nt.START_TAG_TOKEN]=Ye,sn[Xt][Nt.END_TAG_TOKEN]=we,sn[Xt][Nt.EOF_TOKEN]=fe,sn[Qt]=Object.create(null),sn[Qt][Nt.CHARACTER_TOKEN]=sn[Qt][Nt.NULL_CHARACTER_TOKEN]=sn[Qt][Nt.WHITESPACE_CHARACTER_TOKEN]=Re,sn[Qt][Nt.COMMENT_TOKEN]=E,sn[Qt][Nt.DOCTYPE_TOKEN]=a,sn[Qt][Nt.START_TAG_TOKEN]=Qe,sn[Qt][Nt.END_TAG_TOKEN]=We,sn[Qt][Nt.EOF_TOKEN]=fe,sn[Wt]=Object.create(null),sn[Wt][Nt.CHARACTER_TOKEN]=sn[Wt][Nt.NULL_CHARACTER_TOKEN]=sn[Wt][Nt.WHITESPACE_CHARACTER_TOKEN]=Re,sn[Wt][Nt.COMMENT_TOKEN]=E,sn[Wt][Nt.DOCTYPE_TOKEN]=a,sn[Wt][Nt.START_TAG_TOKEN]=je,sn[Wt][Nt.END_TAG_TOKEN]=ze,sn[Wt][Nt.EOF_TOKEN]=fe,sn[jt]=Object.create(null),sn[jt][Nt.CHARACTER_TOKEN]=D,sn[jt][Nt.NULL_CHARACTER_TOKEN]=a,sn[jt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[jt][Nt.COMMENT_TOKEN]=E,sn[jt][Nt.DOCTYPE_TOKEN]=a,sn[jt][Nt.START_TAG_TOKEN]=Ve,sn[jt][Nt.END_TAG_TOKEN]=$e,sn[jt][Nt.EOF_TOKEN]=fe,sn[zt]=Object.create(null),sn[zt][Nt.CHARACTER_TOKEN]=p,sn[zt][Nt.NULL_CHARACTER_TOKEN]=a,sn[zt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[zt][Nt.COMMENT_TOKEN]=E,sn[zt][Nt.DOCTYPE_TOKEN]=a,sn[zt][Nt.START_TAG_TOKEN]=qe,sn[zt][Nt.END_TAG_TOKEN]=Je,sn[zt][Nt.EOF_TOKEN]=fe,sn[Vt]=Object.create(null),sn[Vt][Nt.CHARACTER_TOKEN]=p,sn[Vt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Vt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Vt][Nt.COMMENT_TOKEN]=E,sn[Vt][Nt.DOCTYPE_TOKEN]=a,sn[Vt][Nt.START_TAG_TOKEN]=Ze,sn[Vt][Nt.END_TAG_TOKEN]=et,sn[Vt][Nt.EOF_TOKEN]=fe,sn[$t]=Object.create(null),sn[$t][Nt.CHARACTER_TOKEN]=D,sn[$t][Nt.NULL_CHARACTER_TOKEN]=a,sn[$t][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[$t][Nt.COMMENT_TOKEN]=E,sn[$t][Nt.DOCTYPE_TOKEN]=a,sn[$t][Nt.START_TAG_TOKEN]=tt,sn[$t][Nt.END_TAG_TOKEN]=nt,sn[$t][Nt.EOF_TOKEN]=rt,sn[qt]=Object.create(null),sn[qt][Nt.CHARACTER_TOKEN]=sn[qt][Nt.NULL_CHARACTER_TOKEN]=ot,sn[qt][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[qt][Nt.COMMENT_TOKEN]=_,sn[qt][Nt.DOCTYPE_TOKEN]=a,sn[qt][Nt.START_TAG_TOKEN]=it,sn[qt][Nt.END_TAG_TOKEN]=st,sn[qt][Nt.EOF_TOKEN]=A,sn[Jt]=Object.create(null),sn[Jt][Nt.CHARACTER_TOKEN]=sn[Jt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Jt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Jt][Nt.COMMENT_TOKEN]=E,sn[Jt][Nt.DOCTYPE_TOKEN]=a,sn[Jt][Nt.START_TAG_TOKEN]=Tt,sn[Jt][Nt.END_TAG_TOKEN]=at,sn[Jt][Nt.EOF_TOKEN]=A,sn[Zt]=Object.create(null),sn[Zt][Nt.CHARACTER_TOKEN]=sn[Zt][Nt.NULL_CHARACTER_TOKEN]=a,sn[Zt][Nt.WHITESPACE_CHARACTER_TOKEN]=p,sn[Zt][Nt.COMMENT_TOKEN]=E,sn[Zt][Nt.DOCTYPE_TOKEN]=a,sn[Zt][Nt.START_TAG_TOKEN]=Et,sn[Zt][Nt.END_TAG_TOKEN]=_t,sn[Zt][Nt.EOF_TOKEN]=A,sn[en]=Object.create(null),sn[en][Nt.CHARACTER_TOKEN]=pt,sn[en][Nt.NULL_CHARACTER_TOKEN]=pt,sn[en][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[en][Nt.COMMENT_TOKEN]=c,sn[en][Nt.DOCTYPE_TOKEN]=a,sn[en][Nt.START_TAG_TOKEN]=ct,sn[en][Nt.END_TAG_TOKEN]=pt,sn[en][Nt.EOF_TOKEN]=A,sn[tn]=Object.create(null),sn[tn][Nt.CHARACTER_TOKEN]=sn[tn][Nt.NULL_CHARACTER_TOKEN]=a,sn[tn][Nt.WHITESPACE_CHARACTER_TOKEN]=P,sn[tn][Nt.COMMENT_TOKEN]=c,sn[tn][Nt.DOCTYPE_TOKEN]=a,sn[tn][Nt.START_TAG_TOKEN]=At,sn[tn][Nt.END_TAG_TOKEN]=a,sn[tn][Nt.EOF_TOKEN]=A;var on=e.exports=function(e){this.options=Rt(Ht,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.locationInfo&&St.assign(this);};on.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},on.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(Pt.TEMPLATE,Dt.HTML,[]));var n=this.treeAdapter.createElement("documentmock",Dt.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===Pt.TEMPLATE&&this._pushTmplInsertionMode($t),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i},on.prototype._bootstrap=function(e,t){this.tokenizer=new Nt(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new dt(this.document,this.treeAdapter),this.activeFormattingElements=new Ct(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1;},on.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===Nt.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===Nt.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1);}if(this._processInputToken(t),e&&this.pendingScript)break}},on.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e();},on.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Dt.HTML&&!this._isIntegrationPoint(e);},on.prototype._switchToTextParsing=function(e,t){this._insertElement(e,Dt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Kt;},on.prototype.switchToPlaintextParsing=function(){this.insertionMode=Kt,this.originalInsertionMode=bt,this.tokenizer.state=Nt.MODE.PLAINTEXT;},on.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},on.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Pt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e);}while(e)},on.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Dt.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===Pt.TITLE||e===Pt.TEXTAREA?this.tokenizer.state=Nt.MODE.RCDATA:e===Pt.STYLE||e===Pt.XMP||e===Pt.IFRAME||e===Pt.NOEMBED||e===Pt.NOFRAMES||e===Pt.NOSCRIPT?this.tokenizer.state=Nt.MODE.RAWTEXT:e===Pt.SCRIPT?this.tokenizer.state=Nt.MODE.SCRIPT_DATA:e===Pt.PLAINTEXT&&(this.tokenizer.state=Nt.MODE.PLAINTEXT);}},on.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId);},on.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e);}},on.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n);},on.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n);},on.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,Dt.HTML,[]);this._attachElementToTree(t),this.openElements.push(t);},on.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,Dt.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t);},on.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(Pt.HTML,Dt.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e);},on.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n);},on.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars);}},on.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n);}},on.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===Dt.HTML)return!1;if(this.treeAdapter.getTagName(t)===Pt.ANNOTATION_XML&&n===Dt.MATHML&&e.type===Nt.START_TAG_TOKEN&&e.tagName===Pt.SVG)return!1;var r=e.type===Nt.CHARACTER_TOKEN||e.type===Nt.NULL_CHARACTER_TOKEN||e.type===Nt.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===Nt.START_TAG_TOKEN&&e.tagName!==Pt.MGLYPH&&e.tagName!==Pt.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,Dt.MATHML))&&((e.type!==Nt.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,Dt.HTML))&&e.type!==Nt.EOF_TOKEN)},on.prototype._processToken=function(e){sn[this.insertionMode][e.type](this,e);},on.prototype._processTokenInBodyMode=function(e){sn[bt][e.type](this,e);},on.prototype._processTokenInForeignContent=function(e){e.type===Nt.CHARACTER_TOKEN?lt(this,e):e.type===Nt.NULL_CHARACTER_TOKEN?ht(this,e):e.type===Nt.WHITESPACE_CHARACTER_TOKEN?p(this,e):e.type===Nt.COMMENT_TOKEN?E(this,e):e.type===Nt.START_TAG_TOKEN?mt(this,e):e.type===Nt.END_TAG_TOKEN&&ut(this,e);},on.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e);},on.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return It.isIntegrationPoint(n,r,i,t)},on.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===Ct.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var r=t;r=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var r=this.treeAdapter.getTagName(n),i=nn[r];if(i){this.insertionMode=i;break}if(!(t||r!==Pt.TD&&r!==Pt.TH)){this.insertionMode=jt;break}if(!t&&r===Pt.HEAD){this.insertionMode=Bt;break}if(r===Pt.SELECT){this._resetInsertionModeForSelect(e);break}if(r===Pt.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===Pt.HTML){this.insertionMode=this.headElement?yt:Gt;break}if(t){this.insertionMode=bt;break}}},on.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n);if(r===Pt.TEMPLATE)break;if(r===Pt.TABLE)return void(this.insertionMode=Vt)}this.insertionMode=zt;},on.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e;},on.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop];},on.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===Pt.TABLE||t===Pt.TBODY||t===Pt.TFOOT||t===Pt.THEAD||t===Pt.TR},on.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},on.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===Pt.TEMPLATE&&i===Dt.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===Pt.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},on.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e);},on.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e);},on.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return Lt.SPECIAL_ELEMENTS[n][t]};}); var index$6=createCommonjsModule(function(e){var t=_default,n=doctype,r=merge_options,i=html,s=i.TAG_NAMES,o=i.NAMESPACES,T={treeAdapter:t},a=/&/g,E=/\u00a0/g,_=/"/g,c=//g,A=e.exports=function(e,t){this.options=r(T,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e;};A.escapeString=function(e,t){return e=e.replace(a,"&").replace(E," "),e=t?e.replace(_,"""):e.replace(c,"<").replace(p,">")},A.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},A.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,r=t.length;n",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var r=t===s.TEMPLATE&&n===o.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(r),this.html+="";}},A.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,r=t.length;n";};}); var htmlparser2=createCommonjsModule(function(e,t){var n=doctype,r=html.DOCUMENT_MODE,i={element:1,text:3,cdata:4,comment:8},s={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o=function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);};o.prototype={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},Object.keys(s).forEach(function(e){var t=s[e];Object.defineProperty(o.prototype,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}});}),t.createDocument=function(){return new o({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":r.NO_QUIRKS})},t.createDocumentFragment=function(){return new o({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},t.createElement=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),s=Object.create(null),T=0;T= _iterator9.length) break; + _ref9 = _iterator9[_i9++]; + } else { + _i9 = _iterator9.next(); + if (_i9.done) break; + _ref9 = _i9.value; + } + + var i = _ref9; + + if (i.parent) i.parent.removeChild(i, 'ignore'); + } } else if (nodes.type === 'root') { nodes = nodes.nodes.slice(0); + for (var _iterator10 = nodes, _isArray10 = Array.isArray(_iterator10), _i11 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) { + var _ref10; + + if (_isArray10) { + if (_i11 >= _iterator10.length) break; + _ref10 = _iterator10[_i11++]; + } else { + _i11 = _iterator10.next(); + if (_i11.done) break; + _ref10 = _i11.value; + } + + var _i10 = _ref10; + + if (_i10.parent) _i10.parent.removeChild(_i10, 'ignore'); + } } else if (nodes.type) { nodes = [nodes]; } else if (nodes.prop) { @@ -13392,11 +13424,11 @@ var Root = function (_Container) { return _this; } - Root.prototype.removeChild = function removeChild(child) { - child = this.index(child); + Root.prototype.removeChild = function removeChild(child, ignore) { + var index = this.index(child); - if (child === 0 && this.nodes.length > 1) { - this.nodes[1].raws.before = this.nodes[child].raws.before; + if (!ignore && index === 0 && this.nodes.length > 1) { + this.nodes[1].raws.before = this.nodes[index].raws.before; } return _Container.prototype.removeChild.call(this, child); @@ -15662,17 +15694,31 @@ var LessParser = function (_Parser) { this.end(tokn); break; } else if (tokn[0] === 'brackets') { - directives.push(tokn); + if (node.urlFunc) { + node.importPath = tokn[1].replace(/[()]/g, ''); + } else { + directives.push(tokn); + } } else if (tokn[0] === 'space') { if (directives.length) { node.raws.between = tokn[1]; + } else if (node.urlFunc) { + node.raws.beforeUrl = tokn[1]; } else if (node.importPath) { - node.raws.after = tokn[1]; + if (node.urlFunc) { + node.raws.afterUrl = tokn[1]; + } else { + node.raws.after = tokn[1]; + } } else { node.raws.afterName = tokn[1]; } + } else if (tokn[0] === 'word' && tokn[1] === 'url') { + node.urlFunc = true; } else { - node.importPath = tokn[1]; + if (tokn[0] !== '(' && tokn[0] !== ')') { + node.importPath = tokn[1]; + } } if (this.pos === this.tokens.length) { @@ -15917,7 +15963,7 @@ var LessStringifier = function (_Stringifier) { key: 'import', value: function _import(node) { this.builder('@' + node.name); - this.builder((node.raws.afterName || '') + (node.directives || '') + (node.raws.between || '') + (node.importPath || '') + (node.raws.after || '')); + this.builder((node.raws.afterName || '') + (node.directives || '') + (node.raws.between || '') + (node.urlFunc ? 'url(' : '') + (node.raws.beforeUrl || '') + (node.importPath || '') + (node.raws.afterUrl || '') + (node.urlFunc ? ')' : '') + (node.raws.after || '')); if (node.raws.semicolon) { this.builder(';'); @@ -21649,11 +21695,11 @@ var Processor = function () { * @member {string} - Current PostCSS version. * * @example - * if ( result.processor.version.split('.')[0] !== '5' ) { - * throw new Error('This plugin works only with PostCSS 5'); + * if ( result.processor.version.split('.')[0] !== '6' ) { + * throw new Error('This plugin works only with PostCSS 6'); * } */ - this.version = '6.0.1'; + this.version = '6.0.2'; /** * @member {pluginFunction[]} - Plugins added to this processor. * @@ -25094,7 +25140,7 @@ function requireParser(isSCSS) { } function parse(text) { - const isLikelySCSS = !!text.match(/(\w\s*: [^}:]+|#){|\@import url/); + const isLikelySCSS = !!text.match(/(\w\s*: [^}:]+|#){|\@import[^\n]+(url|,)/); try { return parseWithParser(requireParser(isLikelySCSS), text); } catch (e) { diff --git a/docs/lib/parser-typescript.js b/docs/lib/parser-typescript.js index c91e1c7e..daa59182 100644 --- a/docs/lib/parser-typescript.js +++ b/docs/lib/parser-typescript.js @@ -232,9 +232,9 @@ var process = { uptime: uptime }; -var __dirname = '/Users/azz/code/prettier/dist'; +var __dirname = '/Users/vjeux/random/prettier/dist'; -var __filename = '/Users/azz/code/prettier/dist/parser-typescript.js'; +var __filename = '/Users/vjeux/random/prettier/dist/parser-typescript.js'; var browser$1 = true; @@ -2231,7 +2231,7 @@ function createCommonjsModule(fn, module) { } var parserTypescript_1 = createCommonjsModule(function (module) { -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,a=e.generatedColumn,i=t.generatedColumn;return r>n||r==n&&i>=a||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var a="",i=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();i?(c&&0!=i.indexOf(c)&&(a+=c+"."),a+=i,u&&i.indexOf("."+u)!=i.length-u.length-1&&(a+=" [as "+u+"]")):a+=c+"."+(u||"");}else s?a+="new "+(i||""):i?a+=i:(a+=t,o=!1);return o&&(a+=" ("+t+")"),a}function cloneCallSite(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=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var a=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var i=e.isEval()&&e.getEvalOrigin();return i?(i=mapEvalOrigin(i),e=cloneCallSite(e),e.getEvalOrigin=function(){return i},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],a=+t[3],i=fileContentsCache[n];if(!i&&fs$1&&fs$1.existsSync(n)&&(i=fs$1.readFileSync(n,"utf8")),i){var o=i.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(a).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return e=toString(e),e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),a=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:a.line+1,column:a.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],a=e.modifiers[1],i=e.modifiers[e.modifiers.length-1],o=a&&a.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(i,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(u.specifiers=[],u.source=null),u}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),a=t.text.slice(n,r),i={type:getTokenType(e),value:a,start:n,end:r,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===i.type&&(i.regex={pattern:a.slice(1,a.lastIndexOf("/")),flags:a.slice(a.lastIndexOf("/")+1)}),i}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const i=e.pos,o=e.end;t>=i&&n<=o&&(isToken(e)?a=e:e.getChildren().forEach(r));}let a=null;return r(e),a}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,a,i){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof a&&(o.loc={start:a,end:i}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,a={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},i=n.substring(a.pos,a.end),o=r?i.replace(/^\/\*/,"").replace(/\*\/$/,""):i.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(a.pos,a.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,a.pos,a.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let a=r.scan();for(;a!==ts$2.SyntaxKind.EndOfFileToken;){const i=r.getTokenPos(),o=r.getTextPos();let s=null;switch(a){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const a=getCommentFromTriviaScanner(r,e,t);n.push(a);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,i,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){a=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,i,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){a=r.reScanSlashToken();continue}}a=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1};}function parse$1(e,t){const n=String;"string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0));const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",a={fileExists(){return!0},getCanonicalFileName(){return r},getCurrentDirectory(){return""},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0)},readFile(){return null},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},i=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},a).getSourceFile(r);return extra.code=e,convert(i,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNumberKeyword:"TSNumberKeyword",TSParameterProperty:"TSParameterProperty",TSPropertySignature:"TSPropertySignature",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSStringKeyword:"TSStringKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,a,i=e.length,o=0,s=0;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(a&VLQ_CONTINUATION_BIT),o+=(a&=VLQ_BASE_MASK)<=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?"/":"."),i?(i.path=n,a(i)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),o=r(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(y))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,a(o)):s}function s(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)}function c(e){return e}function u(e){return _(e)?"$"+e:e}function l(e){return _(e)?e.slice(1):e}function _(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 d(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:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function p(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:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function m(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=a,t.normalize=i,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(g)},t.relative=s;var h=function(){return!("__proto__"in Object.create(null))}();t.toSetString=h?c:u,t.fromSetString=h?c:l,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=m;}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,a=e.length;r=0&&e0&&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}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,i=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.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},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,a,i,o,s){var c=Math.floor((r-e)/2)+e,u=o(a,i[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,a,i,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,a,i,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,a,i){if(0===r.length)return-1;var o=n(-1,r.length,e,r,a,i||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===a(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,a=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=i&&(t=util$5.join(i,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);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(a>=0){var i=this._originalMappings[a];if(void 0===e.column)for(var o=i.originalLine;i&&i.originalLine===o;)r.push({line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++a];else for(var s=i.originalColumn;i&&i.originalLine===t&&i.originalColumn==s;)r.push({line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++a];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),i=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=a.length;s1&&(n.source=_+a[1],_+=a[1],n.originalLine=u+a[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+a[3],l=n.originalColumn,a.length>4&&(n.name=d+a[4],d+=a[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,a,i){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 binarySearch.search(e,t,a,i)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var a=util$5.getArg(r,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=util$5.join(this.sourceRoot,a)));var i=util$5.getArg(r,"name",null);return null!==i&&(i=this._names.at(i)),{source:a,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];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.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var a=this._originalMappings[r];if(a.source===n.source)return{line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),a.add(i.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),a.setSourceContent(e,r));}),a},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"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},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;n0?e[0]:void 0}function J(e){return e&&e.length>0?e[e.length-1]:void 0}function z(e){return e&&1===e.length?e[0]:void 0}function U(e){return e&&1===e.length?e[0]:e}function V(e,t,n){var r=e.slice(0);return r[t]=n,r}function q(e,t,n,r){if(!e||0===e.length)return-1;var a=r||0,i=e.length-1;for(n=void 0!==n?n:function(e,t){return et?1:0};a<=i;){var o=a+(i-a>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?i=o-1:a=o+1;}return~a}function $(e,t,n,r,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===r||r<0?0:r,s=void 0===a||o+a>i-1?i-1:o+a,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}function G(e,t,n,r,a){if(e){var i=e.length;if(i>0){var o=void 0===r||r>i-1?i-1:r,s=void 0===a||o-a<0?0:o-a,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}function W(e,t){return rn.call(e,t)}function H(e,t){return rn.call(e,t)?e[t]:void 0}function X(e){var t=[];for(var n in e)rn.call(e,n)&&t.push(n);return t}function Y(e,t){for(var n=[],r=e.next(),a=r.value,i=r.done;!i;o=e.next(),a=o.value,i=o.done,o)n.push(t?t(a):a);return n;var o;}function Q(e,t){for(var n=[],r=e.next(),a=r.value,i=r.done;!i;o=e.next(),a=o.value,i=o.done,o)n.push(t(a));return n;var o;}function Z(e,t){for(var n=e.entries(),r=n.next(),a=r.value,i=r.done;!i;c=n.next(),a=c.value,i=c.done,c){var o=a[0],s=t(a[1],o);if(s)return s}return;var c;}function ee(e,t){for(var n=e.keys(),r=n.next(),a=r.value,i=r.done;!i;s=n.next(),a=s.value,i=s.done,s){var o=t(a);if(o)return o}return;var s;}function te(e,t){e.forEach(function(e,n){t.set(n,e);});}function ne(e){for(var t=[],n=1;n=0,"start must be non-negative, is "+t),dn.assert(n>=0,"length must be non-negative, is "+n),e&&(dn.assert(t<=e.text.length,"start must be within the bounds of the file. "+t+" > "+e.text.length),dn.assert(a<=e.text.length,"end must be the bounds of the file. "+a+" > "+e.text.length));var i=he(r);return arguments.length>4&&(i=ye(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code}}function be(e,t){var n=he(t);return arguments.length>2&&(n=ye(n,arguments,2)),n}function xe(e){var t=he(e);return arguments.length>1&&(t=ye(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function ke(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Se(e,t){var n=he(t);return arguments.length>2&&(n=ye(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function Te(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function Ce(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==J(r)?r.pop():o&&r.push(o));}return r}function Me(t){var n=Ie(t=Fe(t)),r=t.substr(0,n),a=Re(t,n);if(a.length){var i=r+a.join(e.directorySeparator);return Le(t)?i+e.directorySeparator:i}return r}function Le(e){return e.charCodeAt(e.length-1)===an}function Be(t){return t.substr(0,Math.max(Ie(t),t.lastIndexOf(e.directorySeparator)))}function Ke(e){return e&&!qe(e)&&-1!==e.indexOf("://")}function je(e){return/^\.\.?($|[\\/])/.test(e)}function Je(e){return e.target||0}function ze(t){return"number"==typeof t.module?t.module:Je(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Ue(t){var n=t.moduleResolution;return void 0===n&&(n=ze(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function Ve(e){for(var t=!1,n=0;n1&&""===J(s)&&s.length--;var c;for(c=0;c=0&&e.indexOf(t,n)===n}function ct(e){return et(e).indexOf(".")>=0}function ut(e,t){return e.length>t.length&&st(e,t)}function lt(e,t){for(var n=0,r=t;n0;)s+=")?",d--;return s}}function mt(e){return yt(e,cn)}function gt(e){return yt(e,un)}function yt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ht(e,t,n,r,a){e=Me(e);var i=tt(a=Me(a),e);return{includeFilePatterns:x(dt(n,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:_t(n,i,"files"),includeDirectoryPattern:_t(n,i,"directories"),excludePattern:_t(t,i,"exclude"),basePaths:bt(e,n,r)}}function vt(e,t,n,r,a,i,o){function s(e,n){var r=o(e),a=r.files,i=r.directories;a=a.slice().sort(m),i=i.slice().sort(m);for(var c=0,u=a;c=0;n--)if(ut(e,t[n]))return At(n,t);return 0}function At(e,t){return e<2?0:ea&&(a=c.prefix.length,r=s);}return r}function Ht(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&ot(t,n)&&st(t,r)}function Xt(e){dn.assert(Ve(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Yt(e){return!(e>=0)}function Qt(t){return t<=e.Extension.LastTypeScriptExtension}function Zt(e){var t=en(e);if(void 0!==t)return t;dn.fail("File "+e+" has unknown extension.");}function en(t){return ut(t,".d.ts")?e.Extension.Dts:ut(t,".ts")?e.Extension.Ts:ut(t,".tsx")?e.Extension.Tsx:ut(t,".js")?e.Extension.Js:ut(t,".jsx")?e.Extension.Jsx:void 0}function tn(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}!function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True";}(e.Ternary||(e.Ternary={})),e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createMapFromTemplate=r;var nn="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e);}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,n){if(!e){var r="";throw n&&(r="\r\nVerbose Debug Information: "+n()),new Error("Debug Failure. False expression: "+(t||"")+r)}}function r(t){e.assert(!1,t);}e.currentAssertionLevel=0,e.shouldAssert=t,e.assert=n,e.fail=r;}(dn=e.Debug||(e.Debug={})),e.orderedRemoveItem=Kt,e.orderedRemoveItemAt=jt,e.unorderedRemoveItemAt=Jt,e.unorderedRemoveItem=zt,e.createGetCanonicalFileName=Vt,e.matchPatternOrExact=qt,e.patternText=$t,e.matchedText=Gt,e.findBestPatternMatch=Wt,e.tryParsePattern=Xt,e.positionIsSynthesized=Yt,e.extensionIsTypeScript=Qt,e.extensionFromPath=Zt,e.tryGetExtensionFromPath=en,e.isCheckJsEnabledForFile=tn;}(r||(r={}));!function(e){function t(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.getNodeMajorVersion=t,e.sys=function(){function n(t,r){var a=e.getDirectoryPath(t),i=t!==a&&!r.directoryExists(a);i&&n(a,r),!i&&r.directoryExists(t)||r.createDirectory(t);}var r;if("undefined"!=typeof ChakraHost?r=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,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(t,n,r,a){var i=e.getFileMatcherPatterns(t,r,a,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,i.basePaths,i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(r=function(){function n(e,t){if(s(e)){var n=_.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var a=0;a=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")}}function r(e,t,n){n&&(t="\ufeff"+t);var r;try{r=_.openSync(e,"w"),_.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&_.closeSync(r);}}function a(t){try{for(var n=[],r=[],a=0,i=_.readdirSync(t||".").sort();a=4,h=p.platform(),v=function(){return"win32"!==h&&"win64"!==h&&(!s(__filename.toUpperCase())||!s(__filename.toLowerCase()))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(l||(l={}));var b={close:e.noop},x={args:process.argv.slice(2),newLine:p.EOL,useCaseSensitiveFileNames:v,write:function(e){process.stdout.write(e);},readFile:n,writeFile:r,watchFile:function(e,t,n){function r(n,r){+n.mtime<=+r.mtime||t(e);}if(m){var a=g.addFile(e,t);return{close:function(){return g.removeFile(a)}}}return _.watchFile(e,{persistent:!0,interval:n||250},r),{close:function(){return _.unwatchFile(e,r)}}},watchDirectory:function(t,n,r){var a;return c(t)?(a=!y||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},_.watch(t,a,function(r,a){"rename"===r&&n(a?e.normalizePath(e.combinePaths(t,a)):a);})):b},resolvePath:function(e){return d.resolve(e)},fileExists:s,directoryExists:c,createDirectory:function(e){x.directoryExists(e)||_.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:u,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:i,getModifiedTime:function(e){try{return _.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=f.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=_.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return _.realpathSync(e)},tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return x}()),r){var a=r.writeFile;r.writeFile=function(t,i,o){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!r.directoryExists(s)&&n(s,r),a.call(r,t,i,o);};}return r}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0);}(r||(r={}));!function(e){e.Diagnostics={Unterminated_string_literal:{code:1002,category:e.DiagnosticCategory.Error,key:"Unterminated_string_literal_1002",message:"Unterminated string literal."},Identifier_expected:{code:1003,category:e.DiagnosticCategory.Error,key:"Identifier_expected_1003",message:"Identifier expected."},_0_expected:{code:1005,category:e.DiagnosticCategory.Error,key:"_0_expected_1005",message:"'{0}' expected."},A_file_cannot_have_a_reference_to_itself:{code:1006,category:e.DiagnosticCategory.Error,key:"A_file_cannot_have_a_reference_to_itself_1006",message:"A file cannot have a reference to itself."},Trailing_comma_not_allowed:{code:1009,category:e.DiagnosticCategory.Error,key:"Trailing_comma_not_allowed_1009",message:"Trailing comma not allowed."},Asterisk_Slash_expected:{code:1010,category:e.DiagnosticCategory.Error,key:"Asterisk_Slash_expected_1010",message:"'*/' expected."},Unexpected_token:{code:1012,category:e.DiagnosticCategory.Error,key:"Unexpected_token_1012",message:"Unexpected token."},A_rest_parameter_must_be_last_in_a_parameter_list:{code:1014,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_last_in_a_parameter_list_1014",message:"A rest parameter must be last in a parameter list."},Parameter_cannot_have_question_mark_and_initializer:{code:1015,category:e.DiagnosticCategory.Error,key:"Parameter_cannot_have_question_mark_and_initializer_1015",message:"Parameter cannot have question mark and initializer."},A_required_parameter_cannot_follow_an_optional_parameter:{code:1016,category:e.DiagnosticCategory.Error,key:"A_required_parameter_cannot_follow_an_optional_parameter_1016",message:"A required parameter cannot follow an optional parameter."},An_index_signature_cannot_have_a_rest_parameter:{code:1017,category:e.DiagnosticCategory.Error,key:"An_index_signature_cannot_have_a_rest_parameter_1017",message:"An index signature cannot have a rest parameter."},An_index_signature_parameter_cannot_have_an_accessibility_modifier:{code:1018,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018",message:"An index signature parameter cannot have an accessibility modifier."},An_index_signature_parameter_cannot_have_a_question_mark:{code:1019,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_a_question_mark_1019",message:"An index signature parameter cannot have a question mark."},An_index_signature_parameter_cannot_have_an_initializer:{code:1020,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_initializer_1020",message:"An index signature parameter cannot have an initializer."},An_index_signature_must_have_a_type_annotation:{code:1021,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_a_type_annotation_1021",message:"An index signature must have a type annotation."},An_index_signature_parameter_must_have_a_type_annotation:{code:1022,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_must_have_a_type_annotation_1022",message:"An index signature parameter must have a type annotation."},An_index_signature_parameter_type_must_be_string_or_number:{code:1023,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_type_must_be_string_or_number_1023",message:"An index signature parameter type must be 'string' or 'number'."},readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:{code:1024,category:e.DiagnosticCategory.Error,key:"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024",message:"'readonly' modifier can only appear on a property declaration or index signature."},Accessibility_modifier_already_seen:{code:1028,category:e.DiagnosticCategory.Error,key:"Accessibility_modifier_already_seen_1028",message:"Accessibility modifier already seen."},_0_modifier_must_precede_1_modifier:{code:1029,category:e.DiagnosticCategory.Error,key:"_0_modifier_must_precede_1_modifier_1029",message:"'{0}' modifier must precede '{1}' modifier."},_0_modifier_already_seen:{code:1030,category:e.DiagnosticCategory.Error,key:"_0_modifier_already_seen_1030",message:"'{0}' modifier already seen."},_0_modifier_cannot_appear_on_a_class_element:{code:1031,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_class_element_1031",message:"'{0}' modifier cannot appear on a class element."},super_must_be_followed_by_an_argument_list_or_member_access:{code:1034,category:e.DiagnosticCategory.Error,key:"super_must_be_followed_by_an_argument_list_or_member_access_1034",message:"'super' must be followed by an argument list or member access."},Only_ambient_modules_can_use_quoted_names:{code:1035,category:e.DiagnosticCategory.Error,key:"Only_ambient_modules_can_use_quoted_names_1035",message:"Only ambient modules can use quoted names."},Statements_are_not_allowed_in_ambient_contexts:{code:1036,category:e.DiagnosticCategory.Error,key:"Statements_are_not_allowed_in_ambient_contexts_1036",message:"Statements are not allowed in ambient contexts."},A_declare_modifier_cannot_be_used_in_an_already_ambient_context:{code:1038,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038",message:"A 'declare' modifier cannot be used in an already ambient context."},Initializers_are_not_allowed_in_ambient_contexts:{code:1039,category:e.DiagnosticCategory.Error,key:"Initializers_are_not_allowed_in_ambient_contexts_1039",message:"Initializers are not allowed in ambient contexts."},_0_modifier_cannot_be_used_in_an_ambient_context:{code:1040,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_in_an_ambient_context_1040",message:"'{0}' modifier cannot be used in an ambient context."},_0_modifier_cannot_be_used_with_a_class_declaration:{code:1041,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_a_class_declaration_1041",message:"'{0}' modifier cannot be used with a class declaration."},_0_modifier_cannot_be_used_here:{code:1042,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_here_1042",message:"'{0}' modifier cannot be used here."},_0_modifier_cannot_appear_on_a_data_property:{code:1043,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_data_property_1043",message:"'{0}' modifier cannot appear on a data property."},_0_modifier_cannot_appear_on_a_module_or_namespace_element:{code:1044,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044",message:"'{0}' modifier cannot appear on a module or namespace element."},A_0_modifier_cannot_be_used_with_an_interface_declaration:{code:1045,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045",message:"A '{0}' modifier cannot be used with an interface declaration."},A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:{code:1046,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046",message:"A 'declare' modifier is required for a top level declaration in a .d.ts file."},A_rest_parameter_cannot_be_optional:{code:1047,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_be_optional_1047",message:"A rest parameter cannot be optional."},A_rest_parameter_cannot_have_an_initializer:{code:1048,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_have_an_initializer_1048",message:"A rest parameter cannot have an initializer."},A_set_accessor_must_have_exactly_one_parameter:{code:1049,category:e.DiagnosticCategory.Error,key:"A_set_accessor_must_have_exactly_one_parameter_1049",message:"A 'set' accessor must have exactly one parameter."},A_set_accessor_cannot_have_an_optional_parameter:{code:1051,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_an_optional_parameter_1051",message:"A 'set' accessor cannot have an optional parameter."},A_set_accessor_parameter_cannot_have_an_initializer:{code:1052,category:e.DiagnosticCategory.Error,key:"A_set_accessor_parameter_cannot_have_an_initializer_1052",message:"A 'set' accessor parameter cannot have an initializer."},A_set_accessor_cannot_have_rest_parameter:{code:1053,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_rest_parameter_1053",message:"A 'set' accessor cannot have rest parameter."},A_get_accessor_cannot_have_parameters:{code:1054,category:e.DiagnosticCategory.Error,key:"A_get_accessor_cannot_have_parameters_1054",message:"A 'get' accessor cannot have parameters."},Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:{code:1055,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055",message:"Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."},Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:{code:1056,category:e.DiagnosticCategory.Error,key:"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056",message:"Accessors are only available when targeting ECMAScript 5 and higher."},An_async_function_or_method_must_have_a_valid_awaitable_return_type:{code:1057,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057",message:"An async function or method must have a valid awaitable return type."},The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1058,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058",message:"The return type of an async function must either be a valid promise or must not contain a callable 'then' member."},A_promise_must_have_a_then_method:{code:1059,category:e.DiagnosticCategory.Error,key:"A_promise_must_have_a_then_method_1059",message:"A promise must have a 'then' method."},The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:{code:1060,category:e.DiagnosticCategory.Error,key:"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060",message:"The first parameter of the 'then' method of a promise must be a callback."},Enum_member_must_have_initializer:{code:1061,category:e.DiagnosticCategory.Error,key:"Enum_member_must_have_initializer_1061",message:"Enum member must have initializer."},Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:{code:1062,category:e.DiagnosticCategory.Error,key:"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",message:"Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."},An_export_assignment_cannot_be_used_in_a_namespace:{code:1063,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_namespace_1063",message:"An export assignment cannot be used in a namespace."},The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:{code:1064,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064",message:"The return type of an async function or method must be the global Promise type."},In_ambient_enum_declarations_member_initializer_must_be_constant_expression:{code:1066,category:e.DiagnosticCategory.Error,key:"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066",message:"In ambient enum declarations member initializer must be constant expression."},Unexpected_token_A_constructor_method_accessor_or_property_was_expected:{code:1068,category:e.DiagnosticCategory.Error,key:"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068",message:"Unexpected token. A constructor, method, accessor, or property was expected."},_0_modifier_cannot_appear_on_a_type_member:{code:1070,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_type_member_1070",message:"'{0}' modifier cannot appear on a type member."},_0_modifier_cannot_appear_on_an_index_signature:{code:1071,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_an_index_signature_1071",message:"'{0}' modifier cannot appear on an index signature."},A_0_modifier_cannot_be_used_with_an_import_declaration:{code:1079,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_import_declaration_1079",message:"A '{0}' modifier cannot be used with an import declaration."},Invalid_reference_directive_syntax:{code:1084,category:e.DiagnosticCategory.Error,key:"Invalid_reference_directive_syntax_1084",message:"Invalid 'reference' directive syntax."},Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:{code:1085,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",message:"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."},An_accessor_cannot_be_declared_in_an_ambient_context:{code:1086,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_be_declared_in_an_ambient_context_1086",message:"An accessor cannot be declared in an ambient context."},_0_modifier_cannot_appear_on_a_constructor_declaration:{code:1089,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_constructor_declaration_1089",message:"'{0}' modifier cannot appear on a constructor declaration."},_0_modifier_cannot_appear_on_a_parameter:{code:1090,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_parameter_1090",message:"'{0}' modifier cannot appear on a parameter."},Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:{code:1091,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091",message:"Only a single variable declaration is allowed in a 'for...in' statement."},Type_parameters_cannot_appear_on_a_constructor_declaration:{code:1092,category:e.DiagnosticCategory.Error,key:"Type_parameters_cannot_appear_on_a_constructor_declaration_1092",message:"Type parameters cannot appear on a constructor declaration."},Type_annotation_cannot_appear_on_a_constructor_declaration:{code:1093,category:e.DiagnosticCategory.Error,key:"Type_annotation_cannot_appear_on_a_constructor_declaration_1093",message:"Type annotation cannot appear on a constructor declaration."},An_accessor_cannot_have_type_parameters:{code:1094,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_have_type_parameters_1094",message:"An accessor cannot have type parameters."},A_set_accessor_cannot_have_a_return_type_annotation:{code:1095,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_a_return_type_annotation_1095",message:"A 'set' accessor cannot have a return type annotation."},An_index_signature_must_have_exactly_one_parameter:{code:1096,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_exactly_one_parameter_1096",message:"An index signature must have exactly one parameter."},_0_list_cannot_be_empty:{code:1097,category:e.DiagnosticCategory.Error,key:"_0_list_cannot_be_empty_1097",message:"'{0}' list cannot be empty."},Type_parameter_list_cannot_be_empty:{code:1098,category:e.DiagnosticCategory.Error,key:"Type_parameter_list_cannot_be_empty_1098",message:"Type parameter list cannot be empty."},Type_argument_list_cannot_be_empty:{code:1099,category:e.DiagnosticCategory.Error,key:"Type_argument_list_cannot_be_empty_1099",message:"Type argument list cannot be empty."},Invalid_use_of_0_in_strict_mode:{code:1100,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_in_strict_mode_1100",message:"Invalid use of '{0}' in strict mode."},with_statements_are_not_allowed_in_strict_mode:{code:1101,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_strict_mode_1101",message:"'with' statements are not allowed in strict mode."},delete_cannot_be_called_on_an_identifier_in_strict_mode:{code:1102,category:e.DiagnosticCategory.Error,key:"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102",message:"'delete' cannot be called on an identifier in strict mode."},A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:{code:1103,category:e.DiagnosticCategory.Error,key:"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103",message:"A 'for-await-of' statement is only allowed within an async function or async generator."},A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:{code:1104,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104",message:"A 'continue' statement can only be used within an enclosing iteration statement."},A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:{code:1105,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105",message:"A 'break' statement can only be used within an enclosing iteration or switch statement."},Jump_target_cannot_cross_function_boundary:{code:1107,category:e.DiagnosticCategory.Error,key:"Jump_target_cannot_cross_function_boundary_1107",message:"Jump target cannot cross function boundary."},A_return_statement_can_only_be_used_within_a_function_body:{code:1108,category:e.DiagnosticCategory.Error,key:"A_return_statement_can_only_be_used_within_a_function_body_1108",message:"A 'return' statement can only be used within a function body."},Expression_expected:{code:1109,category:e.DiagnosticCategory.Error,key:"Expression_expected_1109",message:"Expression expected."},Type_expected:{code:1110,category:e.DiagnosticCategory.Error,key:"Type_expected_1110",message:"Type expected."},A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:{code:1113,category:e.DiagnosticCategory.Error,key:"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113",message:"A 'default' clause cannot appear more than once in a 'switch' statement."},Duplicate_label_0:{code:1114,category:e.DiagnosticCategory.Error,key:"Duplicate_label_0_1114",message:"Duplicate label '{0}'."},A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:{code:1115,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115",message:"A 'continue' statement can only jump to a label of an enclosing iteration statement."},A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:{code:1116,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116",message:"A 'break' statement can only jump to a label of an enclosing statement."},An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:{code:1117,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117",message:"An object literal cannot have multiple properties with the same name in strict mode."},An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:{code:1118,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118",message:"An object literal cannot have multiple get/set accessors with the same name."},An_object_literal_cannot_have_property_and_accessor_with_the_same_name:{code:1119,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119",message:"An object literal cannot have property and accessor with the same name."},An_export_assignment_cannot_have_modifiers:{code:1120,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_have_modifiers_1120",message:"An export assignment cannot have modifiers."},Octal_literals_are_not_allowed_in_strict_mode:{code:1121,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_strict_mode_1121",message:"Octal literals are not allowed in strict mode."},A_tuple_type_element_list_cannot_be_empty:{code:1122,category:e.DiagnosticCategory.Error,key:"A_tuple_type_element_list_cannot_be_empty_1122",message:"A tuple type element list cannot be empty."},Variable_declaration_list_cannot_be_empty:{code:1123,category:e.DiagnosticCategory.Error,key:"Variable_declaration_list_cannot_be_empty_1123",message:"Variable declaration list cannot be empty."},Digit_expected:{code:1124,category:e.DiagnosticCategory.Error,key:"Digit_expected_1124",message:"Digit expected."},Hexadecimal_digit_expected:{code:1125,category:e.DiagnosticCategory.Error,key:"Hexadecimal_digit_expected_1125",message:"Hexadecimal digit expected."},Unexpected_end_of_text:{code:1126,category:e.DiagnosticCategory.Error,key:"Unexpected_end_of_text_1126",message:"Unexpected end of text."},Invalid_character:{code:1127,category:e.DiagnosticCategory.Error,key:"Invalid_character_1127",message:"Invalid character."},Declaration_or_statement_expected:{code:1128,category:e.DiagnosticCategory.Error,key:"Declaration_or_statement_expected_1128",message:"Declaration or statement expected."},Statement_expected:{code:1129,category:e.DiagnosticCategory.Error,key:"Statement_expected_1129",message:"Statement expected."},case_or_default_expected:{code:1130,category:e.DiagnosticCategory.Error,key:"case_or_default_expected_1130",message:"'case' or 'default' expected."},Property_or_signature_expected:{code:1131,category:e.DiagnosticCategory.Error,key:"Property_or_signature_expected_1131",message:"Property or signature expected."},Enum_member_expected:{code:1132,category:e.DiagnosticCategory.Error,key:"Enum_member_expected_1132",message:"Enum member expected."},Variable_declaration_expected:{code:1134,category:e.DiagnosticCategory.Error,key:"Variable_declaration_expected_1134",message:"Variable declaration expected."},Argument_expression_expected:{code:1135,category:e.DiagnosticCategory.Error,key:"Argument_expression_expected_1135",message:"Argument expression expected."},Property_assignment_expected:{code:1136,category:e.DiagnosticCategory.Error,key:"Property_assignment_expected_1136",message:"Property assignment expected."},Expression_or_comma_expected:{code:1137,category:e.DiagnosticCategory.Error,key:"Expression_or_comma_expected_1137",message:"Expression or comma expected."},Parameter_declaration_expected:{code:1138,category:e.DiagnosticCategory.Error,key:"Parameter_declaration_expected_1138",message:"Parameter declaration expected."},Type_parameter_declaration_expected:{code:1139,category:e.DiagnosticCategory.Error,key:"Type_parameter_declaration_expected_1139",message:"Type parameter declaration expected."},Type_argument_expected:{code:1140,category:e.DiagnosticCategory.Error,key:"Type_argument_expected_1140",message:"Type argument expected."},String_literal_expected:{code:1141,category:e.DiagnosticCategory.Error,key:"String_literal_expected_1141",message:"String literal expected."},Line_break_not_permitted_here:{code:1142,category:e.DiagnosticCategory.Error,key:"Line_break_not_permitted_here_1142",message:"Line break not permitted here."},or_expected:{code:1144,category:e.DiagnosticCategory.Error,key:"or_expected_1144",message:"'{' or ';' expected."},Declaration_expected:{code:1146,category:e.DiagnosticCategory.Error,key:"Declaration_expected_1146",message:"Declaration expected."},Import_declarations_in_a_namespace_cannot_reference_a_module:{code:1147,category:e.DiagnosticCategory.Error,key:"Import_declarations_in_a_namespace_cannot_reference_a_module_1147",message:"Import declarations in a namespace cannot reference a module."},Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:{code:1148,category:e.DiagnosticCategory.Error,key:"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148",message:"Cannot use imports, exports, or module augmentations when '--module' is 'none'."},File_name_0_differs_from_already_included_file_name_1_only_in_casing:{code:1149,category:e.DiagnosticCategory.Error,key:"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149",message:"File name '{0}' differs from already included file name '{1}' only in casing."},new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:{code:1150,category:e.DiagnosticCategory.Error,key:"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150",message:"'new T[]' cannot be used to create an array. Use 'new Array()' instead."},const_declarations_must_be_initialized:{code:1155,category:e.DiagnosticCategory.Error,key:"const_declarations_must_be_initialized_1155",message:"'const' declarations must be initialized."},const_declarations_can_only_be_declared_inside_a_block:{code:1156,category:e.DiagnosticCategory.Error,key:"const_declarations_can_only_be_declared_inside_a_block_1156",message:"'const' declarations can only be declared inside a block."},let_declarations_can_only_be_declared_inside_a_block:{code:1157,category:e.DiagnosticCategory.Error,key:"let_declarations_can_only_be_declared_inside_a_block_1157",message:"'let' declarations can only be declared inside a block."},Unterminated_template_literal:{code:1160,category:e.DiagnosticCategory.Error,key:"Unterminated_template_literal_1160",message:"Unterminated template literal."},Unterminated_regular_expression_literal:{code:1161,category:e.DiagnosticCategory.Error,key:"Unterminated_regular_expression_literal_1161",message:"Unterminated regular expression literal."},An_object_member_cannot_be_declared_optional:{code:1162,category:e.DiagnosticCategory.Error,key:"An_object_member_cannot_be_declared_optional_1162",message:"An object member cannot be declared optional."},A_yield_expression_is_only_allowed_in_a_generator_body:{code:1163,category:e.DiagnosticCategory.Error,key:"A_yield_expression_is_only_allowed_in_a_generator_body_1163",message:"A 'yield' expression is only allowed in a generator body."},Computed_property_names_are_not_allowed_in_enums:{code:1164,category:e.DiagnosticCategory.Error,key:"Computed_property_names_are_not_allowed_in_enums_1164",message:"Computed property names are not allowed in enums."},A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:{code:1165,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165",message:"A computed property name in an ambient context must directly refer to a built-in symbol."},A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:{code:1166,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166",message:"A computed property name in a class property declaration must directly refer to a built-in symbol."},A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:{code:1168,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168",message:"A computed property name in a method overload must directly refer to a built-in symbol."},A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:{code:1169,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169",message:"A computed property name in an interface must directly refer to a built-in symbol."},A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:{code:1170,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170",message:"A computed property name in a type literal must directly refer to a built-in symbol."},A_comma_expression_is_not_allowed_in_a_computed_property_name:{code:1171,category:e.DiagnosticCategory.Error,key:"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171",message:"A comma expression is not allowed in a computed property name."},extends_clause_already_seen:{code:1172,category:e.DiagnosticCategory.Error,key:"extends_clause_already_seen_1172",message:"'extends' clause already seen."},extends_clause_must_precede_implements_clause:{code:1173,category:e.DiagnosticCategory.Error,key:"extends_clause_must_precede_implements_clause_1173",message:"'extends' clause must precede 'implements' clause."},Classes_can_only_extend_a_single_class:{code:1174,category:e.DiagnosticCategory.Error,key:"Classes_can_only_extend_a_single_class_1174",message:"Classes can only extend a single class."},implements_clause_already_seen:{code:1175,category:e.DiagnosticCategory.Error,key:"implements_clause_already_seen_1175",message:"'implements' clause already seen."},Interface_declaration_cannot_have_implements_clause:{code:1176,category:e.DiagnosticCategory.Error,key:"Interface_declaration_cannot_have_implements_clause_1176",message:"Interface declaration cannot have 'implements' clause."},Binary_digit_expected:{code:1177,category:e.DiagnosticCategory.Error,key:"Binary_digit_expected_1177",message:"Binary digit expected."},Octal_digit_expected:{code:1178,category:e.DiagnosticCategory.Error,key:"Octal_digit_expected_1178",message:"Octal digit expected."},Unexpected_token_expected:{code:1179,category:e.DiagnosticCategory.Error,key:"Unexpected_token_expected_1179",message:"Unexpected token. '{' expected."},Property_destructuring_pattern_expected:{code:1180,category:e.DiagnosticCategory.Error,key:"Property_destructuring_pattern_expected_1180",message:"Property destructuring pattern expected."},Array_element_destructuring_pattern_expected:{code:1181,category:e.DiagnosticCategory.Error,key:"Array_element_destructuring_pattern_expected_1181",message:"Array element destructuring pattern expected."},A_destructuring_declaration_must_have_an_initializer:{code:1182,category:e.DiagnosticCategory.Error,key:"A_destructuring_declaration_must_have_an_initializer_1182",message:"A destructuring declaration must have an initializer."},An_implementation_cannot_be_declared_in_ambient_contexts:{code:1183,category:e.DiagnosticCategory.Error,key:"An_implementation_cannot_be_declared_in_ambient_contexts_1183",message:"An implementation cannot be declared in ambient contexts."},Modifiers_cannot_appear_here:{code:1184,category:e.DiagnosticCategory.Error,key:"Modifiers_cannot_appear_here_1184",message:"Modifiers cannot appear here."},Merge_conflict_marker_encountered:{code:1185,category:e.DiagnosticCategory.Error,key:"Merge_conflict_marker_encountered_1185",message:"Merge conflict marker encountered."},A_rest_element_cannot_have_an_initializer:{code:1186,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_have_an_initializer_1186",message:"A rest element cannot have an initializer."},A_parameter_property_may_not_be_declared_using_a_binding_pattern:{code:1187,category:e.DiagnosticCategory.Error,key:"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187",message:"A parameter property may not be declared using a binding pattern."},Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:{code:1188,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188",message:"Only a single variable declaration is allowed in a 'for...of' statement."},The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:{code:1189,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189",message:"The variable declaration of a 'for...in' statement cannot have an initializer."},The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:{code:1190,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190",message:"The variable declaration of a 'for...of' statement cannot have an initializer."},An_import_declaration_cannot_have_modifiers:{code:1191,category:e.DiagnosticCategory.Error,key:"An_import_declaration_cannot_have_modifiers_1191",message:"An import declaration cannot have modifiers."},Module_0_has_no_default_export:{code:1192,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_default_export_1192",message:"Module '{0}' has no default export."},An_export_declaration_cannot_have_modifiers:{code:1193,category:e.DiagnosticCategory.Error,key:"An_export_declaration_cannot_have_modifiers_1193",message:"An export declaration cannot have modifiers."},Export_declarations_are_not_permitted_in_a_namespace:{code:1194,category:e.DiagnosticCategory.Error,key:"Export_declarations_are_not_permitted_in_a_namespace_1194",message:"Export declarations are not permitted in a namespace."},Catch_clause_variable_cannot_have_a_type_annotation:{code:1196,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_a_type_annotation_1196",message:"Catch clause variable cannot have a type annotation."},Catch_clause_variable_cannot_have_an_initializer:{code:1197,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_an_initializer_1197",message:"Catch clause variable cannot have an initializer."},An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:{code:1198,category:e.DiagnosticCategory.Error,key:"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198",message:"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."},Unterminated_Unicode_escape_sequence:{code:1199,category:e.DiagnosticCategory.Error,key:"Unterminated_Unicode_escape_sequence_1199",message:"Unterminated Unicode escape sequence."},Line_terminator_not_permitted_before_arrow:{code:1200,category:e.DiagnosticCategory.Error,key:"Line_terminator_not_permitted_before_arrow_1200",message:"Line terminator not permitted before arrow."},Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:{code:1202,category:e.DiagnosticCategory.Error,key:"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202",message:"Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."},Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead:{code:1203,category:e.DiagnosticCategory.Error,key:"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203",message:"Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."},Decorators_are_not_valid_here:{code:1206,category:e.DiagnosticCategory.Error,key:"Decorators_are_not_valid_here_1206",message:"Decorators are not valid here."},Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:{code:1207,category:e.DiagnosticCategory.Error,key:"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207",message:"Decorators cannot be applied to multiple get/set accessors of the same name."},Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:{code:1208,category:e.DiagnosticCategory.Error,key:"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208",message:"Cannot compile namespaces when the '--isolatedModules' flag is provided."},Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:{code:1209,category:e.DiagnosticCategory.Error,key:"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209",message:"Ambient const enums are not allowed when the '--isolatedModules' flag is provided."},Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:{code:1210,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210",message:"Invalid use of '{0}'. Class definitions are automatically in strict mode."},A_class_declaration_without_the_default_modifier_must_have_a_name:{code:1211,category:e.DiagnosticCategory.Error,key:"A_class_declaration_without_the_default_modifier_must_have_a_name_1211",message:"A class declaration without the 'default' modifier must have a name."},Identifier_expected_0_is_a_reserved_word_in_strict_mode:{code:1212,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212",message:"Identifier expected. '{0}' is a reserved word in strict mode."},Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:{code:1213,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213",message:"Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."},Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:{code:1214,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214",message:"Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."},Invalid_use_of_0_Modules_are_automatically_in_strict_mode:{code:1215,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215",message:"Invalid use of '{0}'. Modules are automatically in strict mode."},Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:{code:1216,category:e.DiagnosticCategory.Error,key:"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216",message:"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."},Export_assignment_is_not_supported_when_module_flag_is_system:{code:1218,category:e.DiagnosticCategory.Error,key:"Export_assignment_is_not_supported_when_module_flag_is_system_1218",message:"Export assignment is not supported when '--module' flag is 'system'."},Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:{code:1219,category:e.DiagnosticCategory.Error,key:"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219",message:"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."},Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:{code:1220,category:e.DiagnosticCategory.Error,key:"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220",message:"Generators are only available when targeting ECMAScript 2015 or higher."},Generators_are_not_allowed_in_an_ambient_context:{code:1221,category:e.DiagnosticCategory.Error,key:"Generators_are_not_allowed_in_an_ambient_context_1221",message:"Generators are not allowed in an ambient context."},An_overload_signature_cannot_be_declared_as_a_generator:{code:1222,category:e.DiagnosticCategory.Error,key:"An_overload_signature_cannot_be_declared_as_a_generator_1222",message:"An overload signature cannot be declared as a generator."},_0_tag_already_specified:{code:1223,category:e.DiagnosticCategory.Error,key:"_0_tag_already_specified_1223",message:"'{0}' tag already specified."},Signature_0_must_have_a_type_predicate:{code:1224,category:e.DiagnosticCategory.Error,key:"Signature_0_must_have_a_type_predicate_1224",message:"Signature '{0}' must have a type predicate."},Cannot_find_parameter_0:{code:1225,category:e.DiagnosticCategory.Error,key:"Cannot_find_parameter_0_1225",message:"Cannot find parameter '{0}'."},Type_predicate_0_is_not_assignable_to_1:{code:1226,category:e.DiagnosticCategory.Error,key:"Type_predicate_0_is_not_assignable_to_1_1226",message:"Type predicate '{0}' is not assignable to '{1}'."},Parameter_0_is_not_in_the_same_position_as_parameter_1:{code:1227,category:e.DiagnosticCategory.Error,key:"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227",message:"Parameter '{0}' is not in the same position as parameter '{1}'."},A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:{code:1228,category:e.DiagnosticCategory.Error,key:"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228",message:"A type predicate is only allowed in return type position for functions and methods."},A_type_predicate_cannot_reference_a_rest_parameter:{code:1229,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_a_rest_parameter_1229",message:"A type predicate cannot reference a rest parameter."},A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:{code:1230,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230",message:"A type predicate cannot reference element '{0}' in a binding pattern."},An_export_assignment_can_only_be_used_in_a_module:{code:1231,category:e.DiagnosticCategory.Error,key:"An_export_assignment_can_only_be_used_in_a_module_1231",message:"An export assignment can only be used in a module."},An_import_declaration_can_only_be_used_in_a_namespace_or_module:{code:1232,category:e.DiagnosticCategory.Error,key:"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232",message:"An import declaration can only be used in a namespace or module."},An_export_declaration_can_only_be_used_in_a_module:{code:1233,category:e.DiagnosticCategory.Error,key:"An_export_declaration_can_only_be_used_in_a_module_1233",message:"An export declaration can only be used in a module."},An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:{code:1234,category:e.DiagnosticCategory.Error,key:"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234",message:"An ambient module declaration is only allowed at the top level in a file."},A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:{code:1235,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235",message:"A namespace declaration is only allowed in a namespace or module."},The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:{code:1236,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236",message:"The return type of a property decorator function must be either 'void' or 'any'."},The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:{code:1237,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237",message:"The return type of a parameter decorator function must be either 'void' or 'any'."},Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:{code:1238,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238",message:"Unable to resolve signature of class decorator when called as an expression."},Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:{code:1239,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239",message:"Unable to resolve signature of parameter decorator when called as an expression."},Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:{code:1240,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240",message:"Unable to resolve signature of property decorator when called as an expression."},Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:{code:1241,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241",message:"Unable to resolve signature of method decorator when called as an expression."},abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:{code:1242,category:e.DiagnosticCategory.Error,key:"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242",message:"'abstract' modifier can only appear on a class, method, or property declaration."},_0_modifier_cannot_be_used_with_1_modifier:{code:1243,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_1_modifier_1243",message:"'{0}' modifier cannot be used with '{1}' modifier."},Abstract_methods_can_only_appear_within_an_abstract_class:{code:1244,category:e.DiagnosticCategory.Error,key:"Abstract_methods_can_only_appear_within_an_abstract_class_1244",message:"Abstract methods can only appear within an abstract class."},Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:{code:1245,category:e.DiagnosticCategory.Error,key:"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245",message:"Method '{0}' cannot have an implementation because it is marked abstract."},An_interface_property_cannot_have_an_initializer:{code:1246,category:e.DiagnosticCategory.Error,key:"An_interface_property_cannot_have_an_initializer_1246",message:"An interface property cannot have an initializer."},A_type_literal_property_cannot_have_an_initializer:{code:1247,category:e.DiagnosticCategory.Error,key:"A_type_literal_property_cannot_have_an_initializer_1247",message:"A type literal property cannot have an initializer."},A_class_member_cannot_have_the_0_keyword:{code:1248,category:e.DiagnosticCategory.Error,key:"A_class_member_cannot_have_the_0_keyword_1248",message:"A class member cannot have the '{0}' keyword."},A_decorator_can_only_decorate_a_method_implementation_not_an_overload:{code:1249,category:e.DiagnosticCategory.Error,key:"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249",message:"A decorator can only decorate a method implementation, not an overload."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:{code:1250,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:{code:1251,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:{code:1252,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."},_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:{code:1253,category:e.DiagnosticCategory.Error,key:"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253",message:"'{0}' tag cannot be used independently as a top level JSDoc tag."},A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:{code:1254,category:e.DiagnosticCategory.Error,key:"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254",message:"A 'const' initializer in an ambient context must be a string or numeric literal."},with_statements_are_not_allowed_in_an_async_function_block:{code:1300,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_an_async_function_block_1300",message:"'with' statements are not allowed in an async function block."},await_expression_is_only_allowed_within_an_async_function:{code:1308,category:e.DiagnosticCategory.Error,key:"await_expression_is_only_allowed_within_an_async_function_1308",message:"'await' expression is only allowed within an async function."},can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:{code:1312,category:e.DiagnosticCategory.Error,key:"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312",message:"'=' can only be used in an object literal property inside a destructuring assignment."},The_body_of_an_if_statement_cannot_be_the_empty_statement:{code:1313,category:e.DiagnosticCategory.Error,key:"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313",message:"The body of an 'if' statement cannot be the empty statement."},Global_module_exports_may_only_appear_in_module_files:{code:1314,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_module_files_1314",message:"Global module exports may only appear in module files."},Global_module_exports_may_only_appear_in_declaration_files:{code:1315,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_declaration_files_1315",message:"Global module exports may only appear in declaration files."},Global_module_exports_may_only_appear_at_top_level:{code:1316,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_at_top_level_1316",message:"Global module exports may only appear at top level."},A_parameter_property_cannot_be_declared_using_a_rest_parameter:{code:1317,category:e.DiagnosticCategory.Error,key:"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317",message:"A parameter property cannot be declared using a rest parameter."},An_abstract_accessor_cannot_have_an_implementation:{code:1318,category:e.DiagnosticCategory.Error,key:"An_abstract_accessor_cannot_have_an_implementation_1318",message:"An abstract accessor cannot have an implementation."},A_default_export_can_only_be_used_in_an_ECMAScript_style_module:{code:1319,category:e.DiagnosticCategory.Error,key:"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319",message:"A default export can only be used in an ECMAScript-style module."},Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1320,category:e.DiagnosticCategory.Error,key:"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320",message:"Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."},Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1321,category:e.DiagnosticCategory.Error,key:"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321",message:"Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."},Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1322,category:e.DiagnosticCategory.Error,key:"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322",message:"Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."},Duplicate_identifier_0:{code:2300,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_2300",message:"Duplicate identifier '{0}'."},Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:{code:2301,category:e.DiagnosticCategory.Error,key:"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",message:"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},Static_members_cannot_reference_class_type_parameters:{code:2302,category:e.DiagnosticCategory.Error,key:"Static_members_cannot_reference_class_type_parameters_2302",message:"Static members cannot reference class type parameters."},Circular_definition_of_import_alias_0:{code:2303,category:e.DiagnosticCategory.Error,key:"Circular_definition_of_import_alias_0_2303",message:"Circular definition of import alias '{0}'."},Cannot_find_name_0:{code:2304,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_2304",message:"Cannot find name '{0}'."},Module_0_has_no_exported_member_1:{code:2305,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_exported_member_1_2305",message:"Module '{0}' has no exported member '{1}'."},File_0_is_not_a_module:{code:2306,category:e.DiagnosticCategory.Error,key:"File_0_is_not_a_module_2306",message:"File '{0}' is not a module."},Cannot_find_module_0:{code:2307,category:e.DiagnosticCategory.Error,key:"Cannot_find_module_0_2307",message:"Cannot find module '{0}'."},Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:{code:2308,category:e.DiagnosticCategory.Error,key:"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308",message:"Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."},An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:{code:2309,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309",message:"An export assignment cannot be used in a module with other exported elements."},Type_0_recursively_references_itself_as_a_base_type:{code:2310,category:e.DiagnosticCategory.Error,key:"Type_0_recursively_references_itself_as_a_base_type_2310",message:"Type '{0}' recursively references itself as a base type."},A_class_may_only_extend_another_class:{code:2311,category:e.DiagnosticCategory.Error,key:"A_class_may_only_extend_another_class_2311",message:"A class may only extend another class."},An_interface_may_only_extend_a_class_or_another_interface:{code:2312,category:e.DiagnosticCategory.Error,key:"An_interface_may_only_extend_a_class_or_another_interface_2312",message:"An interface may only extend a class or another interface."},Type_parameter_0_has_a_circular_constraint:{code:2313,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_has_a_circular_constraint_2313",message:"Type parameter '{0}' has a circular constraint."},Generic_type_0_requires_1_type_argument_s:{code:2314,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_1_type_argument_s_2314",message:"Generic type '{0}' requires {1} type argument(s)."},Type_0_is_not_generic:{code:2315,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_generic_2315",message:"Type '{0}' is not generic."},Global_type_0_must_be_a_class_or_interface_type:{code:2316,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_be_a_class_or_interface_type_2316",message:"Global type '{0}' must be a class or interface type."},Global_type_0_must_have_1_type_parameter_s:{code:2317,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_have_1_type_parameter_s_2317",message:"Global type '{0}' must have {1} type parameter(s)."},Cannot_find_global_type_0:{code:2318,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_type_0_2318",message:"Cannot find global type '{0}'."},Named_property_0_of_types_1_and_2_are_not_identical:{code:2319,category:e.DiagnosticCategory.Error,key:"Named_property_0_of_types_1_and_2_are_not_identical_2319",message:"Named property '{0}' of types '{1}' and '{2}' are not identical."},Interface_0_cannot_simultaneously_extend_types_1_and_2:{code:2320,category:e.DiagnosticCategory.Error,key:"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320",message:"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."},Excessive_stack_depth_comparing_types_0_and_1:{code:2321,category:e.DiagnosticCategory.Error,key:"Excessive_stack_depth_comparing_types_0_and_1_2321",message:"Excessive stack depth comparing types '{0}' and '{1}'."},Type_0_is_not_assignable_to_type_1:{code:2322,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_2322",message:"Type '{0}' is not assignable to type '{1}'."},Cannot_redeclare_exported_variable_0:{code:2323,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_exported_variable_0_2323",message:"Cannot redeclare exported variable '{0}'."},Property_0_is_missing_in_type_1:{code:2324,category:e.DiagnosticCategory.Error,key:"Property_0_is_missing_in_type_1_2324",message:"Property '{0}' is missing in type '{1}'."},Property_0_is_private_in_type_1_but_not_in_type_2:{code:2325,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_in_type_1_but_not_in_type_2_2325",message:"Property '{0}' is private in type '{1}' but not in type '{2}'."},Types_of_property_0_are_incompatible:{code:2326,category:e.DiagnosticCategory.Error,key:"Types_of_property_0_are_incompatible_2326",message:"Types of property '{0}' are incompatible."},Property_0_is_optional_in_type_1_but_required_in_type_2:{code:2327,category:e.DiagnosticCategory.Error,key:"Property_0_is_optional_in_type_1_but_required_in_type_2_2327",message:"Property '{0}' is optional in type '{1}' but required in type '{2}'."},Types_of_parameters_0_and_1_are_incompatible:{code:2328,category:e.DiagnosticCategory.Error,key:"Types_of_parameters_0_and_1_are_incompatible_2328",message:"Types of parameters '{0}' and '{1}' are incompatible."},Index_signature_is_missing_in_type_0:{code:2329,category:e.DiagnosticCategory.Error,key:"Index_signature_is_missing_in_type_0_2329",message:"Index signature is missing in type '{0}'."},Index_signatures_are_incompatible:{code:2330,category:e.DiagnosticCategory.Error,key:"Index_signatures_are_incompatible_2330",message:"Index signatures are incompatible."},this_cannot_be_referenced_in_a_module_or_namespace_body:{code:2331,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_module_or_namespace_body_2331",message:"'this' cannot be referenced in a module or namespace body."},this_cannot_be_referenced_in_current_location:{code:2332,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_current_location_2332",message:"'this' cannot be referenced in current location."},this_cannot_be_referenced_in_constructor_arguments:{code:2333,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_constructor_arguments_2333",message:"'this' cannot be referenced in constructor arguments."},this_cannot_be_referenced_in_a_static_property_initializer:{code:2334,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_static_property_initializer_2334",message:"'this' cannot be referenced in a static property initializer."},super_can_only_be_referenced_in_a_derived_class:{code:2335,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_a_derived_class_2335",message:"'super' can only be referenced in a derived class."},super_cannot_be_referenced_in_constructor_arguments:{code:2336,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_constructor_arguments_2336",message:"'super' cannot be referenced in constructor arguments."},Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:{code:2337,category:e.DiagnosticCategory.Error,key:"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337",message:"Super calls are not permitted outside constructors or in nested functions inside constructors."},super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:{code:2338,category:e.DiagnosticCategory.Error,key:"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338",message:"'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."},Property_0_does_not_exist_on_type_1:{code:2339,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_2339",message:"Property '{0}' does not exist on type '{1}'."},Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:{code:2340,category:e.DiagnosticCategory.Error,key:"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",message:"Only public and protected methods of the base class are accessible via the 'super' keyword."},Property_0_is_private_and_only_accessible_within_class_1:{code:2341,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_and_only_accessible_within_class_1_2341",message:"Property '{0}' is private and only accessible within class '{1}'."},An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:{code:2342,category:e.DiagnosticCategory.Error,key:"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",message:"An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."},This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:{code:2343,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",message:"This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."},Type_0_does_not_satisfy_the_constraint_1:{code:2344,category:e.DiagnosticCategory.Error,key:"Type_0_does_not_satisfy_the_constraint_1_2344",message:"Type '{0}' does not satisfy the constraint '{1}'."},Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:{code:2345,category:e.DiagnosticCategory.Error,key:"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345",message:"Argument of type '{0}' is not assignable to parameter of type '{1}'."},Supplied_parameters_do_not_match_any_signature_of_call_target:{code:2346,category:e.DiagnosticCategory.Error,key:"Supplied_parameters_do_not_match_any_signature_of_call_target_2346",message:"Supplied parameters do not match any signature of call target."},Untyped_function_calls_may_not_accept_type_arguments:{code:2347,category:e.DiagnosticCategory.Error,key:"Untyped_function_calls_may_not_accept_type_arguments_2347",message:"Untyped function calls may not accept type arguments."},Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:{code:2348,category:e.DiagnosticCategory.Error,key:"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348",message:"Value of type '{0}' is not callable. Did you mean to include 'new'?"},Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:{code:2349,category:e.DiagnosticCategory.Error,key:"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349",message:"Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."},Only_a_void_function_can_be_called_with_the_new_keyword:{code:2350,category:e.DiagnosticCategory.Error,key:"Only_a_void_function_can_be_called_with_the_new_keyword_2350",message:"Only a void function can be called with the 'new' keyword."},Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:{code:2351,category:e.DiagnosticCategory.Error,key:"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",message:"Cannot use 'new' with an expression whose type lacks a call or construct signature."},Type_0_cannot_be_converted_to_type_1:{code:2352,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_converted_to_type_1_2352",message:"Type '{0}' cannot be converted to type '{1}'."},Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:{code:2353,category:e.DiagnosticCategory.Error,key:"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",message:"Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."},This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:{code:2354,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354",message:"This syntax requires an imported helper but module '{0}' cannot be found."},A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:{code:2355,category:e.DiagnosticCategory.Error,key:"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",message:"A function whose declared type is neither 'void' nor 'any' must return a value."},An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:{code:2356,category:e.DiagnosticCategory.Error,key:"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356",message:"An arithmetic operand must be of type 'any', 'number' or an enum type."},The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:{code:2357,category:e.DiagnosticCategory.Error,key:"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",message:"The operand of an increment or decrement operator must be a variable or a property access."},The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2358,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358",message:"The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."},The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:{code:2359,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359",message:"The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."},The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:{code:2360,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360",message:"The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."},The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2361,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361",message:"The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."},The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2362,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362",message:"The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2363,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363",message:"The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:{code:2364,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364",message:"The left-hand side of an assignment expression must be a variable or a property access."},Operator_0_cannot_be_applied_to_types_1_and_2:{code:2365,category:e.DiagnosticCategory.Error,key:"Operator_0_cannot_be_applied_to_types_1_and_2_2365",message:"Operator '{0}' cannot be applied to types '{1}' and '{2}'."},Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:{code:2366,category:e.DiagnosticCategory.Error,key:"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366",message:"Function lacks ending return statement and return type does not include 'undefined'."},Type_parameter_name_cannot_be_0:{code:2368,category:e.DiagnosticCategory.Error,key:"Type_parameter_name_cannot_be_0_2368",message:"Type parameter name cannot be '{0}'."},A_parameter_property_is_only_allowed_in_a_constructor_implementation:{code:2369,category:e.DiagnosticCategory.Error,key:"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369",message:"A parameter property is only allowed in a constructor implementation."},A_rest_parameter_must_be_of_an_array_type:{code:2370,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_of_an_array_type_2370",message:"A rest parameter must be of an array type."},A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:{code:2371,category:e.DiagnosticCategory.Error,key:"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371",message:"A parameter initializer is only allowed in a function or constructor implementation."},Parameter_0_cannot_be_referenced_in_its_initializer:{code:2372,category:e.DiagnosticCategory.Error,key:"Parameter_0_cannot_be_referenced_in_its_initializer_2372",message:"Parameter '{0}' cannot be referenced in its initializer."},Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:{code:2373,category:e.DiagnosticCategory.Error,key:"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373",message:"Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."},Duplicate_string_index_signature:{code:2374,category:e.DiagnosticCategory.Error,key:"Duplicate_string_index_signature_2374",message:"Duplicate string index signature."},Duplicate_number_index_signature:{code:2375,category:e.DiagnosticCategory.Error,key:"Duplicate_number_index_signature_2375",message:"Duplicate number index signature."},A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:{code:2376,category:e.DiagnosticCategory.Error,key:"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376",message:"A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."},Constructors_for_derived_classes_must_contain_a_super_call:{code:2377,category:e.DiagnosticCategory.Error,key:"Constructors_for_derived_classes_must_contain_a_super_call_2377",message:"Constructors for derived classes must contain a 'super' call."},A_get_accessor_must_return_a_value:{code:2378,category:e.DiagnosticCategory.Error,key:"A_get_accessor_must_return_a_value_2378",message:"A 'get' accessor must return a value."},Getter_and_setter_accessors_do_not_agree_in_visibility:{code:2379,category:e.DiagnosticCategory.Error,key:"Getter_and_setter_accessors_do_not_agree_in_visibility_2379",message:"Getter and setter accessors do not agree in visibility."},get_and_set_accessor_must_have_the_same_type:{code:2380,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_type_2380",message:"'get' and 'set' accessor must have the same type."},A_signature_with_an_implementation_cannot_use_a_string_literal_type:{code:2381,category:e.DiagnosticCategory.Error,key:"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381",message:"A signature with an implementation cannot use a string literal type."},Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:{code:2382,category:e.DiagnosticCategory.Error,key:"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382",message:"Specialized overload signature is not assignable to any non-specialized signature."},Overload_signatures_must_all_be_exported_or_non_exported:{code:2383,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_exported_or_non_exported_2383",message:"Overload signatures must all be exported or non-exported."},Overload_signatures_must_all_be_ambient_or_non_ambient:{code:2384,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_ambient_or_non_ambient_2384",message:"Overload signatures must all be ambient or non-ambient."},Overload_signatures_must_all_be_public_private_or_protected:{code:2385,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_public_private_or_protected_2385",message:"Overload signatures must all be public, private or protected."},Overload_signatures_must_all_be_optional_or_required:{code:2386,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_optional_or_required_2386",message:"Overload signatures must all be optional or required."},Function_overload_must_be_static:{code:2387,category:e.DiagnosticCategory.Error,key:"Function_overload_must_be_static_2387",message:"Function overload must be static."},Function_overload_must_not_be_static:{code:2388,category:e.DiagnosticCategory.Error,key:"Function_overload_must_not_be_static_2388",message:"Function overload must not be static."},Function_implementation_name_must_be_0:{code:2389,category:e.DiagnosticCategory.Error,key:"Function_implementation_name_must_be_0_2389",message:"Function implementation name must be '{0}'."},Constructor_implementation_is_missing:{code:2390,category:e.DiagnosticCategory.Error,key:"Constructor_implementation_is_missing_2390",message:"Constructor implementation is missing."},Function_implementation_is_missing_or_not_immediately_following_the_declaration:{code:2391,category:e.DiagnosticCategory.Error,key:"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391",message:"Function implementation is missing or not immediately following the declaration."},Multiple_constructor_implementations_are_not_allowed:{code:2392,category:e.DiagnosticCategory.Error,key:"Multiple_constructor_implementations_are_not_allowed_2392",message:"Multiple constructor implementations are not allowed."},Duplicate_function_implementation:{code:2393,category:e.DiagnosticCategory.Error,key:"Duplicate_function_implementation_2393",message:"Duplicate function implementation."},Overload_signature_is_not_compatible_with_function_implementation:{code:2394,category:e.DiagnosticCategory.Error,key:"Overload_signature_is_not_compatible_with_function_implementation_2394",message:"Overload signature is not compatible with function implementation."},Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:{code:2395,category:e.DiagnosticCategory.Error,key:"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395",message:"Individual declarations in merged declaration '{0}' must be all exported or all local."},Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:{code:2396,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396",message:"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."},Declaration_name_conflicts_with_built_in_global_identifier_0:{code:2397,category:e.DiagnosticCategory.Error,key:"Declaration_name_conflicts_with_built_in_global_identifier_0_2397",message:"Declaration name conflicts with built-in global identifier '{0}'."},Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:{code:2399,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399",message:"Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."},Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:{code:2400,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400",message:"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."},Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:{code:2401,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401",message:"Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."},Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:{code:2402,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402",message:"Expression resolves to '_super' that compiler uses to capture base class reference."},Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:{code:2403,category:e.DiagnosticCategory.Error,key:"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403",message:"Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."},The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:{code:2404,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404",message:"The left-hand side of a 'for...in' statement cannot use a type annotation."},The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:{code:2405,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405",message:"The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."},The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:{code:2406,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406",message:"The left-hand side of a 'for...in' statement must be a variable or a property access."},The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2407,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407",message:"The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."},Setters_cannot_return_a_value:{code:2408,category:e.DiagnosticCategory.Error,key:"Setters_cannot_return_a_value_2408",message:"Setters cannot return a value."},Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:{code:2409,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409",message:"Return type of constructor signature must be assignable to the instance type of the class."},The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:{code:2410,category:e.DiagnosticCategory.Error,key:"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410",message:"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."},Property_0_of_type_1_is_not_assignable_to_string_index_type_2:{code:2411,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411",message:"Property '{0}' of type '{1}' is not assignable to string index type '{2}'."},Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:{code:2412,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412",message:"Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."},Numeric_index_type_0_is_not_assignable_to_string_index_type_1:{code:2413,category:e.DiagnosticCategory.Error,key:"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413",message:"Numeric index type '{0}' is not assignable to string index type '{1}'."},Class_name_cannot_be_0:{code:2414,category:e.DiagnosticCategory.Error,key:"Class_name_cannot_be_0_2414",message:"Class name cannot be '{0}'."},Class_0_incorrectly_extends_base_class_1:{code:2415,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_extends_base_class_1_2415",message:"Class '{0}' incorrectly extends base class '{1}'."},Class_static_side_0_incorrectly_extends_base_class_static_side_1:{code:2417,category:e.DiagnosticCategory.Error,key:"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417",message:"Class static side '{0}' incorrectly extends base class static side '{1}'."},Class_0_incorrectly_implements_interface_1:{code:2420,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_implements_interface_1_2420",message:"Class '{0}' incorrectly implements interface '{1}'."},A_class_may_only_implement_another_class_or_interface:{code:2422,category:e.DiagnosticCategory.Error,key:"A_class_may_only_implement_another_class_or_interface_2422",message:"A class may only implement another class or interface."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:{code:2423,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:{code:2424,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."},Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:{code:2425,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425",message:"Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."},Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:{code:2426,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426",message:"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."},Interface_name_cannot_be_0:{code:2427,category:e.DiagnosticCategory.Error,key:"Interface_name_cannot_be_0_2427",message:"Interface name cannot be '{0}'."},All_declarations_of_0_must_have_identical_type_parameters:{code:2428,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_type_parameters_2428",message:"All declarations of '{0}' must have identical type parameters."},Interface_0_incorrectly_extends_interface_1:{code:2430,category:e.DiagnosticCategory.Error,key:"Interface_0_incorrectly_extends_interface_1_2430",message:"Interface '{0}' incorrectly extends interface '{1}'."},Enum_name_cannot_be_0:{code:2431,category:e.DiagnosticCategory.Error,key:"Enum_name_cannot_be_0_2431",message:"Enum name cannot be '{0}'."},In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:{code:2432,category:e.DiagnosticCategory.Error,key:"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432",message:"In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."},A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:{code:2433,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433",message:"A namespace declaration cannot be in a different file from a class or function with which it is merged."},A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:{code:2434,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434",message:"A namespace declaration cannot be located prior to a class or function with which it is merged."},Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:{code:2435,category:e.DiagnosticCategory.Error,key:"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435",message:"Ambient modules cannot be nested in other modules or namespaces."},Ambient_module_declaration_cannot_specify_relative_module_name:{code:2436,category:e.DiagnosticCategory.Error,key:"Ambient_module_declaration_cannot_specify_relative_module_name_2436",message:"Ambient module declaration cannot specify relative module name."},Module_0_is_hidden_by_a_local_declaration_with_the_same_name:{code:2437,category:e.DiagnosticCategory.Error,key:"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437",message:"Module '{0}' is hidden by a local declaration with the same name."},Import_name_cannot_be_0:{code:2438,category:e.DiagnosticCategory.Error,key:"Import_name_cannot_be_0_2438",message:"Import name cannot be '{0}'."},Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:{code:2439,category:e.DiagnosticCategory.Error,key:"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439",message:"Import or export declaration in an ambient module declaration cannot reference module through relative module name."},Import_declaration_conflicts_with_local_declaration_of_0:{code:2440,category:e.DiagnosticCategory.Error,key:"Import_declaration_conflicts_with_local_declaration_of_0_2440",message:"Import declaration conflicts with local declaration of '{0}'."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:{code:2441,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."},Types_have_separate_declarations_of_a_private_property_0:{code:2442,category:e.DiagnosticCategory.Error,key:"Types_have_separate_declarations_of_a_private_property_0_2442",message:"Types have separate declarations of a private property '{0}'."},Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:{code:2443,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443",message:"Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."},Property_0_is_protected_in_type_1_but_public_in_type_2:{code:2444,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_in_type_1_but_public_in_type_2_2444",message:"Property '{0}' is protected in type '{1}' but public in type '{2}'."},Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:{code:2445,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445",message:"Property '{0}' is protected and only accessible within class '{1}' and its subclasses."},Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:{code:2446,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446",message:"Property '{0}' is protected and only accessible through an instance of class '{1}'."},The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:{code:2447,category:e.DiagnosticCategory.Error,key:"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447",message:"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."},Block_scoped_variable_0_used_before_its_declaration:{code:2448,category:e.DiagnosticCategory.Error,key:"Block_scoped_variable_0_used_before_its_declaration_2448",message:"Block-scoped variable '{0}' used before its declaration."},Class_0_used_before_its_declaration:{code:2449,category:e.DiagnosticCategory.Error,key:"Class_0_used_before_its_declaration_2449",message:"Class '{0}' used before its declaration."},Enum_0_used_before_its_declaration:{code:2450,category:e.DiagnosticCategory.Error,key:"Enum_0_used_before_its_declaration_2450",message:"Enum '{0}' used before its declaration."},Cannot_redeclare_block_scoped_variable_0:{code:2451,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_block_scoped_variable_0_2451",message:"Cannot redeclare block-scoped variable '{0}'."},An_enum_member_cannot_have_a_numeric_name:{code:2452,category:e.DiagnosticCategory.Error,key:"An_enum_member_cannot_have_a_numeric_name_2452",message:"An enum member cannot have a numeric name."},The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:{code:2453,category:e.DiagnosticCategory.Error,key:"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453",message:"The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."},Variable_0_is_used_before_being_assigned:{code:2454,category:e.DiagnosticCategory.Error,key:"Variable_0_is_used_before_being_assigned_2454",message:"Variable '{0}' is used before being assigned."},Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:{code:2455,category:e.DiagnosticCategory.Error,key:"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455",message:"Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."},Type_alias_0_circularly_references_itself:{code:2456,category:e.DiagnosticCategory.Error,key:"Type_alias_0_circularly_references_itself_2456",message:"Type alias '{0}' circularly references itself."},Type_alias_name_cannot_be_0:{code:2457,category:e.DiagnosticCategory.Error,key:"Type_alias_name_cannot_be_0_2457",message:"Type alias name cannot be '{0}'."},An_AMD_module_cannot_have_multiple_name_assignments:{code:2458,category:e.DiagnosticCategory.Error,key:"An_AMD_module_cannot_have_multiple_name_assignments_2458",message:"An AMD module cannot have multiple name assignments."},Type_0_has_no_property_1_and_no_string_index_signature:{code:2459,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_and_no_string_index_signature_2459",message:"Type '{0}' has no property '{1}' and no string index signature."},Type_0_has_no_property_1:{code:2460,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_2460",message:"Type '{0}' has no property '{1}'."},Type_0_is_not_an_array_type:{code:2461,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_2461",message:"Type '{0}' is not an array type."},A_rest_element_must_be_last_in_a_destructuring_pattern:{code:2462,category:e.DiagnosticCategory.Error,key:"A_rest_element_must_be_last_in_a_destructuring_pattern_2462",message:"A rest element must be last in a destructuring pattern."},A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:{code:2463,category:e.DiagnosticCategory.Error,key:"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463",message:"A binding pattern parameter cannot be optional in an implementation signature."},A_computed_property_name_must_be_of_type_string_number_symbol_or_any:{code:2464,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464",message:"A computed property name must be of type 'string', 'number', 'symbol', or 'any'."},this_cannot_be_referenced_in_a_computed_property_name:{code:2465,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_computed_property_name_2465",message:"'this' cannot be referenced in a computed property name."},super_cannot_be_referenced_in_a_computed_property_name:{code:2466,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_a_computed_property_name_2466",message:"'super' cannot be referenced in a computed property name."},A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:{code:2467,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467",message:"A computed property name cannot reference a type parameter from its containing type."},Cannot_find_global_value_0:{code:2468,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_value_0_2468",message:"Cannot find global value '{0}'."},The_0_operator_cannot_be_applied_to_type_symbol:{code:2469,category:e.DiagnosticCategory.Error,key:"The_0_operator_cannot_be_applied_to_type_symbol_2469",message:"The '{0}' operator cannot be applied to type 'symbol'."},Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:{code:2470,category:e.DiagnosticCategory.Error,key:"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470",message:"'Symbol' reference does not refer to the global Symbol constructor object."},A_computed_property_name_of_the_form_0_must_be_of_type_symbol:{code:2471,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471",message:"A computed property name of the form '{0}' must be of type 'symbol'."},Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:{code:2472,category:e.DiagnosticCategory.Error,key:"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472",message:"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."},Enum_declarations_must_all_be_const_or_non_const:{code:2473,category:e.DiagnosticCategory.Error,key:"Enum_declarations_must_all_be_const_or_non_const_2473",message:"Enum declarations must all be const or non-const."},In_const_enum_declarations_member_initializer_must_be_constant_expression:{code:2474,category:e.DiagnosticCategory.Error,key:"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474",message:"In 'const' enum declarations member initializer must be constant expression."},const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:{code:2475,category:e.DiagnosticCategory.Error,key:"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475",message:"'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."},A_const_enum_member_can_only_be_accessed_using_a_string_literal:{code:2476,category:e.DiagnosticCategory.Error,key:"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476",message:"A const enum member can only be accessed using a string literal."},const_enum_member_initializer_was_evaluated_to_a_non_finite_value:{code:2477,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477",message:"'const' enum member initializer was evaluated to a non-finite value."},const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:{code:2478,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478",message:"'const' enum member initializer was evaluated to disallowed value 'NaN'."},Property_0_does_not_exist_on_const_enum_1:{code:2479,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_const_enum_1_2479",message:"Property '{0}' does not exist on 'const' enum '{1}'."},let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:{code:2480,category:e.DiagnosticCategory.Error,key:"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480",message:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:{code:2481,category:e.DiagnosticCategory.Error,key:"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481",message:"Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."},The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:{code:2483,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483",message:"The left-hand side of a 'for...of' statement cannot use a type annotation."},Export_declaration_conflicts_with_exported_declaration_of_0:{code:2484,category:e.DiagnosticCategory.Error,key:"Export_declaration_conflicts_with_exported_declaration_of_0_2484",message:"Export declaration conflicts with exported declaration of '{0}'."},The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:{code:2487,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487",message:"The left-hand side of a 'for...of' statement must be a variable or a property access."},Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2488,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488",message:"Type must have a '[Symbol.iterator]()' method that returns an iterator."},An_iterator_must_have_a_next_method:{code:2489,category:e.DiagnosticCategory.Error,key:"An_iterator_must_have_a_next_method_2489",message:"An iterator must have a 'next()' method."},The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:{code:2490,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490",message:"The type returned by the 'next()' method of an iterator must have a 'value' property."},The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:{code:2491,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491",message:"The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},Cannot_redeclare_identifier_0_in_catch_clause:{code:2492,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_identifier_0_in_catch_clause_2492",message:"Cannot redeclare identifier '{0}' in catch clause."},Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:{code:2493,category:e.DiagnosticCategory.Error,key:"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493",message:"Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."},Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:{code:2494,category:e.DiagnosticCategory.Error,key:"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494",message:"Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."},Type_0_is_not_an_array_type_or_a_string_type:{code:2495,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_2495",message:"Type '{0}' is not an array type or a string type."},The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:{code:2496,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496",message:"The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."},Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:{code:2497,category:e.DiagnosticCategory.Error,key:"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497",message:"Module '{0}' resolves to a non-module entity and cannot be imported using this construct."},Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:{code:2498,category:e.DiagnosticCategory.Error,key:"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498",message:"Module '{0}' uses 'export =' and cannot be used with 'export *'."},An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2499,category:e.DiagnosticCategory.Error,key:"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499",message:"An interface can only extend an identifier/qualified-name with optional type arguments."},A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2500,category:e.DiagnosticCategory.Error,key:"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500",message:"A class can only implement an identifier/qualified-name with optional type arguments."},A_rest_element_cannot_contain_a_binding_pattern:{code:2501,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_contain_a_binding_pattern_2501",message:"A rest element cannot contain a binding pattern."},_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:{code:2502,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502",message:"'{0}' is referenced directly or indirectly in its own type annotation."},Cannot_find_namespace_0:{code:2503,category:e.DiagnosticCategory.Error,key:"Cannot_find_namespace_0_2503",message:"Cannot find namespace '{0}'."},Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:{code:2504,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504",message:"Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."},A_generator_cannot_have_a_void_type_annotation:{code:2505,category:e.DiagnosticCategory.Error,key:"A_generator_cannot_have_a_void_type_annotation_2505",message:"A generator cannot have a 'void' type annotation."},_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:{code:2506,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506",message:"'{0}' is referenced directly or indirectly in its own base expression."},Type_0_is_not_a_constructor_function_type:{code:2507,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_constructor_function_type_2507",message:"Type '{0}' is not a constructor function type."},No_base_constructor_has_the_specified_number_of_type_arguments:{code:2508,category:e.DiagnosticCategory.Error,key:"No_base_constructor_has_the_specified_number_of_type_arguments_2508",message:"No base constructor has the specified number of type arguments."},Base_constructor_return_type_0_is_not_a_class_or_interface_type:{code:2509,category:e.DiagnosticCategory.Error,key:"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509",message:"Base constructor return type '{0}' is not a class or interface type."},Base_constructors_must_all_have_the_same_return_type:{code:2510,category:e.DiagnosticCategory.Error,key:"Base_constructors_must_all_have_the_same_return_type_2510",message:"Base constructors must all have the same return type."},Cannot_create_an_instance_of_the_abstract_class_0:{code:2511,category:e.DiagnosticCategory.Error,key:"Cannot_create_an_instance_of_the_abstract_class_0_2511",message:"Cannot create an instance of the abstract class '{0}'."},Overload_signatures_must_all_be_abstract_or_non_abstract:{code:2512,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_abstract_or_non_abstract_2512",message:"Overload signatures must all be abstract or non-abstract."},Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:{code:2513,category:e.DiagnosticCategory.Error,key:"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513",message:"Abstract method '{0}' in class '{1}' cannot be accessed via super expression."},Classes_containing_abstract_methods_must_be_marked_abstract:{code:2514,category:e.DiagnosticCategory.Error,key:"Classes_containing_abstract_methods_must_be_marked_abstract_2514",message:"Classes containing abstract methods must be marked abstract."},Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:{code:2515,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515",message:"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."},All_declarations_of_an_abstract_method_must_be_consecutive:{code:2516,category:e.DiagnosticCategory.Error,key:"All_declarations_of_an_abstract_method_must_be_consecutive_2516",message:"All declarations of an abstract method must be consecutive."},Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:{code:2517,category:e.DiagnosticCategory.Error,key:"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517",message:"Cannot assign an abstract constructor type to a non-abstract constructor type."},A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:{code:2518,category:e.DiagnosticCategory.Error,key:"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518",message:"A 'this'-based type guard is not compatible with a parameter-based type guard."},An_async_iterator_must_have_a_next_method:{code:2519,category:e.DiagnosticCategory.Error,key:"An_async_iterator_must_have_a_next_method_2519",message:"An async iterator must have a 'next()' method."},Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:{code:2520,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520",message:"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."},Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:{code:2521,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521",message:"Expression resolves to variable declaration '{0}' that compiler uses to support async functions."},The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:{code:2522,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522",message:"The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."},yield_expressions_cannot_be_used_in_a_parameter_initializer:{code:2523,category:e.DiagnosticCategory.Error,key:"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523",message:"'yield' expressions cannot be used in a parameter initializer."},await_expressions_cannot_be_used_in_a_parameter_initializer:{code:2524,category:e.DiagnosticCategory.Error,key:"await_expressions_cannot_be_used_in_a_parameter_initializer_2524",message:"'await' expressions cannot be used in a parameter initializer."},Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:{code:2525,category:e.DiagnosticCategory.Error,key:"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525",message:"Initializer provides no value for this binding element and the binding element has no default value."},A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:{code:2526,category:e.DiagnosticCategory.Error,key:"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526",message:"A 'this' type is available only in a non-static member of a class or interface."},The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:{code:2527,category:e.DiagnosticCategory.Error,key:"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527",message:"The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."},A_module_cannot_have_multiple_default_exports:{code:2528,category:e.DiagnosticCategory.Error,key:"A_module_cannot_have_multiple_default_exports_2528",message:"A module cannot have multiple default exports."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:{code:2529,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."},Property_0_is_incompatible_with_index_signature:{code:2530,category:e.DiagnosticCategory.Error,key:"Property_0_is_incompatible_with_index_signature_2530",message:"Property '{0}' is incompatible with index signature."},Object_is_possibly_null:{code:2531,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_2531",message:"Object is possibly 'null'."},Object_is_possibly_undefined:{code:2532,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_undefined_2532",message:"Object is possibly 'undefined'."},Object_is_possibly_null_or_undefined:{code:2533,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_or_undefined_2533",message:"Object is possibly 'null' or 'undefined'."},A_function_returning_never_cannot_have_a_reachable_end_point:{code:2534,category:e.DiagnosticCategory.Error,key:"A_function_returning_never_cannot_have_a_reachable_end_point_2534",message:"A function returning 'never' cannot have a reachable end point."},Enum_type_0_has_members_with_initializers_that_are_not_literals:{code:2535,category:e.DiagnosticCategory.Error,key:"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535",message:"Enum type '{0}' has members with initializers that are not literals."},Type_0_cannot_be_used_to_index_type_1:{code:2536,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_to_index_type_1_2536",message:"Type '{0}' cannot be used to index type '{1}'."},Type_0_has_no_matching_index_signature_for_type_1:{code:2537,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_matching_index_signature_for_type_1_2537",message:"Type '{0}' has no matching index signature for type '{1}'."},Type_0_cannot_be_used_as_an_index_type:{code:2538,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_as_an_index_type_2538",message:"Type '{0}' cannot be used as an index type."},Cannot_assign_to_0_because_it_is_not_a_variable:{code:2539,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_not_a_variable_2539",message:"Cannot assign to '{0}' because it is not a variable."},Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:{code:2540,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540",message:"Cannot assign to '{0}' because it is a constant or a read-only property."},The_target_of_an_assignment_must_be_a_variable_or_a_property_access:{code:2541,category:e.DiagnosticCategory.Error,key:"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541",message:"The target of an assignment must be a variable or a property access."},Index_signature_in_type_0_only_permits_reading:{code:2542,category:e.DiagnosticCategory.Error,key:"Index_signature_in_type_0_only_permits_reading_2542",message:"Index signature in type '{0}' only permits reading."},Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:{code:2543,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543",message:"Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."},Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:{code:2544,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544",message:"Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."},A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:{code:2545,category:e.DiagnosticCategory.Error,key:"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545",message:"A mixin class must have a constructor with a single rest parameter of type 'any[]'."},Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:{code:2546,category:e.DiagnosticCategory.Error,key:"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546",message:"Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."},The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:{code:2547,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547",message:"The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."},Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2548,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548",message:"Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2549,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549",message:"Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:{code:2550,category:e.DiagnosticCategory.Error,key:"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550",message:"Generic type instantiation is excessively deep and possibly infinite."},JSX_element_attributes_type_0_may_not_be_a_union_type:{code:2600,category:e.DiagnosticCategory.Error,key:"JSX_element_attributes_type_0_may_not_be_a_union_type_2600",message:"JSX element attributes type '{0}' may not be a union type."},The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:{code:2601,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601",message:"The return type of a JSX element constructor must return an object type."},JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:{code:2602,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602",message:"JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."},Property_0_in_type_1_is_not_assignable_to_type_2:{code:2603,category:e.DiagnosticCategory.Error,key:"Property_0_in_type_1_is_not_assignable_to_type_2_2603",message:"Property '{0}' in type '{1}' is not assignable to type '{2}'."},JSX_element_type_0_does_not_have_any_construct_or_call_signatures:{code:2604,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604",message:"JSX element type '{0}' does not have any construct or call signatures."},JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:{code:2605,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605",message:"JSX element type '{0}' is not a constructor function for JSX elements."},Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:{code:2606,category:e.DiagnosticCategory.Error,key:"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606",message:"Property '{0}' of JSX spread attribute is not assignable to target property."},JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:{code:2607,category:e.DiagnosticCategory.Error,key:"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607",message:"JSX element class does not support attributes because it does not have a '{0}' property."},The_global_type_JSX_0_may_not_have_more_than_one_property:{code:2608,category:e.DiagnosticCategory.Error,key:"The_global_type_JSX_0_may_not_have_more_than_one_property_2608",message:"The global type 'JSX.{0}' may not have more than one property."},JSX_spread_child_must_be_an_array_type:{code:2609,category:e.DiagnosticCategory.Error,key:"JSX_spread_child_must_be_an_array_type_2609",message:"JSX spread child must be an array type."},Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:{code:2649,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649",message:"Cannot augment module '{0}' with value exports because it resolves to a non-module entity."},Cannot_emit_namespaced_JSX_elements_in_React:{code:2650,category:e.DiagnosticCategory.Error,key:"Cannot_emit_namespaced_JSX_elements_in_React_2650",message:"Cannot emit namespaced JSX elements in React."},A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:{code:2651,category:e.DiagnosticCategory.Error,key:"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651",message:"A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."},Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:{code:2652,category:e.DiagnosticCategory.Error,key:"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652",message:"Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."},Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:{code:2653,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653",message:"Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."},Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:{code:2654,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654",message:"Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."},Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:{code:2656,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656",message:"Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."},JSX_expressions_must_have_one_parent_element:{code:2657,category:e.DiagnosticCategory.Error,key:"JSX_expressions_must_have_one_parent_element_2657",message:"JSX expressions must have one parent element."},Type_0_provides_no_match_for_the_signature_1:{code:2658,category:e.DiagnosticCategory.Error,key:"Type_0_provides_no_match_for_the_signature_1_2658",message:"Type '{0}' provides no match for the signature '{1}'."},super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:{code:2659,category:e.DiagnosticCategory.Error,key:"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659",message:"'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."},super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:{code:2660,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660",message:"'super' can only be referenced in members of derived classes or object literal expressions."},Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:{code:2661,category:e.DiagnosticCategory.Error,key:"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661",message:"Cannot export '{0}'. Only local declarations can be exported from a module."},Cannot_find_name_0_Did_you_mean_the_static_member_1_0:{code:2662,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662",message:"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"},Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:{code:2663,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663",message:"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"},Invalid_module_name_in_augmentation_module_0_cannot_be_found:{code:2664,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664",message:"Invalid module name in augmentation, module '{0}' cannot be found."},Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:{code:2665,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665",message:"Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."},Exports_and_export_assignments_are_not_permitted_in_module_augmentations:{code:2666,category:e.DiagnosticCategory.Error,key:"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666",message:"Exports and export assignments are not permitted in module augmentations."},Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:{code:2667,category:e.DiagnosticCategory.Error,key:"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667",message:"Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."},export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:{code:2668,category:e.DiagnosticCategory.Error,key:"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668",message:"'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."},Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:{code:2669,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669",message:"Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."},Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:{code:2670,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670",message:"Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."},Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:{code:2671,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671",message:"Cannot augment module '{0}' because it resolves to a non-module entity."},Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:{code:2672,category:e.DiagnosticCategory.Error,key:"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672",message:"Cannot assign a '{0}' constructor type to a '{1}' constructor type."},Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:{code:2673,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673",message:"Constructor of class '{0}' is private and only accessible within the class declaration."},Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:{code:2674,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674",message:"Constructor of class '{0}' is protected and only accessible within the class declaration."},Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:{code:2675,category:e.DiagnosticCategory.Error,key:"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675",message:"Cannot extend a class '{0}'. Class constructor is marked as private."},Accessors_must_both_be_abstract_or_non_abstract:{code:2676,category:e.DiagnosticCategory.Error,key:"Accessors_must_both_be_abstract_or_non_abstract_2676",message:"Accessors must both be abstract or non-abstract."},A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:{code:2677,category:e.DiagnosticCategory.Error,key:"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677",message:"A type predicate's type must be assignable to its parameter's type."},Type_0_is_not_comparable_to_type_1:{code:2678,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_comparable_to_type_1_2678",message:"Type '{0}' is not comparable to type '{1}'."},A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:{code:2679,category:e.DiagnosticCategory.Error,key:"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679",message:"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."},A_this_parameter_must_be_the_first_parameter:{code:2680,category:e.DiagnosticCategory.Error,key:"A_this_parameter_must_be_the_first_parameter_2680",message:"A 'this' parameter must be the first parameter."},A_constructor_cannot_have_a_this_parameter:{code:2681,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_have_a_this_parameter_2681",message:"A constructor cannot have a 'this' parameter."},get_and_set_accessor_must_have_the_same_this_type:{code:2682,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_this_type_2682",message:"'get' and 'set' accessor must have the same 'this' type."},this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:{code:2683,category:e.DiagnosticCategory.Error,key:"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683",message:"'this' implicitly has type 'any' because it does not have a type annotation."},The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:{code:2684,category:e.DiagnosticCategory.Error,key:"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684",message:"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."},The_this_types_of_each_signature_are_incompatible:{code:2685,category:e.DiagnosticCategory.Error,key:"The_this_types_of_each_signature_are_incompatible_2685",message:"The 'this' types of each signature are incompatible."},_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:{code:2686,category:e.DiagnosticCategory.Error,key:"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686",message:"'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."},All_declarations_of_0_must_have_identical_modifiers:{code:2687,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_modifiers_2687",message:"All declarations of '{0}' must have identical modifiers."},Cannot_find_type_definition_file_for_0:{code:2688,category:e.DiagnosticCategory.Error,key:"Cannot_find_type_definition_file_for_0_2688",message:"Cannot find type definition file for '{0}'."},Cannot_extend_an_interface_0_Did_you_mean_implements:{code:2689,category:e.DiagnosticCategory.Error,key:"Cannot_extend_an_interface_0_Did_you_mean_implements_2689",message:"Cannot extend an interface '{0}'. Did you mean 'implements'?"},An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:{code:2691,category:e.DiagnosticCategory.Error,key:"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691",message:"An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."},_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:{code:2692,category:e.DiagnosticCategory.Error,key:"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692",message:"'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."},_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:{code:2693,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693",message:"'{0}' only refers to a type, but is being used as a value here."},Namespace_0_has_no_exported_member_1:{code:2694,category:e.DiagnosticCategory.Error,key:"Namespace_0_has_no_exported_member_1_2694",message:"Namespace '{0}' has no exported member '{1}'."},Left_side_of_comma_operator_is_unused_and_has_no_side_effects:{code:2695,category:e.DiagnosticCategory.Error,key:"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695",message:"Left side of comma operator is unused and has no side effects."},The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:{code:2696,category:e.DiagnosticCategory.Error,key:"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696",message:"The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"},An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:{code:2697,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697",message:"An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."},Spread_types_may_only_be_created_from_object_types:{code:2698,category:e.DiagnosticCategory.Error,key:"Spread_types_may_only_be_created_from_object_types_2698",message:"Spread types may only be created from object types."},Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:{code:2699,category:e.DiagnosticCategory.Error,key:"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699",message:"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."},Rest_types_may_only_be_created_from_object_types:{code:2700,category:e.DiagnosticCategory.Error,key:"Rest_types_may_only_be_created_from_object_types_2700",message:"Rest types may only be created from object types."},The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:{code:2701,category:e.DiagnosticCategory.Error,key:"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701",message:"The target of an object rest assignment must be a variable or a property access."},_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:{code:2702,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702",message:"'{0}' only refers to a type, but is being used as a namespace here."},The_operand_of_a_delete_operator_must_be_a_property_reference:{code:2703,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_must_be_a_property_reference_2703",message:"The operand of a delete operator must be a property reference."},The_operand_of_a_delete_operator_cannot_be_a_read_only_property:{code:2704,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704",message:"The operand of a delete operator cannot be a read-only property."},An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:{code:2705,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705",message:"An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."},Required_type_parameters_may_not_follow_optional_type_parameters:{code:2706,category:e.DiagnosticCategory.Error,key:"Required_type_parameters_may_not_follow_optional_type_parameters_2706",message:"Required type parameters may not follow optional type parameters."},Generic_type_0_requires_between_1_and_2_type_arguments:{code:2707,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_between_1_and_2_type_arguments_2707",message:"Generic type '{0}' requires between {1} and {2} type arguments."},Cannot_use_namespace_0_as_a_value:{code:2708,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_value_2708",message:"Cannot use namespace '{0}' as a value."},Cannot_use_namespace_0_as_a_type:{code:2709,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_type_2709",message:"Cannot use namespace '{0}' as a type."},_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:{code:2710,category:e.DiagnosticCategory.Error,key:"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710",message:"'{0}' are specified twice. The attribute named '{0}' will be overwritten."},Import_declaration_0_is_using_private_name_1:{code:4e3,category:e.DiagnosticCategory.Error,key:"Import_declaration_0_is_using_private_name_1_4000",message:"Import declaration '{0}' is using private name '{1}'."},Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:{code:4002,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002",message:"Type parameter '{0}' of exported class has or is using private name '{1}'."},Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:{code:4004,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004",message:"Type parameter '{0}' of exported interface has or is using private name '{1}'."},Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4006,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006",message:"Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."},Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4008,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008",message:"Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."},Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:{code:4010,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010",message:"Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."},Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:{code:4012,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012",message:"Type parameter '{0}' of public method from exported class has or is using private name '{1}'."},Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:{code:4014,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014",message:"Type parameter '{0}' of method from exported interface has or is using private name '{1}'."},Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:{code:4016,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016",message:"Type parameter '{0}' of exported function has or is using private name '{1}'."},Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:{code:4019,category:e.DiagnosticCategory.Error,key:"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019",message:"Implements clause of exported class '{0}' has or is using private name '{1}'."},extends_clause_of_exported_class_0_has_or_is_using_private_name_1:{code:4020,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020",message:"'extends' clause of exported class '{0}' has or is using private name '{1}'."},extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:{code:4022,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022",message:"'extends' clause of exported interface '{0}' has or is using private name '{1}'."},Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4023,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023",message:"Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."},Exported_variable_0_has_or_is_using_name_1_from_private_module_2:{code:4024,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024",message:"Exported variable '{0}' has or is using name '{1}' from private module '{2}'."},Exported_variable_0_has_or_is_using_private_name_1:{code:4025,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_private_name_1_4025",message:"Exported variable '{0}' has or is using private name '{1}'."},Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4026,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026",message:"Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."},Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4027,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027",message:"Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."},Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:{code:4028,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028",message:"Public static property '{0}' of exported class has or is using private name '{1}'."},Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4029,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029",message:"Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."},Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4030,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030",message:"Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."},Public_property_0_of_exported_class_has_or_is_using_private_name_1:{code:4031,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031",message:"Public property '{0}' of exported class has or is using private name '{1}'."},Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4032,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032",message:"Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."},Property_0_of_exported_interface_has_or_is_using_private_name_1:{code:4033,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033",message:"Property '{0}' of exported interface has or is using private name '{1}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4034,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034",message:"Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4035,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035",message:"Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4036,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036",message:"Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4037,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037",message:"Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4038,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038",message:"Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4039,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039",message:"Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4040,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040",message:"Return type of public static property getter from exported class has or is using private name '{0}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4041,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041",message:"Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4042,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042",message:"Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4043,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043",message:"Return type of public property getter from exported class has or is using private name '{0}'."},Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4044,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044",message:"Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:{code:4045,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045",message:"Return type of constructor signature from exported interface has or is using private name '{0}'."},Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4046,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046",message:"Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:{code:4047,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047",message:"Return type of call signature from exported interface has or is using private name '{0}'."},Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4048,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048",message:"Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:{code:4049,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049",message:"Return type of index signature from exported interface has or is using private name '{0}'."},Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4050,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050",message:"Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4051,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051",message:"Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:{code:4052,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052",message:"Return type of public static method from exported class has or is using private name '{0}'."},Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4053,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053",message:"Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4054,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054",message:"Return type of public method from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:{code:4055,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055",message:"Return type of public method from exported class has or is using private name '{0}'."},Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4056,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056",message:"Return type of method from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:{code:4057,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057",message:"Return type of method from exported interface has or is using private name '{0}'."},Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4058,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058",message:"Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:{code:4059,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059",message:"Return type of exported function has or is using name '{0}' from private module '{1}'."},Return_type_of_exported_function_has_or_is_using_private_name_0:{code:4060,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_private_name_0_4060",message:"Return type of exported function has or is using private name '{0}'."},Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4061,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061",message:"Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4062,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062",message:"Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:{code:4063,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063",message:"Parameter '{0}' of constructor from exported class has or is using private name '{1}'."},Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4064,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064",message:"Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4065,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065",message:"Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."},Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4066,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066",message:"Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4067,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067",message:"Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."},Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4068,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068",message:"Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4069,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069",message:"Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:{code:4070,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070",message:"Parameter '{0}' of public static method from exported class has or is using private name '{1}'."},Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4071,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071",message:"Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4072,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072",message:"Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:{code:4073,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073",message:"Parameter '{0}' of public method from exported class has or is using private name '{1}'."},Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4074,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074",message:"Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:{code:4075,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075",message:"Parameter '{0}' of method from exported interface has or is using private name '{1}'."},Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4076,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076",message:"Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:{code:4077,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077",message:"Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."},Parameter_0_of_exported_function_has_or_is_using_private_name_1:{code:4078,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078",message:"Parameter '{0}' of exported function has or is using private name '{1}'."},Exported_type_alias_0_has_or_is_using_private_name_1:{code:4081,category:e.DiagnosticCategory.Error,key:"Exported_type_alias_0_has_or_is_using_private_name_1_4081",message:"Exported type alias '{0}' has or is using private name '{1}'."},Default_export_of_the_module_has_or_is_using_private_name_0:{code:4082,category:e.DiagnosticCategory.Error,key:"Default_export_of_the_module_has_or_is_using_private_name_0_4082",message:"Default export of the module has or is using private name '{0}'."},Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:{code:4083,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083",message:"Type parameter '{0}' of exported type alias has or is using private name '{1}'."},Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:{code:4090,category:e.DiagnosticCategory.Message,key:"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",message:"Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."},Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4091,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",message:"Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4092,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",message:"Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."},extends_clause_of_exported_class_0_refers_to_a_type_whose_name_cannot_be_referenced:{code:4093,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_class_0_refers_to_a_type_whose_name_cannot_be_referenced_4093",message:"'extends' clause of exported class '{0}' refers to a type whose name cannot be referenced."},The_current_host_does_not_support_the_0_option:{code:5001,category:e.DiagnosticCategory.Error,key:"The_current_host_does_not_support_the_0_option_5001",message:"The current host does not support the '{0}' option."},Cannot_find_the_common_subdirectory_path_for_the_input_files:{code:5009,category:e.DiagnosticCategory.Error,key:"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009",message:"Cannot find the common subdirectory path for the input files."},File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5010,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",message:"File specification cannot end in a recursive directory wildcard ('**'): '{0}'."},File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:{code:5011,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011",message:"File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."},Cannot_read_file_0_Colon_1:{code:5012,category:e.DiagnosticCategory.Error,key:"Cannot_read_file_0_Colon_1_5012",message:"Cannot read file '{0}': {1}."},Failed_to_parse_file_0_Colon_1:{code:5014,category:e.DiagnosticCategory.Error,key:"Failed_to_parse_file_0_Colon_1_5014",message:"Failed to parse file '{0}': {1}."},Unknown_compiler_option_0:{code:5023,category:e.DiagnosticCategory.Error,key:"Unknown_compiler_option_0_5023",message:"Unknown compiler option '{0}'."},Compiler_option_0_requires_a_value_of_type_1:{code:5024,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_requires_a_value_of_type_1_5024",message:"Compiler option '{0}' requires a value of type {1}."},Could_not_write_file_0_Colon_1:{code:5033,category:e.DiagnosticCategory.Error,key:"Could_not_write_file_0_Colon_1_5033",message:"Could not write file '{0}': {1}."},Option_project_cannot_be_mixed_with_source_files_on_a_command_line:{code:5042,category:e.DiagnosticCategory.Error,key:"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042",message:"Option 'project' cannot be mixed with source files on a command line."},Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:{code:5047,category:e.DiagnosticCategory.Error,key:"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047",message:"Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."},Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:{code:5051,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051",message:"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."},Option_0_cannot_be_specified_without_specifying_option_1:{code:5052,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_without_specifying_option_1_5052",message:"Option '{0}' cannot be specified without specifying option '{1}'."},Option_0_cannot_be_specified_with_option_1:{code:5053,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_with_option_1_5053",message:"Option '{0}' cannot be specified with option '{1}'."},A_tsconfig_json_file_is_already_defined_at_Colon_0:{code:5054,category:e.DiagnosticCategory.Error,key:"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054",message:"A 'tsconfig.json' file is already defined at: '{0}'."},Cannot_write_file_0_because_it_would_overwrite_input_file:{code:5055,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_overwrite_input_file_5055",message:"Cannot write file '{0}' because it would overwrite input file."},Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:{code:5056,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056",message:"Cannot write file '{0}' because it would be overwritten by multiple input files."},Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:{code:5057,category:e.DiagnosticCategory.Error,key:"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057",message:"Cannot find a tsconfig.json file at the specified directory: '{0}'."},The_specified_path_does_not_exist_Colon_0:{code:5058,category:e.DiagnosticCategory.Error,key:"The_specified_path_does_not_exist_Colon_0_5058",message:"The specified path does not exist: '{0}'."},Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:{code:5059,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059",message:"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."},Option_paths_cannot_be_used_without_specifying_baseUrl_option:{code:5060,category:e.DiagnosticCategory.Error,key:"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060",message:"Option 'paths' cannot be used without specifying '--baseUrl' option."},Pattern_0_can_have_at_most_one_Asterisk_character:{code:5061,category:e.DiagnosticCategory.Error,key:"Pattern_0_can_have_at_most_one_Asterisk_character_5061",message:"Pattern '{0}' can have at most one '*' character."},Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:{code:5062,category:e.DiagnosticCategory.Error,key:"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062",message:"Substitution '{0}' in pattern '{1}' in can have at most one '*' character."},Substitutions_for_pattern_0_should_be_an_array:{code:5063,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_should_be_an_array_5063",message:"Substitutions for pattern '{0}' should be an array."},Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:{code:5064,category:e.DiagnosticCategory.Error,key:"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064",message:"Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."},File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5065,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065",message:"File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."},Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:{code:5066,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066",message:"Substitutions for pattern '{0}' shouldn't be an empty array."},Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:{code:5067,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067",message:"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."},Concatenate_and_emit_output_to_single_file:{code:6001,category:e.DiagnosticCategory.Message,key:"Concatenate_and_emit_output_to_single_file_6001",message:"Concatenate and emit output to single file."},Generates_corresponding_d_ts_file:{code:6002,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_d_ts_file_6002",message:"Generates corresponding '.d.ts' file."},Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:{code:6003,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003",message:"Specify the location where debugger should locate map files instead of generated locations."},Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:{code:6004,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004",message:"Specify the location where debugger should locate TypeScript files instead of source locations."},Watch_input_files:{code:6005,category:e.DiagnosticCategory.Message,key:"Watch_input_files_6005",message:"Watch input files."},Redirect_output_structure_to_the_directory:{code:6006,category:e.DiagnosticCategory.Message,key:"Redirect_output_structure_to_the_directory_6006",message:"Redirect output structure to the directory."},Do_not_erase_const_enum_declarations_in_generated_code:{code:6007,category:e.DiagnosticCategory.Message,key:"Do_not_erase_const_enum_declarations_in_generated_code_6007",message:"Do not erase const enum declarations in generated code."},Do_not_emit_outputs_if_any_errors_were_reported:{code:6008,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_if_any_errors_were_reported_6008",message:"Do not emit outputs if any errors were reported."},Do_not_emit_comments_to_output:{code:6009,category:e.DiagnosticCategory.Message,key:"Do_not_emit_comments_to_output_6009",message:"Do not emit comments to output."},Do_not_emit_outputs:{code:6010,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_6010",message:"Do not emit outputs."},Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:{code:6011,category:e.DiagnosticCategory.Message,key:"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",message:"Allow default imports from modules with no default export. This does not affect code emit, just typechecking."},Skip_type_checking_of_declaration_files:{code:6012,category:e.DiagnosticCategory.Message,key:"Skip_type_checking_of_declaration_files_6012",message:"Skip type checking of declaration files."},Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:{code:6015,category:e.DiagnosticCategory.Message,key:"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",message:"Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."},Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015:{code:6016,category:e.DiagnosticCategory.Message,key:"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016",message:"Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'."},Print_this_message:{code:6017,category:e.DiagnosticCategory.Message,key:"Print_this_message_6017",message:"Print this message."},Print_the_compiler_s_version:{code:6019,category:e.DiagnosticCategory.Message,key:"Print_the_compiler_s_version_6019",message:"Print the compiler's version."},Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:{code:6020,category:e.DiagnosticCategory.Message,key:"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020",message:"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."},Syntax_Colon_0:{code:6023,category:e.DiagnosticCategory.Message,key:"Syntax_Colon_0_6023",message:"Syntax: {0}"},options:{code:6024,category:e.DiagnosticCategory.Message,key:"options_6024",message:"options"},file:{code:6025,category:e.DiagnosticCategory.Message,key:"file_6025",message:"file"},Examples_Colon_0:{code:6026,category:e.DiagnosticCategory.Message,key:"Examples_Colon_0_6026",message:"Examples: {0}"},Options_Colon:{code:6027,category:e.DiagnosticCategory.Message,key:"Options_Colon_6027",message:"Options:"},Version_0:{code:6029,category:e.DiagnosticCategory.Message,key:"Version_0_6029",message:"Version {0}"},Insert_command_line_options_and_files_from_a_file:{code:6030,category:e.DiagnosticCategory.Message,key:"Insert_command_line_options_and_files_from_a_file_6030",message:"Insert command line options and files from a file."},File_change_detected_Starting_incremental_compilation:{code:6032,category:e.DiagnosticCategory.Message,key:"File_change_detected_Starting_incremental_compilation_6032",message:"File change detected. Starting incremental compilation..."},KIND:{code:6034,category:e.DiagnosticCategory.Message,key:"KIND_6034",message:"KIND"},FILE:{code:6035,category:e.DiagnosticCategory.Message,key:"FILE_6035",message:"FILE"},VERSION:{code:6036,category:e.DiagnosticCategory.Message,key:"VERSION_6036",message:"VERSION"},LOCATION:{code:6037,category:e.DiagnosticCategory.Message,key:"LOCATION_6037",message:"LOCATION"},DIRECTORY:{code:6038,category:e.DiagnosticCategory.Message,key:"DIRECTORY_6038",message:"DIRECTORY"},STRATEGY:{code:6039,category:e.DiagnosticCategory.Message,key:"STRATEGY_6039",message:"STRATEGY"},FILE_OR_DIRECTORY:{code:6040,category:e.DiagnosticCategory.Message,key:"FILE_OR_DIRECTORY_6040",message:"FILE OR DIRECTORY"},Compilation_complete_Watching_for_file_changes:{code:6042,category:e.DiagnosticCategory.Message,key:"Compilation_complete_Watching_for_file_changes_6042",message:"Compilation complete. Watching for file changes."},Generates_corresponding_map_file:{code:6043,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_map_file_6043",message:"Generates corresponding '.map' file."},Compiler_option_0_expects_an_argument:{code:6044,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_expects_an_argument_6044",message:"Compiler option '{0}' expects an argument."},Unterminated_quoted_string_in_response_file_0:{code:6045,category:e.DiagnosticCategory.Error,key:"Unterminated_quoted_string_in_response_file_0_6045",message:"Unterminated quoted string in response file '{0}'."},Argument_for_0_option_must_be_Colon_1:{code:6046,category:e.DiagnosticCategory.Error,key:"Argument_for_0_option_must_be_Colon_1_6046",message:"Argument for '{0}' option must be: {1}."},Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:{code:6048,category:e.DiagnosticCategory.Error,key:"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048",message:"Locale must be of the form or -. For example '{0}' or '{1}'."},Unsupported_locale_0:{code:6049,category:e.DiagnosticCategory.Error,key:"Unsupported_locale_0_6049",message:"Unsupported locale '{0}'."},Unable_to_open_file_0:{code:6050,category:e.DiagnosticCategory.Error,key:"Unable_to_open_file_0_6050",message:"Unable to open file '{0}'."},Corrupted_locale_file_0:{code:6051,category:e.DiagnosticCategory.Error,key:"Corrupted_locale_file_0_6051",message:"Corrupted locale file {0}."},Raise_error_on_expressions_and_declarations_with_an_implied_any_type:{code:6052,category:e.DiagnosticCategory.Message,key:"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052",message:"Raise error on expressions and declarations with an implied 'any' type."},File_0_not_found:{code:6053,category:e.DiagnosticCategory.Error,key:"File_0_not_found_6053",message:"File '{0}' not found."},File_0_has_unsupported_extension_The_only_supported_extensions_are_1:{code:6054,category:e.DiagnosticCategory.Error,key:"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054",message:"File '{0}' has unsupported extension. The only supported extensions are {1}."},Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:{code:6055,category:e.DiagnosticCategory.Message,key:"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055",message:"Suppress noImplicitAny errors for indexing objects lacking index signatures."},Do_not_emit_declarations_for_code_that_has_an_internal_annotation:{code:6056,category:e.DiagnosticCategory.Message,key:"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056",message:"Do not emit declarations for code that has an '@internal' annotation."},Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:{code:6058,category:e.DiagnosticCategory.Message,key:"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058",message:"Specify the root directory of input files. Use to control the output directory structure with --outDir."},File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:{code:6059,category:e.DiagnosticCategory.Error,key:"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059",message:"File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."},Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:{code:6060,category:e.DiagnosticCategory.Message,key:"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060",message:"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."},NEWLINE:{code:6061,category:e.DiagnosticCategory.Message,key:"NEWLINE_6061",message:"NEWLINE"},Option_0_can_only_be_specified_in_tsconfig_json_file:{code:6064,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_specified_in_tsconfig_json_file_6064",message:"Option '{0}' can only be specified in 'tsconfig.json' file."},Enables_experimental_support_for_ES7_decorators:{code:6065,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_decorators_6065",message:"Enables experimental support for ES7 decorators."},Enables_experimental_support_for_emitting_type_metadata_for_decorators:{code:6066,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066",message:"Enables experimental support for emitting type metadata for decorators."},Enables_experimental_support_for_ES7_async_functions:{code:6068,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_async_functions_6068",message:"Enables experimental support for ES7 async functions."},Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:{code:6069,category:e.DiagnosticCategory.Message,key:"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069",message:"Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."},Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:{code:6070,category:e.DiagnosticCategory.Message,key:"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070",message:"Initializes a TypeScript project and creates a tsconfig.json file."},Successfully_created_a_tsconfig_json_file:{code:6071,category:e.DiagnosticCategory.Message,key:"Successfully_created_a_tsconfig_json_file_6071",message:"Successfully created a tsconfig.json file."},Suppress_excess_property_checks_for_object_literals:{code:6072,category:e.DiagnosticCategory.Message,key:"Suppress_excess_property_checks_for_object_literals_6072",message:"Suppress excess property checks for object literals."},Stylize_errors_and_messages_using_color_and_context_experimental:{code:6073,category:e.DiagnosticCategory.Message,key:"Stylize_errors_and_messages_using_color_and_context_experimental_6073",message:"Stylize errors and messages using color and context (experimental)."},Do_not_report_errors_on_unused_labels:{code:6074,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unused_labels_6074",message:"Do not report errors on unused labels."},Report_error_when_not_all_code_paths_in_function_return_a_value:{code:6075,category:e.DiagnosticCategory.Message,key:"Report_error_when_not_all_code_paths_in_function_return_a_value_6075",message:"Report error when not all code paths in function return a value."},Report_errors_for_fallthrough_cases_in_switch_statement:{code:6076,category:e.DiagnosticCategory.Message,key:"Report_errors_for_fallthrough_cases_in_switch_statement_6076",message:"Report errors for fallthrough cases in switch statement."},Do_not_report_errors_on_unreachable_code:{code:6077,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unreachable_code_6077",message:"Do not report errors on unreachable code."},Disallow_inconsistently_cased_references_to_the_same_file:{code:6078,category:e.DiagnosticCategory.Message,key:"Disallow_inconsistently_cased_references_to_the_same_file_6078",message:"Disallow inconsistently-cased references to the same file."},Specify_library_files_to_be_included_in_the_compilation_Colon:{code:6079,category:e.DiagnosticCategory.Message,key:"Specify_library_files_to_be_included_in_the_compilation_Colon_6079",message:"Specify library files to be included in the compilation: "},Specify_JSX_code_generation_Colon_preserve_react_native_or_react:{code:6080,category:e.DiagnosticCategory.Message,key:"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080",message:"Specify JSX code generation: 'preserve', 'react-native', or 'react'."},File_0_has_an_unsupported_extension_so_skipping_it:{code:6081,category:e.DiagnosticCategory.Message,key:"File_0_has_an_unsupported_extension_so_skipping_it_6081",message:"File '{0}' has an unsupported extension, so skipping it."},Only_amd_and_system_modules_are_supported_alongside_0:{code:6082,category:e.DiagnosticCategory.Error,key:"Only_amd_and_system_modules_are_supported_alongside_0_6082",message:"Only 'amd' and 'system' modules are supported alongside --{0}."},Base_directory_to_resolve_non_absolute_module_names:{code:6083,category:e.DiagnosticCategory.Message,key:"Base_directory_to_resolve_non_absolute_module_names_6083",message:"Base directory to resolve non-absolute module names."},Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:{code:6084,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084",message:"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"},Enable_tracing_of_the_name_resolution_process:{code:6085,category:e.DiagnosticCategory.Message,key:"Enable_tracing_of_the_name_resolution_process_6085",message:"Enable tracing of the name resolution process."},Resolving_module_0_from_1:{code:6086,category:e.DiagnosticCategory.Message,key:"Resolving_module_0_from_1_6086",message:"======== Resolving module '{0}' from '{1}'. ========"},Explicitly_specified_module_resolution_kind_Colon_0:{code:6087,category:e.DiagnosticCategory.Message,key:"Explicitly_specified_module_resolution_kind_Colon_0_6087",message:"Explicitly specified module resolution kind: '{0}'."},Module_resolution_kind_is_not_specified_using_0:{code:6088,category:e.DiagnosticCategory.Message,key:"Module_resolution_kind_is_not_specified_using_0_6088",message:"Module resolution kind is not specified, using '{0}'."},Module_name_0_was_successfully_resolved_to_1:{code:6089,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_successfully_resolved_to_1_6089",message:"======== Module name '{0}' was successfully resolved to '{1}'. ========"},Module_name_0_was_not_resolved:{code:6090,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_not_resolved_6090",message:"======== Module name '{0}' was not resolved. ========"},paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:{code:6091,category:e.DiagnosticCategory.Message,key:"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091",message:"'paths' option is specified, looking for a pattern to match module name '{0}'."},Module_name_0_matched_pattern_1:{code:6092,category:e.DiagnosticCategory.Message,key:"Module_name_0_matched_pattern_1_6092",message:"Module name '{0}', matched pattern '{1}'."},Trying_substitution_0_candidate_module_location_Colon_1:{code:6093,category:e.DiagnosticCategory.Message,key:"Trying_substitution_0_candidate_module_location_Colon_1_6093",message:"Trying substitution '{0}', candidate module location: '{1}'."},Resolving_module_name_0_relative_to_base_url_1_2:{code:6094,category:e.DiagnosticCategory.Message,key:"Resolving_module_name_0_relative_to_base_url_1_2_6094",message:"Resolving module name '{0}' relative to base url '{1}' - '{2}'."},Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:{code:6095,category:e.DiagnosticCategory.Message,key:"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095",message:"Loading module as file / folder, candidate module location '{0}', target file type '{1}'."},File_0_does_not_exist:{code:6096,category:e.DiagnosticCategory.Message,key:"File_0_does_not_exist_6096",message:"File '{0}' does not exist."},File_0_exist_use_it_as_a_name_resolution_result:{code:6097,category:e.DiagnosticCategory.Message,key:"File_0_exist_use_it_as_a_name_resolution_result_6097",message:"File '{0}' exist - use it as a name resolution result."},Loading_module_0_from_node_modules_folder_target_file_type_1:{code:6098,category:e.DiagnosticCategory.Message,key:"Loading_module_0_from_node_modules_folder_target_file_type_1_6098",message:"Loading module '{0}' from 'node_modules' folder, target file type '{1}'."},Found_package_json_at_0:{code:6099,category:e.DiagnosticCategory.Message,key:"Found_package_json_at_0_6099",message:"Found 'package.json' at '{0}'."},package_json_does_not_have_a_0_field:{code:6100,category:e.DiagnosticCategory.Message,key:"package_json_does_not_have_a_0_field_6100",message:"'package.json' does not have a '{0}' field."},package_json_has_0_field_1_that_references_2:{code:6101,category:e.DiagnosticCategory.Message,key:"package_json_has_0_field_1_that_references_2_6101",message:"'package.json' has '{0}' field '{1}' that references '{2}'."},Allow_javascript_files_to_be_compiled:{code:6102,category:e.DiagnosticCategory.Message,key:"Allow_javascript_files_to_be_compiled_6102",message:"Allow javascript files to be compiled."},Option_0_should_have_array_of_strings_as_a_value:{code:6103,category:e.DiagnosticCategory.Error,key:"Option_0_should_have_array_of_strings_as_a_value_6103",message:"Option '{0}' should have array of strings as a value."},Checking_if_0_is_the_longest_matching_prefix_for_1_2:{code:6104,category:e.DiagnosticCategory.Message,key:"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104",message:"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."},Expected_type_of_0_field_in_package_json_to_be_string_got_1:{code:6105,category:e.DiagnosticCategory.Message,key:"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105",message:"Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."},baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:{code:6106,category:e.DiagnosticCategory.Message,key:"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106",message:"'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."},rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:{code:6107,category:e.DiagnosticCategory.Message,key:"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107",message:"'rootDirs' option is set, using it to resolve relative module name '{0}'."},Longest_matching_prefix_for_0_is_1:{code:6108,category:e.DiagnosticCategory.Message,key:"Longest_matching_prefix_for_0_is_1_6108",message:"Longest matching prefix for '{0}' is '{1}'."},Loading_0_from_the_root_dir_1_candidate_location_2:{code:6109,category:e.DiagnosticCategory.Message,key:"Loading_0_from_the_root_dir_1_candidate_location_2_6109",message:"Loading '{0}' from the root dir '{1}', candidate location '{2}'."},Trying_other_entries_in_rootDirs:{code:6110,category:e.DiagnosticCategory.Message,key:"Trying_other_entries_in_rootDirs_6110",message:"Trying other entries in 'rootDirs'."},Module_resolution_using_rootDirs_has_failed:{code:6111,category:e.DiagnosticCategory.Message,key:"Module_resolution_using_rootDirs_has_failed_6111",message:"Module resolution using 'rootDirs' has failed."},Do_not_emit_use_strict_directives_in_module_output:{code:6112,category:e.DiagnosticCategory.Message,key:"Do_not_emit_use_strict_directives_in_module_output_6112",message:"Do not emit 'use strict' directives in module output."},Enable_strict_null_checks:{code:6113,category:e.DiagnosticCategory.Message,key:"Enable_strict_null_checks_6113",message:"Enable strict null checks."},Unknown_option_excludes_Did_you_mean_exclude:{code:6114,category:e.DiagnosticCategory.Error,key:"Unknown_option_excludes_Did_you_mean_exclude_6114",message:"Unknown option 'excludes'. Did you mean 'exclude'?"},Raise_error_on_this_expressions_with_an_implied_any_type:{code:6115,category:e.DiagnosticCategory.Message,key:"Raise_error_on_this_expressions_with_an_implied_any_type_6115",message:"Raise error on 'this' expressions with an implied 'any' type."},Resolving_type_reference_directive_0_containing_file_1_root_directory_2:{code:6116,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"},Resolving_using_primary_search_paths:{code:6117,category:e.DiagnosticCategory.Message,key:"Resolving_using_primary_search_paths_6117",message:"Resolving using primary search paths..."},Resolving_from_node_modules_folder:{code:6118,category:e.DiagnosticCategory.Message,key:"Resolving_from_node_modules_folder_6118",message:"Resolving from node_modules folder..."},Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:{code:6119,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119",message:"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"},Type_reference_directive_0_was_not_resolved:{code:6120,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_not_resolved_6120",message:"======== Type reference directive '{0}' was not resolved. ========"},Resolving_with_primary_search_path_0:{code:6121,category:e.DiagnosticCategory.Message,key:"Resolving_with_primary_search_path_0_6121",message:"Resolving with primary search path '{0}'."},Root_directory_cannot_be_determined_skipping_primary_search_paths:{code:6122,category:e.DiagnosticCategory.Message,key:"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122",message:"Root directory cannot be determined, skipping primary search paths."},Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:{code:6123,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"},Type_declaration_files_to_be_included_in_compilation:{code:6124,category:e.DiagnosticCategory.Message,key:"Type_declaration_files_to_be_included_in_compilation_6124",message:"Type declaration files to be included in compilation."},Looking_up_in_node_modules_folder_initial_location_0:{code:6125,category:e.DiagnosticCategory.Message,key:"Looking_up_in_node_modules_folder_initial_location_0_6125",message:"Looking up in 'node_modules' folder, initial location '{0}'."},Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:{code:6126,category:e.DiagnosticCategory.Message,key:"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126",message:"Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."},Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:{code:6127,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127",message:"======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"},Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:{code:6128,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128",message:"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"},The_config_file_0_found_doesn_t_contain_any_source_files:{code:6129,category:e.DiagnosticCategory.Error,key:"The_config_file_0_found_doesn_t_contain_any_source_files_6129",message:"The config file '{0}' found doesn't contain any source files."},Resolving_real_path_for_0_result_1:{code:6130,category:e.DiagnosticCategory.Message,key:"Resolving_real_path_for_0_result_1_6130",message:"Resolving real path for '{0}', result '{1}'."},Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:{code:6131,category:e.DiagnosticCategory.Error,key:"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131",message:"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."},File_name_0_has_a_1_extension_stripping_it:{code:6132,category:e.DiagnosticCategory.Message,key:"File_name_0_has_a_1_extension_stripping_it_6132",message:"File name '{0}' has a '{1}' extension - stripping it."},_0_is_declared_but_never_used:{code:6133,category:e.DiagnosticCategory.Error,key:"_0_is_declared_but_never_used_6133",message:"'{0}' is declared but never used."},Report_errors_on_unused_locals:{code:6134,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_locals_6134",message:"Report errors on unused locals."},Report_errors_on_unused_parameters:{code:6135,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_parameters_6135",message:"Report errors on unused parameters."},The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:{code:6136,category:e.DiagnosticCategory.Message,key:"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136",message:"The maximum dependency depth to search under node_modules and load JavaScript files."},Property_0_is_declared_but_never_used:{code:6138,category:e.DiagnosticCategory.Error,key:"Property_0_is_declared_but_never_used_6138",message:"Property '{0}' is declared but never used."},Import_emit_helpers_from_tslib:{code:6139,category:e.DiagnosticCategory.Message,key:"Import_emit_helpers_from_tslib_6139",message:"Import emit helpers from 'tslib'."},Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:{code:6140,category:e.DiagnosticCategory.Error,key:"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140",message:"Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."},Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:{code:6141,category:e.DiagnosticCategory.Message,key:"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",message:'Parse in strict mode and emit "use strict" for each source file.'},Module_0_was_resolved_to_1_but_jsx_is_not_set:{code:6142,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142",message:"Module '{0}' was resolved to '{1}', but '--jsx' is not set."},Module_0_was_resolved_to_1_but_allowJs_is_not_set:{code:6143,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143",message:"Module '{0}' was resolved to '{1}', but '--allowJs' is not set."},Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:{code:6144,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144",message:"Module '{0}' was resolved as locally declared ambient module in file '{1}'."},Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:{code:6145,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",message:"Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."},Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:{code:6146,category:e.DiagnosticCategory.Message,key:"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",message:"Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."},Resolution_for_module_0_was_found_in_cache:{code:6147,category:e.DiagnosticCategory.Message,key:"Resolution_for_module_0_was_found_in_cache_6147",message:"Resolution for module '{0}' was found in cache."},Directory_0_does_not_exist_skipping_all_lookups_in_it:{code:6148,category:e.DiagnosticCategory.Message,key:"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148",message:"Directory '{0}' does not exist, skipping all lookups in it."},Show_diagnostic_information:{code:6149,category:e.DiagnosticCategory.Message,key:"Show_diagnostic_information_6149",message:"Show diagnostic information."},Show_verbose_diagnostic_information:{code:6150,category:e.DiagnosticCategory.Message,key:"Show_verbose_diagnostic_information_6150",message:"Show verbose diagnostic information."},Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:{code:6151,category:e.DiagnosticCategory.Message,key:"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151",message:"Emit a single file with source maps instead of having a separate file."},Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:{code:6152,category:e.DiagnosticCategory.Message,key:"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152",message:"Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."},Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:{code:6153,category:e.DiagnosticCategory.Message,key:"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153",message:"Transpile each file as a separate module (similar to 'ts.transpileModule')."},Print_names_of_generated_files_part_of_the_compilation:{code:6154,category:e.DiagnosticCategory.Message,key:"Print_names_of_generated_files_part_of_the_compilation_6154",message:"Print names of generated files part of the compilation."},Print_names_of_files_part_of_the_compilation:{code:6155,category:e.DiagnosticCategory.Message,key:"Print_names_of_files_part_of_the_compilation_6155",message:"Print names of files part of the compilation."},The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:{code:6156,category:e.DiagnosticCategory.Message,key:"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156",message:"The locale used when displaying messages to the user (e.g. 'en-us')"},Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:{code:6157,category:e.DiagnosticCategory.Message,key:"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157",message:"Do not generate custom helper functions like '__extends' in compiled output."},Do_not_include_the_default_library_file_lib_d_ts:{code:6158,category:e.DiagnosticCategory.Message,key:"Do_not_include_the_default_library_file_lib_d_ts_6158",message:"Do not include the default library file (lib.d.ts)."},Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:{code:6159,category:e.DiagnosticCategory.Message,key:"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159",message:"Do not add triple-slash references or imported modules to the list of compiled files."},Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:{code:6160,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160",message:"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."},List_of_folders_to_include_type_definitions_from:{code:6161,category:e.DiagnosticCategory.Message,key:"List_of_folders_to_include_type_definitions_from_6161",message:"List of folders to include type definitions from."},Disable_size_limitations_on_JavaScript_projects:{code:6162,category:e.DiagnosticCategory.Message,key:"Disable_size_limitations_on_JavaScript_projects_6162",message:"Disable size limitations on JavaScript projects."},The_character_set_of_the_input_files:{code:6163,category:e.DiagnosticCategory.Message,key:"The_character_set_of_the_input_files_6163",message:"The character set of the input files."},Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:{code:6164,category:e.DiagnosticCategory.Message,key:"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164",message:"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."},Do_not_truncate_error_messages:{code:6165,category:e.DiagnosticCategory.Message,key:"Do_not_truncate_error_messages_6165",message:"Do not truncate error messages."},Output_directory_for_generated_declaration_files:{code:6166,category:e.DiagnosticCategory.Message,key:"Output_directory_for_generated_declaration_files_6166",message:"Output directory for generated declaration files."},A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:{code:6167,category:e.DiagnosticCategory.Message,key:"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167",message:"A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."},List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:{code:6168,category:e.DiagnosticCategory.Message,key:"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168",message:"List of root folders whose combined content represents the structure of the project at runtime."},Show_all_compiler_options:{code:6169,category:e.DiagnosticCategory.Message,key:"Show_all_compiler_options_6169",message:"Show all compiler options."},Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:{code:6170,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170",message:"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"},Command_line_Options:{code:6171,category:e.DiagnosticCategory.Message,key:"Command_line_Options_6171",message:"Command-line Options"},Basic_Options:{code:6172,category:e.DiagnosticCategory.Message,key:"Basic_Options_6172",message:"Basic Options"},Strict_Type_Checking_Options:{code:6173,category:e.DiagnosticCategory.Message,key:"Strict_Type_Checking_Options_6173",message:"Strict Type-Checking Options"},Module_Resolution_Options:{code:6174,category:e.DiagnosticCategory.Message,key:"Module_Resolution_Options_6174",message:"Module Resolution Options"},Source_Map_Options:{code:6175,category:e.DiagnosticCategory.Message,key:"Source_Map_Options_6175",message:"Source Map Options"},Additional_Checks:{code:6176,category:e.DiagnosticCategory.Message,key:"Additional_Checks_6176",message:"Additional Checks"},Experimental_Options:{code:6177,category:e.DiagnosticCategory.Message,key:"Experimental_Options_6177",message:"Experimental Options"},Advanced_Options:{code:6178,category:e.DiagnosticCategory.Message,key:"Advanced_Options_6178",message:"Advanced Options"},Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:{code:6179,category:e.DiagnosticCategory.Message,key:"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179",message:"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."},Enable_all_strict_type_checking_options:{code:6180,category:e.DiagnosticCategory.Message,key:"Enable_all_strict_type_checking_options_6180",message:"Enable all strict type-checking options."},List_of_language_service_plugins:{code:6181,category:e.DiagnosticCategory.Message,key:"List_of_language_service_plugins_6181",message:"List of language service plugins."},Scoped_package_detected_looking_in_0:{code:6182,category:e.DiagnosticCategory.Message,key:"Scoped_package_detected_looking_in_0_6182",message:"Scoped package detected, looking in '{0}'"},Variable_0_implicitly_has_an_1_type:{code:7005,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_an_1_type_7005",message:"Variable '{0}' implicitly has an '{1}' type."},Parameter_0_implicitly_has_an_1_type:{code:7006,category:e.DiagnosticCategory.Error,key:"Parameter_0_implicitly_has_an_1_type_7006",message:"Parameter '{0}' implicitly has an '{1}' type."},Member_0_implicitly_has_an_1_type:{code:7008,category:e.DiagnosticCategory.Error,key:"Member_0_implicitly_has_an_1_type_7008",message:"Member '{0}' implicitly has an '{1}' type."},new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:{code:7009,category:e.DiagnosticCategory.Error,key:"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009",message:"'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."},_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:{code:7010,category:e.DiagnosticCategory.Error,key:"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010",message:"'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."},Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:{code:7011,category:e.DiagnosticCategory.Error,key:"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011",message:"Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."},Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7013,category:e.DiagnosticCategory.Error,key:"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013",message:"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."},Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:{code:7015,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015",message:"Element implicitly has an 'any' type because index expression is not of type 'number'."},Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:{code:7016,category:e.DiagnosticCategory.Error,key:"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016",message:"Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."},Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:{code:7017,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017",message:"Element implicitly has an 'any' type because type '{0}' has no index signature."},Object_literal_s_property_0_implicitly_has_an_1_type:{code:7018,category:e.DiagnosticCategory.Error,key:"Object_literal_s_property_0_implicitly_has_an_1_type_7018",message:"Object literal's property '{0}' implicitly has an '{1}' type."},Rest_parameter_0_implicitly_has_an_any_type:{code:7019,category:e.DiagnosticCategory.Error,key:"Rest_parameter_0_implicitly_has_an_any_type_7019",message:"Rest parameter '{0}' implicitly has an 'any[]' type."},Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7020,category:e.DiagnosticCategory.Error,key:"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020",message:"Call signature, which lacks return-type annotation, implicitly has an 'any' return type."},_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:{code:7022,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022",message:"'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."},_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:{code:7023,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023",message:"'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."},Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:{code:7024,category:e.DiagnosticCategory.Error,key:"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024",message:"Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."},Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:{code:7025,category:e.DiagnosticCategory.Error,key:"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025",message:"Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."},JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:{code:7026,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026",message:"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."},Unreachable_code_detected:{code:7027,category:e.DiagnosticCategory.Error,key:"Unreachable_code_detected_7027",message:"Unreachable code detected."},Unused_label:{code:7028,category:e.DiagnosticCategory.Error,key:"Unused_label_7028",message:"Unused label."},Fallthrough_case_in_switch:{code:7029,category:e.DiagnosticCategory.Error,key:"Fallthrough_case_in_switch_7029",message:"Fallthrough case in switch."},Not_all_code_paths_return_a_value:{code:7030,category:e.DiagnosticCategory.Error,key:"Not_all_code_paths_return_a_value_7030",message:"Not all code paths return a value."},Binding_element_0_implicitly_has_an_1_type:{code:7031,category:e.DiagnosticCategory.Error,key:"Binding_element_0_implicitly_has_an_1_type_7031",message:"Binding element '{0}' implicitly has an '{1}' type."},Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:{code:7032,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032",message:"Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."},Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:{code:7033,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033",message:"Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."},Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:{code:7034,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034",message:"Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."},You_cannot_rename_this_element:{code:8e3,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_this_element_8000",message:"You cannot rename this element."},You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:{code:8001,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001",message:"You cannot rename elements that are defined in the standard TypeScript library."},import_can_only_be_used_in_a_ts_file:{code:8002,category:e.DiagnosticCategory.Error,key:"import_can_only_be_used_in_a_ts_file_8002",message:"'import ... =' can only be used in a .ts file."},export_can_only_be_used_in_a_ts_file:{code:8003,category:e.DiagnosticCategory.Error,key:"export_can_only_be_used_in_a_ts_file_8003",message:"'export=' can only be used in a .ts file."},type_parameter_declarations_can_only_be_used_in_a_ts_file:{code:8004,category:e.DiagnosticCategory.Error,key:"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004",message:"'type parameter declarations' can only be used in a .ts file."},implements_clauses_can_only_be_used_in_a_ts_file:{code:8005,category:e.DiagnosticCategory.Error,key:"implements_clauses_can_only_be_used_in_a_ts_file_8005",message:"'implements clauses' can only be used in a .ts file."},interface_declarations_can_only_be_used_in_a_ts_file:{code:8006,category:e.DiagnosticCategory.Error,key:"interface_declarations_can_only_be_used_in_a_ts_file_8006",message:"'interface declarations' can only be used in a .ts file."},module_declarations_can_only_be_used_in_a_ts_file:{code:8007,category:e.DiagnosticCategory.Error,key:"module_declarations_can_only_be_used_in_a_ts_file_8007",message:"'module declarations' can only be used in a .ts file."},type_aliases_can_only_be_used_in_a_ts_file:{code:8008,category:e.DiagnosticCategory.Error,key:"type_aliases_can_only_be_used_in_a_ts_file_8008",message:"'type aliases' can only be used in a .ts file."},_0_can_only_be_used_in_a_ts_file:{code:8009,category:e.DiagnosticCategory.Error,key:"_0_can_only_be_used_in_a_ts_file_8009",message:"'{0}' can only be used in a .ts file."},types_can_only_be_used_in_a_ts_file:{code:8010,category:e.DiagnosticCategory.Error,key:"types_can_only_be_used_in_a_ts_file_8010",message:"'types' can only be used in a .ts file."},type_arguments_can_only_be_used_in_a_ts_file:{code:8011,category:e.DiagnosticCategory.Error,key:"type_arguments_can_only_be_used_in_a_ts_file_8011",message:"'type arguments' can only be used in a .ts file."},parameter_modifiers_can_only_be_used_in_a_ts_file:{code:8012,category:e.DiagnosticCategory.Error,key:"parameter_modifiers_can_only_be_used_in_a_ts_file_8012",message:"'parameter modifiers' can only be used in a .ts file."},enum_declarations_can_only_be_used_in_a_ts_file:{code:8015,category:e.DiagnosticCategory.Error,key:"enum_declarations_can_only_be_used_in_a_ts_file_8015",message:"'enum declarations' can only be used in a .ts file."},type_assertion_expressions_can_only_be_used_in_a_ts_file:{code:8016,category:e.DiagnosticCategory.Error,key:"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016",message:"'type assertion expressions' can only be used in a .ts file."},Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:{code:9002,category:e.DiagnosticCategory.Error,key:"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002",message:"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."},class_expressions_are_not_currently_supported:{code:9003,category:e.DiagnosticCategory.Error,key:"class_expressions_are_not_currently_supported_9003",message:"'class' expressions are not currently supported."},Language_service_is_disabled:{code:9004,category:e.DiagnosticCategory.Error,key:"Language_service_is_disabled_9004",message:"Language service is disabled."},JSX_attributes_must_only_be_assigned_a_non_empty_expression:{code:17e3,category:e.DiagnosticCategory.Error,key:"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000",message:"JSX attributes must only be assigned a non-empty 'expression'."},JSX_elements_cannot_have_multiple_attributes_with_the_same_name:{code:17001,category:e.DiagnosticCategory.Error,key:"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001",message:"JSX elements cannot have multiple attributes with the same name."},Expected_corresponding_JSX_closing_tag_for_0:{code:17002,category:e.DiagnosticCategory.Error,key:"Expected_corresponding_JSX_closing_tag_for_0_17002",message:"Expected corresponding JSX closing tag for '{0}'."},JSX_attribute_expected:{code:17003,category:e.DiagnosticCategory.Error,key:"JSX_attribute_expected_17003",message:"JSX attribute expected."},Cannot_use_JSX_unless_the_jsx_flag_is_provided:{code:17004,category:e.DiagnosticCategory.Error,key:"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004",message:"Cannot use JSX unless the '--jsx' flag is provided."},A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:{code:17005,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005",message:"A constructor cannot contain a 'super' call when its class extends 'null'."},An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:{code:17006,category:e.DiagnosticCategory.Error,key:"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006",message:"An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."},A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:{code:17007,category:e.DiagnosticCategory.Error,key:"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007",message:"A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."},JSX_element_0_has_no_corresponding_closing_tag:{code:17008,category:e.DiagnosticCategory.Error,key:"JSX_element_0_has_no_corresponding_closing_tag_17008",message:"JSX element '{0}' has no corresponding closing tag."},super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:{code:17009,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",message:"'super' must be called before accessing 'this' in the constructor of a derived class."},Unknown_type_acquisition_option_0:{code:17010,category:e.DiagnosticCategory.Error,key:"Unknown_type_acquisition_option_0_17010",message:"Unknown type acquisition option '{0}'."},super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:{code:17011,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",message:"'super' must be called before accessing a property of 'super' in the constructor of a derived class."},_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:{code:17012,category:e.DiagnosticCategory.Error,key:"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012",message:"'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"},Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:{code:17013,category:e.DiagnosticCategory.Error,key:"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013",message:"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."},Circularity_detected_while_resolving_configuration_Colon_0:{code:18e3,category:e.DiagnosticCategory.Error,key:"Circularity_detected_while_resolving_configuration_Colon_0_18000",message:"Circularity detected while resolving configuration: {0}"},A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:{code:18001,category:e.DiagnosticCategory.Error,key:"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001",message:"A path in an 'extends' option must be relative or rooted, but '{0}' is not."},The_files_list_in_config_file_0_is_empty:{code:18002,category:e.DiagnosticCategory.Error,key:"The_files_list_in_config_file_0_is_empty_18002",message:"The 'files' list in config file '{0}' is empty."},No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:{code:18003,category:e.DiagnosticCategory.Error,key:"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003",message:"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."},Add_missing_super_call:{code:90001,category:e.DiagnosticCategory.Message,key:"Add_missing_super_call_90001",message:"Add missing 'super()' call."},Make_super_call_the_first_statement_in_the_constructor:{code:90002,category:e.DiagnosticCategory.Message,key:"Make_super_call_the_first_statement_in_the_constructor_90002",message:"Make 'super()' call the first statement in the constructor."},Change_extends_to_implements:{code:90003,category:e.DiagnosticCategory.Message,key:"Change_extends_to_implements_90003",message:"Change 'extends' to 'implements'."},Remove_declaration_for_Colon_0:{code:90004,category:e.DiagnosticCategory.Message,key:"Remove_declaration_for_Colon_0_90004",message:"Remove declaration for: '{0}'."},Implement_interface_0:{code:90006,category:e.DiagnosticCategory.Message,key:"Implement_interface_0_90006",message:"Implement interface '{0}'."},Implement_inherited_abstract_class:{code:90007,category:e.DiagnosticCategory.Message,key:"Implement_inherited_abstract_class_90007",message:"Implement inherited abstract class."},Add_this_to_unresolved_variable:{code:90008,category:e.DiagnosticCategory.Message,key:"Add_this_to_unresolved_variable_90008",message:"Add 'this.' to unresolved variable."},Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:{code:90009,category:e.DiagnosticCategory.Error,key:"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009",message:"Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."},Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:{code:90010,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010",message:"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."},Import_0_from_1:{code:90013,category:e.DiagnosticCategory.Message,key:"Import_0_from_1_90013",message:"Import {0} from {1}."},Change_0_to_1:{code:90014,category:e.DiagnosticCategory.Message,key:"Change_0_to_1_90014",message:"Change {0} to {1}."},Add_0_to_existing_import_declaration_from_1:{code:90015,category:e.DiagnosticCategory.Message,key:"Add_0_to_existing_import_declaration_from_1_90015",message:"Add {0} to existing import declaration from {1}."},Add_declaration_for_missing_property_0:{code:90016,category:e.DiagnosticCategory.Message,key:"Add_declaration_for_missing_property_0_90016",message:"Add declaration for missing property '{0}'."},Add_index_signature_for_missing_property_0:{code:90017,category:e.DiagnosticCategory.Message,key:"Add_index_signature_for_missing_property_0_90017",message:"Add index signature for missing property '{0}'."},Disable_checking_for_this_file:{code:90018,category:e.DiagnosticCategory.Message,key:"Disable_checking_for_this_file_90018",message:"Disable checking for this file."},Ignore_this_error_message:{code:90019,category:e.DiagnosticCategory.Message,key:"Ignore_this_error_message_90019",message:"Ignore this error message."},Initialize_property_0_in_the_constructor:{code:90020,category:e.DiagnosticCategory.Message,key:"Initialize_property_0_in_the_constructor_90020",message:"Initialize property '{0}' in the constructor."},Initialize_static_property_0:{code:90021,category:e.DiagnosticCategory.Message,key:"Initialize_static_property_0_90021",message:"Initialize static property '{0}'."},Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:{code:8017,category:e.DiagnosticCategory.Error,key:"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017",message:"Octal literal types must use ES2015 syntax. Use the syntax '{0}'."},Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:{code:8018,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018",message:"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."},Report_errors_in_js_files:{code:8019,category:e.DiagnosticCategory.Message,key:"Report_errors_in_js_files_8019",message:"Report errors in .js files."}};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,j):n(e,B)}function a(e,t){return t>=1?n(e,J):n(e,K)}function i(e){return z[e]}function o(e){return L.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&m(a)&&(t.push(r),r=n);}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n)}function u(t,n,r){return e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}function y(e){return e>=48&&e<=55}function h(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 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function v(t,n,r,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(n))return n;for(;;){var i=t.charCodeAt(n);switch(i){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(a)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&p(i)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+U=0&&n127&&p(g)){_&&m(g)&&(l=!0),n++;continue}break e}}return _&&(f=a(s,c,u,l,i,f)),f}function C(e,t,n,r){return T(!1,e,t,!1,n,r)}function E(e,t,n,r){return T(!1,e,t,!0,n,r)}function D(e,t,n,r,a){return T(!0,e,t,!1,n,r,a)}function N(e,t,n,r,a){return T(!0,e,t,!0,n,r,a)}function A(e,t,n,r,a,i){return i||(i=[]),i.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),i}function w(e,t){return D(e,t,A,void 0,void 0)}function O(e,t){return N(e,t,A,void 0,void 0)}function P(e){return V.test(e)?V.exec(e)[0]:void 0}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&a(e,t)}function R(e,t){if(!F(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&a<=57)r=16*r+a-48;else if(a>=65&&a<=70)r=16*r+a-65+10;else{if(!(a>=97&&a<=102))break;r=16*r+a-97+10;}ne++,n++;}return n=re){r+=i.substring(a,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=i.charCodeAt(ne);if(o===n){r+=i.substring(a,ne),ne++;break}if(92===o&&t)r+=i.substring(a,ne),r+=E(),a=ne;else{if(m(o)){r+=i.substring(a,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++;}}return r}function C(){for(var t,n=96===i.charCodeAt(ne),r=++ne,a="";;){if(ne>=re){a+=i.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=i.charCodeAt(ne);if(96===o){a+=i.substring(r,ne),ne++,t=n?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=i.charCodeAt(ne);switch(ne++,t){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 ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=h(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===i.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function w(){if(ne+5=0&&I(r,n)))break;e+=i.substring(t,ne),e+=String.fromCharCode(r),t=ne+=6;}}return e+=i.substring(t,ne)}function P(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=L.get(se)))return oe}return oe=71}function R(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var a=i.charCodeAt(ne),o=a-48;if(!g(a)||o>=t)break;n=n*t+o,ne++,r++;}return 0===r?-1:n}function M(){for(ae=ne,ue=!1,ce=!1,le=!1,_e=0;;){if(ie=ne,ne>=re)return oe=1;var t=i.charCodeAt(ne);if(35===t&&0===ne&&k(i,ne)){if(ne=S(i,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&F(d,n)?(ne+=6,se=String.fromCharCode(d)+O(),oe=P()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(F(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=i.charCodeAt(t);if(m(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!a){t++;break}91===o?a=!0:92===o?r=!0:93===o&&(a=!1);}t++;}for(;t=re)return oe=1;var e=i.charCodeAt(ne);if(60===e)return 47===i.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ae=ne,ie=ne;var e=i.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ae=t,ie=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1;}void 0===a&&(a=0);var ne,re,ae,ie,oe,se,ce,ue,le,_e;return Y(i,s,c),{getStartPos:function(){return ae},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ie},getTokenText:function(){return i.substring(ie,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return _e},reScanGreaterToken:B,reScanSlashToken:K,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:V,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:q,scan:M,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:H,lookAhead:W,scanRange:G}}e.tokenIsIdentifierOrKeyword=t;var L=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":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}),B=[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],K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,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],j=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],J=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];e.isUnicodeIdentifierStart=r;var z=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(L);e.tokenToString=i,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=_,e.getLineAndCharacterOfPosition=d,e.isWhiteSpaceLike=p,e.isWhiteSpaceSingleLine=f,e.isLineBreak=m,e.isOctalDigit=y,e.couldStartTrivia=h,e.skipTrivia=v;var U="<<<<<<<".length,V=/^#!.*/;e.forEachLeadingCommentRange=C,e.forEachTrailingCommentRange=E,e.reduceEachLeadingCommentRange=D,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=O,e.getShebang=P,e.isIdentifierStart=F,e.isIdentifierPart=I,e.isIdentifierText=R,e.createScanner=M;}(r||(r={}));!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,a=n;r=0),e.getLineStarts(n)[t]}function h(t){var n=m(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function v(e){return e.pos}function b(e){return void 0!==e}function x(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),a=t,i=n.text;if(a+1===r.length)return i.length-1;var o=r[a],s=r[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function k(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function S(e){return!k(e)}function T(e){return e.kind>=0&&e.kind<=142}function C(t,n,r){return k(t)?t.pos:E(t)?e.skipTrivia((n||m(t)).text,t.pos,!1,!0):r&&t.jsDoc&&t.jsDoc.length>0?C(t.jsDoc[0]):294===t.kind&&t._children.length>0?C(t._children[0],n,r):e.skipTrivia((n||m(t)).text,t.pos)}function E(e){return e.kind>=267&&e.kind<=293}function D(e){return e.kind>=283&&e.kind<=293}function N(t,n){return k(t)||!t.decorators?C(t,n):e.skipTrivia((n||m(t)).text,t.decorators.end)}function A(t,n,r){if(void 0===r&&(r=!1),k(n))return"";var a=t.text;return a.substring(r?n.pos:e.skipTrivia(a,n.pos),n.end)}function w(t,n){return k(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function O(e,t){return void 0===t&&(t=!1),A(m(e),e,t)}function P(t,n){if(!cn(t)&&t.parent)return A(n,t);switch(t.kind){case 9:return F('"',t.text,'"');case 13:return F("`",t.text,"`");case 14:return F("`",t.text,"${");case 15:return F("}",t.text,"${");case 16:return F("}",t.text,"`");case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.");}function F(e,t,n){return e+Sn(vn(t))+n}function I(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function R(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function M(t){return 0!=(3&e.getCombinedNodeFlags(t))||L(t)}function L(e){var t=on$$1(e);return 226===t.kind&&260===t.parent.kind}function B(e){return e&&233===e.kind&&(9===e.name.kind||z(e))}function K(e){return j(e.valueDeclaration)}function j(e){return e&&233===e.kind&&!e.body}function J(e){return 265===e.kind||233===e.kind||ke(e)}function z(e){return!!(512&e.flags)}function U(t){if(!t||!B(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return B(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function V(t,n){return e.isExternalModule(t)||n.isolatedModules}function q(e,t){switch(e.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return t&&!ke(t)}return!1}function $(e){for(var t=e.parent;t;){if(q(t,t.parent))return t;t=t.parent;}}function G(e){return 0===i(e)?"(Missing)":O(e)}function W(e){return e.declaration?G(e.declaration.parameters[0].name):void 0}function H(e){switch(e.kind){case 71:return e.text;case 9:case 8:return e.text;case 144:if(Ht(e.expression))return e.expression.text}}function X(t){switch(t.kind){case 71:return 0===i(t)?e.unescapeIdentifier(t.text):O(t);case 143:return X(t.left)+"."+X(t.right);case 179:return X(t.expression)+"."+X(t.name)}}function Y(e,t,n,r,a){return Q(m(e),e,t,n,r,a)}function Q(t,n,r,a,i,o){var s=ne(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,a,i,o)}function Z(e,t){var n=m(e),r=ne(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function ee(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var a=r.getTokenPos();return e.createTextSpanFromBounds(a,r.getTextPos())}function te(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var a=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(a=0;case 183:return!1}}return!1}function fe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1}function me(e){return 192===e.kind}function ge(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function ye(t,n){function r(t){switch(t.kind){case 197:n(t);var a=t.expression;return void(a&&r(a));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(ke(t)){var i=t.name;if(i&&144===i.kind)return void r(i.expression)}else pe(t)||e.forEachChild(t,r);}}return r(t)}function he(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function ve(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function be(e){return e&&(153===e.kind||154===e.kind)}function xe(e){return e&&(229===e.kind||199===e.kind)}function ke(e){return e&&Se(e.kind)}function Se(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 161:return!0}return!1}function Te(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function Ce(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&Ce(e.statement,t)}return!1}function Ee(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}}function De(e){return e&&207===e.kind&&ke(e.parent)}function Ne(e){return e&&151===e.kind&&178===e.parent.kind}function Ae(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function we(e){return e&&1===e.kind}function Oe(e){return e&&0===e.kind}function Pe(e){for(;;)if(!(e=e.parent)||ke(e))return e}function Fe(e){for(;;)if(!(e=e.parent)||xe(e))return e}function Ie(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 144:if(xe(e.parent.parent))return e;e=e.parent;break;case 147:146===e.parent.kind&&ba(e.parent.parent)?e=e.parent.parent:ba(e.parent)&&(e=e.parent);break;case 187:if(!t)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return e}}}function Re(e){var t=Ie(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Me(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 144:e=e.parent;break;case 228:case 186:case 187:if(!t)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return e;case 147:146===e.parent.kind&&ba(e.parent.parent)?e=e.parent.parent:ba(e.parent)&&(e=e.parent);}}}function Le(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function Be(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Ke(e){switch(e.kind){case 159:case 277:return e.typeName;case 201:return mr(e.expression)?e.expression:void 0;case 71:case 143:return e}}function je(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function Je(e){return 183===e.kind?e.tag:Li(e)?e.tagName:e.expression}function ze(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Ue(e){return void 0!==e.decorators&&ze(e)}function Ve(e){return Ue(e)||qe(e)}function qe(t){switch(t.kind){case 229:return e.forEach(t.members,Ve);case 151:case 154:return e.forEach(t.parameters,Ue)}}function $e(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Ge(e){switch(e.kind){case 99:case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||$e(e);case 71:if(162===e.parent.kind||$e(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:case 221:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&pr(t);default:if(Ge(t))return!0}}return!1}function We(t,n){var r=e.getModuleInstanceState(t);return 1===r||n&&2===r}function He(e){return 237===e.kind&&248===e.moduleReference.kind}function Xe(t){return e.Debug.assert(He(t)),t.moduleReference.expression}function Ye(e){return 237===e.kind&&248!==e.moduleReference.kind}function Qe(e){return Ze(e)}function Ze(e){return e&&!!(65536&e.flags)}function et(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,a=n.arguments;if(71!==r.kind||"require"!==r.text)return!1;if(1!==a.length)return!1;var i=a[0];return!t||9===i.kind||13===i.kind}function tt(e){return 39===e||34===e}function nt(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function rt(e){for(;ur(e,!0);)e=e.right;return e}function at(e){return oa(e)&&"exports"===e.text}function it(e){return Ma(e)&&oa(e.expression)&&"module"===e.expression.text&&"exports"===e.name.text}function ot(e){if(!Ze(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.text?1:"module"===r.text&&"exports"===n.name.text?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var a=n.expression;if(71===a.expression.kind){if("module"===a.expression.text&&"exports"===a.name.text)return 1;if("prototype"===a.name.text)return 3}}return 0}function st(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function ct(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function ut(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function lt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function _t(e){return 279===e.kind&&e.parameters.length>0&&281===e.parameters[0].type.kind}function dt(t){return e.map(gt(t),function(e){return e.comment})}function pt(e){var t=ft(e,286);return t&&t.length>0}function ft(t,n){var r=gt(t);if(r){for(var a=[],i=0,o=r;i0?t.types[0]:void 0}function Bt(e){var t=jt(e.heritageClauses,108);return t?t.types:void 0}function Kt(e){var t=jt(e.heritageClauses,85);return t?t.types:void 0}function jt(e,t){if(e)for(var n=0,r=e;n/gim;if(/^\/\/\/\s*1&&(_=_+r.length-1,d=c.length-t.length+e.lastOrUndefined(r));}}function o(){l||(_++,d=(c+=t).length,l=!0);}function s(e,t){n(w(e,t));}var c,u,l,_,d;return r(),{write:n,rawWrite:a,writeTextOfNode:s,writeLiteral:i,writeLine:o,increaseIndent:function(){u++;},decreaseIndent:function(){u--;},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*Cn()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function Dn(e,t){return t.moduleName||An(e,t.fileName)}function Nn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!ae(r))return Dn(e,r)}function An(t,n){var r=function(e){return t.getCanonicalFileName(e)},a=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),i=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(a,i,a,r,!1);return e.removeFileExtension(o)}function wn(t,n,r){var a=n.getCompilerOptions();return(a.outDir?e.removeFileExtension(Ln(t,n,a.outDir)):e.removeFileExtension(t.fileName))+r}function On(t,n){var r=n.getCompilerOptions(),a=r.declarationDir||r.outDir,i=a?Ln(t,n,a):t.fileName;return e.removeFileExtension(i)+".d.ts"}function Pn(t,n){var r=t.getCompilerOptions(),a=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var i=e.getEmitModuleKind(r),o=i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Fn(t,r,a)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Fn(e,r,a)})}function Fn(e,t,n){return!(t.noEmitForJsFiles&&Qe(e)||ae(e)||n(e))}function In(t,n,r,a){var i=e.isArray(r)?r:Pn(t,r),o=t.getCompilerOptions();if(o.outFile||o.out)i.length&&n({jsFilePath:l=o.outFile||o.out,sourceMapFilePath:_=Rn(l,o),declarationFilePath:d=o.declaration?e.removeFileExtension(l)+".d.ts":""},e.createBundle(i),a);else for(var s=0,c=i;s0){var t=2===e.parameters.length&&Vn(e.parameters[0]);return e.parameters[t?1:0].type}}function Un(e){if(e.parameters.length){var t=e.parameters[0];if(Vn(t))return t}}function Vn(e){return qn(e.name)}function qn(e){return e&&71===e.kind&&$n(e)}function $n(e){return 99===e.originalKeywordKind}function Gn(t,n){var r,a,i,o;return Xt(n)?(r=n,153===n.kind?i=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||rr(e,32)!==rr(n,32)||Zt(e.name)===Zt(n.name)&&(r?a||(a=e):r=e,153!==e.kind||i||(i=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}}function Wn(e,t,n,r){Hn(e,t,n.pos,r);}function Hn(e,t,n,r){r&&r.length&&n!==r[0].pos&&jn(e,n)!==jn(e,r[0].pos)&&t.writeLine();}function Xn(e,t,n,r){n!==r&&jn(e,n)!==jn(e,r)&&t.writeLine();}function Yn(e,t,n,r,a,i,o,s){if(r&&r.length>0){a&&n.write(" ");for(var c=!1,u=0,l=r;u=g+2)break}_.push(m),d=m;}if(_.length){var g=jn(n,e.lastOrUndefined(_).end);jn(n,e.skipTrivia(t,i.pos))>=g+2&&(Wn(n,r,i,u),Yn(t,n,r,_,!1,!0,o,a),l={nodePos:i.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l}function Zn(t,n,r,a,i,o){if(42===t.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(n,a),c=n.length,u=void 0,l=a,_=s.line;l0){var f=p%Cn(),m=Tn((p-f)/Cn());for(r.rawWrite(m);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}er(t,i,r,o,l,d),l=d;}else r.write(t.substring(a,i));}function er(e,t,n,r,a,i){var o=Math.min(t,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r);}function tr(t,n,r){for(var a=0;n=58&&e<=70}function cr(e){if(201===e.kind&&85===e.parent.token&&xe(e.parent.parent))return e.parent.parent}function ur(e,t){return Ka(e)&&(t?58===e.operatorToken.kind:sr(e.operatorToken.kind))&&$a(e.left)}function lr(e){if(ur(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function _r(e){return dr(e.expression)}function dr(e){return 71===e.kind||!!Ma(e)&&dr(e.expression)}function pr(e){return void 0!==cr(e)}function fr(e){return 201===e.kind&&mr(e.expression)&&e.parent&&108===e.parent.token&&e.parent.parent&&xe(e.parent.parent)}function mr(e){return 71===e.kind||179===e.kind&&mr(e.expression)}function gr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function yr(e){return 178===e.kind&&0===e.properties.length}function hr(e){return 177===e.kind&&0===e.elements.length}function vr(e){return br(e)?e.valueDeclaration.localSymbol:void 0}function br(e){return e&&e.valueDeclaration&&rr(e.valueDeclaration,512)}function xr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function kr(t){for(var n=[],r=t.length,a=0;a>6|192),n.push(63&i|128)):i<65536?(n.push(i>>12|224),n.push(i>>6&63|128),n.push(63&i|128)):i<131072?(n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function Sr(e){for(var t,n,r,a,i="",o=kr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,a=63&o[s+2],s+1>=c?r=a=64:s+2>=c&&(a=64),i+=Yi.charAt(t)+Yi.charAt(n)+Yi.charAt(r)+Yi.charAt(a),s+=3;return i}function Tr(t){return 0===t.newLine?Qi:1===t.newLine?Zi:e.sys?e.sys.newLine:Qi}function Cr(e){return Er(e,0)}function Er(e,t){if(t<=5){var n=e.kind;if(9===n||8===n||12===n||13===n||71===n||99===n||97===n||101===n||86===n||95===n)return!0;if(179===n)return Er(e.expression,t+1);if(180===n)return Er(e.expression,t+1)&&Er(e.argumentExpression,t+1);if(192===n||193===n)return Er(e.operand,t+1);if(194===n)return 40!==e.operatorToken.kind&&Er(e.left,t+1)&&Er(e.right,t+1);if(195===n)return Er(e.condition,t+1)&&Er(e.whenTrue,t+1)&&Er(e.whenFalse,t+1);if(190===n||189===n||188===n)return Er(e.expression,t+1);if(177===n)return 0===e.elements.length;if(178===n)return 0===e.properties.length;if(181===n){if(!Er(e.expression,t+1))return!1;for(var r=0,a=e.arguments;r0?Fr(e,e.decorators.end):e}function Rr(e){return e.modifiers&&e.modifiers.length>0?Fr(e,e.modifiers.end):Ir(e)}function Mr(e){return e.pos===e.end}function Lr(e){return Mr(e)?e:Pr(e,e.pos)}function Br(e){return Mr(e)?e:Fr(e,e.end)}function Kr(t,n){return Or(t,t+e.tokenToString(n).length)}function jr(e,t){return Ur(e,e,t)}function Jr(e,t,n){return qr($r(e,n),$r(t,n),n)}function zr(e,t,n){return qr(e.end,t.end,n)}function Ur(e,t,n){return qr($r(e,n),t.end,n)}function Vr(e,t,n){return qr(e.end,$r(t,n),n)}function qr(e,t,n){return e===t||Kn(n,e)===Kn(n,t)}function $r(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function Gr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Wr(t){return e.filter(t.declarations,Hr)}function Hr(e){return void 0!==e.initializer}function Xr(e){if(e.symbol)for(var t=0,n=e.symbol.declarations;t0}function ua(e){return rn(e.kind)}function la(e){return 143===e.kind}function _a(e){return 144===e.kind}function da(e){var t=e.kind;return 143===t||71===t}function pa(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function fa(e){var t=e.kind;return 71===t||9===t}function ma(e){var t=e.kind;return 71===t||174===t||175===t}function ga(e){return 145===e.kind}function ya(e){return 146===e.kind}function ha(e){return 147===e.kind}function va(e){return 151===e.kind}function ba(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t}function xa(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function ka(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function Sa(e){return ka(e.kind)}function Ta(e){return 175===e.kind}function Ca(e){return 174===e.kind}function Ea(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function Da(e){var t=e.kind;return 177===t||178===t}function Na(e){return 176===e.kind}function Aa(e){var t=e.kind;return 176===t||200===t}function wa(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function Oa(e){return Pa(e)||Fa(e)}function Pa(e){switch(e.kind){case 174:case 178:return!0}return!1}function Fa(e){switch(e.kind){case 175:case 177:return!0}return!1}function Ia(e){return 177===e.kind}function Ra(e){return 178===e.kind}function Ma(e){return 179===e.kind}function La(e){var t=e.kind;return 179===t||143===t}function Ba(e){return 180===e.kind}function Ka(e){return 194===e.kind}function ja(e){return 195===e.kind}function Ja(e){return 181===e.kind}function za(e){var t=e.kind;return 196===t||13===t}function Ua(e){return 198===e.kind}function Va(e){return 201===e.kind}function qa(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||203===e||204===e}function $a(t){return qa(e.skipPartiallyEmittedExpressions(t).kind)}function Ga(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||qa(e)}function Wa(t){return Ga(e.skipPartiallyEmittedExpressions(t).kind)}function Ha(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||Ga(e)}function Xa(t){return Ha(e.skipPartiallyEmittedExpressions(t).kind)}function Ya(e){var t=e.kind;return 184===t||202===t}function Qa(e){return 296===e.kind}function Za(e){return 295===e.kind}function ei(e){return Za(e)||Qa(e)}function ti(e){return 200===e.kind}function ni(e){return 205===e.kind}function ri(e){return 207===e.kind}function ai(e){return ri(e)||Xa(e)}function ii(e){return ri(e)}function oi(e){return ci(e)||Xa(e)}function si(e){return 226===e.kind}function ci(e){return 227===e.kind}function ui(e){return 235===e.kind}function li(e){var t=e.kind;return 234===t||233===t||71===t}function _i(e){var t=e.kind;return 234===t||233===t}function di(e){var t=e.kind;return 71===t||233===t}function pi(e){return 237===e.kind}function fi(e){return 239===e.kind}function mi(e){var t=e.kind;return 241===t||240===t}function gi(e){return 242===e.kind}function yi(e){return 245===e.kind}function hi(e){return 246===e.kind}function vi(e){return 233===e.kind||232===e.kind}function bi(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||290===e}function xi(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function ki(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||295===e||298===e||297===e}function Si(e){return bi(e.kind)}function Ti(e){return xi(e.kind)}function Ci(e){return ki(e.kind)}function Ei(e){var t=e.kind;return ki(t)||xi(t)||207===t}function Di(e){var t=e.kind;return 248===t||143===t||71===t}function Ni(e){return 251===e.kind}function Ai(e){return 252===e.kind}function wi(e){var t=e.kind;return 99===t||71===t||179===t}function Oi(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function Pi(e){return 254===e.kind}function Fi(e){var t=e.kind;return 253===t||255===t}function Ii(e){return 255===e.kind}function Ri(e){return 253===e.kind}function Mi(e){var t=e.kind;return 9===t||256===t}function Li(e){var t=e.kind;return 251===t||250===t}function Bi(e){var t=e.kind;return 257===t||258===t}function Ki(e){return 259===e.kind}function ji(e){return 260===e.kind}function Ji(e){return 261===e.kind}function zi(e){return 262===e.kind}function Ui(e){return 264===e.kind}function Vi(e){return 265===e.kind}function qi(e){return e.watch&&e.hasOwnProperty("watch")}e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=t,e.findDeclaration=n;var $i=[];e.getSingleLineStringWriter=r,e.releaseStringWriter=a,e.getFullWidth=i,e.hasResolvedModule=o,e.getResolvedModule=s,e.setResolvedModule=c,e.setResolvedTypeReferenceDirective=u,e.moduleResolutionIsEqualTo=l,e.typeDirectiveIsEqualTo=_,e.hasChangesInResolutions=d,e.containsParseError=p,e.getSourceFileOfNode=m,e.isStatementWithLocals=g,e.getStartPositionOfLine=y,e.nodePosToString=h,e.getStartPosOfNode=v,e.isDefined=b,e.getEndLinePosition=x,e.nodeIsMissing=k,e.nodeIsPresent=S,e.isToken=T,e.getTokenPosOfNode=C,e.isJSDocNode=E,e.isJSDocTag=D,e.getNonDecoratorTokenPosOfNode=N,e.getSourceTextOfNodeFromSourceFile=A,e.getTextOfNodeFromSourceText=w,e.getTextOfNode=O,e.getLiteralText=P,e.escapeIdentifier=I,e.makeIdentifierFromModuleName=R,e.isBlockOrCatchScoped=M,e.isCatchClauseVariableDeclarationOrBindingElement=L,e.isAmbientModule=B,e.isShorthandAmbientModuleSymbol=K,e.isBlockScopedContainerTopLevel=J,e.isGlobalScopeAugmentation=z,e.isExternalModuleAugmentation=U,e.isEffectiveExternalModule=V,e.isBlockScope=q,e.getEnclosingBlockScopeContainer=$,e.declarationNameToString=G,e.getNameFromIndexInfo=W,e.getTextOfPropertyName=H,e.entityNameToString=X,e.createDiagnosticForNode=Y,e.createDiagnosticForNodeInSourceFile=Q,e.createDiagnosticForNodeFromMessageChain=Z,e.getSpanOfTokenAtPosition=ee,e.getErrorSpanForNode=ne,e.isExternalOrCommonJsModule=re,e.isDeclarationFile=ae,e.isConstEnumDeclaration=ie,e.isConst=oe,e.isLet=se,e.isSuperCall=ce,e.isPrologueDirective=ue,e.getLeadingCommentRangesOfNode=le,e.getLeadingCommentRangesOfNodeFromText=_e,e.getJSDocCommentRanges=de,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/,e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx=/^(\/\/\/\s*/,e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/,e.isPartOfTypeNode=pe,e.isChildOfNodeWithKind=fe,e.isPrefixUnaryExpression=me,e.forEachReturnStatement=ge,e.forEachYieldExpression=ye,e.getRestParameterElementType=he,e.isVariableLike=ve,e.isAccessor=be,e.isClassLike=xe,e.isFunctionLike=ke,e.isFunctionLikeKind=Se,e.introducesArgumentsExoticObject=Te,e.isIterationStatement=Ce,e.unwrapInnermostStatementOfLabel=Ee,e.isFunctionBlock=De,e.isObjectLiteralMethod=Ne,e.isObjectLiteralOrClassExpressionMethod=Ae,e.isIdentifierTypePredicate=we,e.isThisTypePredicate=Oe,e.getContainingFunction=Pe,e.getContainingClass=Fe,e.getThisContainer=Ie,e.getNewTargetContainer=Re,e.getSuperContainer=Me,e.getImmediatelyInvokedFunctionExpression=Le,e.isSuperProperty=Be,e.getEntityNameFromTypeNode=Ke,e.isCallLikeExpression=je,e.getInvokedExpression=Je,e.nodeCanBeDecorated=ze,e.nodeIsDecorated=Ue,e.nodeOrChildIsDecorated=Ve,e.childIsDecorated=qe,e.isJSXTagName=$e,e.isPartOfExpression=Ge,e.isInstantiatedModule=We,e.isExternalModuleImportEqualsDeclaration=He,e.getExternalModuleImportEqualsDeclarationExpression=Xe,e.isInternalModuleImportEqualsDeclaration=Ye,e.isSourceFileJavaScript=Qe,e.isInJavaScriptFile=Ze,e.isRequireCall=et,e.isSingleOrDoubleQuote=tt,e.isDeclarationOfFunctionOrClassExpression=nt,e.getRightMostAssignedExpression=rt,e.isExportsIdentifier=at,e.isModuleExportsPropertyAccessExpression=it,e.getSpecialPropertyAssignmentKind=ot,e.getExternalModuleName=st,e.getNamespaceDeclarationNode=ct,e.isDefaultImport=ut,e.hasQuestionToken=lt,e.isJSDocConstructSignature=_t,e.getCommentsFromJSDoc=dt,e.hasJSDocParameterTags=pt,e.getJSDocs=gt,e.getJSDocParameterTags=yt,e.getJSDocType=ht,e.getJSDocAugmentsTag=vt,e.getJSDocReturnTag=bt,e.getJSDocTemplateTag=xt,e.hasRestParameter=kt,e.hasDeclaredRestParameter=St,e.isRestParameter=Tt,e.isDeclaredRestParam=Ct;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Et,e.isAssignmentTarget=Dt,e.isDeleteTarget=Nt,e.isNodeDescendantOf=At,e.isInAmbientContext=wt,e.isDeclarationName=Ot,e.getNameOfDeclaration=Pt,e.isLiteralComputedPropertyDeclarationName=Ft,e.isIdentifierName=It,e.isAliasSymbolDeclaration=Rt,e.exportAssignmentIsAlias=Mt,e.getClassExtendsHeritageClauseElement=Lt,e.getClassImplementsHeritageClauseElements=Bt,e.getInterfaceBaseTypeNodes=Kt,e.getHeritageClause=jt,e.tryResolveScriptReference=Jt,e.getAncestor=zt,e.getFileReferenceFromReferencePath=Ut,e.isKeyword=Vt,e.isTrivia=qt;!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=$t,e.isAsyncFunction=Gt,e.isNumericLiteral=Wt,e.isStringOrNumericLiteral=Ht,e.hasDynamicName=Xt,e.isDynamicName=Yt,e.isWellKnownSymbolSyntactically=Qt,e.getPropertyNameForPropertyNameNode=Zt,e.getPropertyNameForKnownSymbolName=en,e.isESSymbolIdentifier=tn,e.isPushOrUnshiftIdentifier=nn,e.isModifierKind=rn,e.isParameterDeclaration=an,e.getRootDeclaration=on$$1,e.nodeStartsNewLexicalEnvironment=sn,e.nodeIsSynthesized=cn,e.getOriginalSourceFileOrBundle=un,e.getOriginalSourceFiles=_n,e.getOriginalNodeId=dn;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right";}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=pn,e.getOperatorAssociativity=fn,e.getExpressionPrecedence=mn,e.getOperator=gn,e.getOperatorPrecedence=yn,e.createDiagnosticCollection=hn;var Gi=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Wi=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});e.escapeString=vn,e.isIntrinsicJsxName=xn;var Hi=/[^\u0000-\u007F]/g;e.escapeNonAsciiCharacters=Sn;var Xi=[""," "];e.getIndentString=Tn,e.getIndentSize=Cn,e.createTextWriter=En,e.getResolvedExternalModuleName=Dn,e.getExternalModuleNameFromDeclaration=Nn,e.getExternalModuleNameFromPath=An,e.getOwnEmitOutputFilePath=wn,e.getDeclarationEmitOutputFilePath=On,e.getSourceFilesToEmit=Pn,e.sourceFileMayBeEmitted=Fn,e.forEachEmittedFile=In,e.getSourceFilePathInNewDir=Ln,e.writeFile=Bn,e.getLineOfLocalPosition=Kn,e.getLineOfLocalPositionFromLineMap=jn,e.getFirstConstructorWithBody=Jn,e.getSetAccessorTypeAnnotationNode=zn,e.getThisParameter=Un,e.parameterIsThisKeyword=Vn,e.isThisIdentifier=qn,e.identifierIsThisKeyword=$n,e.getAllAccessorDeclarations=Gn,e.emitNewLineBeforeLeadingComments=Wn,e.emitNewLineBeforeLeadingCommentsOfPosition=Hn,e.emitNewLineBeforeLeadingCommentOfPosition=Xn,e.emitComments=Yn,e.emitDetachedComments=Qn,e.writeCommentRange=Zn,e.hasModifiers=nr,e.hasModifier=rr,e.getModifierFlags=ar,e.modifierToFlag=ir,e.isLogicalOperator=or,e.isAssignmentOperator=sr,e.tryGetClassExtendingExpressionWithTypeArguments=cr,e.isAssignmentExpression=ur,e.isDestructuringAssignment=lr,e.isSupportedExpressionWithTypeArguments=_r,e.isExpressionWithTypeArgumentsInClassExtendsClause=pr,e.isExpressionWithTypeArgumentsInClassImplementsClause=fr,e.isEntityNameExpression=mr,e.isRightSideOfQualifiedNameOrPropertyAccess=gr,e.isEmptyObjectLiteral=yr,e.isEmptyArrayLiteral=hr,e.getLocalSymbolForExportDefault=vr,e.tryExtractTypeScriptExtension=xr;var Yi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=Sr;var Qi="\r\n",Zi="\n";e.getNewLineCharacter=Tr,e.isSimpleExpression=Cr;var eo=[];e.formatSyntaxKind=Dr,e.getRangePos=Nr,e.getRangeEnd=Ar,e.movePos=wr,e.createRange=Or,e.moveRangeEnd=Pr,e.moveRangePos=Fr,e.moveRangePastDecorators=Ir,e.moveRangePastModifiers=Rr,e.isCollapsedRange=Mr,e.collapseRangeToStart=Lr,e.collapseRangeToEnd=Br,e.createTokenRange=Kr,e.rangeIsOnSingleLine=jr,e.rangeStartPositionsAreOnSameLine=Jr,e.rangeEndPositionsAreOnSameLine=zr,e.rangeStartIsOnSameLineAsRangeEnd=Ur,e.rangeEndIsOnSameLineAsRangeStart=Vr,e.positionsAreOnSameLine=qr,e.getStartPositionOfRange=$r,e.isDeclarationNameOfEnumOrNamespace=Gr,e.getInitializedVariables=Wr,e.isMergedWithClass=Xr,e.isFirstDeclarationOfKind=Yr,e.isNodeArray=Qr,e.isNoSubstitutionTemplateLiteral=Zr,e.isLiteralKind=ea,e.isTextualLiteralKind=ta,e.isLiteralExpression=na,e.isTemplateLiteralKind=ra,e.isTemplateHead=aa,e.isTemplateMiddleOrTemplateTail=ia,e.isIdentifier=oa,e.isVoidExpression=sa,e.isGeneratedIdentifier=ca,e.isModifier=ua,e.isQualifiedName=la,e.isComputedPropertyName=_a,e.isEntityName=da,e.isPropertyName=pa,e.isModuleName=fa,e.isBindingName=ma,e.isTypeParameter=ga,e.isParameter=ya,e.isDecorator=ha,e.isMethodDeclaration=va,e.isClassElement=ba,e.isObjectLiteralElementLike=xa,e.isTypeNode=Sa,e.isArrayBindingPattern=Ta,e.isObjectBindingPattern=Ca,e.isBindingPattern=Ea,e.isAssignmentPattern=Da,e.isBindingElement=Na,e.isArrayBindingElement=Aa,e.isDeclarationBindingElement=wa,e.isBindingOrAssignmentPattern=Oa,e.isObjectBindingOrAssignmentPattern=Pa,e.isArrayBindingOrAssignmentPattern=Fa,e.isArrayLiteralExpression=Ia,e.isObjectLiteralExpression=Ra,e.isPropertyAccessExpression=Ma,e.isPropertyAccessOrQualifiedName=La,e.isElementAccessExpression=Ba,e.isBinaryExpression=Ka,e.isConditionalExpression=ja,e.isCallExpression=Ja,e.isTemplateLiteral=za,e.isSpreadExpression=Ua,e.isExpressionWithTypeArguments=Va,e.isLeftHandSideExpression=$a,e.isUnaryExpression=Wa,e.isExpression=Xa,e.isAssertionExpression=Ya,e.isPartiallyEmittedExpression=Qa,e.isNotEmittedStatement=Za,e.isNotEmittedOrPartiallyEmittedNode=ei,e.isOmittedExpression=ti,e.isTemplateSpan=ni,e.isBlock=ri,e.isConciseBody=ai,e.isFunctionBody=ii,e.isForInitializer=oi,e.isVariableDeclaration=si,e.isVariableDeclarationList=ci,e.isCaseBlock=ui,e.isModuleBody=li,e.isNamespaceBody=_i,e.isJSDocNamespaceBody=di,e.isImportEqualsDeclaration=pi,e.isImportClause=fi,e.isNamedImportBindings=mi,e.isImportSpecifier=gi,e.isNamedExports=yi,e.isExportSpecifier=hi,e.isModuleOrEnumDeclaration=vi,e.isDeclaration=Si,e.isDeclarationStatement=Ti,e.isStatementButNotDeclaration=Ci,e.isStatement=Ei,e.isModuleReference=Di,e.isJsxOpeningElement=Ni,e.isJsxClosingElement=Ai,e.isJsxTagNameExpression=wi,e.isJsxChild=Oi,e.isJsxAttributes=Pi,e.isJsxAttributeLike=Fi,e.isJsxSpreadAttribute=Ii,e.isJsxAttribute=Ri,e.isStringLiteralOrJsxExpression=Mi,e.isJsxOpeningLikeElement=Li,e.isCaseOrDefaultClause=Bi,e.isHeritageClause=Ki,e.isCatchClause=ji,e.isPropertyAssignment=Ji,e.isShorthandPropertyAssignment=zi,e.isEnumMember=Ui,e.isSourceFile=Vi,e.isWatchSet=qi;}(r||(r={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function a(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var a=t+r;return t<=n(e)&&a>=e.start}function l(e,t,n,r){var a=n+r;return n<=e+t&&a>=e}function _(e,t){return t<=n(e)&&t>=e.start}function d(e,t){var r=Math.max(e.start,t.start),a=Math.min(n(e),n(t));if(r<=a)return f(r,a)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function m(e){return p(e.span.start,e.newLength)}function g(e){return r(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],a=r.span.start,i=n(r.span),o=a+r.newLength,s=1;s=3&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=a,e.textSpanContainsTextSpan=i,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=_,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=h,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.getCombinedModifierFlags=k,e.getCombinedNodeFlags=S,e.validateLocaleAndSetLanguage=T,e.getOriginalNode=C,e.isParseTreeNode=E,e.getParseTreeNode=D,e.unescapeIdentifier=N;}(r||(r={}));!function(e){function t(t){var n=e.createNode(t,-1,-1);return n.flags|=8,n}function n(t,n){return t!==n&&(Aa(t,n),oa(t,n),n.startsOnNewLine&&(t.startsOnNewLine=!0),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 a(e){var n=t(e.kind);n.flags|=e.flags,Aa(n,e);for(var r in e)!n.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function i(e){return"number"==typeof e?o(e+""):"boolean"==typeof e?e?h():v():"string"==typeof e?s(e):c(e)}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(e){var t=s(e.text);return t.textSourceNode=e,t}function u(n){var r=t(71);return r.text=e.escapeIdentifier(n),r.originalKeywordKind=n?e.stringToToken(n):0,r.autoGenerateKind=0,r.autoGenerateId=0,r}function l(e){var t=u("");return t.autoGenerateKind=1,t.autoGenerateId=Pa,Pa++,e&&e(t),t}function _(){var e=u("");return e.autoGenerateKind=2,e.autoGenerateId=Pa,Pa++,e}function d(e){var t=u(e);return t.autoGenerateKind=3,t.autoGenerateId=Pa,Pa++,t}function p(e){var t=u("");return t.autoGenerateKind=4,t.autoGenerateId=Pa,t.original=e,Pa++,t}function f(e){return t(e)}function m(){return t(97)}function g(){return t(99)}function y(){return t(95)}function h(){return t(101)}function v(){return t(86)}function b(e,n){var r=t(143);return r.left=e,r.right=ea(n),r}function x(e,t,r){return e.left!==t||e.right!==r?n(b(t,r),e):e}function k(e){var n=t(144);return n.expression=e,n}function S(e,t){return e.expression!==t?n(k(t),e):e}function T(e,n,r,a){var i=t(e);return i.typeParameters=na(n),i.parameters=na(r),i.type=a,i}function C(e,t,r,a){return e.typeParameters!==t||e.parameters!==r||e.type!==a?n(T(e.kind,t,r,a),e):e}function E(e,t,n){return T(160,e,t,n)}function D(e,t,n,r){return C(e,t,n,r)}function N(e,t,n){return T(161,e,t,n)}function A(e,t,n,r){return C(e,t,n,r)}function w(e,t,n){return T(155,e,t,n)}function O(e,t,n,r){return C(e,t,n,r)}function P(e,t,n){return T(156,e,t,n)}function F(e,t,n,r){return C(e,t,n,r)}function I(e,t,n,r,a){var i=T(150,e,t,n);return i.name=ea(r),i.questionToken=a,i}function R(e,t,r,a,i,o){return e.typeParameters!==t||e.parameters!==r||e.type!==a||e.name!==i||e.questionToken!==o?n(I(t,r,a,i,o),e):e}function M(e){return t(e)}function L(){return t(169)}function B(e){var n=t(173);return n.literal=e,n}function K(e,t){return e.literal!==t?n(B(t),e):e}function j(e,n){var r=t(159);return r.typeName=ea(e),r.typeArguments=na(n),r}function J(e,t,r){return e.typeName!==t||e.typeArguments!==r?n(j(t,r),e):e}function z(e,n){var r=t(158);return r.parameterName=ea(e),r.type=n,r}function U(e,t,r){return e.parameterName!==t||e.type!==r?n(z(t,r),e):e}function V(e){var n=t(162);return n.exprName=e,n}function q(e,t){return e.exprName!==t?n(V(t),e):e}function $(e){var n=t(164);return n.elementType=e,n}function G(e,t){return e.elementType!==t?n($(t),e):e}function W(e,n){var a=t(e);return a.types=r(n),a}function H(e,t){return e.types!==t?n(W(e.kind,t),e):e}function X(e){var n=t(163);return n.members=r(e),n}function Y(e,t){return e.members!==t?n(X(t),e):e}function Q(e){var n=t(165);return n.elementTypes=r(e),n}function Z(e,t){return e.elementTypes!==t?n(Q(t),e):e}function ee(e,n,r,a){var i=t(172);return i.readonlyToken=e,i.typeParameter=n,i.questionToken=r,i.type=a,i}function te(e,t,r,a,i){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==a||e.type!==i?n(ee(t,r,a,i),e):e}function ne(e){var n=t(170);return n.operator=127,n.type=e,n}function re(e,t){return e.type!==t?n(ne(t),e):e}function ae(e,n){var r=t(171);return r.objectType=e,r.indexType=n,r}function ie(e,t,r){return e.objectType!==t||e.indexType!==r?n(ae(t,r),e):e}function oe(e,n,r){var a=t(145);return a.name=ea(e),a.constraint=n,a.default=r,a}function se(e,t,r,a){return e.name!==t||e.constraint!==r||e.default!==a?n(oe(t,r,a),e):e}function ce(e,n,r,a){var i=t(148);return i.name=ea(e),i.questionToken=n,i.type=r,i.initializer=a,i}function ue(e,t,r,a,i){return e.name!==t||e.questionToken!==r||e.type!==a||e.initializer!==i?n(ce(t,r,a,i),e):e}function le(e,n,a,i){var o=t(157);return o.decorators=na(e),o.modifiers=na(n),o.parameters=r(a),o.type=i,o}function _e(e,t,r,a,i){return e.parameters!==a||e.type!==i||e.decorators!==t||e.modifiers!==r?n(le(t,r,a,i),e):e}function de(n,r,a,i,o,s,c){var u=t(146);return u.decorators=na(n),u.modifiers=na(r),u.dotDotDotToken=a,u.name=ea(i),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function pe(e,t,r,a,i,o,s,c){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==a||e.name!==i||e.questionToken!==o||e.type!==s||e.initializer!==c?n(de(t,r,a,i,e.questionToken,s,c),e):e}function fe(n){var r=t(147);return r.expression=e.parenthesizeForAccess(n),r}function me(e,t){return e.expression!==t?n(fe(t),e):e}function ge(e,n,r,a,i,o){var s=t(149);return s.decorators=na(e),s.modifiers=na(n),s.name=ea(r),s.questionToken=a,s.type=i,s.initializer=o,s}function ye(e,t,r,a,i,o){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.type!==i||e.initializer!==o?n(ge(t,r,a,e.questionToken,i,o),e):e}function he(e,n,a,i,o,s,c,u,l){var _=t(151);return _.decorators=na(e),_.modifiers=na(n),_.asteriskToken=a,_.name=ea(i),_.questionToken=o,_.typeParameters=na(s),_.parameters=r(c),_.type=u,_.body=l,_}function ve(e,t,r,a,i,o,s,c,u,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?n(he(t,r,a,i,o,s,c,u,l),e):e}function be(e,n,a,i){var o=t(152);return o.decorators=na(e),o.modifiers=na(n),o.typeParameters=void 0,o.parameters=r(a),o.type=void 0,o.body=i,o}function xe(e,t,r,a,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==a||e.body!==i?n(be(t,r,a,i),e):e}function ke(e,n,a,i,o,s){var c=t(153);return c.decorators=na(e),c.modifiers=na(n),c.name=ea(a),c.typeParameters=void 0,c.parameters=r(i),c.type=o,c.body=s,c}function Se(e,t,r,a,i,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.parameters!==i||e.type!==o||e.body!==s?n(ke(t,r,a,i,o,s),e):e}function Te(e,n,a,i,o){var s=t(154);return s.decorators=na(e),s.modifiers=na(n),s.name=ea(a),s.typeParameters=void 0,s.parameters=r(i),s.body=o,s}function Ce(e,t,r,a,i,o){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.parameters!==i||e.body!==o?n(Te(t,r,a,i,o),e):e}function Ee(e){var n=t(174);return n.elements=r(e),n}function De(e,t){return e.elements!==t?n(Ee(t),e):e}function Ne(e){var n=t(175);return n.elements=r(e),n}function Ae(e,t){return e.elements!==t?n(Ne(t),e):e}function we(e,n,r,a){var i=t(176);return i.dotDotDotToken=e,i.propertyName=ea(n),i.name=ea(r),i.initializer=a,i}function Oe(e,t,r,a,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==a||e.initializer!==i?n(we(t,r,a,i),e):e}function Pe(n,a){var i=t(177);return i.elements=e.parenthesizeListElements(r(n)),a&&(i.multiLine=!0),i}function Fe(e,t){return e.elements!==t?n(Pe(t,e.multiLine),e):e}function Ie(e,n){var a=t(178);return a.properties=r(e),n&&(a.multiLine=!0),a}function Re(e,t){return e.properties!==t?n(Ie(t,e.multiLine),e):e}function Me(n,r){var a=t(179);return a.expression=e.parenthesizeForAccess(n),a.name=ea(r),ca(a,131072),a}function Le(e,t,r){return e.expression!==t||e.name!==r?n(ca(Me(t,r),sa(e)),e):e}function Be(n,r){var a=t(180);return a.expression=e.parenthesizeForAccess(n),a.argumentExpression=ta(r),a}function Ke(e,t,r){return e.expression!==t||e.argumentExpression!==r?n(Be(t,r),e):e}function je(n,a,i){var o=t(181);return o.expression=e.parenthesizeForAccess(n),o.typeArguments=na(a),o.arguments=e.parenthesizeListElements(r(i)),o}function Je(e,t,r,a){return t!==e.expression||r!==e.typeArguments||a!==e.arguments?n(je(t,r,a),e):e}function ze(n,a,i){var o=t(182);return o.expression=e.parenthesizeForNew(n),o.typeArguments=na(a),o.arguments=i?e.parenthesizeListElements(r(i)):void 0,o}function Ue(e,t,r,a){return e.expression!==t||e.typeArguments!==r||e.arguments!==a?n(ze(t,r,a),e):e}function Ve(n,r){var a=t(183);return a.tag=e.parenthesizeForAccess(n),a.template=r,a}function qe(e,t,r){return e.tag!==t||e.template!==r?n(Ve(t,r),e):e}function $e(n,r){var a=t(184);return a.type=n,a.expression=e.parenthesizePrefixOperand(r),a}function Ge(e,t,r){return e.type!==t||e.expression!==r?n($e(t,r),e):e}function We(e){var n=t(185);return n.expression=e,n}function He(e,t){return e.expression!==t?n(We(t),e):e}function Xe(e,n,a,i,o,s,c){var u=t(186);return u.modifiers=na(e),u.asteriskToken=n,u.name=ea(a),u.typeParameters=na(i),u.parameters=r(o),u.type=s,u.body=c,u}function Ye(e,t,r,a,i,o,s,c){return e.name!==a||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?n(Xe(t,r,a,i,o,s,c),e):e}function Qe(n,a,i,o,s,c){var u=t(187);return u.modifiers=na(n),u.typeParameters=na(a),u.parameters=r(i),u.type=o,u.equalsGreaterThanToken=s||f(36),u.body=e.parenthesizeConciseBody(c),u}function Ze(e,t,r,a,i,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==a||e.type!==i||e.body!==o?n(Qe(t,r,a,i,e.equalsGreaterThanToken,o),e):e}function et(n){var r=t(188);return r.expression=e.parenthesizePrefixOperand(n),r}function tt(e,t){return e.expression!==t?n(et(t),e):e}function nt(n){var r=t(189);return r.expression=e.parenthesizePrefixOperand(n),r}function rt(e,t){return e.expression!==t?n(nt(t),e):e}function at(n){var r=t(190);return r.expression=e.parenthesizePrefixOperand(n),r}function it(e,t){return e.expression!==t?n(at(t),e):e}function ot(n){var r=t(191);return r.expression=e.parenthesizePrefixOperand(n),r}function st(e,t){return e.expression!==t?n(ot(t),e):e}function ct(n,r){var a=t(192);return a.operator=n,a.operand=e.parenthesizePrefixOperand(r),a}function ut(e,t){return e.operand!==t?n(ct(e.operator,t),e):e}function lt(n,r){var a=t(193);return a.operand=e.parenthesizePostfixOperand(n),a.operator=r,a}function _t(e,t){return e.operand!==t?n(lt(t,e.operator),e):e}function dt(n,r,a){var i=t(194),o=ra(r),s=o.kind;return i.left=e.parenthesizeBinaryOperand(s,n,!0,void 0),i.operatorToken=o,i.right=e.parenthesizeBinaryOperand(s,a,!1,i.left),i}function pt(e,t,r){return e.left!==t||e.right!==r?n(dt(t,e.operatorToken,r),e):e}function ft(n,r,a,i,o){var s=t(195);return s.condition=e.parenthesizeForConditionalHead(n),s.questionToken=o?r:f(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?a:r),s.colonToken=o?i:f(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||a),s}function mt(e,t,r,a){return e.condition!==t||e.whenTrue!==r||e.whenFalse!==a?n(ft(t,e.questionToken,r,e.colonToken,a),e):e}function gt(e,n){var a=t(196);return a.head=e,a.templateSpans=r(n),a}function yt(e,t,r){return e.head!==t||e.templateSpans!==r?n(gt(t,r),e):e}function ht(e,n){var r=t(197);return r.asteriskToken=e&&39===e.kind?e:void 0,r.expression=e&&39!==e.kind?e:n,r}function vt(e,t,r){return e.expression!==r||e.asteriskToken!==t?n(ht(t,r),e):e}function bt(n){var r=t(198);return r.expression=e.parenthesizeExpressionForList(n),r}function xt(e,t){return e.expression!==t?n(bt(t),e):e}function kt(e,n,a,i,o){var s=t(199);return s.decorators=void 0,s.modifiers=na(e),s.name=ea(n),s.typeParameters=na(a),s.heritageClauses=na(i),s.members=r(o),s}function St(e,t,r,a,i,o){return e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?n(kt(t,r,a,i,o),e):e}function Tt(){return t(200)}function Ct(n,r){var a=t(201);return a.expression=e.parenthesizeForAccess(r),a.typeArguments=na(n),a}function Et(e,t,r){return e.typeArguments!==t||e.expression!==r?n(Ct(t,r),e):e}function Dt(e,n){var r=t(202);return r.expression=e,r.type=n,r}function Nt(e,t,r){return e.expression!==t||e.type!==r?n(Dt(t,r),e):e}function At(n){var r=t(203);return r.expression=e.parenthesizeForAccess(n),r}function wt(e,t){return e.expression!==t?n(At(t),e):e}function Ot(e,n){var r=t(205);return r.expression=e,r.literal=n,r}function Pt(e,t,r){return e.expression!==t||e.literal!==r?n(Ot(t,r),e):e}function Ft(e,n){var a=t(207);return a.statements=r(e),n&&(a.multiLine=n),a}function It(e,t){return t!==e.statements?n(Ft(t,e.multiLine),e):e}function Rt(n,r){var a=t(208);return a.decorators=void 0,a.modifiers=na(n),a.declarationList=e.isArray(r)?Lt(r):r,a}function Mt(e,t,r){return e.modifiers!==t||e.declarationList!==r?n(Rt(t,r),e):e}function Lt(e,n){var a=t(227);return a.flags|=n,a.declarations=r(e),a}function Bt(e,t){return e.declarations!==t?n(Lt(t,e.flags),e):e}function Kt(n,r,a){var i=t(226);return i.name=ea(n),i.type=r,i.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,i}function jt(e,t,r,a){return e.name!==t||e.type!==r||e.initializer!==a?n(Kt(t,r,a),e):e}function Jt(){return t(209)}function zt(n){var r=t(210);return r.expression=e.parenthesizeExpressionForExpressionStatement(n),r}function Ut(e,t){return e.expression!==t?n(zt(t),e):e}function Vt(e,n,r){var a=t(211);return a.expression=e,a.thenStatement=n,a.elseStatement=r,a}function qt(e,t,r,a){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==a?n(Vt(t,r,a),e):e}function $t(e,n){var r=t(212);return r.statement=e,r.expression=n,r}function Gt(e,t,r){return e.statement!==t||e.expression!==r?n($t(t,r),e):e}function Wt(e,n){var r=t(213);return r.expression=e,r.statement=n,r}function Ht(e,t,r){return e.expression!==t||e.statement!==r?n(Wt(t,r),e):e}function Xt(e,n,r,a){var i=t(214);return i.initializer=e,i.condition=n,i.incrementor=r,i.statement=a,i}function Yt(e,t,r,a,i){return e.initializer!==t||e.condition!==r||e.incrementor!==a||e.statement!==i?n(Xt(t,r,a,i),e):e}function Qt(e,n,r){var a=t(215);return a.initializer=e,a.expression=n,a.statement=r,a}function Zt(e,t,r,a){return e.initializer!==t||e.expression!==r||e.statement!==a?n(Qt(t,r,a),e):e}function en(e,n,r,a){var i=t(216);return i.awaitModifier=e,i.initializer=n,i.expression=r,i.statement=a,i}function tn(e,t,r,a,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==a||e.statement!==i?n(en(t,r,a,i),e):e}function nn(e){var n=t(217);return n.label=ea(e),n}function rn(e,t){return e.label!==t?n(nn(t),e):e}function an(e){var n=t(218);return n.label=ea(e),n}function on$$1(e,t){return e.label!==t?n(an(t),e):e}function sn(e){var n=t(219);return n.expression=e,n}function cn(e,t){return e.expression!==t?n(sn(t),e):e}function un(e,n){var r=t(220);return r.expression=e,r.statement=n,r}function ln(e,t,r){return e.expression!==t||e.statement!==r?n(un(t,r),e):e}function _n(n,r){var a=t(221);return a.expression=e.parenthesizeExpressionForList(n),a.caseBlock=r,a}function dn(e,t,r){return e.expression!==t||e.caseBlock!==r?n(_n(t,r),e):e}function pn(e,n){var r=t(222);return r.label=ea(e),r.statement=n,r}function fn(e,t,r){return e.label!==t||e.statement!==r?n(pn(t,r),e):e}function mn(e){var n=t(223);return n.expression=e,n}function gn(e,t){return e.expression!==t?n(mn(t),e):e}function yn(e,n,r){var a=t(224);return a.tryBlock=e,a.catchClause=n,a.finallyBlock=r,a}function hn(e,t,r,a){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==a?n(yn(t,r,a),e):e}function vn(e,n,a,i,o,s,c,u){var l=t(228);return l.decorators=na(e),l.modifiers=na(n),l.asteriskToken=a,l.name=ea(i),l.typeParameters=na(o),l.parameters=r(s),l.type=c,l.body=u,l}function bn(e,t,r,a,i,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?n(vn(t,r,a,i,o,s,c,u),e):e}function xn(e,n,a,i,o,s){var c=t(229);return c.decorators=na(e),c.modifiers=na(n),c.name=ea(a),c.typeParameters=na(i),c.heritageClauses=na(o),c.members=r(s),c}function kn(e,t,r,a,i,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?n(xn(t,r,a,i,o,s),e):e}function Sn(e,n,a,i){var o=t(232);return o.decorators=na(e),o.modifiers=na(n),o.name=ea(a),o.members=r(i),o}function Tn(e,t,r,a,i){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.members!==i?n(Sn(t,r,a,i),e):e}function Cn(e,n,r,a,i){var o=t(233);return o.flags|=i,o.decorators=na(e),o.modifiers=na(n),o.name=r,o.body=a,o}function En(e,t,r,a,i){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.body!==i?n(Cn(t,r,a,i,e.flags),e):e}function Dn(e){var n=t(234);return n.statements=r(e),n}function Nn(e,t){return e.statements!==t?n(Dn(t),e):e}function An(e){var n=t(235);return n.clauses=r(e),n}function wn(e,t){return e.clauses!==t?n(An(t),e):e}function On(e,n,r,a){var i=t(237);return i.decorators=na(e),i.modifiers=na(n),i.name=ea(r),i.moduleReference=a,i}function Pn(e,t,r,a,i){return e.decorators!==t||e.modifiers!==r||e.name!==a||e.moduleReference!==i?n(On(t,r,a,i),e):e}function Fn(e,n,r,a){var i=t(238);return i.decorators=na(e),i.modifiers=na(n),i.importClause=r,i.moduleSpecifier=a,i}function In(e,t,r,a,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==a||e.moduleSpecifier!==i?n(Fn(t,r,a,i),e):e}function Rn(e,n){var r=t(239);return r.name=e,r.namedBindings=n,r}function Mn(e,t,r){return e.name!==t||e.namedBindings!==r?n(Rn(t,r),e):e}function Ln(e){var n=t(240);return n.name=e,n}function Bn(e,t){return e.name!==t?n(Ln(t),e):e}function Kn(e){var n=t(241);return n.elements=r(e),n}function jn(e,t){return e.elements!==t?n(Kn(t),e):e}function Jn(e,n){var r=t(242);return r.propertyName=e,r.name=n,r}function zn(e,t,r){return e.propertyName!==t||e.name!==r?n(Jn(t,r),e):e}function Un(e,n,r,a){var i=t(243);return i.decorators=na(e),i.modifiers=na(n),i.isExportEquals=r,i.expression=a,i}function Vn(e,t,r,a){return e.decorators!==t||e.modifiers!==r||e.expression!==a?n(Un(t,r,e.isExportEquals,a),e):e}function qn(e,n,r,a){var i=t(244);return i.decorators=na(e),i.modifiers=na(n),i.exportClause=r,i.moduleSpecifier=a,i}function $n(e,t,r,a,i){return e.decorators!==t||e.modifiers!==r||e.exportClause!==a||e.moduleSpecifier!==i?n(qn(t,r,a,i),e):e}function Gn(e){var n=t(245);return n.elements=r(e),n}function Wn(e,t){return e.elements!==t?n(Gn(t),e):e}function Hn(e,n){var r=t(246);return r.propertyName=ea(e),r.name=ea(n),r}function Xn(e,t,r){return e.propertyName!==t||e.name!==r?n(Hn(t,r),e):e}function Yn(e){var n=t(248);return n.expression=e,n}function Qn(e,t){return e.expression!==t?n(Yn(t),e):e}function Zn(e,n,a){var i=t(249);return i.openingElement=e,i.children=r(n),i.closingElement=a,i}function er(e,t,r,a){return e.openingElement!==t||e.children!==r||e.closingElement!==a?n(Zn(t,r,a),e):e}function tr(e,n){var r=t(250);return r.tagName=e,r.attributes=n,r}function nr(e,t,r){return e.tagName!==t||e.attributes!==r?n(tr(t,r),e):e}function rr(e,n){var r=t(251);return r.tagName=e,r.attributes=n,r}function ar(e,t,r){return e.tagName!==t||e.attributes!==r?n(rr(t,r),e):e}function ir(e){var n=t(252);return n.tagName=e,n}function or(e,t){return e.tagName!==t?n(ir(t),e):e}function sr(e){var n=t(254);return n.properties=r(e),n}function cr(e,t){return e.properties!==t?n(sr(t),e):e}function ur(e,n){var r=t(253);return r.name=e,r.initializer=n,r}function lr(e,t,r){return e.name!==t||e.initializer!==r?n(ur(t,r),e):e}function _r(e){var n=t(255);return n.expression=e,n}function dr(e,t){return e.expression!==t?n(_r(t),e):e}function pr(e,n){var r=t(256);return r.dotDotDotToken=e,r.expression=n,r}function fr(e,t){return e.expression!==t?n(pr(e.dotDotDotToken,t),e):e}function mr(e,n){var a=t(259);return a.token=e,a.types=r(n),a}function gr(e,t){return e.types!==t?n(mr(e.token,t),e):e}function yr(n,a){var i=t(257);return i.expression=e.parenthesizeExpressionForList(n),i.statements=r(a),i}function hr(e,t,r){return e.expression!==t||e.statements!==r?n(yr(t,r),e):e}function vr(e){var n=t(258);return n.statements=r(e),n}function br(e,t){return e.statements!==t?n(vr(t),e):e}function xr(e,n){var r=t(260);return r.variableDeclaration="string"==typeof e?Kt(e):e,r.block=n,r}function kr(e,t,r){return e.variableDeclaration!==t||e.block!==r?n(xr(t,r),e):e}function Sr(n,r){var a=t(261);return a.name=ea(n),a.questionToken=void 0,a.initializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,a}function Tr(e,t,r){return e.name!==t||e.initializer!==r?n(Sr(t,r),e):e}function Cr(n,r){var a=t(262);return a.name=ea(n),a.objectAssignmentInitializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,a}function Er(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?n(Cr(t,r),e):e}function Dr(n){var r=t(263);return r.expression=void 0!==n?e.parenthesizeExpressionForList(n):void 0,r}function Nr(e,t){return e.expression!==t?n(Dr(t),e):e}function Ar(n,r){var a=t(264);return a.name=ea(n),a.initializer=r&&e.parenthesizeExpressionForList(r),a}function wr(e,t,r){return e.name!==t||e.initializer!==r?n(Ar(t,r),e):e}function Or(e,a){if(e.statements!==a){var i=t(265);return i.flags|=e.flags,i.statements=r(a),i.endOfFileToken=e.endOfFileToken,i.fileName=e.fileName,i.path=e.path,i.text=e.text,void 0!==e.amdDependencies&&(i.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(i.moduleName=e.moduleName),void 0!==e.referencedFiles&&(i.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(i.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(i.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(i.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(i.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(i.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(i.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(i.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(i.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(i.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(i.identifiers=e.identifiers),void 0!==e.nodeCount&&(i.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(i.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(i.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(i.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(i.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(i.lineMap=e.lineMap),void 0!==e.classifiableNames&&(i.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(i.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(i.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(i.imports=e.imports),void 0!==e.moduleAugmentations&&(i.moduleAugmentations=e.moduleAugmentations),n(i,e)}return e}function Pr(e){var t=a(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t}function Fr(e){var n=t(295);return n.original=e,oa(n,e),n}function Ir(e){var n=t(298);return n.emitNode={},n.original=e,n}function Rr(e){var n=t(297);return n.emitNode={},n.original=e,n}function Mr(e,n){var r=t(296);return r.expression=e,r.original=n,oa(r,n),r}function Lr(e,t){return e.expression!==t?n(Mr(t,e.original),e):e}function Br(t){var n=e.createNode(266);return n.sourceFiles=t,n}function Kr(e,t){return e.sourceFiles!==t?Br(t):e}function jr(e,t){return dt(e,26,t)}function Jr(e,t){return dt(e,27,t)}function zr(e,t){return dt(e,58,t)}function Ur(e,t){return dt(e,34,t)}function Vr(e,t){return dt(e,35,t)}function qr(e,t){return dt(e,37,t)}function $r(e,t){return dt(e,38,t)}function Gr(e){return lt(e,43)}function Wr(e,t){return dt(e,53,t)}function Hr(e,t){return dt(e,54,t)}function Xr(e){return ct(51,e)}function Yr(){return at(i(0))}function Qr(e){return Un(void 0,void 0,!1,e)}function Zr(e){return qn(void 0,void 0,Gn([Hn(void 0,e)]))}function ea(e){return"string"==typeof e?u(e):e}function ta(e){return"string"==typeof e||"number"==typeof e?i(e):e}function na(e){return e?r(e):void 0}function ra(e){return"number"==typeof e?f(e):e}function aa(t){var n=(t=e.getSourceFileOfNode(e.getParseTreeNode(t)))&&t.emitNode,r=n&&n.annotatedNodes;if(r)for(var a=0,i=r;a0&&(i[c-s]=u);}s>0&&(i.length-=s);}}function Na(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)}function Aa(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=wa(n,e.emitNode));}return e}function wa(t,n){var r=t.flags,a=t.leadingComments,i=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),a&&(n.leadingComments=e.addRange(a.slice(),n.leadingComments)),i&&(n.trailingComments=e.addRange(i.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=Oa(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function Oa(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createIdentifier=u;var Pa=0;e.createTempVariable=l,e.createLoopVariable=_,e.createUniqueName=d,e.getGeneratedNameForNode=p,e.createToken=f,e.createSuper=m,e.createThis=g,e.createNull=y,e.createTrue=h,e.createFalse=v,e.createQualifiedName=b,e.updateQualifiedName=x,e.createComputedPropertyName=k,e.updateComputedPropertyName=S,e.createSignatureDeclaration=T,e.createFunctionTypeNode=E,e.updateFunctionTypeNode=D,e.createConstructorTypeNode=N,e.updateConstructorTypeNode=A,e.createCallSignatureDeclaration=w,e.updateCallSignatureDeclaration=O,e.createConstructSignatureDeclaration=P,e.updateConstructSignatureDeclaration=F,e.createMethodSignature=I,e.updateMethodSignature=R,e.createKeywordTypeNode=M,e.createThisTypeNode=L,e.createLiteralTypeNode=B,e.updateLiteralTypeNode=K,e.createTypeReferenceNode=j,e.updateTypeReferenceNode=J,e.createTypePredicateNode=z,e.updateTypePredicateNode=U,e.createTypeQueryNode=V,e.updateTypeQueryNode=q,e.createArrayTypeNode=$,e.updateArrayTypeNode=G,e.createUnionOrIntersectionTypeNode=W,e.updateUnionOrIntersectionTypeNode=H,e.createTypeLiteralNode=X,e.updateTypeLiteralNode=Y,e.createTupleTypeNode=Q,e.updateTypleTypeNode=Z,e.createMappedTypeNode=ee,e.updateMappedTypeNode=te,e.createTypeOperatorNode=ne,e.updateTypeOperatorNode=re,e.createIndexedAccessTypeNode=ae,e.updateIndexedAccessTypeNode=ie,e.createTypeParameterDeclaration=oe,e.updateTypeParameterDeclaration=se,e.createPropertySignature=ce,e.updatePropertySignature=ue,e.createIndexSignatureDeclaration=le,e.updateIndexSignatureDeclaration=_e,e.createParameter=de,e.updateParameter=pe,e.createDecorator=fe,e.updateDecorator=me,e.createProperty=ge,e.updateProperty=ye,e.createMethodDeclaration=he,e.updateMethod=ve,e.createConstructor=be,e.updateConstructor=xe,e.createGetAccessor=ke,e.updateGetAccessor=Se,e.createSetAccessor=Te,e.updateSetAccessor=Ce,e.createObjectBindingPattern=Ee,e.updateObjectBindingPattern=De,e.createArrayBindingPattern=Ne,e.updateArrayBindingPattern=Ae,e.createBindingElement=we,e.updateBindingElement=Oe,e.createArrayLiteral=Pe,e.updateArrayLiteral=Fe,e.createObjectLiteral=Ie,e.updateObjectLiteral=Re,e.createPropertyAccess=Me,e.updatePropertyAccess=Le,e.createElementAccess=Be,e.updateElementAccess=Ke,e.createCall=je,e.updateCall=Je,e.createNew=ze,e.updateNew=Ue,e.createTaggedTemplate=Ve,e.updateTaggedTemplate=qe,e.createTypeAssertion=$e,e.updateTypeAssertion=Ge,e.createParen=We,e.updateParen=He,e.createFunctionExpression=Xe,e.updateFunctionExpression=Ye,e.createArrowFunction=Qe,e.updateArrowFunction=Ze,e.createDelete=et,e.updateDelete=tt,e.createTypeOf=nt,e.updateTypeOf=rt,e.createVoid=at,e.updateVoid=it,e.createAwait=ot,e.updateAwait=st,e.createPrefix=ct,e.updatePrefix=ut,e.createPostfix=lt,e.updatePostfix=_t,e.createBinary=dt,e.updateBinary=pt,e.createConditional=ft,e.updateConditional=mt,e.createTemplateExpression=gt,e.updateTemplateExpression=yt,e.createYield=ht,e.updateYield=vt,e.createSpread=bt,e.updateSpread=xt,e.createClassExpression=kt,e.updateClassExpression=St,e.createOmittedExpression=Tt,e.createExpressionWithTypeArguments=Ct,e.updateExpressionWithTypeArguments=Et,e.createAsExpression=Dt,e.updateAsExpression=Nt,e.createNonNullExpression=At,e.updateNonNullExpression=wt,e.createTemplateSpan=Ot,e.updateTemplateSpan=Pt,e.createBlock=Ft,e.updateBlock=It,e.createVariableStatement=Rt,e.updateVariableStatement=Mt,e.createVariableDeclarationList=Lt,e.updateVariableDeclarationList=Bt,e.createVariableDeclaration=Kt,e.updateVariableDeclaration=jt,e.createEmptyStatement=Jt,e.createStatement=zt,e.updateStatement=Ut,e.createIf=Vt,e.updateIf=qt,e.createDo=$t,e.updateDo=Gt,e.createWhile=Wt,e.updateWhile=Ht,e.createFor=Xt,e.updateFor=Yt,e.createForIn=Qt,e.updateForIn=Zt,e.createForOf=en,e.updateForOf=tn,e.createContinue=nn,e.updateContinue=rn,e.createBreak=an,e.updateBreak=on$$1,e.createReturn=sn,e.updateReturn=cn,e.createWith=un,e.updateWith=ln,e.createSwitch=_n,e.updateSwitch=dn,e.createLabel=pn,e.updateLabel=fn,e.createThrow=mn,e.updateThrow=gn,e.createTry=yn,e.updateTry=hn,e.createFunctionDeclaration=vn,e.updateFunctionDeclaration=bn,e.createClassDeclaration=xn,e.updateClassDeclaration=kn,e.createEnumDeclaration=Sn,e.updateEnumDeclaration=Tn,e.createModuleDeclaration=Cn,e.updateModuleDeclaration=En,e.createModuleBlock=Dn,e.updateModuleBlock=Nn,e.createCaseBlock=An,e.updateCaseBlock=wn,e.createImportEqualsDeclaration=On,e.updateImportEqualsDeclaration=Pn,e.createImportDeclaration=Fn,e.updateImportDeclaration=In,e.createImportClause=Rn,e.updateImportClause=Mn,e.createNamespaceImport=Ln,e.updateNamespaceImport=Bn,e.createNamedImports=Kn,e.updateNamedImports=jn,e.createImportSpecifier=Jn,e.updateImportSpecifier=zn,e.createExportAssignment=Un,e.updateExportAssignment=Vn,e.createExportDeclaration=qn,e.updateExportDeclaration=$n,e.createNamedExports=Gn,e.updateNamedExports=Wn,e.createExportSpecifier=Hn,e.updateExportSpecifier=Xn,e.createExternalModuleReference=Yn,e.updateExternalModuleReference=Qn,e.createJsxElement=Zn,e.updateJsxElement=er,e.createJsxSelfClosingElement=tr,e.updateJsxSelfClosingElement=nr,e.createJsxOpeningElement=rr,e.updateJsxOpeningElement=ar,e.createJsxClosingElement=ir,e.updateJsxClosingElement=or,e.createJsxAttributes=sr,e.updateJsxAttributes=cr,e.createJsxAttribute=ur,e.updateJsxAttribute=lr,e.createJsxSpreadAttribute=_r,e.updateJsxSpreadAttribute=dr,e.createJsxExpression=pr,e.updateJsxExpression=fr,e.createHeritageClause=mr,e.updateHeritageClause=gr,e.createCaseClause=yr,e.updateCaseClause=hr,e.createDefaultClause=vr,e.updateDefaultClause=br,e.createCatchClause=xr,e.updateCatchClause=kr,e.createPropertyAssignment=Sr,e.updatePropertyAssignment=Tr,e.createShorthandPropertyAssignment=Cr,e.updateShorthandPropertyAssignment=Er,e.createSpreadAssignment=Dr,e.updateSpreadAssignment=Nr,e.createEnumMember=Ar,e.updateEnumMember=wr,e.updateSourceFileNode=Or,e.getMutableClone=Pr,e.createNotEmittedStatement=Fr,e.createEndOfDeclarationMarker=Ir,e.createMergeDeclarationMarker=Rr,e.createPartiallyEmittedExpression=Mr,e.updatePartiallyEmittedExpression=Lr,e.createBundle=Br,e.updateBundle=Kr,e.createComma=jr,e.createLessThan=Jr,e.createAssignment=zr,e.createStrictEquality=Ur,e.createStrictInequality=Vr,e.createAdd=qr,e.createSubtract=$r,e.createPostfixIncrement=Gr,e.createLogicalAnd=Wr,e.createLogicalOr=Hr,e.createLogicalNot=Xr,e.createVoidZero=Yr,e.createExportDefault=Qr,e.createExternalModuleExport=Zr,e.disposeEmitNodes=aa,e.getOrCreateEmitNode=ia,e.setTextRange=oa,e.getEmitFlags=sa,e.setEmitFlags=ca,e.getSourceMapRange=ua,e.setSourceMapRange=la,e.getTokenSourceMapRange=_a,e.setTokenSourceMapRange=da,e.getCommentRange=pa,e.setCommentRange=fa,e.getSyntheticLeadingComments=ma,e.setSyntheticLeadingComments=ga,e.addSyntheticLeadingComment=ya,e.getSyntheticTrailingComments=ha,e.setSyntheticTrailingComments=va,e.addSyntheticTrailingComment=ba,e.getConstantValue=xa,e.setConstantValue=ka,e.addEmitHelper=Sa,e.addEmitHelpers=Ta,e.removeEmitHelper=Ca,e.getEmitHelpers=Ea,e.moveEmitHelpers=Da,e.compareEmitHelpers=Na,e.setOriginalNode=Aa;}(r||(r={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var a=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,n,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),a)}function a(t,n,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),a)}function i(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)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),a=e.createIdentifier(t.right.text);return a.text=t.right.text,e.createPropertyAccess(r,a)}return c(t.text,n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function _(t,n,r,a,i,o,s){var c=[r];if(a&&c.push(a),i&&i.length>0)if(a||c.push(e.createNull()),i.length>1)for(var u=0,_=i;u<_.length;u++){var d=_[u];d.startsOnNewLine=!0,c.push(d);}else c.push(i[0]);return e.setTextRange(e.createCall(l(t,n,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,n,r){return t.requestEmitHelper(Re),e.setTextRange(e.createCall(d("__values"),void 0,[n]),r)}function f(t,n,r,a){return t.requestEmitHelper(Me),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),a)}function m(t,n,r){return t.requestEmitHelper(Me),t.requestEmitHelper(Le),e.setTextRange(e.createCall(d("__spread"),void 0,n),r)}function g(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),a=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[a])),t)}var i=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(i),t)}function y(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)}function h(t,n,r){if(!n)return t;var a=e.updateLabel(n,n.label,222===n.statement.kind?h(t,n.statement):t);return r&&r(n),a}function v(e,t){var n=le(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function b(t,n,r,a){var i,o,s=ue(t,7);if(e.isSuperProperty(s))i=e.createThis(),o=s;else if(97===s.kind)i=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))i=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,a)?(i=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s);break;case 180:v(s.expression,a)?(i=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s);break;default:i=e.createVoidZero(),o=ee(t);}return{target:o,thisArg:i}}function x(t){return e.reduceLeft(t,e.createComma)}function k(t){if(e.isQualifiedName(t)){var n=k(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function S(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function T(e,t,n){switch(t.kind){case 153:case 154:return C(e.properties,t,n,e.multiLine);case 261:return E(t,n);case 262:return D(t,n);case 151:return N(t,n)}}function C(t,n,r,a){var i=e.getAllAccessorDeclarations(t,n),o=i.firstAccessor,s=i.getAccessor,c=i.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_);}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p);}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,S(n.name),e.createObjectLiteral(u,a)]),o);return e.aggregateTransformFlags(f)}}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function D(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return M(e,t,n,49152)}function w(t){return 0!=(32768&e.getEmitFlags(t))}function O(e,t,n){return M(e,t,n,16384)}function P(t){return 0!=(16384&e.getEmitFlags(t))}function F(e,t,n){return M(e,t,n,8192)}function I(t){return 0!=(8192&e.getEmitFlags(t))}function R(e,t,n){return M(e,t,n)}function M(t,n,r,a){var i=e.getNameOfDeclaration(t);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.getMutableClone(i);return a|=e.getEmitFlags(i),r||(a|=48),n||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(t)}function L(t,n,r,a){return t&&e.hasModifier(n,1)?B(t,M(n),r,a):F(n,r,a)}function B(t,n,r,a){var i=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(i,n);var o;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function K(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function j(e){return"use strict"===e.expression.text}function J(e,t,n,r){return U(e,t,z(e,t,n),r)}function z(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=n.length;ie.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ie(t){var n=de(t);if(e.isCallExpression(n)){var r=n.expression,a=de(r).kind;if(186===a||187===a){var i=e.getMutableClone(n);return i.expression=e.setTextRange(e.createParen(r),r),oe(t,i)}}else{var o=se(n).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t,n){if(e.isPartiallyEmittedExpression(t)){var r=e.getMutableClone(t);return r.expression=oe(r.expression,n),r}return n}function se(e){for(;;){switch(e.kind){case 193:e=e.operand;continue;case 194:e=e.left;continue;case 195:e=e.condition;continue;case 181:case 180:case 179:case 296:e=e.expression;continue}return e}}function ce(t){return e.isBlock(t)||178!==se(t).kind?t:e.setTextRange(e.createParen(t),t)}function ue(e,t){void 0===t&&(t=7);var n;do{n=e,1&t&&(e=le(e)),2&t&&(e=_e(e)),4&t&&(e=de(e));}while(n!==e);return e}function le(e){for(;185===e.kind;)e=e.expression;return e}function _e(t){for(;e.isAssertionExpression(t);)t=t.expression;return t}function de(e){for(;296===e.kind;)e=e.expression;return e}function pe(e){return e.startsOnNewLine=!0,e}function fe(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function me(t,n){if(n.importHelpers&&(e.isExternalModule(t)||n.isolatedModules)){var r=fe(t);if(r)return r;var a=e.getEmitHelpers(t);if(a)for(var i=0,o=a;i= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Me={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=f;var Le={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=y,e.restoreEnclosingLabel=h,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=k,e.createExpressionForPropertyName=S,e.createExpressionForObjectLiteralElementLike=T,e.getInternalName=A,e.isInternalName=w,e.getLocalName=O,e.isLocalName=P,e.getExportName=F,e.isExportName=I,e.getDeclarationName=R,e.getExternalModuleOrNamespaceExportName=L,e.getNamespaceMemberName=B,e.convertToFunctionBody=K,e.addPrologue=J,e.addStandardPrologue=z,e.addCustomPrologue=U,e.startsWithUseStrict=V,e.ensureUseStrict=q,e.parenthesizeConditionalHead=$,e.parenthesizeBinaryOperand=G,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ae,e.parenthesizeExpressionForExpressionStatement=ie,e.parenthesizeConciseBody=ce;!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.skipOuterExpressions=ue,e.skipParentheses=le,e.skipAssertions=_e,e.skipPartiallyEmittedExpressions=de,e.startOnNewLine=pe,e.getExternalHelpersModuleName=fe,e.getOrCreateExternalHelpersModuleNameIfNeeded=me,e.getLocalNameForExternalImport=ge,e.getExternalModuleNameLiteral=ye,e.tryGetModuleNameFromFile=ve,e.getInitializerOfBindingOrAssignmentElement=xe,e.getTargetOfBindingOrAssignmentElement=ke,e.getRestIndicatorOfBindingOrAssignmentElement=Se,e.getPropertyNameOfBindingOrAssignmentElement=Te,e.getElementsOfBindingOrAssignmentPattern=Ce,e.convertToArrayAssignmentElement=Ee,e.convertToObjectAssignmentElement=De,e.convertToAssignmentPattern=Ne,e.convertToObjectAssignmentPattern=Ae,e.convertToArrayAssignmentPattern=we,e.convertToAssignmentElementTarget=Oe,e.collectExternalModuleInfo=Pe;}(r||(r={}));!function(e){function t(t,n,r){return 265===t?new(m||(m=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(f||(f=e.objectAllocator.getIdentifierConstructor()))(t,n,r):t<143?new(p||(p=e.objectAllocator.getTokenConstructor()))(t,n,r):new(d||(d=e.objectAllocator.getNodeConstructor()))(t,n,r)}function n(e,t){if(t)return e(t)}function r(e,t){if(t)return e(t)}function a(e,t){if(t)for(var n=0,r=t;n107)}function W(t,n,r){return void 0===r&&(r=!0),M()===t?(r&&L(),!0):(n?O(n):O(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function H(e){return M()===e&&(L(),!0)}function X(e){if(M()===e)return Q()}function Y(e,t,n,r){return X(e)||ae(e,t,n,r)}function Q(){var e=te(M());return L(),re(e)}function Z(){return 25===M()||(18===M()||1===M()||_i.hasPrecedingLineBreak())}function ee(){return Z()?(25===M()&&L(),!0):W(25)}function te(e,t){return oi++,t>=0||(t=_i.getStartPos()),e>=143?new Ya(e,t,t):71===e?new Za(e,t,t):new Qa(e,t,t)}function ne(e,t){var n=e||[];return t>=0||(t=I()),n.pos=t,n.end=t,n}function re(e,t){return e.end=void 0===t?_i.getStartPos():t,li&&(e.flags|=li),pi&&(pi=!1,e.flags|=32768),e}function ae(e,t,n,r){t?P(_i.getStartPos(),0,n,r):O(n,r);var a=te(e,_i.getStartPos());return a.text="",re(a)}function ie(t){t=e.escapeIdentifier(t);var n=si.get(t);return void 0===n&&si.set(t,n=t),n}function oe(t,n){if(ci++,t){var r=te(71);return 71!==M()&&(r.originalKeywordKind=M()),r.text=ie(_i.getTokenValue()),L(),re(r)}return ae(71,!1,n||e.Diagnostics.Identifier_expected)}function se(e){return oe(G(),e)}function ce(){return oe(e.tokenIsIdentifierOrKeyword(M()))}function ue(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function le(e){return 9===M()||8===M()?Ye(!0):e&&21===M()?fe():ce()}function _e(){return le(!0)}function de(){return le(!1)}function pe(){return 9===M()||8===M()||e.tokenIsIdentifierOrKeyword(M())}function fe(){var e=te(144);return W(21),e.expression=v(en),W(22),re(e)}function me(e){return M()===e&&$(ye)}function ge(){return L(),!_i.hasPrecedingLineBreak()&&ve()}function ye(){return 76===M()?83===L():84===M()?(L(),79===M()?q(be):39!==M()&&118!==M()&&17!==M()&&ve()):79===M()?be():115===M()?(L(),ve()):ge()}function he(){return e.isModifierKind(M())&&$(ye)}function ve(){return 21===M()||17===M()||39===M()||24===M()||ue()}function be(){return L(),75===M()||89===M()||117===M()&&q(Fr)||120===M()&&q(Ir)}function xe(t,n){if(Pe(t))return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&n)&&Br();case 2:return 73===M()||79===M();case 4:return q(bt);case 5:return q(ua)||25===M()&&!n;case 6:return 21===M()||ue();case 12:return 21===M()||39===M()||24===M()||ue();case 17:return ue();case 9:return 21===M()||24===M()||ue();case 7:return 17===M()?q(ke):n?G()&&!Ce():Yt()&&!Ce();case 8:return Hr();case 10:return 26===M()||24===M()||Hr();case 18:return G();case 11:case 15:return 26===M()||24===M()||Qt();case 16:return ct();case 19:case 20:return 26===M()||Rt();case 21:return ka();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0;case 23:case 24:case 26:return gi.isJSDocType();case 25:return pe()}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function ke(){if(e.Debug.assert(17===M()),18===L()){var t=L();return 26===t||17===t||85===t||108===t}return!0}function Se(){return L(),G()}function Te(){return L(),e.tokenIsIdentifierOrKeyword(M())}function Ce(){return(108===M()||85===M())&&q(Ee)}function Ee(){return L(),Qt()}function De(e){if(1===M())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===M();case 3:return 18===M()||73===M()||79===M();case 7:return 17===M()||85===M()||108===M();case 8:return Ne();case 18:return 29===M()||19===M()||17===M()||85===M()||108===M();case 11:return 20===M()||25===M();case 15:case 20:case 10:return 22===M();case 16:case 17:return 20===M()||22===M();case 19:return 26!==M();case 21:return 17===M()||18===M();case 13:return 29===M()||41===M();case 14:return 27===M()&&q(Ia);case 23:return 20===M()||56===M()||18===M();case 24:return 29===M()||18===M();case 26:return 22===M()||18===M();case 25:return 18===M()}}function Ne(){return!!Z()||(!!hn(M())||36===M())}function Ae(){for(var e=0;e<27;e++)if(ui&1<=0&&(a.hasTrailingComma=!0),a.end=R(),ui=r,a}function qe(){return ne()}function $e(e,t,n,r){if(W(n)){var a=Ve(e,t);return W(r),a}return qe()}function Ge(e,t){for(var n=se(t);H(23);){var r=te(143,n.pos);r.left=n,r.right=We(e),n=re(r);}return n}function We(t){return _i.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())&&q(Pr)?ae(71,!0,e.Diagnostics.Identifier_expected):t?ce():se()}function He(){var t=te(196);t.head=Qe(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=ne();do{n.push(Xe());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=R(),t.templateSpans=n,re(t)}function Xe(){var t=te(205);t.expression=v(en);var n;return 18===M()?(j(),n=Ze()):n=Y(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,re(t)}function Ye(e){return et(M(),e)}function Qe(){var t=et(M(),!1);return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Ze(){var t=et(M(),!1);return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e,t){var n=te(e),r=_i.getTokenValue();return n.text=t?ie(r):r,_i.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),_i.isUnterminated()&&(n.isUnterminated=!0),8===n.kind&&(n.numericLiteralFlags=_i.getNumericLiteralFlags()),L(),re(n),n}function tt(){var t=te(159);return t.typeName=Ge(!1,e.Diagnostics.Type_expected),_i.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=$e(19,Wt,27,29)),re(t)}function nt(e){L();var t=te(158,e.pos);return t.parameterName=e,t.type=Wt(),re(t)}function rt(){var e=te(169);return L(),re(e)}function at(){var e=te(162);return W(103),e.exprName=Ge(!0),re(e)}function it(){var e=te(145);return e.name=se(),H(85)&&(Rt()||!Qt()?e.constraint=Wt():e.expression=wn()),H(58)&&(e.default=Wt()),re(e)}function ot(){if(27===M())return $e(18,it,27,29)}function st(){if(H(56))return Wt()}function ct(){return 24===M()||Hr()||e.isModifierKind(M())||57===M()||99===M()}function ut(){var t=te(146);return 99===M()?(t.name=oe(!0),t.type=st(),re(t)):(t.decorators=la(),t.modifiers=_a(),t.dotDotDotToken=X(24),t.name=Xr(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(M())&&L(),t.questionToken=X(55),t.type=st(),t.initializer=lt(!0),u(re(t)))}function lt(e){return e?_t():oa()}function _t(){return tn(!0)}function dt(e,t,n,r,a){var i=36===e;a.typeParameters=ot(),a.parameters=pt(t,n,r),i?(W(e),a.type=$t()):H(e)&&(a.type=$t());}function pt(e,t,n){if(W(19)){var r=D(),a=w();f(e),g(t);var i=Ve(16,ut);if(f(r),g(a),!W(20)&&n)return;return i}return n?void 0:qe()}function ft(){H(26)||ee();}function mt(e){var t=te(e);return 156===e&&W(94),dt(56,!1,!1,!1,t),ft(),u(re(t))}function gt(){return 21===M()&&q(yt)}function yt(){if(L(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(L(),G())return!0}else{if(!G())return!1;L();}return 56===M()||26===M()||55===M()&&(L(),56===M()||26===M()||22===M())}function ht(e,t,n){var r=te(157,e);return r.decorators=t,r.modifiers=n,r.parameters=$e(16,ut,21,22),r.type=Xt(),ft(),re(r)}function vt(e,t){var n=_e(),r=X(55);if(19===M()||27===M()){var a=te(150,e);return a.modifiers=t,a.name=n,a.questionToken=r,dt(56,!1,!1,!1,a),ft(),u(re(a))}var i=te(148,e);return i.modifiers=t,i.name=n,i.questionToken=r,i.type=Xt(),58===M()&&(i.initializer=oa()),ft(),u(re(i))}function bt(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,L();return 21===M()||(ue()&&(t=!0,L()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||Z()))}function xt(){if(19===M()||27===M())return mt(155);if(94===M()&&q(kt))return mt(156);var e=I(),t=_a();return gt()?ht(e,void 0,t):vt(e,t)}function kt(){return L(),19===M()||27===M()}function St(){var e=te(163);return e.members=Tt(),re(e)}function Tt(){var e;return W(17)?(e=we(4,xt),W(18)):e=qe(),e}function Ct(){return L(),131===M()&&L(),21===M()&&Se()&&92===L()}function Et(){var e=te(145);return e.name=se(),W(92),e.constraint=Wt(),re(e)}function Dt(){var e=te(172);return W(17),e.readonlyToken=X(131),W(21),e.typeParameter=Et(),W(22),e.questionToken=X(55),e.type=Xt(),ee(),W(18),re(e)}function Nt(){var e=te(165);return e.elementTypes=$e(20,Wt,21,22),re(e)}function At(){var e=te(168);return W(19),e.type=Wt(),W(20),re(e)}function wt(e){var t=te(e);return 161===e&&W(94),dt(36,!1,!1,!1,t),re(t)}function Ot(){var e=Q();return 23===M()?void 0:e}function Pt(){var e=te(173);return e.literal=On(),re(e),e}function Ft(){return 8===L()}function It(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return $(Ot)||tt();case 9:case 8:case 101:case 86:return Pt();case 38:return q(Ft)?Pt():tt();case 105:case 95:return Q();case 99:var e=rt();return 126!==M()||_i.hasPrecedingLineBreak()?e:nt(e);case 103:return at();case 17:return q(Ct)?Dt():St();case 21:return Nt();case 19:return At();default:return tt()}}function Rt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:return!0;case 38:return q(Ft);case 19:return q(Mt);default:return G()}}function Mt(){return L(),20===M()||ct()||Rt()}function Lt(){for(var e=It();!_i.hasPrecedingLineBreak()&&H(21);)if(Rt())(t=te(171,e.pos)).objectType=e,t.indexType=Wt(),W(22),e=re(t);else{var t=te(164,e.pos);t.elementType=e,W(22),e=re(t);}return e}function Bt(e){var t=te(170);return W(e),t.operator=e,t.type=Kt(),re(t)}function Kt(){switch(M()){case 127:return Bt(127)}return Lt()}function jt(e,t,n){H(n);var r=t();if(M()===n){for(var a=ne([r],r.pos);H(n);)a.push(t());a.end=R();var i=te(e,r.pos);i.types=a,r=re(i);}return r}function Jt(){return jt(167,Kt,48)}function zt(){return jt(166,Jt,49)}function Ut(){return 27===M()||19===M()&&q(qt)}function Vt(){if(e.isModifierKind(M())&&_a(),G()||99===M())return L(),!0;if(21===M()||17===M()){var t=ni.length;return Xr(),t===ni.length}return!1}function qt(){if(L(),20===M()||24===M())return!0;if(Vt()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(L(),36===M()))return!0}return!1}function $t(){var e=G()&&$(Gt),t=Wt();if(e){var n=te(158,e.pos);return n.parameterName=e,n.type=t,re(n)}return t}function Gt(){var e=se();if(126===M()&&!_i.hasPrecedingLineBreak())return L(),e}function Wt(){return y(20480,Ht)}function Ht(){return Ut()?wt(160):94===M()?wt(161):zt()}function Xt(){return H(56)?Wt():void 0}function Yt(){switch(M()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;default:return G()}}function Qt(){if(Yt())return!0;switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!bn()||G()}}function Zt(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&Qt()}function en(){var e=A();e&&m(!1);for(var t,n=nn();t=X(26);)n=kn(n,t,nn());return e&&m(!0),n}function tn(e){if(58===M()||!(_i.hasPrecedingLineBreak()||e&&17===M())&&Qt())return W(58),nn()}function nn(){if(rn())return on$$1();var t=cn()||dn();if(t)return t;var n=yn(0);return 71===n.kind&&36===M()?sn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(B())?kn(n,Q(),nn()):gn(n)}function rn(){return 116===M()&&(!!D()||q(Rr))}function an(){return L(),!_i.hasPrecedingLineBreak()&&G()}function on$$1(){var e=te(197);return L(),_i.hasPrecedingLineBreak()||39!==M()&&!Qt()?re(e):(e.asteriskToken=X(39),e.expression=nn(),re(e))}function sn(t,n){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=te(187,n.pos)).modifiers=n:r=te(187,t.pos);var a=te(146,t.pos);return a.name=t,re(a),r.parameters=ne([a],a.pos),r.parameters.end=a.end,r.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),r.body=mn(!!n),u(re(r))}function cn(){var t=un();if(0!==t){var n=1===t?fn(!0):$(_n);if(n){var r=!!(256&e.getModifierFlags(n)),a=M();return n.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===a||17===a?mn(r):se(),u(re(n))}}}function un(){return 19===M()||27===M()||120===M()?q(ln):36===M()?1:0}function ln(){if(120===M()){if(L(),_i.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),n=L();if(19===t){if(20===n)switch(L()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:G()?56===L()?1:2:0}return e.Debug.assert(27===t),G()?1===ti.languageVariant?q(function(){var e=L();if(85===e)switch(L()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function _n(){return fn(!1)}function dn(){if(120===M()&&1===q(pn)){var e=da();return sn(yn(0),e)}}function pn(){if(120===M()){if(L(),_i.hasPrecedingLineBreak()||36===M())return 0;var e=yn(0);if(!_i.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function fn(t){var n=te(187);if(n.modifiers=da(),dt(56,!1,!!(256&e.getModifierFlags(n)),!t,n),n.parameters&&(t||36===M()||17===M()))return n}function mn(e){return 17===M()?fr(!1,e,!1):25!==M()&&89!==M()&&75!==M()&&Br()&&!Zt()?fr(!1,e,!0):e?S(nn):T(nn)}function gn(t){var n=X(55);if(!n)return t;var r=te(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=y(di,nn),r.colonToken=Y(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=nn(),re(r)}function yn(e){return vn(e,wn())}function hn(e){return 92===e||142===e}function vn(e,t){for(;;){B();var n=xn();if(!(40===M()?n>=e:n>e))break;if(92===M()&&N())break;if(118===M()){if(_i.hasPrecedingLineBreak())break;L(),t=Sn(t,Wt());}else t=kn(t,Q(),yn(n));}return t}function bn(){return(!N()||92!==M())&&xn()>0}function xn(){switch(M()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function kn(e,t,n){var r=te(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,re(r)}function Sn(e,t){var n=te(202,e.pos);return n.expression=e,n.type=t,re(n)}function Tn(){var e=te(192);return e.operator=M(),L(),e.operand=On(),re(e)}function Cn(){var e=te(188);return L(),e.expression=On(),re(e)}function En(){var e=te(189);return L(),e.expression=On(),re(e)}function Dn(){var e=te(190);return L(),e.expression=On(),re(e)}function Nn(){return 121===M()&&(!!w()||q(an))}function An(){var e=te(191);return L(),e.expression=On(),re(e)}function wn(){if(Pn()){var t=Fn();return 40===M()?vn(xn(),t):t}var n=M(),r=On();if(40===M()){var a=e.skipTrivia(ii,r.pos);184===r.kind?P(a,r.end-a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):P(a,r.end-a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n));}return r}function On(){switch(M()){case 37:case 38:case 52:case 51:return Tn();case 80:return Cn();case 103:return En();case 105:return Dn();case 27:return Hn();case 121:if(Nn())return An();default:return Fn()}}function Pn(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==ti.languageVariant)return!1;default:return!0}}function Fn(){if(43===M()||44===M())return(n=te(192)).operator=M(),L(),n.operand=In(),re(n);if(1===ti.languageVariant&&27===M()&&q(Te))return Bn(!0);var t=In();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===M()||44===M())&&!_i.hasPrecedingLineBreak()){var n=te(193,t.pos);return n.operand=t,n.operator=M(),L(),re(n)}return t}function In(){return Yn(97===M()?Mn():Rn())}function Rn(){return Xn(tr())}function Mn(){var t=Q();if(19===M()||23===M()||21===M())return t;var n=te(179,t.pos);return n.expression=t,Y(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=We(!0),re(n)}function Ln(e,t){return e.kind===t.kind&&(71===e.kind?e.text===t.text:99===e.kind||e.name.text===t.name.text&&Ln(e.expression,t.expression))}function Bn(t){var n,r=Un(t);if(251===r.kind){var a=te(249,r.pos);a.openingElement=r,a.children=Jn(a.openingElement.tagName),a.closingElement=Wn(t),Ln(a.openingElement.tagName,a.closingElement.tagName)||P(a.closingElement.pos,a.closingElement.end-a.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ii,a.openingElement.tagName)),n=re(a);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===M()){var i=$(function(){return Bn(!0)});if(i){O(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=te(194,n.pos);return o.end=i.end,o.left=n,o.right=i,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Kn(){var e=te(10,_i.getStartPos());return e.containsOnlyWhiteSpaces=11===ai,ai=_i.scanJsxToken(),re(e)}function jn(){switch(M()){case 10:case 11:return Kn();case 17:return qn(!1);case 27:return Bn(!1)}e.Debug.fail("Unknown JSX child kind "+M());}function Jn(t){var n=ne(),r=ui;for(ui|=16384;;){if(ai=_i.reScanJsxToken(),28===M())break;if(1===M()){P(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ii,t));break}if(7===M())break;var a=jn();a&&n.push(a);}return n.end=_i.getTokenPos(),ui=r,n}function zn(){var e=te(254);return e.properties=we(13,$n),re(e)}function Un(e){var t=_i.getStartPos();W(27);var n,r=Vn(),a=zn();return 29===M()?(n=te(251,t),z()):(W(41),e?W(29):(W(29,void 0,!1),z()),n=te(250,t)),n.tagName=r,n.attributes=a,re(n)}function Vn(){J();for(var e=99===M()?Q():ce();H(23);){var t=te(179,e.pos);t.expression=e,t.name=We(!0),e=re(t);}return e}function qn(e){var t=te(256);return W(17),18!==M()&&(t.dotDotDotToken=X(24),t.expression=nn()),e?W(18):(W(18,void 0,!1),z()),re(t)}function $n(){if(17===M())return Gn();J();var e=te(253);if(e.name=ce(),58===M())switch(U()){case 9:e.initializer=Ye();break;default:e.initializer=qn(!0);}return re(e)}function Gn(){var e=te(255);return W(17),W(24),e.expression=en(),W(18),re(e)}function Wn(e){var t=te(252);return W(28),t.tagName=Vn(),e?W(29):(W(29,void 0,!1),z()),re(t)}function Hn(){var e=te(184);return W(27),e.type=Wt(),W(29),e.expression=On(),re(e)}function Xn(e){for(;;)if(X(23)){var t=te(179,e.pos);t.expression=e,t.name=We(!0),e=re(t);}else if(51!==M()||_i.hasPrecedingLineBreak())if(A()||!H(21)){if(13!==M()&&14!==M())return e;var n=te(183,e.pos);n.tag=e,n.template=13===M()?Ye():He(),e=re(n);}else{var r=te(180,e.pos);if(r.expression=e,22!==M()&&(r.argumentExpression=v(en),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var a=r.argumentExpression;a.text=ie(a.text);}W(22),e=re(r);}else{L();var i=te(203,e.pos);i.expression=e,e=re(i);}}function Yn(e){for(;;)if(e=Xn(e),27!==M()){if(19!==M())return e;var t=te(181,e.pos);t.expression=e,t.arguments=Qn(),e=re(t);}else{var n=$(Zn);if(!n)return e;(t=te(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=Qn(),e=re(t);}}function Qn(){W(19);var e=Ve(11,ir);return W(20),e}function Zn(){if(H(27)){var e=Ve(19,Wt);if(W(29))return e&&er()?e:void 0}}function er(){switch(M()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function tr(){switch(M()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return Q();case 19:return nr();case 21:return or();case 17:return ur();case 120:if(!q(Ir))break;return lr();case 75:return fa();case 89:return lr();case 94:return dr();case 41:case 63:if(12===K())return Ye();break;case 14:return He()}return se(e.Diagnostics.Expression_expected)}function nr(){var e=te(185);return W(19),e.expression=v(en),W(20),re(e)}function rr(){var e=te(198);return W(24),e.expression=nn(),re(e)}function ar(){return 24===M()?rr():26===M()?te(200):nn()}function ir(){return y(di,ar)}function or(){var e=te(177);return W(21),_i.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ve(15,ar),W(22),re(e)}function sr(e,t,n){return me(125)?sa(153,e,t,n):me(135)?sa(154,e,t,n):void 0}function cr(){var e=_i.getStartPos();if(X(24)){var t=te(263,e);return t.expression=nn(),u(re(t))}var n=la(),r=_a(),a=sr(e,n,r);if(a)return a;var i=X(39),o=G(),s=_e(),c=X(55);if(i||19===M()||27===M())return ra(e,n,r,i,s,c);if(o&&(26===M()||18===M()||58===M())){var l=te(262,e);l.name=s,l.questionToken=c;var _=X(58);return _&&(l.equalsToken=_,l.objectAssignmentInitializer=v(nn)),u(re(l))}var d=te(261,e);return d.modifiers=r,d.name=s,d.questionToken=c,W(56),d.initializer=v(nn),u(re(d))}function ur(){var e=te(178);return W(17),_i.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ve(12,cr,!0),W(18),re(e)}function lr(){var t=A();t&&m(!1);var n=te(186);n.modifiers=_a(),W(89),n.asteriskToken=X(39);var r=!!n.asteriskToken,a=!!(256&e.getModifierFlags(n));return n.name=r&&a?C(_r):r?x(_r):a?S(_r):_r(),dt(56,r,a,!1,n),n.body=fr(r,a,!1),t&&m(!0),u(re(n))}function _r(){return G()?se():void 0}function dr(){var e=_i.getStartPos();if(W(94),H(23)){var t=te(204,e);return t.keywordToken=94,t.name=ce(),re(t)}var n=te(182,e);return n.expression=Rn(),n.typeArguments=$(Zn),(n.typeArguments||19===M())&&(n.arguments=Qn()),re(n)}function pr(e,t){var n=te(207);return W(17,t)||e?(_i.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=we(1,Jr),W(18)):n.statements=qe(),re(n)}function fr(e,t,n,r){var a=D();f(e);var i=w();g(t);var o=A();o&&m(!1);var s=pr(n,r);return o&&m(!0),f(a),g(i),s}function mr(){var e=te(209);return W(25),re(e)}function gr(){var e=te(211);return W(90),W(19),e.expression=v(en),W(20),e.thenStatement=Jr(),e.elseStatement=H(82)?Jr():void 0,re(e)}function yr(){var e=te(212);return W(81),e.statement=Jr(),W(106),W(19),e.expression=v(en),W(20),H(25),re(e)}function hr(){var e=te(213);return W(106),W(19),e.expression=v(en),W(20),e.statement=Jr(),re(e)}function vr(){var e=I();W(88);var t=X(121);W(19);var n=void 0;25!==M()&&(n=104===M()||110===M()||76===M()?Qr(!0):b(en));var r;if(t?W(142):H(142)){var a=te(216,e);a.awaitModifier=t,a.initializer=n,a.expression=v(nn),W(20),r=a;}else if(H(92)){var i=te(215,e);i.initializer=n,i.expression=v(en),W(20),r=i;}else{var o=te(214,e);o.initializer=n,W(25),25!==M()&&20!==M()&&(o.condition=v(en)),W(25),20!==M()&&(o.incrementor=v(en)),W(20),r=o;}return r.statement=Jr(),re(r)}function br(e){var t=te(e);return W(218===e?72:77),Z()||(t.label=se()),ee(),re(t)}function xr(){var e=te(219);return W(96),Z()||(e.expression=v(en)),ee(),re(e)}function kr(){var e=te(220);return W(107),W(19),e.expression=v(en),W(20),e.statement=Jr(),re(e)}function Sr(){var e=te(257);return W(73),e.expression=v(en),W(56),e.statements=we(3,Jr),re(e)}function Tr(){var e=te(258);return W(79),W(56),e.statements=we(3,Jr),re(e)}function Cr(){return 73===M()?Sr():Tr()}function Er(){var e=te(221);W(98),W(19),e.expression=v(en),W(20);var t=te(235,_i.getStartPos());return W(17),t.clauses=we(2,Cr),W(18),e.caseBlock=re(t),re(e)}function Dr(){var e=te(223);return W(100),e.expression=_i.hasPrecedingLineBreak()?void 0:v(en),ee(),re(e)}function Nr(){var e=te(224);return W(102),e.tryBlock=pr(!1),e.catchClause=74===M()?Ar():void 0,e.catchClause&&87!==M()||(W(87),e.finallyBlock=pr(!1)),re(e)}function Ar(){var e=te(260);return W(74),W(19)&&(e.variableDeclaration=Yr()),W(20),e.block=pr(!1),re(e)}function wr(){var e=te(225);return W(78),ee(),re(e)}function Or(){var e=_i.getStartPos(),t=v(en);if(71===t.kind&&H(56)){var n=te(222,e);return n.label=t,n.statement=Jr(),u(re(n))}var r=te(210,e);return r.expression=t,ee(),u(re(r))}function Pr(){return L(),e.tokenIsIdentifierOrKeyword(M())&&!_i.hasPrecedingLineBreak()}function Fr(){return L(),75===M()&&!_i.hasPrecedingLineBreak()}function Ir(){return L(),89===M()&&!_i.hasPrecedingLineBreak()}function Rr(){return L(),(e.tokenIsIdentifierOrKeyword(M())||8===M())&&!_i.hasPrecedingLineBreak()}function Mr(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return an();case 128:case 129:return Ur();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(L(),_i.hasPrecedingLineBreak())return!1;continue;case 141:return L(),17===M()||71===M()||84===M();case 91:return L(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(L(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:L();continue;default:return!1}}function Lr(){return q(Mr)}function Br(){switch(M()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 76:case 84:case 91:return Lr();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Lr()||!q(Pr);default:return Qt()}}function Kr(){return L(),G()||17===M()||21===M()}function jr(){return q(Kr)}function Jr(){switch(M()){case 25:return mr();case 17:return pr(!1);case 104:return ea(_i.getStartPos(),void 0,void 0);case 110:if(jr())return ea(_i.getStartPos(),void 0,void 0);break;case 89:return ta(_i.getStartPos(),void 0,void 0);case 75:return ma(_i.getStartPos(),void 0,void 0);case 90:return gr();case 81:return yr();case 106:return hr();case 88:return vr();case 77:return br(217);case 72:return br(218);case 96:return xr();case 107:return kr();case 98:return Er();case 100:return Dr();case 102:case 74:case 87:return Nr();case 78:return wr();case 57:return zr();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Lr())return zr()}return Or()}function zr(){var t=I(),n=la(),r=_a();switch(M()){case 104:case 110:case 76:return ea(t,n,r);case 89:return ta(t,n,r);case 75:return ma(t,n,r);case 109:return Ta(t,n,r);case 138:return Ca(t,n,r);case 83:return Da(t,n,r);case 141:case 128:case 129:return Oa(t,n,r);case 91:return Ma(t,n,r);case 84:switch(L(),M()){case 79:case 58:return Wa(t,n,r);case 118:return Ra(t,n,r);default:return Ga(t,n,r)}default:if(n||r){var a=ae(247,!0,e.Diagnostics.Declaration_expected);return a.pos=t,a.decorators=n,a.modifiers=r,re(a)}}}function Ur(){return L(),!_i.hasPrecedingLineBreak()&&(G()||9===M())}function Vr(e,t,n){if(17===M()||!Z())return fr(e,t,!1,n);ee();}function qr(){if(26===M())return te(200);var e=te(176);return e.dotDotDotToken=X(24),e.name=Xr(),e.initializer=lt(!1),re(e)}function $r(){var e=te(176);e.dotDotDotToken=X(24);var t=G(),n=_e();return t&&56!==M()?e.name=n:(W(56),e.propertyName=n,e.name=Xr()),e.initializer=lt(!1),re(e)}function Gr(){var e=te(174);return W(17),e.elements=Ve(9,$r),W(18),re(e)}function Wr(){var e=te(175);return W(21),e.elements=Ve(10,qr),W(22),re(e)}function Hr(){return 17===M()||21===M()||G()}function Xr(){return 21===M()?Wr():17===M()?Gr():se()}function Yr(){var e=te(226);return e.name=Xr(),e.type=Xt(),hn(M())||(e.initializer=tn(!1)),re(e)}function Qr(t){var n=te(227);switch(M()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(L(),142===M()&&q(Zr))n.declarations=qe();else{var r=N();p(t),n.declarations=Ve(8,Yr),p(r);}return re(n)}function Zr(){return Se()&&20===L()}function ea(e,t,n){var r=te(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=Qr(!1),ee(),u(re(r))}function ta(t,n,r){var a=te(228,t);a.decorators=n,a.modifiers=r,W(89),a.asteriskToken=X(39),a.name=e.hasModifier(a,512)?_r():se();var i=!!a.asteriskToken,o=e.hasModifier(a,256);return dt(56,i,o,!1,a),a.body=Vr(i,o,e.Diagnostics.or_expected),u(re(a))}function na(t,n,r){var a=te(152,t);return a.decorators=n,a.modifiers=r,W(123),dt(56,!1,!1,!1,a),a.body=Vr(!1,!1,e.Diagnostics.or_expected),u(re(a))}function ra(t,n,r,a,i,o,s){var c=te(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=a,c.name=i,c.questionToken=o;var l=!!a,_=e.hasModifier(c,256);return dt(56,l,_,!1,c),c.body=Vr(l,_,s),u(re(c))}function aa(t,n,r,a,i){var o=te(149,t);return o.decorators=n,o.modifiers=r,o.name=a,o.questionToken=i,o.type=Xt(),o.initializer=e.hasModifier(o,32)?v(oa):y(6144,oa),ee(),u(re(o))}function ia(t,n,r){var a=X(39),i=_e(),o=X(55);return a||19===M()||27===M()?ra(t,n,r,a,i,o,e.Diagnostics.or_expected):aa(t,n,r,i,o)}function oa(){return tn(!1)}function sa(e,t,n,r){var a=te(e,t);return a.decorators=n,a.modifiers=r,a.name=_e(),dt(56,!1,!1,!1,a),a.body=Vr(!1,!1),u(re(a))}function ca(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function ua(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),ca(t))return!0;L();}if(39===M())return!0;if(ue()&&(t=M(),L()),21===M())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(M()){case 19:case 27:case 56:case 58:case 55:return!0;default:return Z()}}return!1}function la(){for(var e;;){var t=I();if(!H(57))break;var n=te(147,t);n.expression=k(In),re(n),e?e.push(n):e=ne([n],t);}return e&&(e.end=R()),e}function _a(e){for(var t;;){var n=_i.getStartPos(),r=M();if(76===M()&&e){if(!$(ge))break}else if(!he())break;var a=re(te(r,n));t?t.push(a):t=ne([a],n);}return t&&(t.end=_i.getStartPos()),t}function da(){var e;if(120===M()){var t=_i.getStartPos(),n=M();L(),(e=ne([re(te(n,t))],t)).end=_i.getStartPos();}return e}function pa(){if(25===M()){var t=te(206);return L(),re(t)}var n=I(),r=la(),a=_a(!0),i=sr(n,r,a);return i||(123===M()?na(n,r,a):gt()?ht(n,r,a):e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M()?ia(n,r,a):r||a?aa(n,r,a,ae(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function fa(){return ga(_i.getStartPos(),void 0,void 0,199)}function ma(e,t,n){return ga(e,t,n,229)}function ga(e,t,n,r){var a=te(r,e);return a.decorators=t,a.modifiers=n,W(75),a.name=ya(),a.typeParameters=ot(),a.heritageClauses=va(),W(17)?(a.members=Sa(),W(18)):a.members=qe(),u(re(a))}function ya(){return G()&&!ha()?se():void 0}function ha(){return 108===M()&&q(Te)}function va(){if(ka())return we(21,ba)}function ba(){var e=M();if(85===e||108===e){var t=te(259);return t.token=e,L(),t.types=Ve(7,xa),re(t)}}function xa(){var e=te(201);return e.expression=In(),27===M()&&(e.typeArguments=$e(19,Wt,27,29)),re(e)}function ka(){return 85===M()||108===M()}function Sa(){return we(5,pa)}function Ta(e,t,n){var r=te(230,e);return r.decorators=t,r.modifiers=n,W(109),r.name=se(),r.typeParameters=ot(),r.heritageClauses=va(),r.members=Tt(),u(re(r))}function Ca(e,t,n){var r=te(231,e);return r.decorators=t,r.modifiers=n,W(138),r.name=se(),r.typeParameters=ot(),W(58),r.type=Wt(),ee(),u(re(r))}function Ea(){var e=te(264,_i.getStartPos());return e.name=_e(),e.initializer=v(oa),u(re(e))}function Da(e,t,n){var r=te(232,e);return r.decorators=t,r.modifiers=n,W(83),r.name=se(),W(17)?(r.members=Ve(6,Ea),W(18)):r.members=qe(),u(re(r))}function Na(){var e=te(234,_i.getStartPos());return W(17)?(e.statements=we(1,Jr),W(18)):e.statements=qe(),re(e)}function Aa(e,t,n,r){var a=te(233,e),i=16&r;return a.decorators=t,a.modifiers=n,a.flags|=r,a.name=se(),a.body=H(23)?Aa(I(),void 0,void 0,4|i):Na(),u(re(a))}function wa(e,t,n){var r=te(233,e);return r.decorators=t,r.modifiers=n,141===M()?(r.name=se(),r.flags|=512):r.name=Ye(!0),17===M()?r.body=Na():ee(),re(r)}function Oa(e,t,n){var r=0;if(141===M())return wa(e,t,n);if(H(129))r|=16;else if(W(128),9===M())return wa(e,t,n);return Aa(e,t,n,r)}function Pa(){return 132===M()&&q(Fa)}function Fa(){return 19===L()}function Ia(){return 41===L()}function Ra(e,t,n){var r=te(236,e);return r.decorators=t,r.modifiers=n,W(118),W(129),r.name=se(),ee(),re(r)}function Ma(e,t,n){W(91);var r,a=_i.getStartPos();if(G()&&(r=se(),26!==M()&&140!==M()))return La(e,t,n,r);var i=te(238,e);return i.decorators=t,i.modifiers=n,(r||39===M()||17===M())&&(i.importClause=Ba(r,a),W(140)),i.moduleSpecifier=Ja(),ee(),re(i)}function La(e,t,n,r){var a=te(237,e);return a.decorators=t,a.modifiers=n,a.name=r,W(58),a.moduleReference=Ka(),ee(),u(re(a))}function Ba(e,t){var n=te(239,t);return e&&(n.name=e),n.name&&!H(26)||(n.namedBindings=39===M()?za():Ua(241)),re(n)}function Ka(){return Pa()?ja():Ge(!1)}function ja(){var e=te(248);return W(132),W(19),e.expression=Ja(),W(20),re(e)}function Ja(){if(9===M()){var e=Ye();return ie(e.text),e}return en()}function za(){var e=te(240);return W(39),W(118),e.name=se(),re(e)}function Ua(e){var t=te(e);return t.elements=$e(22,241===e?qa:Va,17,18),re(t)}function Va(){return $a(246)}function qa(){return $a(242)}function $a(t){var n=te(t),r=e.isKeyword(M())&&!G(),a=_i.getTokenPos(),i=_i.getTextPos(),o=ce();return 118===M()?(n.propertyName=o,W(118),r=e.isKeyword(M())&&!G(),a=_i.getTokenPos(),i=_i.getTextPos(),n.name=ce()):n.name=o,242===t&&r&&P(a,i-a,e.Diagnostics.Identifier_expected),re(n)}function Ga(e,t,n){var r=te(244,e);return r.decorators=t,r.modifiers=n,H(39)?(W(140),r.moduleSpecifier=Ja()):(r.exportClause=Ua(245),(140===M()||9===M()&&!_i.hasPrecedingLineBreak())&&(W(140),r.moduleSpecifier=Ja())),ee(),re(r)}function Wa(e,t,n){var r=te(243,e);return r.decorators=t,r.modifiers=n,H(58)?r.isExportEquals=!0:W(79),r.expression=nn(),ee(),re(r)}function Ha(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,ii),a=[],i=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=ii.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?i.push(d):a.push(d)),p&&ni.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*".length-n,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function b(e){var t=te(143,e.pos);return t.left=e,t.right=ce(),re(t)}function x(){var e=te(275);return e.literal=St(),re(e)}function k(){var e=te(274);return L(),e.type=c(),re(e)}function S(){var e=te(272);return L(),e.types=Ve(26,c),T(e.types),W(22),re(e)}function T(t){0===ni.length&&t.hasTrailingComma&&P(t.end-",".length,",".length,e.Diagnostics.Trailing_comma_not_allowed);}function C(){var e=te(271);return L(),e.types=E(c()),W(20),re(e)}function E(t){e.Debug.assert(!!t);for(var n=ne([t],t.pos);H(49);)n.push(c());return n.end=_i.getStartPos(),n}function D(){var e=te(268);return L(),re(e)}function N(){var e=te(293);return e.literal=Pt(),re(e)}function A(){var e=_i.getStartPos();if(L(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M())return re(t=te(269,e));var t=te(273,e);return t.type=c(),re(t)}function w(e,t,n){o(e,5,void 0,1),ti={languageVariant:0,text:e};var r=I(t,n),a=ni;return s(),r?{jsDoc:r,diagnostics:a}:void 0}function F(e,t,n){var r=ai,a=ni.length,i=pi,o=I(t,n);return o&&(o.parent=e),ai=r,ni.length=a,pi=i,o}function I(t,n){function r(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift();}function i(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop();}function o(){var e=te(283,t);return e.tags=E,e.comment=N.length?N.join(""):void 0,re(e,C)}function s(){for(;5===M()||4===M();)x();}function c(t){e.Debug.assert(57===M());var n=te(57,_i.getTokenPos());n.end=_i.getTextPos(),x();var r=k();if(s(),r){var a;if(r)switch(r.text){case"augments":a=y(n,r);break;case"param":a=p(n,r);break;case"return":case"returns":a=f(n,r);break;case"template":a=b(n,r);break;case"type":a=m(n,r);break;case"typedef":a=h(n,r);break;default:a=l(n,r);}else a=l(n,r);a&&_(a,u(t+a.end-a.pos));}}function u(e){function t(t){n||(n=e),a.push(t),e+=t.length;}for(var n,a=[],o=0;57!==M()&&1!==M();){switch(M()){case 4:o>=1&&(o=0,a.push(_i.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(_i.getTokenText());else{var s=_i.getTokenText();void 0!==n&&e+s.length>n&&a.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=_i.getTokenText().length;break}default:o=2,t(_i.getTokenText());}if(57===M())break;x();}return r(a),i(a),a}function l(e,t){var n=te(284,e.pos);return n.atToken=e,n.tagName=t,re(n)}function _(e,t){e.comment=t.join(""),E?E.push(e):E=ne([e],e.pos),E.end=e.end;}function d(){return $(function(){if(s(),17===M())return a()})}function p(t,n){var r=d();s();var a,i;if(X(21)?(a=k(),s(),i=!0,X(58)&&en(),W(22)):e.tokenIsIdentifierOrKeyword(M())&&(a=k()),a){var o,c;r?c=a:o=a,r||(r=d());var u=te(286,t.pos);return u.atToken=t,u.tagName=n,u.preParameterName=o,u.typeExpression=r,u.postParameterName=c,u.parameterName=c||o,u.isBracketed=i,re(u)}P(_i.getStartPos(),0,e.Diagnostics.Identifier_expected);}function f(t,n){e.forEach(E,function(e){return 287===e.kind})&&P(n.pos,_i.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.text);var r=te(287,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),re(r)}function m(t,n){e.forEach(E,function(e){return 288===e.kind})&&P(n.pos,_i.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.text);var r=te(288,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),re(r)}function g(t,n){var r=d();s();var a=k();s();if(a){var i=te(291,t.pos);return i.atToken=t,i.tagName=n,i.name=a,i.typeExpression=r,re(i)}P(_i.getStartPos(),0,e.Diagnostics.Identifier_expected);}function y(e,t){var n=d(),r=te(285,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,re(r)}function h(e,t){function n(){for(var e=te(292,_i.getStartPos()),t=_i.getStartPos(),n=!0,r=!1,a=!1;1!==M()&&!a;)switch(x(),M()){case 57:n&&((a=!v(e))||(t=_i.getStartPos())),r=!1;break;case 4:t=_i.getStartPos()-1,n=!0,r=!1;break;case 39:r&&(n=!1),r=!0;break;case 71:n=!1;}return _i.setTextPos(t),re(e)}function r(e){var t=_i.getTokenPos(),n=k();if(n&&H(23)){var a=te(233,t);return a.flags|=e,a.name=n,a.body=r(4),a}return n&&4&e&&(n.isInJSDocNamespace=!0),n}var a=d();s();var i=te(290,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=r(0),i.fullName)for(var o=i.fullName;;){if(71===o.kind||!o.body){i.name=71===o.kind?o:o.name;break}o=o.body;}if(i.typeExpression=a,s(),a){if(277===a.type.kind){var c=a.type;71===c.name.kind&&"Object"===c.name.text&&(i.jsDocTypeLiteral=n());}i.jsDocTypeLiteral||(i.jsDocTypeLiteral=a.type);}else i.jsDocTypeLiteral=n();return re(i)}function v(t){e.Debug.assert(57===M());var n=te(57,_i.getStartPos());n.end=_i.getTextPos(),x();var r=k();if(s(),!r)return!1;switch(r.text){case"type":return!t.jsDocTypeTag&&(t.jsDocTypeTag=m(n,r),!0);case"prop":case"property":var a=g(n,r);return!!a&&(t.jsDocPropertyTags||(t.jsDocPropertyTags=[]),t.jsDocPropertyTags.push(a),!0)}return!1}function b(t,n){e.forEach(E,function(e){return 289===e.kind})&&P(n.pos,_i.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.text);for(var r=ne();;){var a=k();if(s(),!a)return void P(_i.getStartPos(),0,e.Diagnostics.Identifier_expected);var i=te(145,a.pos);if(i.name=a,re(i),r.push(i),26!==M())break;x(),s();}var o=te(289,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,re(o),r.end=o.end,o}function x(){return ai=_i.scanJSDocToken()}function k(){return S(e.tokenIsIdentifierOrKeyword(M()))}function S(t){if(t){var n=_i.getTokenPos(),r=_i.getTextPos(),a=te(71,n);return a.text=T.substring(n,r),re(a,r),x(),a}O(e.Diagnostics.Identifier_expected);}var T=ii;t=t||0;var C=void 0===n?T.length:t+n;n=C-t,e.Debug.assert(t>=0),e.Debug.assert(t<=C),e.Debug.assert(C<=T.length);var E,D,N=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(T,t)?(_i.scanRange(t+3,n-5,function(){function e(e){s||(s=u),N.push(e),u+=e.length;}var n=!0,a=1,s=void 0,u=t-Math.max(T.lastIndexOf("\n",t),0)+4;for(x();5===M();)x();for(4===M()&&(a=0,u=0,x());1!==M();){switch(M()){case 57:0===a||1===a?(i(N),c(u),a=0,n=!1,s=void 0,u++):e(_i.getTokenText());break;case 4:N.push(_i.getTokenText()),a=0,u=0;break;case 39:var l=_i.getTokenText();1===a||2===a?(a=2,e(l)):(a=1,u+=l.length);break;case 71:e(_i.getTokenText()),a=2;break;case 5:var _=_i.getTokenText();2===a?N.push(_):void 0!==s&&u+_.length>s&&N.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:a=2,e(_i.getTokenText());}n?x():n=!0;}r(N),i(N),D=o();}),D):D}t.isJSDocType=n,t.parseJSDocTypeExpressionForTests=r,t.parseJSDocTypeExpression=a,t.parseIsolatedJSDocComment=w,t.parseJSDocComment=F;var R;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(R||(R={})),t.parseJSDocCommentWorker=I;}(gi=t.JSDocParser||(t.JSDocParser={}));}(g||(g={}));var y;!function(t){function n(t,n,r,a){if(a=a||e.Debug.shouldAssert(2),_(t,n,r,a),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return g.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var i=t;e.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,r);_(t,n,l,a),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;return c(i,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,n,a),g.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=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,a),t.end>=r?t.end+=i:t.end=Math.min(t.end,a),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end;}),e.Debug.assert(r<=t.end);}}function c(t,n,a,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)r(t,!1,u,l,_,d);else{var m=t.end;if(m>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,p,f),void s(t,d);e.Debug.assert(ma)r(t,!0,u,l,_,d);else{var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,f=t;s0&&a<=1;a++){var i=l(t,r);e.Debug.assert(i.pos<=r);var o=i.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,a){var i=t.text;if(r&&(e.Debug.assert(i.length-r.span.length+r.newLength===n.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(r.span),i.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var P;!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";}(P||(P={}));var F=function(){function n(t,n){Et=t,Dt=n,Nt=e.getEmitScriptTarget(Dt),Vt=a(Et,n),$t=e.createMap(),Wt=0,Gt=e.isDeclarationFile(Et),qt=e.objectAllocator.getSymbolConstructor(),Et.locals||($e(Et),Et.symbolCount=Wt,Et.classifiableNames=$t),Et=void 0,Dt=void 0,Nt=void 0,At=void 0,wt=void 0,Ot=void 0,Pt=void 0,Ft=!1,It=void 0,Rt=void 0,Mt=void 0,Lt=void 0,Bt=void 0,Kt=void 0,Jt=void 0,zt=!1,Ut=0,Yt=0;}function a(t,n){return!((void 0===n.alwaysStrict?!n.strict:!n.alwaysStrict)||e.isDeclarationFile(t))||!!t.externalModuleIndicator}function i(e,t){return Wt++,new qt(e,t)}function o(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createMap()),6240&r&&!t.members&&(t.members=e.createMap()),107455&r){var a=t.valueDeclaration;(!a||a.kind!==n.kind&&233===a.kind)&&(t.valueDeclaration=n);}}function s(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t))return e.isGlobalScopeAugmentation(t)?"__global":'"'+n.text+'"';if(144===n.kind){var r=n.expression;return e.isStringOrNumericLiteral(r)?r.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(r)),e.getPropertyNameForKnownSymbolName(r.name.text))}return n.text}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:switch(e.getSpecialPropertyAssignmentKind(t)){case 2:return"export=";case 1:case 4:case 5:return t.left.name.text;case 3:return t.left.expression.name.text}e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 279:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(279===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 290:var i=t.parent&&t.parent.parent,o=void 0;if(i&&208===i.kind&&i.declarationList.declarations.length>0){var s=i.declarationList.declarations[0].name;71===s.kind&&(o=s.text);}return o}}function c(t){return t.name?e.declarationNameToString(t.name):s(t)}function u(t,n,r,a,u){e.Debug.assert(!e.hasDynamicName(r));var l,_=e.hasModifier(r,512),d=_&&n?"default":s(r);if(void 0===d)l=i(0,"__missing");else if((l=t.get(d))||t.set(d,l=i(0,d)),d&&788448&a&&$t.set(d,d),l.flags&u)if(l.isReplaceableByMethod)t.set(d,l=i(0,d));else{r.name&&(r.name.parent=r);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;l.declarations&&l.declarations.length&&(_?p=e.Diagnostics.A_module_cannot_have_multiple_default_exports:l.declarations&&l.declarations.length&&(_||243===r.kind&&!r.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(l.declarations,function(t){Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,p,c(t)));}),Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,p,c(r))),l=i(0,d);}return o(l,r,a),l.parent=n,l}function l(t,n,r){var a=1&e.getCombinedModifierFlags(t);if(8388608&n)return 246===t.kind||237===t.kind&&a?u(wt.symbol.exports,wt.symbol,t,n,r):u(wt.locals,void 0,t,n,r);var i=290===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(a||32&wt.flags)||i){var o=(107455&n?1048576:0)|(793064&n?2097152:0)|(1920&n?4194304:0),s=u(wt.locals,void 0,t,o,r);return s.exportSymbol=u(wt.symbol.exports,wt.symbol,t,n,r),t.localSymbol=s,s}return u(wt.locals,void 0,t,n,r)}function _(t,n){var r=wt,a=Ot;if(1&n?(wt=Ot=t,32&n&&(wt.locals=e.createMap()),pe(wt)):2&n&&((Ot=t).locals=void 0),4&n){var i=It,o=Rt,s=Mt,c=Lt,u=Jt,l=zt,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_?Lt=k():(It={flags:2},144&n&&(It.container=t),Lt=void 0),Rt=void 0,Mt=void 0,Jt=void 0,zt=!1,d(t),t.flags&=-1409,!(1&It.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,zt&&(t.flags|=256)),265===t.kind&&(t.flags|=Ut),_?(C(Lt,It),It=w(Lt)):It=i,Rt=o,Mt=s,Lt=c,Jt=u,zt=l;}else 64&n?(Ft=!1,d(t),t.flags=Ft?64|t.flags:-65&t.flags):d(t);wt=r,Ot=a;}function d(e){if(Gt)m(e);else if(536870912&e.transformFlags)Gt=!0,m(e),Gt=!1,Yt|=e.transformFlags&~O(e.kind);else{var t=Yt;Yt=0,m(e),Yt=t|r(e,Yt);}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,$e);else{var n=Yt;Yt=0;for(var r=0,a=0,i=t;a=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Et.parseDiagnostics.length||Et.bindDiagnostics.push(e.createDiagnosticForNode(t,we(t),e.declarationNameToString(t))));}function we(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Oe(t){Vt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left);}function Pe(e){Vt&&e.variableDeclaration&&Re(e,e.variableDeclaration.name);}function Fe(t){if(Vt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Et,t.expression);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Ie(e){return 71===e.kind&&("eval"===e.text||"arguments"===e.text)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Ie(r)){var a=e.getErrorSpanForNode(Et,n);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,a.start,a.length,Me(t),r.text));}}}function Me(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Le(e){Vt&&Re(e,e.name);}function Be(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ke(t){if(Nt<2&&265!==Ot.kind&&233!==Ot.kind&&!e.isFunctionLike(Ot)){var n=e.getErrorSpanForNode(Et,t);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,Be(t)));}}function je(t){Vt&&4&t.numericLiteralFlags&&Et.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function Je(e){Vt&&Re(e,e.operand);}function ze(e){Vt&&(43!==e.operator&&44!==e.operator||Re(e,e.operand));}function Ue(t){Vt&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function Ve(t,n,r,a,i){var o=e.getSpanOfTokenAtPosition(Et,t.pos);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,o.start,o.length,n,r,a,i));}function qe(t){return"__"+e.indexOf(t.parent.parameters,t)}function $e(t){if(t){t.parent=At;var n=Vt;if(e.isInJavaScriptFile(t)&&Ge(t),Xe(t),t.kind>142){var a=At;At=t;var i=de(t);0===i?d(t):_(t,i),At=a;}else Gt||0!=(536870912&t.transformFlags)||(Yt|=r(t,0));Vt=n;}}function Ge(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function v(t,n,r){function a(t,n){return function(r){return Ov.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,i){var o=t.get(i);o?e.forEach(o.declarations,a(i,r)):t.set(i,n);});}function b(e){if(134217728&e.flags)return e;var t=n(e);return bv[t]||(bv[t]={})}function x(e){var n=t(e);return xv[n]||(xv[n]={flags:0})}function k(e){return 32768&e.flags?e.objectFlags:0}function S(e){return 134217728&e.flags?e.checkFlags:0}function T(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function C(t,n,r){if(r){var a=t.get(n);if(a){if(e.Debug.assert(0==(1&S(a)),"Should never get an instantiated symbol here."),a.flags&r)return a;if(8388608&a.flags){var i=Z(a);if(i===eh||i.flags&r)return a}}}}function E(t,n){var r=t.parent,a=t.parent.parent,i=C(r.locals,n,107455),o=C(a.symbol.members,n,107455);if(i&&o)return[i,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function D(t,n){function a(t,n,r){return!!e.findAncestor(t,function(a){if(a===r)return"quit";if(e.isFunctionLike(a))return!0;if(a.parent&&149===a.parent.kind&&a.parent.initializer===a)if(32&e.getModifierFlags(a.parent)){if(151===n.kind)return!0}else if(!(149===n.kind&&!(32&e.getModifierFlags(n)))||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var i=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(i!==o){if(My&&(i.externalModuleIndicator||o.externalModuleIndicator)||!Iy.outFile&&!Iy.out||e.isInAmbientContext(t))return!0;if(a(n,t))return!0;var s=r.getSourceFiles();return e.indexOf(s,i)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=o&&(i=i.substr(0,o-"...".length)+"..."),i}function $e(t,n,r){var a=e.getSingleLineStringWriter();Ze().buildTypePredicateDisplay(t,a,n,r);var i=a.string();return e.releaseStringWriter(a),i}function Ge(e){for(var t=[],n=0,r=0;r0&&(26!==t&&ze(a),Je(a,t),ze(a)),c(e[n],26===t?0:64);}function l(e,t,n,o,s){if((32&e.flags||!De(e.name))&&r(e,a,i,793064,0,s),n0&&(Je(t,26),ze(t)),n(e[r]);}function p(e,t,n,r){if(e&&e.length){Je(n,27);for(var i=256,o=0;o0&&(Je(n,26),ze(n),i=0),a(t(e[o]),n,r,i);Je(n,29);}}function f(e,t,n,r,a,i){Je(n,19),e&&s(e,n,r,a,i);for(var o=0;o0||e)&&(Je(n,26),ze(n)),s(t[o],n,r,a,i);Je(n,20);}function m(t,n,r,i,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):je(n,99),ze(n),je(n,126),ze(n),a(t.type,n,r,i,o);}function g(e,t,n,r,i){var o=Ir(e);2048&r&&ut(o)||(8&r?(ze(t),Je(t,36)):Je(t,56),ze(t),e.typePredicate?m(e.typePredicate,t,n,r,i):a(o,t,n,r,i));}function y(e,t,n,r,a,i){1===a&&(je(t,94),ze(t)),e.target&&32&r?p(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,i),f(e.thisParameter,e.parameters,t,n,r,i),g(e,t,n,r,i);}function h(t,n,r,i,o,s){if(t){switch(t.isReadonly&&(je(n,131),ze(n)),Je(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Je(n,56),ze(n),r){case 1:je(n,133);break;case 0:je(n,136);}Je(n,22),Je(n,56),ze(n),a(t.type,n,i,o,s),Je(n,25),n.writeLine();}}return Mv||(Mv={buildSymbolDisplay:r,buildTypeDisplay:a,buildTypeParameterDisplay:o,buildTypePredicateDisplay:m,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:f,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:i,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:g})}function et(t){if(t){var n=x(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return et(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=ot(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?et(n):T(n);case 149:case 148:case 153:case 154:case 151:case 150:if(24&e.getModifierFlags(t))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return et(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function tt(t){function n(t){e.forEach(t,function(t){x(t).isVisible=!0;var r=B(t)||t;if(e.contains(i,r)||i.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var a=N(t,Zf(t.moduleReference).text,901119,void 0,void 0);a&&n(a.declarations);}});}var r;if(t.parent&&243===t.parent.kind)r=N(t.parent,t.text,9289727,e.Diagnostics.Cannot_find_name_0,t);else if(246===t.parent.kind){var a=t.parent;r=a.parent.parent.moduleSpecifier?$(a.parent.parent,a):ae(a.propertyName||a.name,9289727);}var i=[];return r&&n(r.declarations),i}function nt(e,t){var n=rt(e,t);if(n>=0){for(var r=gv.length,a=n;a=0;n--){if(at(gv[n],hv[n]))return-1;if(gv[n]===e&&hv[n]===t)return n}return-1}function at(t,n){return 0===n?b(t).type:2===n?b(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function it(){return gv.pop(),hv.pop(),yv.pop()}function ot(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function st(t){var n=fn(be(t));return n.typeParameters?Hr(n,e.map(n.typeParameters,function(e){return nh})):n}function ct(e,t){var n=_r(e,t);return n?Lt(n):void 0}function ut(e){return e&&0!=(1&e.flags)}function lt(e){var t=ve(e);return t&&b(t).type||ht(e,!1)}function _t(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function dt(t,n,r){if(8192&(t=kc(t,function(e){return!(6144&e.flags)})).flags)return vh;if(65536&t.flags)return Sc(t,function(e){return dt(e,n,r)});for(var a=e.createMap(),i=e.createMap(),o=0,s=n;o=2?Fa(nh):Ih;var o=Ka(e.map(a,function(t){return e.isOmittedExpression(t)?nh:bt(t,n,r)}));return n&&((o=Xr(o)).pattern=t),o}function St(e,t,n){return 174===e.kind?xt(e,t,n):kt(e,t,n)}function Tt(e,t){var n=ht(e,!0);return n?(t&&hs(e,n),261===e.kind?n:ms(n)):(n=e.dotDotDotToken?Ih:nh,t&&jy&&(Ct(e)||ys(e,n)),n)}function Ct(t){var n=e.getRootDeclaration(t);return mp(146===n.kind?n.parent:n)}function Et(t){var n=b(t);if(!n.type){if(16777216&t.flags)return n.type=st(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=nh;if(243===r.kind)return n.type=jd(r.expression);if(65536&r.flags&&291===r.kind&&r.typeExpression)return n.type=wi(r.typeExpression.type);if(!nt(t,0))return ah;var a=void 0;a=194===r.kind||179===r.kind&&194===r.parent.kind?vt(t):Tt(r,!0),it()||(a=Mt(t)),n.type=a;}return n.type}function Dt(t){if(t){if(153===t.kind)return t.type&&wi(t.type);var n=e.getSetAccessorTypeAnnotationNode(t);return n&&wi(n)}}function Nt(e){var t=Xg(e);return t&&t.symbol}function At(e){return Fr(Nr(e))}function wt(t){var n=b(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),a=e.getDeclarationOfKind(t,154);if(r&&65536&r.flags){var i=ft(r);if(i)return n.type=i}if(!nt(t,0))return ah;var o=void 0,s=Dt(r);if(s)o=s;else{var c=Dt(a);c?o=c:r&&r.body?o=z_(r):(jy&&(a?l(a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ue(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),l(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ue(t)))),o=nh);}it()||(o=nh,jy&&l(e.getDeclarationOfKind(t,153),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,Ue(t))),n.type=o;}return n.type}function Ot(e){var t=Yt(an(e));return 540672&t.flags?t:void 0}function Pt(t){var n=b(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=nh;else{var r=Ee(16,t);if(32&t.flags){var a=Ot(t);n.type=a?ti([r,a]):r;}else n.type=Ky&&67108864&t.flags?is(r,2048):r;}return n.type}function Ft(e){var t=b(e);return t.type||(t.type=_n(e)),t.type}function It(e){var t=b(e);if(!t.type){var n=Z(e);t.type=107455&n.flags?Lt(n):ah;}return t.type}function Rt(t){var n=b(t);if(!n.type)if(100===Oy)l(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=ah;else{if(!nt(t,0))return ah;Oy++;var r=to(Lt(n.target),n.mapper);Oy--,it()||(r=Mt(t)),n.type=r;}return n.type}function Mt(t){return t.valueDeclaration.type?(l(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ue(t)),ah):(jy&&l(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ue(t)),nh)}function Lt(e){return 1&S(e)?Rt(e):7&e.flags?Et(e):9136&e.flags?Pt(e):8&e.flags?Ft(e):98304&e.flags?wt(e):8388608&e.flags?It(e):ah}function Bt(e,t){return void 0!==e&&void 0!==t&&0!=(4&k(e))&&e.target===t}function Kt(e){return 4&k(e)?e.target:e}function jt(t,n){function r(t){if(7&k(t)){var a=Kt(t);return a===n||e.forEach(Qt(a),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function Jt(t,n){for(var r=0,a=n;r0)return!0;if(540672&e.flags){var t=nr(e);return t&&tn(t)&&$t(t)}return!1}function Wt(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function Ht(t,n,r){var a=e.length(n),i=e.isInJavaScriptFile(r);return e.filter(pr(t,1),function(t){return(i||a>=Er(t.typeParameters))&&a<=e.length(t.typeParameters)})}function Xt(t,n,r){var a=Ht(t,n,r);if(n){var i=e.map(n,wi);a=e.map(a,function(e){return Mr(e,i)});}return a}function Yt(t){if(!t.resolvedBaseConstructorType){var n=Wt(t);if(!n)return t.resolvedBaseConstructorType=ih;if(!nt(t,1))return ah;var r=jd(n.expression);if(163840&r.flags&&Wn(r),!it())return l(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ue(t.symbol)),t.resolvedBaseConstructorType=ah;if(!(1&r.flags||r===ch||Gt(r)))return l(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,qe(r)),t.resolvedBaseConstructorType=ah;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function Qt(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Ra(Xa(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&Zt(t),64&t.symbol.flags&&nn(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function Zt(t){t.resolvedBaseTypes=t.resolvedBaseTypes||Py;var n=sr(Yt(t));if(163841&n.flags){var r,a=Wt(t),i=n&&n.symbol?fn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&en(i))r=Qr(a,n.symbol);else if(1&n.flags)r=n;else{var o=Xt(n,a.typeArguments,a);if(!o.length)return void l(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Ir(o[0]);}var s=t.symbol.valueDeclaration;if(s&&e.isInJavaScriptFile(s)){var c=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);c&&(r=wi(c.typeExpression.type));}r!==ah&&(tn(r)?t===r||jt(r,t)?l(s,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,qe(t,void 0,1)):t.resolvedBaseTypes===Py?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):l(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,qe(r)));}}function en(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function tn(t){return 16809985&t.flags&&!Gn(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!tn(e)})}function nn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||Py;for(var n=0,r=t.symbol.declarations;n1&&(n.flags|=65536,n.types=r,Wy.set(Gr(r),n));}}return t.declaredType}function _n(e){var t=b(e);if(!t.declaredType){var n=ln(be(e));t.declaredType=65536&n.flags?n.memberTypes[ag(e.valueDeclaration)]:n;}return t.declaredType}function dn(e){var t=b(e);if(!t.declaredType){var n=Te(16384);n.symbol=e,t.declaredType=n;}return t.declaredType}function pn(e){var t=b(e);return t.declaredType||(t.declaredType=fn(Z(e))),t.declaredType}function fn(e){return 96&e.flags?an(e):524288&e.flags?on$$1(e):262144&e.flags?dn(e):384&e.flags?ln(e):8&e.flags?_n(e):8388608&e.flags?pn(e):ah}function mn(e){if(e.typeArguments)for(var t=0,n=e.typeArguments;t=_)&&o<=d){var p=d?Lr(l,Dr(i,l.typeParameters,_,r)):An(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function On(e,t,n,r,a){for(var i=0,o=e;i0)return;for(i=1;i1){if(l=An(c),e.forEach(u,function(e){return e.thisParameter})){var _=Xa(e.map(u,function(e){return Lt(e.thisParameter)||nh}),!0);l.thisParameter=us(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(a||(a=[])).push(l);}}}return a||Py}function In(e,t){for(var n=[],r=!1,a=0,i=e;a0&&(l=e.map(l,function(e){var t=An(e);return t.resolvedReturnType=Kn(Ir(e),o,c),t})),i=e.concatenate(i,l);}a=e.concatenate(a,pr(u,0)),n=Ln(n,gr(u,0)),r=Ln(r,gr(u,1));}(c);Ae(t,Fy,a,i,n,r);}function Jn(e){var t=e.symbol;if(e.target)Ae(e,r=xn(Hn(e.target),e.mapper,!1),n=Fi(pr(e.target,0),e.mapper),a=Fi(pr(e.target,1),e.mapper),i=ro(gr(e.target,0),e.mapper),c=ro(gr(e.target,1),e.mapper));else if(2048&t.flags){var n=Or((r=t.members).get("__call"));Ae(e,r,n,a=Or(r.get("__new")),i=Ur(t,0),c=Ur(t,1));}else{var r=Fy,a=Py,i=void 0;if(t.exports&&(r=fe(t)),32&t.flags){var o=an(t);(a=Or(t.members.get("__constructor"))).length||(a=wn(o));var s=Yt(o);704512&s.flags?kn(r=bn(Ne(r)),Qn(s)):s===nh&&(i=zr(nh,!1));}var c=384&t.flags?cv:void 0;Ae(e,r,Py,a,i,c),8208&t.flags&&(e.callSignatures=Or(t));}}function zn(t){function n(e,n){var o=Bi([i],[e]),d=t.mapper?Ui(t.mapper,o):o,p=to(s,d);if(32&e.flags){var f=e.text,m=_r(c,f),g=_(4|(l||!!(m&&67108864&m.flags)?67108864:0),f);g.checkFlags=u||m&&Y_(m)?8:0,g.type=p,n&&(g.syntheticOrigin=n),a.set(f,g);}else 2&e.flags&&(r=zr(p,u));}var r,a=e.createMap();Ae(t,Fy,Py,Py,void 0,void 0);var i=Un(t),o=Vn(t),s=qn(t),c=sr($n(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var d=0,p=Qn(c);d=2):16777216&t.flags?vh:t}function cr(t,n){for(var r,a=t.types,i=65536&t.flags,o=i?24:0,s=i?0:67108864,c=4,u=0,l=0,d=a;l=0),a>=r.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=i.arguments.length)}function Cr(e){if(71===e.parameterName.kind){var t=e.parameterName;return{kind:1,parameterName:t?t.text:void 0,parameterIndex:t?Vd(e.parent.parameters,t):void 0,type:wi(e.type)}}return{kind:0,type:wi(e.type)}}function Er(e){var t=0;if(e)for(var n=0;n=r)&&o<=i){t||(t=[]);for(c=o;cc.arguments.length&&!d.type||kr(d)||l||(i=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var f=153===t.kind?154:153,m=e.getDeclarationOfKind(t.symbol,f);m&&(o=Nt(m));}var g=152===t.kind?an(he(t.parent.symbol)):void 0,y=g?g.localTypeParameters:t.typeParameters?br(t.typeParameters):vr(t),h=Ar(t,u,g),v=t.type&&158===t.type.kind?Cr(t.type):void 0;n.resolvedSignature=Nn(t,y,o,r,h,v,i,e.hasRestParameter(t),a);}return n.resolvedSignature}function Ar(t,n,r){if(n)return wi(t.parameters[0].type);if(r)return r;if(t.type)return wi(t.type);if(65536&t.flags){var a=K_(t);if(a&&a!==ah)return a}return 153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?nh:void 0:Dt(e.getDeclarationOfKind(t.symbol,154))}function wr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.text&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=x(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Or(e){if(!e)return Py;for(var t=[],n=0;n0&&r.body){var a=e.declarations[n-1];if(r.parent===a.parent&&r.kind===a.kind&&r.pos===a.end)break}t.push(Nr(r));}}return t}function Pr(e){var t=ie(e,e);if(t){var n=ce(t);if(n)return Lt(n)}return nh}function Fr(e){if(e.thisParameter)return Lt(e.thisParameter)}function Ir(t){if(!t.resolvedReturnType){if(!nt(t,3))return ah;var n=void 0;if(n=t.target?to(Ir(t.target),t.mapper):t.unionSignatures?Xa(e.map(t.unionSignatures,Ir),!0):z_(t.declaration),!it()&&(n=nh,jy)){var r=t.declaration,a=e.getNameOfDeclaration(r);a?l(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):l(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 Rr(t){if(t.hasRestParameter){var n=Lt(e.lastOrUndefined(t.parameters));if(4&k(n)&&n.target===Dh)return n.typeArguments[0]}return nh}function Mr(t,n){n=Dr(n,t.typeParameters,Er(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),a=Gr(n),i=r.get(a);return i||r.set(a,i=Lr(t,n)),i}function Lr(e,t){return Gi(e,Bi(e.typeParameters,t),!0)}function Br(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=Gi(e,Ki(e.typeParameters),!0)),e.erasedSignatureCache):e}function Kr(e){if(!e.isolatedSignatureType){var t=152===e.declaration.kind||156===e.declaration.kind,n=Ee(16);n.members=Fy,n.properties=Py,n.callSignatures=t?Py:[e],n.constructSignatures=t?[e]:Py,e.isolatedSignatureType=n;}return e.isolatedSignatureType}function jr(e){return e.members.get("__index")}function Jr(e,t){var n=1===t?133:136,r=jr(e);if(r)for(var a=0,i=r.declarations;a1&&(t+=":"+i),r+=i;}return t}function Wr(e,t){for(var n=0,r=0,a=e;ra.length)?(l(t,o===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,qe(r,void 0,1),o,a.length),ah):Hr(r,e.concatenate(r.outerTypeParameters,Dr(e.map(t.typeArguments,wi),a,o,t)))}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,qe(r)),ah):r}function Zr(e,t){var n=fn(e),r=b(e),a=r.typeParameters,i=Gr(t),o=r.instantiations.get(i);return o||r.instantiations.set(i,o=no(n,Bi(a,Dr(t,a,Er(a))))),o}function ea(t,n){var r=fn(n),a=b(n).typeParameters;if(a){var i=e.length(t.typeArguments),o=Er(a);return ia.length?(l(t,o===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ue(n),o,a.length),ah):Zr(n,e.map(t.typeArguments,wi))}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,Ue(n)),ah):r}function ta(t,n){return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,Ue(n)),ah):fn(n)}function na(t){switch(t.kind){case 159:return t.typeName;case 277:return t.name;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function ra(e){return e?ae(e,793064)||eh:eh}function aa(e,t){return t===eh?ah:96&t.flags?Qr(e,t):524288&t.flags?ea(e,t):107455&t.flags&&277===e.kind?Lt(t):ta(e,t)}function ia(t){if(e.isIdentifier(t.name))switch(t.name.text){case"String":return uh;case"Number":return lh;case"Boolean":return ph;case"Void":return mh;case"Undefined":return ih;case"Null":return sh;case"Object":return nh;case"Function":return Sh;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:Ra(nh);case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:j_(nh)}}function oa(e){var t=wi(e.type);return Ky?Xa([t,sh]):t}function sa(t){var n=x(t);if(!n.resolvedType){var r=void 0,a=void 0;if(277===t.kind)(a=ia(t))||(a=aa(t,r=ra(na(t))));else{var i=159===t.kind?t.typeName:e.isEntityNameExpression(t.expression)?t.expression:void 0;a=(r=i&&ae(i,793064)||eh)===eh?ah:96&r.flags?Qr(t,r):524288&r.flags?ea(t,r):ta(t,r);}n.resolvedSymbol=r,n.resolvedType=a;}return n.resolvedType}function ca(e){var t=x(e);return t.resolvedType||(t.resolvedType=ms(jd(e.exprName))),t.resolvedType}function ua(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[i].id;if(o===a)return i;o>a?r=i-1:n=i+1;}return~n}function za(e,t){return Ja(e,t)>=0}function Ua(e,t){var n=t.flags;if(65536&n)Va(e,t.types);else if(1&n)e.containsAny=!0;else if(!Ky&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,a=r&&t.id>e[r-1].id?~r:Ja(e,t);a<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&qa(e,t)||e.splice(~a,0,t));}}function Va(e,t){for(var n=0,r=t;n0;)$a(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function Ha(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&za(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function Xa(e,t,n,r){if(0===e.length)return gh;if(1===e.length)return e[0];var a=[];return Va(a,e),a.containsAny?nh:(t?Wa(a):a.containsStringOrNumberLiteral&&Ha(a),0===a.length?a.containsNull?a.containsNonWideningType?sh:ch:a.containsUndefined?a.containsNonWideningType?ih:oh:gh:Ya(a,n,r))}function Ya(e,t,n){if(0===e.length)return gh;if(1===e.length)return e[0];var r=Gr(e),a=Wy.get(r);return a||(a=Te(65536|Wr(e,6144)),Wy.set(r,a),a.types=e,a.aliasSymbol=t,a.aliasTypeArguments=n),a}function Qa(t){var n=x(t);return n.resolvedType||(n.resolvedType=Xa(e.map(t.types,wi),!1,gi(t),yi(t))),n.resolvedType}function Za(t,n){131072&n.flags?ei(t,n.types):1&n.flags?t.containsAny=!0:16&k(n)&&Do(n)?t.containsEmptyObject=!0:8192&n.flags||!Ky&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&qa(t,n)||t.push(n));}function ei(e,t){for(var n=0,r=t;n=n?vh:r};return r.mappedTypes=t,r}function Ji(e){if(!e.mapper){var t=function(t){for(var n=e.signature.typeParameters,r=0;rn.parameters.length)return 0;t=Br(t),n=Br(n);var s=-1,c=Fr(t);if(c&&c!==mh){var u=Fr(n);if(u){if(!(h=o(c,u,!1)||o(u,c,a)))return a&&i(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;s&=h;}}for(var l=To(t),_=To(n),d=Co(t,l,n,_),p=t.parameters,f=n.parameters,m=0;m0){for(var s=0;s=5&&32768&e.flags){var r=e.symbol;if(r)for(var a=0,i=0;i=5)return!0}}return!1}function Ko(e,t){return 0!==jo(e,t,uo)}function jo(e,t,n){if(e===t)return-1;var r=24&Nl(e);if(r!==(24&Nl(t)))return 0;if(r){if(Kf(e)!==Kf(t))return 0}else if((67108864&e.flags)!=(67108864&t.flags))return 0;return Y_(e)!==Y_(t)?0:n(Lt(e),Lt(t))}function Jo(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,a=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>a||r===a&&e.parameters.length>=t.parameters.length))}function zo(t,n,r,a,i,o){if(t===n)return-1;if(!Jo(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Br(t),n=Br(n);var s=-1;if(!a){var c=Fr(t);if(c){var u=Fr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function Vo(e,t){for(var n=0,r=t;no&&(a=t[s],i=u,o=c),o===t.length-1)break}yo(i,a,n,e.Diagnostics.Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0,r);}function Ho(e){return 4&k(e)&&e.target===Dh}function Xo(e){return 4&k(e)&&(e.target===Dh||e.target===Nh)||!(6144&e.flags)&&po(e,Mh)}function Yo(e){return!!_r(e,"0")}function Qo(e){return 0!=(6624&e.flags)}function Zo(t){return!!(8&t.flags)||(65536&t.flags?!!(16&t.flags)||!e.forEach(t.types,function(e){return!Qo(e)}):Qo(t))}function es(t){return 32&t.flags?uh:64&t.flags?lh:128&t.flags?ph:256&t.flags?t.baseType:65536&t.flags&&!(16&t.flags)?Xa(e.sameMap(t.types,es)):t}function ts(t){return 32&t.flags&&1048576&t.flags?uh:64&t.flags&&1048576&t.flags?lh:128&t.flags?ph:256&t.flags?t.baseType:65536&t.flags&&!(16&t.flags)?Xa(e.sameMap(t.types,ts)):t}function ns(e){return!!(4&k(e)&&8&e.target.objectFlags)}function rs(e){for(var t=0,n=0,r=e;n=0&&!n[s].isFixed){var l=Cs(r,a);l&&(g++,o(l,t[s]),g--);}return}if(16384&i.flags)return o(oi(r),i),void o(Xa(e.map(Qn(r),Lt)),qn(a))}c(r,a),u(r,a,0),u(r,a,1),d(r,a);}function c(e,t){for(var n=0,r=Hn(t);nn)&&(t.failedTypeParameterIndex=n);}return a}function Fs(e){for(var t=0;t=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),a=Xc(t.parent,r),i=r,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent;}o&&(a&&(x(i).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&Qc(t,r)&&(x(n.valueDeclaration).flags|=2097152),x(n.valueDeclaration).flags|=262144),a&&(x(n.valueDeclaration).flags|=131072);}}function Qc(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(192===r.parent.kind||193===r.parent.kind){var i=r.parent;a=43===i.operator||44===i.operator;}return!!a&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function Zc(e,t){x(e).flags|=2,149===t.kind||152===t.kind?x(t.parent).flags|=4:x(t).flags|=4;}function eu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,eu)}function tu(e){var t=x(e);return void 0===t.hasSuperCall&&(t.superCall=eu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function nu(e){return Yt(fn(ve(e)))===ch}function ru(t,n,r){var a=n.parent;if(e.getClassExtendsHeritageClauseElement(a)&&!nu(a)){var i=tu(n);(!i||i.end>t.pos)&&l(t,r);}}function au(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&ru(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=Ry<2),n.kind){case 233:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:l(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:ou(t,n)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:32&e.getModifierFlags(n)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&Zc(t,n),e.isFunctionLike(n)&&(!gu(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var a=jd(n.parent.left.expression.expression).symbol;if(a&&a.members&&16&a.flags)return E_(a)}var i=At(n)||_u(n);if(i)return i}if(e.isClassLike(n.parent)){var o=ve(n.parent);return Jc(t,s=e.hasModifier(n,32)?Lt(o):fn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=iu(n);if(s&&s!==ah)return s}return Jy&&l(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),nh}function iu(t){var n=e.getJSDocType(t);if(n&&279===n.kind){var r=n;if(r.parameters.length>0&&282===r.parameters[0].type.kind)return wi(r.parameters[0].type)}}function ou(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function su(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),a=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),a=Ry<2;var i=0;if(!function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(32&e.getModifierFlags(t)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?l(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?l(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?l(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):l(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ah}if(n||152!==r.kind||ru(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=32&e.getModifierFlags(r)||n?512:256,x(t).flags|=i,151===r.kind&&256&e.getModifierFlags(r)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?x(r).flags|=4096:x(r).flags|=2048),a&&Zc(t.parent,r),178===r.parent.kind)return Ry<2?(l(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ah):nh;var s=r.parent,c=fn(ve(s)),u=c&&Qt(c)[0];return u?152===r.kind&&ou(t,r)?(l(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ah):512===i?Yt(c):Tn(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||l(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ah)}function cu(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function uu(e){return 4&k(e)&&e.target===Fh?e.typeArguments[0]:void 0}function lu(t){return Sc(t,function(t){return 131072&t.flags?e.forEach(t.types,uu):uu(t)})}function _u(e){if(187!==e.kind){if(oo(e)){var t=Bu(e);if(t){var n=t.thisParameter;if(n)return Lt(n)}}if(Jy){var r=cu(e);if(r){for(var a=wu(r),i=r,o=a;o;){var s=lu(o);if(s)return to(s,Pu(r));if(261!==i.parent.kind)break;o=wu(i=i.parent.parent);}return a?ss(a):wd(r)}if(194===e.parent.kind&&58===e.parent.operatorToken.kind){var c=e.parent.left;if(179===c.kind||180===c.kind)return wd(c.expression)}}}}function du(t){var n=t.parent;if(oo(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var a=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var i=[],o=a;o=0)return I_(C_(t),a)}function vu(e,t){if(183===e.parent.kind)return hu(e.parent,t)}function bu(t){var n=t.parent,r=n.operatorToken.kind;if(r>=58&&r<=70){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return Bd(n.left)}else{if(54===r){var a=Ou(n);return a||t!==n.right||(a=Bd(n.left)),a}if((53===r||26===r)&&t===n.right)return Ou(n)}}function xu(e,t){return Sc(e,function(e){var n=229376&e.flags?_r(e,t):void 0;return n?Lt(n):void 0})}function ku(e,t){return Sc(e,function(e){return mr(e,t)})}function Su(t){return!!(65536&t.flags?e.forEach(t.types,Yo):Yo(t))}function Tu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!bm(t))return Cu(t)}function Cu(t){var n=wu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=xu(n,ve(t).name);if(r)return r}return zu(t.name)&&ku(n,1)||ku(n,0)}}function Eu(t){var n=t.parent,r=wu(n);if(r)return xu(r,""+e.indexOf(n.elements,t))||ku(r,1)||gf(r,void 0,!1,!1,!1)}function Du(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Ou(t):void 0}function Nu(t){var n=Ou(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!ut(n)){if(e.isJsxAttribute(t.parent))return ct(n,t.parent.name.text);if(249===t.parent.kind){var r=cl();return r&&""!==r?ct(n,r):nh}return n}}function Au(t){var n=Ou(t.parent);if(e.isJsxAttribute(t)){if(!n||ut(n))return;return ct(n,t.name.text)}return n}function wu(e){var t=Ou(e);return t&&sr(t)}function Ou(t){if(!bm(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return pu(t);case 187:case 219:return fu(t);case 197:return mu(n);case 181:case 182:return hu(n,t);case 184:case 202:return wi(n.type);case 194:return bu(t);case 261:case 262:return Cu(n);case 177:return Eu(t);case 195:return Du(t);case 205:return e.Debug.assert(196===n.parent.kind),vu(n.parent,t);case 185:return Ou(n);case 256:return Nu(n);case 253:case 255:return Au(n);case 251:case 250:return gl(n)}}}function Pu(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:zi}function Fu(e,t){var n=dr(e,0);if(1===n.length){var r=n[0];if(!r.typeParameters&&!Iu(r,t))return r}}function Iu(t,n){for(var r=0;r0&&(s=hi(s,r()),o=[],i=e.createMap(),g=!1,y=!1,f=0),!Xu(S=jd(b.expression)))return l(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ah;s=hi(s,S),h=v+1;continue}e.Debug.assert(153===b.kind||154===b.kind),dm(b);}e.hasDynamicName(b)?zu(b.name)?y=!0:g=!0:i.set(x.name,x),o.push(x);}if(d)for(var C=0,E=Qn(u);C0&&(s=hi(s,r())),32768&s.flags&&(s.flags|=c,s.symbol=t.symbol),s):r()}function Xu(t){return!!(16783361&t.flags||32768&t.flags&&!Gn(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!Xu(e)}))}function Yu(e){return Sl(e),vl()||nh}function Qu(e){return Sl(e.openingElement),el(e.closingElement.tagName)?al(e.closingElement):jd(e.closingElement.tagName),vl()||nh}function Zu(e){return e.indexOf("-")<0}function el(t){return 179!==t.kind&&99!==t.kind&&e.isIntrinsicJsxName(t.text)}function tl(t,n,r){function a(e,t){var n=we(e,t,Py,Py,void 0,void 0);return n.flags|=37748736,n.objectFlags|=128,n}for(var i,o=t.attributes,s=e.createMap(),c=vh,u=[],d=!1,p=!1,f=cl(),m=0,g=o.properties;m0&&(c=hi(c,a(o.symbol,s)),u=[],s=e.createMap()),ut(v=jd(y.expression))&&(d=!0),Xu(v)?c=hi(c,v):i=i?ti([i,v]):v;}d||(c!==vh&&(u.length>0&&(c=hi(c,a(o.symbol,s)),u=[],s=e.createMap()),u=Qn(c)),s=e.createMap(),u&&e.forEach(u,function(e){n&&!n(e)||s.set(e.name,e);}));var x=249===t.parent.kind?t.parent:void 0;if(x&&x.openingElement===t&&x.children.length>0){for(var k=[],S=0,T=x.children;S1&&l(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,t);}}function sl(){return zv||(zv=!0,Iv=ol(qv.ElementAttributesPropertyNameContainer)),Iv}function cl(){return Uv||(Uv=!0,Rv=ol(qv.ElementChildrenAttributeNameContainer)),Rv}function ul(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))l(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,sl());else if(ho(r,n,t.attributes.properties.length>0?t.attributes:t)&&!ut(r)&&!ut(n))for(var a=0,i=t.attributes.properties;a=m&&o.length<=f))return!1;if(c>=0)return Uo(r,c);if(!r.hasRestParameter&&i>r.parameters.length)return!1;var g=i>=r.minArgumentCount;return s||g}function Yl(e){if(32768&e.flags){var t=Wn(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Ql(e,t,n){var r=bs(e,!0,!1);return vs(t,e,function(e,t){Es(r,to(e,n),t);}),Mr(e,Fs(r))}function Zl(e,t,n,r,a){for(var i=t.typeParameters,o=Ji(a),s=0;s0?[t.attributes]:Py:t.arguments||Py;}return n}function i_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===Ry?2:n.parameters.length>=3?3:2;case 146:return 3}}function o_(t){if(229===t.kind)return Lt(n=ve(t));if(146===t.kind&&152===(t=t.parent).kind){var n=ve(t);return Lt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?Km(t):(e.Debug.fail("Unsupported decorator target."),ah)}function s_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ah;if(146===t.kind&&152===(t=t.parent).kind)return nh;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:case 8:case 9:return Ti(32,n.name.text);case 144:var r=Gu(n.name);return cd(r,512)?r:uh;default:return e.Debug.fail("Unsupported property name."),ah}}return e.Debug.fail("Unsupported decorator target."),ah}function c_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),ah):146===t.kind?lh:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),ah):151===t.kind||153===t.kind||154===t.kind?wa(Rm(t)):(e.Debug.fail("Unsupported decorator target."),ah)}function u_(t,n){return 0===n?o_(t.parent):1===n?s_(t.parent):2===n?c_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ah)}function l_(e,t){return 147===e.kind?u_(e,t):0===t&&183===e.kind?ma():void 0}function __(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function d_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function p_(t,n,r,a){function o(n,r,i,o){var s;s=e.chainDiagnosticMessages(s,n,r,i,o),a&&(s=e.chainDiagnosticMessages(s,a)),Ov.add(e.createDiagnosticForNodeFromMessageChain(t,s));}function s(n,r,a){void 0===a&&(a=!1);for(var i=0,o=n;i1&&(S=s(g,$v,T)),S||(b=void 0,x=void 0,k=void 0,S=s(g,Gv,T)),S)return S;if(b){if(d)return b;n_(t,h,b,Gv,void 0,!0);}else if(x)if(u||l||!c){e.Debug.assert(k.failedTypeParameterIndex>=0);var C=x.typeParameters[k.failedTypeParameterIndex],E=ws(k,k.failedTypeParameterIndex),D=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly,qe(C));a&&(D=e.chainDiagnosticMessages(D,a)),Wo(E,t.tagName||t.expression||t.tag,D);}else{var N=t.typeArguments;e_(x,N,e.map(N,wi),!0,a);}else o(e.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target);if(!i)for(var A=0,w=g;A=0&&l(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var a=Pl(t.expression);if(a===yh)return sv;if((a=sr(a))===ah)return Gl(t);var i=a.symbol&&jf(a.symbol);if(i&&128&e.getModifierFlags(i))return l(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(i))),Gl(t);if(ut(a))return t.typeArguments&&l(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),$l(t);var o=pr(a,1);if(o.length)return y_(t,o[0])?p_(t,o,n):Gl(t);var s=pr(a,0);if(s.length){var c=p_(t,s,n);return Ir(c)!==mh&&l(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Fr(c)===mh&&l(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return l(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),Gl(t)}function y_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,a=e.getModifierFlags(r);if(!(24&a))return!0;var i=jf(r.parent.symbol),o=fn(r.parent.symbol);if(!Dm(t,i)){var s=e.getContainingClass(t);if(s)for(var c=Qt(Rm(s));c.length;){var u=c[0];if(16&a&&u.symbol===r.parent.symbol)return!0;c=Qt(u);}return 8&a&&l(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,qe(o)),16&a&&l(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,qe(o)),!1}return!0}function h_(t,n){var r=jd(t.tag),a=sr(r);if(a===ah)return Gl(t);var i=pr(a,0),o=pr(a,1);return m_(r,a,i.length,o.length)?$l(t):i.length?p_(t,i,n):(l(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,qe(a)),Gl(t))}function v_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function b_(t,n){var r=jd(t.expression),a=sr(r);if(a===ah)return Gl(t);var i=pr(a,0),o=pr(a,1);if(m_(r,a,i.length,o.length))return $l(t);var s=v_(t);if(!i.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,qe(a)),c=e.chainDiagnosticMessages(c,s),Ov.add(e.createDiagnosticForNodeFromMessageChain(t,c)),Gl(t)}return p_(t,i,n,s)}function x_(t,n,r){return e.Debug.assert(!(65536&n.flags)),k_(t,n,r)}function k_(e,t,n){if(65536&t.flags){for(var r=void 0,a=0,i=t.types;a0){return p_(e,s,n)}}function S_(t,n){switch(t.kind){case 181:return f_(t,n);case 182:return g_(t,n);case 183:return h_(t,n);case 147:return b_(t,n);case 251:case 250:return k_(t,jd(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function T_(e,t){var n=x(e),r=n.resolvedSignature;if(r&&r!==ov&&!t)return r;n.resolvedSignature=ov;var a=S_(e,t);return n.resolvedSignature=_v===dv?a:r,a}function C_(e){return x(e).resolvedSignature===ov?ov:T_(e)}function E_(e){var t=b(e);return t.inferredClassType||(t.inferredClassType=we(e,e.members,Py,Py,void 0,void 0)),t.inferredClassType}function D_(t){Mg(t,t.typeArguments)||Bg(t,t.arguments);var n=T_(t);if(97===t.expression.kind)return mh;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var a=71===t.expression.kind?Is(t.expression):jd(t.expression).symbol;return a&&e.isDeclarationOfFunctionOrClassExpression(a)&&(a=ve(a.valueDeclaration.initializer)),a&&a.members&&16&a.flags?E_(a):(jy&&l(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),nh)}}return e.isInJavaScriptFile(t)&&N_(t)?Pr(t.arguments[0]):Ir(n)}function N_(t){if(!e.isRequireCall(t,!0))return!1;var n=N(t.expression,t.expression.text,107455,void 0,void 0);if(!n)return!0;if(8388608&n.flags)return!1;var r=16&n.flags?228:3&n.flags?226:0;if(0!==r){var a=e.getDeclarationOfKind(n,r);return e.isInAmbientContext(a)}return!1}function A_(e){return Ir(T_(e))}function w_(t){var n=_s(es(jd(t.expression)));_m(t.type);var r=wi(t.type);return i&&r!==ah&&(mo(r,ms(n))||vo(n,r,t,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)),r}function O_(e){return ss(jd(e.expression))}function P_(t){cy(t);var n=e.getNewTargetContainer(t);if(n){if(152===n.kind)return Lt(r=ve(n.parent));var r=ve(n);return Lt(r)}return l(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ah}function F_(e){var t=Lt(e);if(Ky){var n=e.valueDeclaration;if(n&&n.initializer)return is(t,2048)}return t}function I_(e,t){return e.hasRestParameter?t0?I_(e,0):gh}function M_(t,n,r,a){var i=t.parameters.length-(t.hasRestParameter?1:0);if(2===a)for(s=0;s=58&&_<=70&&ed(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&ho(n,d,t,void 0);}function u(){l(o||n,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),qe(d),qe(p));}var _=n.kind;if(58===_&&(178===t.kind||177===t.kind))return yd(t,jd(r,a),a);var d=jd(t,a),p=jd(r,a);switch(_){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(d===yh||p===yh)return yh;d=Fl(d,t),p=Fl(p,r);var f=void 0;if(136&d.flags&&136&p.flags&&void 0!==(f=function(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}(n.kind)))l(o||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(f));else{var m=X_(t,d,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),g=X_(r,p,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);m&&g&&c(lh);}return lh;case 37:case 59:if(d===yh||p===yh)return yh;cd(d,262179)||cd(p,262179)||(d=Fl(d,t),p=Fl(p,r));var y=void 0;if(cd(d,340)&&cd(p,340))y=lh;else if(cd(d,262178)||cd(p,262178)?y=uh:(ut(d)||ut(p))&&(y=d===ah||p===ah?ah:nh),y&&!s(_))return y;return y?(59===_&&c(y),y):(u(),nh);case 27:case 29:case 30:case 31:return s(_)&&(d=es(Fl(d,t)),p=es(Fl(p,r)),mo(d,p)||mo(p,d)||u()),ph;case 32:case 33:case 34:case 35:var h=Zo(d),v=Zo(p);return h&&v||(d=h?es(d):d,p=v?es(p):p),bd(d,p)||bd(p,d)||u(),ph;case 93:return _d(t,r,d,p);case 92:return dd(t,r,d,p);case 53:return 1048576&Hs(d)?is(p,as(Ky?d:es(p))):d;case 54:return 2097152&Hs(d)?xd(os$$1(d),p):d;case 58:return c(p),_s(p);case 26:return Iy.allowUnreachableCode||!vd(t)||function(e){return 71===e.kind&&"eval"===e.text}(r)||l(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),p}}function Td(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}function Cd(t){if(i&&(4096&t.flags&&!Td(t)||ly(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),gu(t)&&l(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)),t.expression){var n=e.getContainingFunction(t),r=n&&e.getFunctionFlags(n);if(t.asteriskToken&&(3==(3&r)&&Ry<5&&hg(t,26624),1==(3&r)&&Ry<2&&Iy.downlevelIteration&&hg(t,256)),1&r){var a=wd(t.expression,void 0),o=void 0,s=!!t.asteriskToken;if(s&&(o=mf(a,t.expression,!1,0!=(2&r))),n.type){var c=vf(wi(n.type),0!=(2&r))||nh;s?ho(2&r?kp(o,t.expression,e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o,c,t.expression,void 0):ho(2&r?kp(a,t.expression,e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,c,t.expression,void 0);}}}return nh}function Ed(e,t){return jd(e.condition),xd(jd(e.whenTrue,t),jd(e.whenFalse,t))}function Dd(e){switch(8===e.kind&&by(e),e.kind){case 9:return ki(Ti(32,e.text));case 8:return ki(Ti(64,e.text));case 101:return _h;case 86:return dh}}function Nd(t){return e.forEach(t.templateSpans,function(e){jd(e.expression);}),uh}function Ad(e,t,n){var r=e.contextualType,a=e.contextualMapper;e.contextualType=t,e.contextualMapper=n;var i=jd(e,n===zi?1:n?2:0);return e.contextualType=r,e.contextualMapper=a,i}function wd(e,t){var n=x(e);if(!n.resolvedType){var r=_v;_v=dv,n.resolvedType=jd(e,t),_v=r;}return n.resolvedType}function Od(t){return 184===(t=e.skipParentheses(t)).kind||202===t.kind}function Pd(t){var n=Bd(t.initializer,!0);return 2&e.getCombinedNodeFlags(t)||64&e.getCombinedModifierFlags(t)&&!e.isParameterPropertyDeclaration(t)||Od(t.initializer)?n:ts(n)}function Fd(e){if(e){if(540672&e.flags){var t=nr(e)||vh;if(30&t.flags)return!0;e=t;}return sd(e,262624)}return!1}function Id(e,t){var n=jd(e,t);return Od(e)||Fd(Ou(e))?n:ts(n)}function Rd(e,t){return 144===e.name.kind&&Gu(e.name),Id(e.initializer,t)}function Md(e,t){return Qg(e),144===e.name.kind&&Gu(e.name),Ld(e,W_(e,t),t)}function Ld(e,t,n){if(2===n){var r=Yl(t);if(r&&r.typeParameters){var a=wu(e);if(a){var i=Yl(a);if(i&&!i.typeParameters)return Kr(Ql(r,i,Pu(e)))}}}return t}function Bd(t,n){if(181===t.kind&&97!==t.expression.kind&&!e.isRequireCall(t,!0)){var r=Yl(Pl(t.expression));if(r&&!r.typeParameters)return Ir(r)}return n?wd(t):jd(t)}function Kd(e){var t=e.contextualType;e.contextualType=nh;var n=Bd(e);return e.contextualType=t,n}function jd(t,n){var r;return r=143===t.kind?Rl(t):Ld(t,Jd(t,n),n),ud(r)&&(179===t.parent.kind&&t.parent.expression===t||180===t.parent.kind&&t.parent.expression===t||(71===t.kind||143===t.kind)&&Am(t)||l(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment)),r}function Jd(t,n){switch(t.kind){case 71:return Hc(t);case 99:return au(t);case 97:return su(t);case 95:return ch;case 9:case 8:case 101:case 86:return Dd(t);case 196:return Nd(t);case 13:return uh;case 12:return Ph;case 177:return Ju(t,n);case 178:return Hu(t,n);case 179:return Il(t);case 180:return Vl(t);case 181:case 182:return D_(t);case 183:return A_(t);case 185:return jd(t.expression,n);case 199:return If(t);case 186:case 187:return W_(t,n);case 189:return nd(t);case 184:case 202:return w_(t);case 203:return O_(t);case 204:return P_(t);case 188:return td(t);case 190:return rd(t);case 191:return ad(t);case 192:return id(t);case 193:return od(t);case 194:return kd(t,n);case 195:return Ed(t,n);case 198:return Ku(t,n);case 200:return oh;case 197:return Cd(t);case 256:return El(t,n);case 249:return Qu(t);case 250:return Yu(t);case 254:return nl(t,n);case 251:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement");}return ah}function zd(t){t.expression&&ly(t.expression,e.Diagnostics.Type_expected),_m(t.constraint),_m(t.default);var n=dn(ve(t));rr(n)||l(t.constraint,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,qe(n));var r=er(n),a=or(n);r&&a&&ho(a,Tn(r,a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),i&&wf(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0);}function Ud(t){xg(t)||kg(t),Zp(t);var n=e.getContainingFunction(t);92&e.getModifierFlags(t)&&(152===(n=e.getContainingFunction(t)).kind&&e.nodeIsPresent(n.body)||l(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&n.body&&l(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),"this"===t.name.text&&(0!==e.indexOf(n.parameters,t)&&l(t,e.Diagnostics.A_this_parameter_must_be_the_first_parameter),152!==n.kind&&156!==n.kind&&161!==n.kind||l(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Ho(Lt(t.symbol))||l(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type);}function Vd(e,t){if(e)for(var n=0;n=0)if(n.parameters[r.parameterIndex].dotDotDotToken)l(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var i=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);ho(r.type,Rm(n.parameters[r.parameterIndex]),t.type,void 0,i);}else if(a){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=jr(ve(t));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o=0)return void(n&&l(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));wv.push(t.id);var _=kp(u,n,r);if(wv.pop(),!_)return;return a.awaitedTypeOfType=_}var d=ct(t,"then");if(!(d&&pr(d,0).length>0))return a.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),l(n,r));}function Sp(t){var n=wi(t.type);if(Ry>=2){if(n===ah)return ah;var r=ha(!0);if(r!==kh&&!Bt(n,r))return l(t.type,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ah}else{if(Cp(t.type),n===ah)return ah;var a=e.getEntityNameFromTypeNode(t.type);if(void 0===a)return l(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,qe(n)),ah;var i=ae(a,107455,!0),o=i?Lt(i):ah;if(o===ah)return 71===a.kind&&"Promise"===a.text&&Kt(n)===ha(!1)?l(t.type,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):l(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ah;var s=ba(!0);if(s===vh)return l(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ah;if(!ho(o,s,t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return ah;var c=a&&Zf(a),u=C(t.locals,c.text,107455);if(u)return l(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,c.text,e.entityNameToString(a)),ah}return xp(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Tp(t){var n=Ir(T_(t));if(!(1&n.flags)){var r,a,i=v_(t);switch(t.parent.kind){case 229:r=Xa([Lt(ve(t.parent)),mh]);break;case 146:r=mh,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=mh,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=Xa([wa(Rm(t.parent)),mh]);}ho(n,r,t,i,a);}}function Cp(t){var n=t&&e.getEntityNameFromTypeNode(t),r=n&&Zf(n),a=r&&N(r,r.text,8388608|(71===n.kind?793064:1920),void 0,void 0);a&&8388608&a.flags&&ke(a)&&!Zm(Z(a))&&te(a);}function Ep(t){return t.dotDotDotToken?e.getRestParameterElementType(t.type):t.type}function Dp(t){if(t.decorators&&e.nodeCanBeDecorated(t)){Iy.experimentalDecorators||l(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);var n=t.decorators[0];if(hg(n,8),146===t.kind&&hg(n,32),Iy.emitDecoratorMetadata)switch(hg(n,16),t.kind){case 229:var r=e.getFirstConstructorWithBody(t);if(r)for(var a=0,i=r.parameters;a=e.ModuleKind.ES2015)&&(zp(t,n,"require")||zp(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=ot(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&l(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function Hp(t,n){if(!(Ry>=4)&&zp(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=ot(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&l(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 Xp(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=ve(t);if(1&n.flags){var r=N(t,t.name.text,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&Al(r)){var a=e.getAncestor(r.valueDeclaration,227),i=208===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!(i&&(207===i.kind&&e.isFunctionLike(i.parent)||234===i.kind||233===i.kind||265===i.kind))){var o=Ue(r);l(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function Yp(t){function n(a){if(!e.isTypeNode(a)&&!e.isDeclarationName(a)){if(179===a.kind)return n(a.expression);if(71!==a.kind)return e.forEachChild(a,n);var i=N(a,a.text,8496063,void 0,void 0);if(i&&i!==eh&&i.valueDeclaration)if(i.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(i.valueDeclaration)===r){if(146===i.valueDeclaration.kind||176===i.valueDeclaration.kind){if(i.valueDeclaration.pos1)return ly(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function of(e){vy(e),jd(e.expression);}function sf(t){vy(t),jd(t.expression),_m(t.thenStatement),209===t.thenStatement.kind&&l(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),_m(t.elseStatement);}function cf(e){vy(e),_m(e.statement),jd(e.expression);}function uf(e){vy(e),jd(e.expression),_m(e.statement);}function lf(t){vy(t)||t.initializer&&227===t.initializer.kind&&iy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,tf):jd(t.initializer)),t.condition&&jd(t.condition),t.incrementor&&jd(t.incrementor),_m(t.statement),t.locals&&wp(t);}function _f(t){if(Gg(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&Ry<5&&hg(t,16384):Iy.downlevelIteration&&Ry<2&&hg(t,256)),227===t.initializer.kind)pf(t);else{var n=t.initializer,r=ff(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)yd(n,r||ah);else{var a=jd(n);ed(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&ho(r,a,n,void 0);}}_m(t.statement),t.locals&&wp(t);}function df(t){Gg(t);var n=Pl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&l(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),pf(t);}else{var a=t.initializer,i=jd(a);177===a.kind||178===a.kind?l(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):po(si(n),i)?ed(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):l(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}Vu(n,17350656)||l(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),_m(t.statement),t.locals&&wp(t);}function pf(e){var t=e.initializer;t.declarations.length>=1&&tf(t.declarations[0]);}function ff(e,t){return mf(Pl(e),e,!0,void 0!==t)}function mf(e,t,n,r){return ut(e)?e:gf(e,t,n,r,!0)||nh}function gf(t,n,r,a,i){var o=Ry>=2,s=!o&&Iy.downlevelIteration;if(o||s||a){var c=yf(t,o?n:void 0,a,a,i);if(c||o)return c}var u=t,_=!1,d=!1;if(r){if(65536&u.flags){var p=t.types,f=e.filter(p,function(e){return!(262178&e.flags)});f!==p&&(u=Xa(f,!0));}else 262178&u.flags&&(u=gh);if((d=u!==t)&&(Ry<1&&n&&(l(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),8192&u.flags))return uh}if(!Xo(u))return n&&!_&&l(n,!r||d?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,qe(u)),d?uh:void 0;var m=yr(u,1);return d&&m?262178&m.flags?uh:Xa([m,uh],!0):m}function yf(t,n,r,a,i){if(!ut(t)){var o=t;if(r?o.iteratedTypeOfAsyncIterable:o.iteratedTypeOfIterable)return r?o.iteratedTypeOfAsyncIterable:o.iteratedTypeOfIterable;if(r&&(Bt(t,xa(!1))||Bt(t,Sa(!1))))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0];if((!r||a)&&(Bt(t,Ta(!1))||Bt(t,Ea(!1))))return r?o.iteratedTypeOfAsyncIterable=t.typeArguments[0]:o.iteratedTypeOfIterable=t.typeArguments[0];var s,c=!1;if(r){if(ut(u=ct(t,e.getPropertyNameForKnownSymbolName("asyncIterator"))))return;s=u&&pr(u,0);}if(!r||a&&!e.some(s)){var u=ct(t,e.getPropertyNameForKnownSymbolName("iterator"));if(ut(u))return;s=u&&pr(u,0),c=!0;}if(e.some(s)){var _=hf(Xa(e.map(s,Ir),!0),n,!c);return i&&n&&_&&ho(t,c?Fa(_):Oa(_),n),r?o.iteratedTypeOfAsyncIterable=_:o.iteratedTypeOfIterable=_}n&&l(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);}}function hf(t,n,r){if(!ut(t)){var a=t;if(r?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator)return r?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator;if(Bt(t,(r?ka:Ca)(!1)))return r?a.iteratedTypeOfAsyncIterator=t.typeArguments[0]:a.iteratedTypeOfIterator=t.typeArguments[0];var i=ct(t,"next");if(!ut(i)){var o=i?pr(i,0):Py;if(0!==o.length){var s=Xa(e.map(o,Ir),!0);if(!(ut(s)||r&&(s=vp(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),ut(s)))){var c=s&&ct(s,"value");if(c)return r?a.iteratedTypeOfAsyncIterator=c:a.iteratedTypeOfIterator=c;n&&l(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&&l(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function vf(e,t){if(!ut(e))return yf(e,void 0,t,!1,!1)||hf(e,void 0,t)}function bf(e){vy(e)||Zg(e);}function xf(t){return!(153!==t.kind||!e.getSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154)))}function kf(t,n){var r=2==(3&e.getFunctionFlags(t))?bp(n):n;return r&&sd(r,1025)}function Sf(t){vy(t)||e.getContainingFunction(t)||ly(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Ir(Nr(n));if(Ky||t.expression||8192&r.flags){var a=t.expression?wd(t.expression):ih,i=e.getFunctionFlags(n);if(1&i)return;if(154===n.kind)t.expression&&l(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!ho(a,r,t)&&l(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(n.type||xf(n))if(2&i){var o=bp(r),s=xp(a,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&ho(s,o,t);}else ho(a,r,t);}else 152!==n.kind&&Iy.noImplicitReturns&&!kf(n,r)&&l(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function Tf(t){vy(t)||16384&t.flags&&ly(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),jd(t.expression);var n=e.getSourceFileOfNode(t);if(!uy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;_y(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function Cf(t){vy(t);var n,r=!1,a=jd(t.expression),o=Zo(a);e.forEach(t.caseBlock.clauses,function(s){if(258===s.kind&&!r)if(void 0===n)n=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos);_y(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&&257===s.kind){var l=s,_=jd(l.expression),d=Zo(_),p=a;d&&o||(_=d?es(_):_,p=es(a)),bd(p,_)||vo(_,p,l.expression,void 0);}e.forEach(s.statements,_m);}),t.caseBlock.locals&&wp(t.caseBlock);}function Ef(t){vy(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.text===t.label.text){var r=e.getSourceFileOfNode(t);return dy(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),_m(t.statement);}function Df(t){vy(t)||void 0===t.expression&&xy(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&jd(t.expression);}function Nf(t){vy(t),jp(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)ly(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)ly(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)&&dy(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}jp(n.block);}t.finallyBlock&&jp(t.finallyBlock);}function Af(t){function n(t,n,r,a,i,o){if(i){var s=t.valueDeclaration;if(1!==o||(s?zu(e.getNameOfDeclaration(s)):$u(t.name))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?a?c=a:2&k(r)&&(c=e.forEach(Qt(r),function(e){return Xn(e,t.name)&&yr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!po(n,i)&&l(c,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,Ue(t),qe(n),qe(i));}}}var r=Jr(t.symbol,1),a=Jr(t.symbol,0),i=yr(t,0),o=yr(t,1);if((i||o)&&(e.forEach(Hn(t),function(e){var s=Lt(e);n(e,s,t,a,i,0),n(e,s,t,r,o,1);}),1&k(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return a>>>s;case 45:return a<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&l(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var a=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(a?l(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0);});}}}function Hf(t){for(var n=0,r=t.declarations;n1&&!r&&e.isInstantiatedModule(t,Iy.preserveConstEnums||Iy.isolatedModules)){var s=Hf(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?l(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=a;s0?e.concatenate(o,i):i}return e.forEach(r.getSourceFiles(),fm),Ov.getDiagnostics()}function hm(){return vm(),Ov.getGlobalDiagnostics()}function vm(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function bm(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function xm(t,n){function r(e,t){if(e.flags&t){var n=e.name;i.has(n)||i.set(n,e);}}function a(e,t){t&&e.forEach(function(e){r(e,t);});}if(bm(t))return[];var i=e.createMap(),o=0;return function(){for(;t;){switch(t.locals&&!T(t)&&a(t.locals,n),t.kind){case 265:if(!e.isExternalOrCommonJsModule(t))break;case 233:a(ve(t).exports,8914931&n);break;case 232:a(ve(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:32&o||a(ve(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(qy,n),o=e.getModifierFlags(t),t=t.parent;}a(lv,n);}(),xr(i)}function km(e){return 71===e.kind&&Sm(e.parent)&&e.parent.name===e}function Sm(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function Tm(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&(159===t.parent.kind||277===t.parent.kind)}function Cm(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function Em(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function Dm(e,t){return!!Em(e,function(e){return e===t})}function Nm(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Am(e){return void 0!==Nm(e)}function wm(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return ve(t.parent);case 4:case 2:case 5:return ve(t.parent.parent)}}function Om(t){if(e.isDeclarationName(t))return ve(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=wm(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ae(t,9289727);if(179!==t.kind&&Am(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),ne(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Cm(t)){var a=0;201===t.parent.kind?(a=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(a|=107455)):a=1920;var i=ae(t,a|=8388608);if(i)return i}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&el(t)?al(t.parent):ae(t,107455,!1,!0);if(179===t.kind)return(o=x(t).resolvedSymbol)||Il(t),x(t).resolvedSymbol;if(143===t.kind){var o=x(t).resolvedSymbol;return o||Rl(t),x(t).resolvedSymbol}}else{if(Tm(t))return ae(t,a=159===t.parent.kind||277===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return yl(t.parent)}return 158===t.parent.kind?ae(t,1):void 0}function Pm(t){if(265===t.kind)return e.isExternalModule(t)?he(t.symbol):void 0;if(!bm(t)){if(e.isDeclarationName(t))return ve(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ve(t.parent.parent);if(71===t.kind){if(Am(t))return Om(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=Rm(t.parent.parent),r=n&&_r(n,t.text);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return Om(t);case 99:var a=e.getThisContainer(t,!1);if(e.isFunctionLike(a)){var i=Nr(a);if(i.thisParameter)return i.thisParameter}case 97:return(e.isPartOfExpression(t)?Bd(t):wi(t)).symbol;case 169:return wi(t).symbol;case 123:var o=t.parent;if(o&&152===o.kind)return o.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t)return ie(t,t);if(e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1))return ie(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var s=Bd(t.parent.expression);if(s===ah)return;var c=sr(s);if(c===ah)return;return _r(c,t.text)}}}}function Fm(e){if(e&&262===e.kind)return ae(e.name,8496063)}function Im(e){return e.parent.parent.moduleSpecifier?$(e.parent.parent,e):ae(e.propertyName||e.name,9289727)}function Rm(t){if(bm(t))return ah;if(e.isPartOfTypeNode(t)){var n=wi(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=Tn(n,(r=Rm(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return Bm(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=fn(ve(e.getContainingClass(t))),a=Qt(r)[0];return a&&Tn(a,r.thisType)}if(Sm(t))return fn(i=ve(t));if(km(t))return(i=Pm(t))&&fn(i);if(e.isDeclaration(t))return Lt(i=ve(t));if(e.isDeclarationName(t))return(i=Pm(t))&&Lt(i);if(e.isBindingPattern(t))return ht(t.parent,!0);if(Am(t)){var i=Pm(t),o=i&&fn(i);return o!==ah?o:Lt(i)}return ah}function Mm(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return yd(t,(n=ff(t.parent.expression,t.parent.awaitModifier))||ah);if(194===t.parent.kind){var n=Bd(t.parent.right);return yd(t,n||ah)}if(261===t.parent.kind)return fd(Mm(t.parent.parent)||ah,t.parent);e.Debug.assert(177===t.parent.kind);var r=Mm(t.parent),a=mf(r||ah,t.parent,!1,!1)||ah;return gd(t.parent,r,e.indexOf(t.parent.elements,t),a||ah)}function Lm(e){var t=Mm(e.parent.parent);return t&&_r(t,e.text)}function Bm(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Si(Bd(t))}function Km(t){var n=ve(t.parent);return 32&e.getModifierFlags(t)?Lt(n):fn(n)}function jm(t){var n=bn(Qn(t=sr(t)));return(pr(t,0).length||pr(t,1).length)&&e.forEach(Qn(Eh),function(e){n.has(e.name)||n.set(e.name,e);}),Ne(n)}function Jm(t){if(6&S(t)){var n=[],r=t.name;return e.forEach(b(t).containingType.types,function(e){var t=_r(e,r);t&&n.push(t);}),n}if(134217728&t.flags){if(t.leftSpread){var a=t;return Jm(a.leftSpread).concat(Jm(a.rightSpread))}if(t.syntheticOrigin)return Jm(t.syntheticOrigin);for(var i=void 0,o=t;o=b(o).target;)i=o;if(i)return[i]}return[t]}function zm(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(179===t.parent.kind&&t.parent.name===t)&&pg(t)===qy)}function Um(t){function n(e){return(e=Q(e))&&!!(107455&e.flags)}var r=ie(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var a=le(r),i=b(r=ce(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=a?!!(107455&r.flags):e.forEachEntry(me(r),n)),i.exportsSomeValue}function Vm(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function qm(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=pg(t,Vm(t));if(r){if(1048576&r.flags){var a=he(r.exportSymbol);if(!n&&944&a.flags)return;r=a;}var i=be(r);if(i){if(512&i.flags&&265===i.valueDeclaration.kind){var o=i.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ve(t)===i})}}}}function $m(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=pg(t);if(n&&8388608&n.flags)return K(n)}}function Gm(t){if(418&t.flags){var n=b(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var a=x(t.valueDeclaration);if(N(r.parent,t.name,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&a.flags){var i=262144&a.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||i&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function Wm(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=pg(t);if(n&&Gm(n))return n.valueDeclaration}}function Hm(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=ve(t);if(n)return Gm(n)}return!1}function Xm(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Qm(ve(t)||eh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,Xm);case 243:return!t.expression||71!==t.expression.kind||Qm(ve(t)||eh)}return!1}function Ym(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Qm(ve(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Qm(e){var t=Z(e);return t===eh||107455&t.flags&&(Iy.preserveConstEnums||!Zm(t))}function Zm(e){return ld(e)||e.constEnumOnlyModule}function eg(t,n){if(e.isAliasSymbolDeclaration(t)){var r=ve(t);if(r&&b(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return eg(e,n)})}function tg(t){if(e.nodeIsPresent(t.body)){var n=Or(ve(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function ng(t){return Ky&&!Tr(t)&&t.initializer&&!(92&e.getModifierFlags(t))}function rg(e){return x(e).flags}function ag(e){return Gf(e.parent),x(e).enumMemberValue}function ig(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function og(t){if(264===t.kind)return ag(t);var n=x(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?ag(n.valueDeclaration):void 0}function sg(e){return 32768&e.flags&&pr(e,0).length>0}function cg(t,n){var r=ae(t,107455,!0,!1,n),a=ae(t,793064,!0,!1,n);if(r&&r===a){var i=va(!1);if(i&&r===i)return e.TypeReferenceSerializationKind.Promise;var o=Lt(r);if(o&&Gt(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.ObjectType;var s=fn(a);return s===ah?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:cd(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:cd(s,136)?e.TypeReferenceSerializationKind.BooleanType:cd(s,340)?e.TypeReferenceSerializationKind.NumberLikeType:cd(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ns(s)?e.TypeReferenceSerializationKind.ArrayLikeType:cd(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:sg(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Ho(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function ug(e,t,n,r){var a=ve(e),i=!a||133120&a.flags?ah:ts(Lt(a));4096&n&&(i=is(i,2048)),Ze().buildTypeDisplay(i,r,t,n);}function lg(e,t,n,r){var a=Nr(e);Ze().buildTypeDisplay(Ir(a),r,t,n);}function _g(e,t,n,r){var a=ms(Bm(e));Ze().buildTypeDisplay(a,r,t,n);}function dg(e){return lv.has(e)}function pg(t,n){var r=x(t).resolvedSymbol;if(r)return r;var a=t;if(n){var i=t.parent;e.isDeclaration(i)&&t===i.name&&(a=ot(i));}return N(a,t.text,9544639,void 0,void 0)}function fg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=pg(t);if(n)return xe(n).valueDeclaration}}function mg(t){if(e.isConst(t)){var n=Lt(ve(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function gg(e,t){var n=Lt(ve(e));t.writeStringLiteral(Ye(n));}function yg(t){var n=e.getExternalModuleName(t),r=oe(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function hg(t,n){if((Ty&n)!==n&&Iy.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,Iy)&&!e.isInAmbientContext(t)){var a=bg(r,t);if(a!==eh)for(var i=n&~Ty,o=1;o<=16384;o<<=1)if(i&o){var s=vg(o);C(a.exports,e.escapeIdentifier(s),107455)||l(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}Ty|=n;}}}function vg(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";default:e.Debug.fail("Unrecognized helper.");}}function bg(t,n){return Cy||(Cy=se(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||eh),Cy}function xg(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?ly(t,e.Diagnostics.Decorators_are_not_valid_here):ly(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return ly(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function kg(t){var n=Sg(t);if(void 0!==n)return n;for(var r,a,i,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function Eg(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return dy(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Dg(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return _y(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function Ng(t,n){if(Dg(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return _y(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Ag(t){for(var n=!1,r=t.length,a=0;a".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function Mg(e,t){return Dg(t)||Rg(e,t)}function Lg(t,n){if(n)for(var r=e.getSourceFileOfNode(t),a=0,i=n;a1)return ly(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return ly(o,e.Diagnostics.implements_clause_already_seen);r=!0;}Kg(o);}}function Jg(t){var n=!1;if(t.heritageClauses)for(var r=0,a=t.heritageClauses;r1){i=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ly(n.declarations[1],i)}var a=r[0];if(a.initializer){var i=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return dy(a.name,i)}if(a.type)return dy(a,i=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function Wg(t){var n=t.kind;if(Ry<1)return dy(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return dy(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(!(void 0!==t.body||128&e.getModifierFlags(t)))return _y(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&128&e.getModifierFlags(t))return dy(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return dy(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Hg(t))return dy(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return dy(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return dy(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return dy(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return dy(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Hg(e){return Xg(e)||e.parameters.length===(153===e.kind?0:1)}function Xg(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Yg(t,n){if(e.isDynamicName(t))return dy(t,n)}function Qg(t){if(af(t)||wg(t)||Ug(t))return!0;if(178===t.parent.kind){if(Vg(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return _y(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Yg(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Yg(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Yg(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Yg(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Zg(t){for(var n=t;n;){if(e.isFunctionLike(n))return dy(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.text===t.label.text)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&dy(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return dy(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return dy(t,r)}function ey(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return dy(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return dy(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return _y(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function ty(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function ny(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){n="=".length;return _y(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!ty(t.initializer))return dy(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!ty(t.initializer))){var n="=".length;return _y(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return dy(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return dy(t,e.Diagnostics.const_declarations_must_be_initialized)}return Iy.module===e.ModuleKind.ES2015||Iy.module===e.ModuleKind.System||Iy.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||ry(t.name),(e.isLet(t)||e.isConst(t))&&ay(t.name)}function ry(t){if(71===t.kind){if("__esModule"===e.unescapeIdentifier(t.text))return dy(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function ly(t,n,r,a,i){var o=e.getSourceFileOfNode(t);if(!uy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Ov.add(e.createFileDiagnostic(o,s.start,s.length,n,r,a,i)),!0}}function _y(t,n,r,a,i,o,s){if(!uy(t))return Ov.add(e.createFileDiagnostic(t,n,r,a,i,o,s)),!0}function dy(t,n,r,a,i){if(!uy(e.getSourceFileOfNode(t)))return Ov.add(e.createDiagnosticForNode(t,n,r,a,i)),!0}function py(t){if(t.typeParameters)return _y(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function fy(t){if(t.type)return dy(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function my(t){if(e.isClassLike(t.parent)){if(Yg(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Yg(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return dy(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Yg(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return dy(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return ly(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function gy(t){return!(230===t.kind||231===t.kind||238===t.kind||237===t.kind||244===t.kind||243===t.kind||236===t.kind||515&e.getModifierFlags(t))&&ly(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function yy(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(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,a=(r?"-":"")+"0o"+t.text;return dy(r?t.parent:t,n,a)}}}function xy(t,n,r,a,i){var o=e.getSourceFileOfNode(t);if(!uy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Ov.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,a,i)),!0}}function ky(){var e=[];return lv.forEach(function(t,n){a.test(n)&&e.push(t);}),e}var Sy,Ty,Cy,Ey=e.objectAllocator.getSymbolConstructor(),Dy=e.objectAllocator.getTypeConstructor(),Ny=e.objectAllocator.getSignatureConstructor(),Ay=0,wy=0,Oy=0,Py=[],Fy=e.createMap(),Iy=r.getCompilerOptions(),Ry=e.getEmitScriptTarget(Iy),My=e.getEmitModuleKind(Iy),Ly=!!Iy.noUnusedLocals||!!Iy.noUnusedParameters,By=void 0!==Iy.allowSyntheticDefaultImports?Iy.allowSyntheticDefaultImports:My===e.ModuleKind.System,Ky=void 0===Iy.strictNullChecks?Iy.strict:Iy.strictNullChecks,jy=void 0===Iy.noImplicitAny?Iy.strict:Iy.noImplicitAny,Jy=void 0===Iy.noImplicitThis?Iy.strict:Iy.noImplicitThis,zy=function(){function t(e){if(i){var t=179===e.kind||71===e.kind&&Rs(e)?1156031:794600,r=ae(e,t,!0);return r&&r!==eh?n(r,t):void 0}}function n(t,n){if(i&&a(t)){for(var r,o=0,s=t.declarations;o0){var v=o(r.slice(0,Yr(t)));if(v&&v.length>0)return e.createTupleTypeNode(v)}c.encounteredError||c.flags&e.NodeBuilderFlags.allowEmptyTuple||(c.encounteredError=!0);}(t);if(3&p){e.Debug.assert(!!(32768&t.flags));f=s(t.symbol,!1);return e.createTypeReferenceNode(f,void 0)}if(16384&t.flags){f=s(t.symbol,!1);return e.createTypeReferenceNode(f,void 0)}if(c.checkAlias&&t.aliasSymbol){var f=s(t.aliasSymbol,!1),m=t.aliasTypeArguments&&o(t.aliasTypeArguments);return e.createTypeReferenceNode(f,m)}if(c.checkAlias=!1,65536&t.flags){var g=Ge(t.types),y=g&&o(g);return y&&y.length>0?e.createUnionOrIntersectionTypeNode(166,y):void(c.encounteredError||c.flags&e.NodeBuilderFlags.allowEmptyUnionOrIntersection||(c.encounteredError=!0))}if(131072&t.flags)return e.createUnionOrIntersectionTypeNode(167,o(t.types));if(48&p)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Ot(n)||896&n.flags||function(){var t=!!(8192&n.flags&&e.forEach(n.declarations,function(t){return 32&e.getModifierFlags(t)})),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(c.symbolStack,n)}())return _(n);if(e.contains(c.symbolStack,n)){var r=He(t);if(r){var a=s(r,!1);return e.createTypeReferenceNode(a,void 0)}return e.createKeywordTypeNode(119)}c.symbolStack||(c.symbolStack=[]),c.symbolStack.push(n);var i=l(t);return c.symbolStack.pop(),i}return l(t)}(t);if(262144&t.flags){v=n(t.type);return e.createTypeOperatorNode(v)}if(524288&t.flags){var h=n(t.objectType),v=n(t.indexType);return e.createIndexedAccessTypeNode(h,v)}e.Debug.fail("Should be unreachable.");}else c.encounteredError=!0;}function r(t,r){var a=e.createKeywordTypeNode(0===r?136:133),i=e.getNameFromIndexInfo(t),o=e.createParameter(void 0,void 0,void 0,i,void 0,a,void 0),s=n(t.type);return e.createIndexSignatureDeclaration(void 0,t.isReadonly?[e.createToken(131)]:void 0,[o],s)}function a(t,r){var a,s=t.typeParameters&&t.typeParameters.map(function(e){return i(e)}),c=t.parameters.map(function(e){return o(e)});if(t.typePredicate){var u=t.typePredicate,l=1===u.kind?e.createIdentifier(u.parameterName):e.createThisTypeNode(),_=n(u.type);a=e.createTypePredicateNode(l,_);}else{var d=Ir(t);a=d&&n(d);}var p=a&&119!==a.kind?a:void 0;return e.createSignatureDeclaration(r,s,c,p)}function i(t){var r=qr(t),a=r&&n(r),i=or(t),o=i&&n(i),c=s(t.symbol,!0);return e.createTypeParameterDeclaration(c,a,o)}function o(t){var r=e.getDeclarationOfKind(t,146),a=n(Lt(t));return e.createParameter(r.decorators,r.modifiers,r.dotDotDotToken&&e.createToken(24),e.getSynthesizedClone(r.name),r.questionToken&&e.createToken(55),a,r.initializer)}function s(t,n){function r(t,n){e.Debug.assert(t&&0<=n&&n0){var s=t[n-1],u=void 0;if(1&S(a)?u=qt(s):524384&Kf(s).flags&&(u=Vt(a)),u&&u.length>0){c.encounteredError||c.flags&e.NodeBuilderFlags.allowTypeParameterInQualifiedName||(c.encounteredError=!0);var l=e.getSingleLineStringWriter();Ze().buildDisplayForTypeParametersAndDelimiters(u,l,c.enclosingDeclaration,0),o=l.string(),e.releaseStringWriter(l);}}var _=i(a),d=o.length>0?_+"<"+o+">":_,p=e.createIdentifier(d);return n>0?e.createQualifiedName(r(t,n-1),p):p}function a(t,n,r){var i,o=Fe(t,c.enclosingDeclaration,n,!1);if(!o||Ie(o[0],c.enclosingDeclaration,1===o.length?n:Pe(n))){var s=be(o?o[0]:t);if(s){var u=a(s,Pe(n),!1);u&&(i=s,o=u.concat(o||[t]));}}return o||(!r&&(!i&&e.forEach(t.declarations,Le)||6144&t.flags)?void 0:[t])}function i(t){var n=e.firstOrUndefined(t.declarations);if(n){var r=e.getNameOfDeclaration(n);if(r)return e.declarationNameToString(r);if(n.parent&&226===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(c.encounteredError||c.flags&e.NodeBuilderFlags.allowAnonymousIdentifier||(c.encounteredError=!0),n.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return t.name}var o;return!(262144&t.flags)&&c.enclosingDeclaration?(o=a(t,0,!0),e.Debug.assert(o&&o.length>0)):o=[t],!n||1===o.length||c.encounteredError||c.flags&e.NodeBuilderFlags.allowQualifedNameInPlaceOfIdentifier||(c.encounteredError=!0),r(o,o.length-1)}var c;return{typeToTypeNode:function(e,r,a){c=t(r,a);var i=n(e);return c.encounteredError?void 0:i},indexInfoToIndexSignatureDeclaration:function(e,n,a,i){c=t(a,i);var o=r(e,n);return c.encounteredError?void 0:o},signatureToSignatureDeclaration:function(e,n,r,i){c=t(r,i);var o=a(e,n);return c.encounteredError?void 0:o}}}(),Vy=_(4,"undefined");Vy.declarations=[];var qy=_(4,"arguments"),$y={getNodeCount:function(){return e.sum(r.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(r.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(r.getSourceFiles(),"symbolCount")+wy},getTypeCount:function(){return Ay},isUndefinedSymbol:function(e){return e===Vy},isArgumentsSymbol:function(e){return e===qy},isUnknownSymbol:function(e){return e===eh},getMergedSymbol:he,getDiagnostics:gm,getGlobalDiagnostics:hm,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?zc(t,n):ah},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."),E(t,n)},getDeclaredTypeOfSymbol:fn,getPropertiesOfType:Qn,getPropertyOfType:_r,getIndexInfoOfType:gr,getSignaturesOfType:pr,getIndexTypeOfType:yr,getBaseTypes:Qt,getBaseTypeOfLiteralType:es,getWidenedType:ms,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?wi(t):ah},getParameterType:I_,getReturnTypeOfSignature:Ir,getNonNullableType:ss,typeToTypeNode:Uy.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Uy.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Uy.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?xm(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?Pm(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?Fm(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?Im(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?Rm(t):ah},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?Lm(t):void 0},signatureToString:function(t,n,r,a){return Ve(t,e.getParseTreeNode(n),r,a)},typeToString:function(t,n,r){return qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:Ze,symbolToString:function(t,n,r){return Ue(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:jm,getRootSymbols:Jm,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?Ou(t):void 0},getFullyQualifiedName:re,getResolvedSignature:function(t,n){return t=e.getParseTreeNode(t,e.isCallLikeExpression),t?T_(t,n):void 0},getConstantValue:function(t){return t=e.getParseTreeNode(t,ig),t?og(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&jl(t,n)},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Nr(t):void 0},isImplementationOfOverload:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?tg(t):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(8388608&t.flags),"Should only get Alias here.");var n=b(t);if(!n.immediateTarget){var r=K(t);e.Debug.assert(!!r),n.immediateTarget=Y(r,!0);}return n.immediateTarget},getAliasedSymbol:Z,getEmitResolver:u,getExportsOfModule:_e,getExportsAndPropertiesOfModule:de,getAmbientModules:ky,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?ml(t):void 0},getJsxIntrinsicTagNames:xl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Tr(t)},tryGetMemberInModuleExports:pe,tryFindAmbientModuleWithoutAugmentations:function(e){return Sr(e,!1)},getApparentType:sr},Gy=[],Wy=e.createMap(),Hy=e.createMap(),Xy=e.createMap(),Yy=e.createMap(),Qy=e.createMap(),Zy=[],eh=_(4,"unknown"),th=_(0,"__resolving__"),nh=Ce(1,"any"),rh=Ce(1,"any"),ah=Ce(1,"unknown"),ih=Ce(2048,"undefined"),oh=Ky?ih:Ce(2099200,"undefined"),sh=Ce(4096,"null"),ch=Ky?sh:Ce(2101248,"null"),uh=Ce(2,"string"),lh=Ce(4,"number"),_h=Ce(128,"true"),dh=Ce(128,"false"),ph=function(e){var t=Xa(e);return t.flags|=8,t.intrinsicName="boolean",t}([_h,dh]),fh=Ce(512,"symbol"),mh=Ce(1024,"void"),gh=Ce(8192,"never"),yh=Ce(8192,"never"),hh=Ce(16777216,"object"),vh=we(void 0,Fy,Py,Py,void 0,void 0),bh=_(2048,"__type");bh.members=e.createMap();var xh=we(bh,Fy,Py,Py,void 0,void 0),kh=we(void 0,Fy,Py,Py,void 0,void 0);kh.instantiations=e.createMap();var Sh=we(void 0,Fy,Py,Py,void 0,void 0);Sh.flags|=8388608;var Th,Ch,Eh,Dh,Nh,Ah,wh,Oh,Ph,Fh,Ih,Rh,Mh,Lh,Bh,Kh,jh,Jh,zh,Uh,Vh,qh,$h,Gh,Wh,Hh,Xh,Yh,Qh,Zh,ev,tv,nv=we(void 0,Fy,Py,Py,void 0,void 0),rv=we(void 0,Fy,Py,Py,void 0,void 0),av=Nn(void 0,void 0,void 0,Py,nh,void 0,0,!1,!1),iv=Nn(void 0,void 0,void 0,Py,ah,void 0,0,!1,!1),ov=Nn(void 0,void 0,void 0,Py,nh,void 0,0,!1,!1),sv=Nn(void 0,void 0,void 0,Py,yh,void 0,0,!1,!1),cv=zr(uh,!0),uv=zr(nh,!1),lv=e.createMap(),_v=0,dv=0,pv=0,fv=Ti(32,""),mv=Ti(64,"0"),gv=[],yv=[],hv=[],vv=[],bv=[],xv=[],kv=[],Sv=[],Tv=[],Cv=[],Ev=[],Dv=[],Nv=[],Av=[],wv=[],Ov=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts";}(tv||(tv={}));var Pv,Fv,Iv,Rv,Mv,Lv,Bv=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Kv=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),jv=e.createMapFromTemplate({string:uh,number:lh,boolean:ph,symbol:fh,undefined:ih}),Jv=function(){return Xa(e.convertToArray(Bv.keys(),function(e){return Ti(32,e)}))}(),zv=!1,Uv=!1,Vv=e.createMap(),qv={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},$v=e.createMap(),Gv=e.createMap(),Wv=e.createMap(),Hv=e.createMap(),Xv=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType";}(Lv||(Lv={}));var Yv;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential";}(Yv||(Yv={}));var Qv=e.createMap();return Qv.set(Vy.name,Vy),function(){for(var t=0,n=r.getSourceFiles();ts-a)&&(i=s-a),(a>0||i0&&_<=142||169===_)return o;switch(o.kind){case 206:case 209:case 200:case 225:case 298:case 247:return o;case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 155:return e.updateCallSignatureDeclaration(o,u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignatureDeclaration(o,u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 157:return e.updateIndexSignatureDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:case 167:return e.updateUnionOrIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:throw e.Debug.fail("not implemented.");case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameter),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 148:return e.updatePropertySignature(o,t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),a(o.parameters,s,c,u),i(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),a(o.parameters,s,c,u),i(o.body,s,c));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 296:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=a,e.visitFunctionBody=i,e.visitEachChild=o;}(r||(r={})),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,a,i,o){if(void 0===r)return a;var s=o?n:e.reduceLeft,c=o||i,u=r.kind;if(u>0&&u<=142)return a;if(u>=158&&u<=173)return a;var l=a;switch(r.kind){case 206:case 209:case 200:case 225:case 295:break;case 143:l=t(r.left,i,l),l=t(r.right,i,l);break;case 144:l=t(r.expression,i,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 147:l=t(r.expression,i,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,i,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.parameters,c,l),l=t(r.body,i,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,i,l),l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,i,l),l=t(r.name,i,l);break;case 180:l=t(r.expression,i,l),l=t(r.argumentExpression,i,l);break;case 181:case 182:l=t(r.expression,i,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,i,l),l=t(r.template,i,l);break;case 184:l=t(r.type,i,l),l=t(r.expression,i,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,i,l);break;case 192:case 193:l=t(r.operand,i,l);break;case 194:l=t(r.left,i,l),l=t(r.right,i,l);break;case 195:l=t(r.condition,i,l),l=t(r.whenTrue,i,l),l=t(r.whenFalse,i,l);break;case 196:l=t(r.head,i,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,i,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,i,l),l=t(r.type,i,l);break;case 203:l=t(r.expression,i,l);break;case 205:l=t(r.expression,i,l),l=t(r.literal,i,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,i,l);break;case 210:l=t(r.expression,i,l);break;case 211:l=t(r.expression,i,l),l=t(r.thenStatement,i,l),l=t(r.elseStatement,i,l);break;case 212:l=t(r.statement,i,l),l=t(r.expression,i,l);break;case 213:case 220:l=t(r.expression,i,l),l=t(r.statement,i,l);break;case 214:l=t(r.initializer,i,l),l=t(r.condition,i,l),l=t(r.incrementor,i,l),l=t(r.statement,i,l);break;case 215:case 216:l=t(r.initializer,i,l),l=t(r.expression,i,l),l=t(r.statement,i,l);break;case 219:case 223:l=t(r.expression,i,l);break;case 221:l=t(r.expression,i,l),l=t(r.caseBlock,i,l);break;case 222:l=t(r.label,i,l),l=t(r.statement,i,l);break;case 224:l=t(r.tryBlock,i,l),l=t(r.catchClause,i,l),l=t(r.finallyBlock,i,l);break;case 226:l=t(r.name,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.body,i,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.moduleReference,i,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,i,l),l=t(r.moduleSpecifier,i,l);break;case 239:l=t(r.name,i,l),l=t(r.namedBindings,i,l);break;case 240:l=t(r.name,i,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,i,l),l=t(r.name,i,l);break;case 243:l=e.reduceLeft(r.decorators,i,l),l=e.reduceLeft(r.modifiers,i,l),l=t(r.expression,i,l);break;case 244:l=e.reduceLeft(r.decorators,i,l),l=e.reduceLeft(r.modifiers,i,l),l=t(r.exportClause,i,l),l=t(r.moduleSpecifier,i,l);break;case 248:l=t(r.expression,i,l);break;case 249:l=t(r.openingElement,i,l),l=e.reduceLeft(r.children,i,l),l=t(r.closingElement,i,l);break;case 250:case 251:l=t(r.tagName,i,l),l=t(r.attributes,i,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,i,l);break;case 253:l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 255:case 256:l=t(r.expression,i,l);break;case 257:l=t(r.expression,i,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,i,l),l=t(r.block,i,l);break;case 261:l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 262:l=t(r.name,i,l),l=t(r.objectAssignmentInitializer,i,l);break;case 263:l=t(r.expression,i,l);break;case 264:l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 265:l=s(r.statements,c,l);break;case 296:l=t(r.expression,i,l);}return l}function a(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function i(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,a=e;r=1)||1572864&f.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){_&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),i,o,a),_=void 0);var y=s(t,i,g);e.isComputedPropertyName(g)&&(d=e.append(d,y.argumentExpression)),r(t,f,y,f);}else _=e.append(_,f);}}_&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),i,o,a);}function i(t,n,a,i,o){var s=e.getElementsOfBindingOrAssignmentPattern(a),u=s.length;t.level<1&&t.downlevelIteration?i=c(t,e.createReadHelper(t.context,i,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o):1!==u&&(t.level<1||0===u)&&(i=c(t,i,!e.isDeclarationBindingElement(n)||0!==u,o));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var m=e.createArraySlice(i,d);r(t,p,m,p);}}else r(t,p,m=e.createElementAccess(i,d),p);}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),i,o,a),_)for(var g=0,y=_;g0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,x)}function x(e){return void 0!==e.decorators&&e.decorators.length>0}function k(t){var n=I(t,!0),r=void 0!==e.getClassExtendsHeritageClauseElement(t),a=b(t),i=t.name;!i&&(n.length>0||e.childIsDecorated(t))&&(i=e.getGeneratedNameForNode(t));var o=a?T(t,i,r):S(t,i,r,n.length>0),s=[o];return n.length&&B(s,n,e.getLocalName(t)),Q(s,t,!1),Q(s,t,!0),te(s,t),dt(t)?yt(s,t):a&&(mt(t)?s.push(e.createExportDefault(e.getLocalName(t,!1,!0))):ft(t)&&s.push(e.createExternalModuleExport(e.getLocalName(t,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function S(t,n,r,a){var i=e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,y,e.isModifier),n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,r)),o=e.getEmitFlags(t);return a&&(o|=32),e.setTextRange(i,t),e.setOriginalNode(i,t),e.setEmitFlags(i,o),i}function T(t,n,r){var a=e.moveRangePastDecorators(t),i=St(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,r),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,a);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,a),e.setCommentRange(_,t),_}function C(t){var n=I(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),a=E(t,e.some(r,function(e){return 85===e.token})),i=e.createClassExpression(void 0,t.name,void 0,r,a);if(e.setOriginalNode(i,t),e.setTextRange(i,t),n.length>0){var o=[],s=e.createTempVariable(qt);return 8388608&$t.getNodeCheckFlags(t)&&(Dt(),an[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(i,65536|e.getEmitFlags(i)),o.push(e.startOnNewLine(e.createAssignment(s,i))),e.addRange(o,K(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return i}function E(t,n){var r=[],a=D(t,n);return a&&r.push(a),e.addRange(r,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function D(n,r){var a=e.forEach(n.members,M),i=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!a&&!i)return e.visitEachChild(o,u,t);var s=N(o),c=A(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function N(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function A(t,n,r){var a=[],i=0;if(Ut(),n){i=w(n,a);var o=O(n);e.addRange(a,e.map(o,F));}else r&&a.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return B(a,I(t,!1),e.createThis()),n&&e.addRange(a,e.visitNodes(n.body.statements,u,e.isStatement,i)),a=e.mergeLexicalEnvironment(a,Vt()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(a),n?n.body.statements:t.members),!0),n?n.body:void 0)}function w(t,n){if(t.body){var r=t.body.statements,a=e.addPrologue(n,r,!1,u);if(a===r.length)return a;var i=r[a];return 210===i.kind&&e.isSuperCall(i.expression)?(n.push(e.visitNode(i,u,e.isStatement)),a+1):a}return 0}function O(t){return e.filter(t.parameters,P)}function P(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function F(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var a=e.getMutableClone(n);return e.setEmitFlags(a,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),a)),e.moveRangePos(t,-1)))}function I(t,n){return e.filter(t.members,n?R:M)}function R(e){return L(e,!0)}function M(e){return L(e,!1)}function L(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function B(t,n,r){for(var a=0,i=n;a0?149===a.kind?e.createVoidZero():e.createNull():void 0,u=n(t,i,o,s,c,e.moveRangePastDecorators(a));return e.setEmitFlags(u,1536),u}}function te(t,n){var r=ne(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function ne(r){var a=Y(r,r,$(r));if(a){var i=an&&an[e.getOriginalNodeId(r)],o=e.getLocalName(r,!1,!0),s=n(t,a,o),c=e.createAssignment(o,i?e.createAssignment(i,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(r)),c}}function re(t){return e.visitNode(t.expression,u,e.isExpression)}function ae(n,r){var i;if(n){i=[];for(var o=0,s=n;o= 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 };'},c={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},u={name:"typescript: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 };"};}(r||(r={}));!function(e){function t(t){function r(n){if(e.isDeclarationFile(n))return n;k=n;var r=e.visitEachChild(n,a,t);return e.addEmitHelpers(r,t.readEmitHelpers()),k=void 0,r}function a(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return i(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,a,t)}}function i(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,a,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,a,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,a,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,a,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,a,e.isModifier),void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function l(r){C();var i=e.getOriginalNode(r,e.isFunctionLike).type,o=A<2?d(i):void 0,s=187===r.kind,c=0!=(8192&D.getNodeCheckFlags(r));if(s){var u=n(t,c,o,_(r.body)),l=E();if(e.some(l)){g=e.convertToFunctionBody(u);return e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,l)),g.statements))}return u}var f=[],m=e.addPrologue(f,r.body.statements,!1,a);f.push(e.createReturn(n(t,c,o,_(r.body,m)))),e.addRange(f,E());var g=e.createBlock(f,!0);return e.setTextRange(g,r.body),A>=2&&(4096&D.getNodeCheckFlags(r)?(p(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&D.getNodeCheckFlags(r)&&(p(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function _(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,a,t,r));T();var i=e.convertToFunctionBody(e.visitNode(n,a,e.isConciseBody)),o=E();return e.updateBlock(i,e.setTextRange(e.createNodeArray(e.concatenate(i.statements,o)),i.statements))}function d(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=D.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function p(){0==(1&S)&&(S|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152));}function f(e,t,n){if(1&S&&b(t)){var r=6144&D.getNodeCheckFlags(t);if(r!==w){var a=w;return w=r,O(e,t,n),void(w=a)}}O(e,t,n);}function m(e,t){return t=P(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return h(e);case 181:return v(e)}return e}function y(t){return 97===t.expression.kind?x(e.createLiteral(t.name.text),t):t}function h(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?y(n):h(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var k,S,T=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,E=t.endLexicalEnvironment,D=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,O=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,r}function n(t,n,r,i){t.requestEmitHelper(a);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(r||(r={})),e.transformES2017=t;var a={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t){function s(n){if(e.isDeclarationFile(n))return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return d(n);case 197:return p(n);case 222:return f(n);case 178:return g(n);case 194:return v(n,r);case 226:return b(n);case 216:return S(n,void 0);case 214:return x(n);case 190:return k(n);case 152:return A(n);case 151:return P(n);case 153:return w(n);case 154:return O(n);case 228:return F(n);case 186:return R(n);case 187:return I(n);case 146:return N(n);case 210:return y(n);case 185:return h(n,r);default:return e.visitEachChild(n,c,t)}}function d(n){return 2&re&&1&re?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function p(n){if(2&re&&1&re&&n.asteriskToken){var a=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,i(t,o(t,a,a),a)))),n),n)}return e.visitEachChild(n,c,t)}function f(n){if(2&re&&1&re){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?S(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],a=0,i=t;a=2&&(4096&Y.getNodeCheckFlags(n)?(K(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Y.getNodeCheckFlags(n)&&(K(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function L(t){W();var n=0,r=[],a=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(a)&&(n=e.addPrologue(r,a.statements,!1,c)),e.addRange(r,B(void 0,t));var i=H();if(n>0||e.some(r)||e.some(i)){var o=e.convertToFunctionBody(a,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,i),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return a}function B(n,r){for(var a=0,i=r.parameters;a=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function a(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function i(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={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 '},_={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},d={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){function t(t){function r(n){if(e.isDeclarationFile(n))return n;var r=e.visitEachChild(n,a,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function a(e){return 4&e.transformFlags?i(e):e}function i(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,a,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,a,i){var s,c=h(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(t,d));}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.filter(e.map(r,o),e.isDefined),n,i);return a&&e.startOnNewLine(p),p}function l(t){return e.visitNode(t.expression,a,e.isExpression)}function _(t){var n=v(t),r=d(t.initializer);return e.createPropertyAssignment(n,r)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=y(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t);}function p(t){var n=f(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function f(t){for(var n,r=0,a=-1,i=0;i=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,u=A(i,t,s,a,o);1!==u&&2!==u||o++,t&&(1===u&&(Ot|=4096),e.addRange(i,e.visitNodes(t.body.statements,c,e.isStatement,o))),!s||2===u||t&&N(t.body)||i.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(i,St()),t&&J(i,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(i),t?t.body.statements:n.members),!0);return e.setTextRange(l,t?t.body:n),t||e.setEmitFlags(l,1536),l}function N(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return N(n.thenStatement)&&N(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&N(r))return!0}return!1}function A(t,n,r,a,i){if(!r)return n&&K(t,n),0;if(!n)return t.push(e.createReturn(O())),2;if(a)return j(t,n,O()),_t(),1;var o,s,c=n.body.statements;if(i0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,c,t,0,o))),1048576)):i&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(i,c,e.isExpression))),1048576));}function M(t,n,r,a){a=e.visitNode(a,c,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(a,48|e.getEmitFlags(a))),n))]),n),417));i.startsOnNewLine=!0,e.setTextRange(i,n),e.setEmitFlags(i,1048992),t.push(i);}function L(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function B(t,n,r){var a=e.lastOrUndefined(n.parameters);if(L(a,r)){var i=e.getMutableClone(a.name);e.setEmitFlags(i,48);var o=e.getSynthesizedClone(a.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createArrayLiteral([]))])),a),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),a),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),a),e.setTextRange(e.createPostfixIncrement(c),a),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),a))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function K(t,n){32768&n.transformFlags&&187!==n.kind&&j(t,n,e.createThis());}function j(t,n,r,a){_t();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(i,1050112),e.setTextRange(i,a),e.setSourceMapRange(i,n),t.push(i);}function J(t,n,r){if(16384&Ot){var a=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:a=e.createVoidZero();break;case 152:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,a)]));if(r)return[i].concat(t);t.unshift(i);}return t}function z(t,n){for(var r=0,a=n.members;r0&&(o=!0),e.isBlock(l))i=e.addCustomPrologue(u,l.statements,i,c),r=l.statements,e.addRange(u,e.visitNodes(l.statements,c,e.isStatement,i)),!o&&l.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(l,-1);var _=n.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(_,l,At)?s=!0:o=!0);var d=e.visitNode(l,c,e.isExpression),p=e.createReturn(d);e.setTextRange(p,l),e.setEmitFlags(p,1440),u.push(p),a=l;}var f=t.endLexicalEnvironment();e.addRange(u,f),J(u,n,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(u),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),a&&e.setTokenSourceMapRange(m,18,a),e.setOriginalNode(m,n.body),m}function Q(n){var r=e.visitFunctionBody(n.body,u,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(J(r.statements,n,!0)),r.statements))}function Z(n,r){if(r)return e.visitEachChild(n,c,t);var o=256&Ot?a(4032,512):a(3904,128),s=e.visitEachChild(n,c,t);return i(o,0,0),s}function ee(n){switch(n.expression.kind){case 185:return e.updateStatement(n,te(n.expression,!1));case 194:return e.updateStatement(n,ne(n.expression,!1))}return e.visitEachChild(n,c,t)}function te(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,te(n.expression,!1));case 194:return e.updateParen(n,ne(n.expression,!1))}return e.visitEachChild(n,c,t)}function ne(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,c,t,0,r):e.visitEachChild(n,c,t)}function re(n){var r,o=a(0,e.hasModifier(n,1)?32:0);if(Pt&&0==(3&n.declarationList.flags)){for(var s=void 0,u=0,l=n.declarationList.declarations;u=t.end)return!1;for(var a=e.getEnclosingBlockScopeContainer(t);r;){if(r===a||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return 149!==r.kind||0==(32&e.getModifierFlags(r));r=r.parent;}return!1}function ht(t){return 1&Ft&&16&Ot?e.setTextRange(e.createIdentifier("_this"),t):t}function vt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function bt(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var a=r.expression;if(!e.nodeIsSynthesized(a)||181!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||97!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.text}var xt=t.startLexicalEnvironment,kt=t.resumeLexicalEnvironment,St=t.endLexicalEnvironment,Tt=t.hoistVariableDeclaration,Ct=t.getCompilerOptions(),Et=t.getEmitResolver(),Dt=t.onSubstituteNode,Nt=t.onEmitNode;t.onEmitNode=ut,t.onSubstituteNode=dt;var At,wt,Ot,Pt,Ft;return r}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}var r;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings";}(r||(r={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter";}(a||(a={}));var i;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return";}(i||(i={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn";}(o||(o={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask";}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var a=n.tagName;u[e.getOriginalNodeId(a)]=!0;}c(t,n,r);}function a(t,n){return n.id&&u&&u[n.id]?_(t,n):(n=_(t,n),e.isPropertyAccessExpression(n)?i(n):e.isPropertyAssignment(n)?o(n):n)}function i(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(t.text):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=a,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t;}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function a(t){if(e.isDeclarationFile(t)||0==(512&t.transformFlags))return t;Ft=t;var r=e.visitEachChild(t,i,n);return e.addEmitHelpers(r,n.readEmitHelpers()),Ft=void 0,r}function i(t){var r=t.transformFlags;return Lt?o(t):Mt?s(t):256&r?u(t):512&r?e.visitEachChild(t,i,n):t}function o(e){switch(e.kind){case 212:return j(e);case 213:return z(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return _(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return V(t);case 215:return $(t);case 218:return X(t);case 217:return W(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,i,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return k(t);case 197:return S(t);case 177:return T(t);case 178:return E(t);case 180:return D(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,i,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return _(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,i,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,n),void 0,p(t.body)),t),t);else{var r=Mt,a=Lt;Mt=!1,Lt=!1,t=e.visitEachChild(t,i,n),Mt=r,Lt=a;}return Mt?void Dt(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,n),void 0,p(t.body)),t),t);else{var r=Mt,a=Lt;Mt=!1,Lt=!1,t=e.visitEachChild(t,i,n),Mt=r,Lt=a;}return t}function d(t){var r=Mt,a=Lt;return Mt=!1,Lt=!1,t=e.visitEachChild(t,i,n),Mt=r,Lt=a,t}function p(t){var n=[],r=Mt,a=Lt,o=Bt,s=Kt,c=jt,u=Jt,l=zt,_=Ut,d=nn,p=Vt,f=qt,m=$t,g=Gt;Mt=!0,Lt=!1,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,zt=void 0,Ut=void 0,nn=1,Vt=void 0,qt=void 0,$t=void 0,Gt=e.createTempVariable(void 0),Ct();var y=e.addPrologue(n,t.statements,!1,i);w(t.statements,y);var h=it();return e.addRange(n,Et()),n.push(e.createReturn(h)),Mt=r,Lt=a,Bt=o,Kt=s,jt=c,Jt=u,zt=l,Ut=_,nn=d,Vt=p,qt=f,$t=m,Gt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)M(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function h(t){var r=t.left,a=t.right;if(oe(a)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,_e(e.visitNode(r.expression,i,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,_e(e.visitNode(r.expression,i,e.isLeftHandSideExpression)),_e(e.visitNode(r.argumentExpression,i,e.isExpression)));break;default:o=e.visitNode(r,i,e.isExpression);}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(a,i,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(a,i,e.isExpression))}return e.visitEachChild(t,i,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=_e(e.visitNode(t.left,i,e.isExpression)),r.right=e.visitNode(t.right,i,e.isExpression),r}return e.visitEachChild(t,i,n)}function b(t){var n=pe(),r=de();return He(r,e.visitNode(t.left,i,e.isExpression),t.left),53===t.operatorToken.kind?Qe(n,r,t.left):Ye(n,r,t.left),He(r,e.visitNode(t.right,i,e.isExpression),t.right),fe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(at(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,i,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function k(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=pe(),a=pe(),o=de();return Qe(r,e.visitNode(t.condition,i,e.isExpression),t.condition),He(o,e.visitNode(t.whenTrue,i,e.isExpression),t.whenTrue),Xe(a),fe(r),He(o,e.visitNode(t.whenFalse,i,e.isExpression),t.whenFalse),fe(a),o}return e.visitEachChild(t,i,n)}function S(t){var r=pe(),a=e.visitNode(t.expression,i,e.isExpression);return t.asteriskToken?Ze(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,a,t):a,t):et(a,t),fe(r),$e(t)}function T(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,n,r,a){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=de()),He(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,a)]):e.createArrayLiteral(n?[n].concat(t):t,a)),n=void 0,t=[];}return t.push(e.visitNode(r,i,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,i,e.isExpression,0,c);He(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0;}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,a)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,a),r)}function E(t){function n(n,r){oe(r)&&n.length>0&&(We(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,i,e.isExpression);return c&&(a&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,a=t.multiLine,o=se(r),s=de();He(s,e.createObjectLiteral(e.visitNodes(r,i,e.isObjectLiteralElementLike,0,o),a));var c=e.reduceLeft(r,n,[],o);return c.push(a?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function D(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=_e(e.visitNode(t.expression,i,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,i,e.isExpression),r}return e.visitEachChild(t,i,n)}function N(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Nt,wt,!0),a=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(a,i,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,i,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Nt),a=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(a,i,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,i,n)}function w(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(L(a));u.length&&(We(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function L(t){return e.createAssignment(e.getSynthesizedClone(t.name),e.visitNode(t.initializer,i,e.isExpression))}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=pe(),r=t.elseStatement?pe():void 0;Qe(t.elseStatement?r:n,e.visitNode(t.expression,i,e.isExpression),t.expression),O(t.thenStatement),t.elseStatement&&(Xe(n),fe(r),O(t.elseStatement)),fe(n);}else We(e.visitNode(t,i,e.isStatement));else We(e.visitNode(t,i,e.isStatement));}function K(t){if(oe(t)){var n=pe(),r=pe();Ne(n),fe(r),O(t.statement),fe(n),Ye(r,e.visitNode(t.expression,i,e.isExpression)),Ae();}else We(e.visitNode(t,i,e.isStatement));}function j(t){return Lt?(De(),t=e.visitEachChild(t,i,n),Ae(),t):e.visitEachChild(t,i,n)}function J(t){if(oe(t)){var n=pe(),r=Ne(n);fe(n),Qe(r,e.visitNode(t.expression,i,e.isExpression)),O(t.statement),Xe(n),Ae();}else We(e.visitNode(t,i,e.isStatement));}function z(t){return Lt?(De(),t=e.visitEachChild(t,i,n),Ae(),t):e.visitEachChild(t,i,n)}function U(t){if(oe(t)){var n=pe(),r=pe(),a=Ne(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?M(o):We(e.setTextRange(e.createStatement(e.visitNode(o,i,e.isExpression)),o));}fe(n),t.condition&&Qe(a,e.visitNode(t.condition,i,e.isExpression)),O(t.statement),fe(r),t.incrementor&&We(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,i,e.isExpression)),t.incrementor)),Xe(n),Ae();}else We(e.visitNode(t,i,e.isStatement));}function V(t){Lt&&De();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,i,n);return Lt&&Ae(),t}function q(t){if(oe(t)){var n=de(),r=de(),a=e.createLoopVariable(),o=t.initializer;Nt(a),He(n,e.createArrayLiteral()),We(e.createForIn(r,e.visitNode(t.expression,i,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),He(a,e.createLiteral(0));var s=pe(),c=pe(),u=Ne(c);fe(s),Qe(u,e.createLessThan(a,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0,"Expected continue statment to point to a valid Label."),Xe(n,t);}function W(t){if(Lt){var r=Je(t.label&&t.label.text);if(r>0)return Ve(r,t)}return e.visitEachChild(t,i,n)}function H(t){var n=je(t.label?t.label.text:void 0);e.Debug.assert(n>0,"Expected break statment to point to a valid Label."),Xe(n,t);}function X(t){if(Lt){var r=je(t.label&&t.label.text);if(r>0)return Ve(r,t)}return e.visitEachChild(t,i,n)}function Y(t){tt(e.visitNode(t.expression,i,e.isExpression),t);}function Q(t){return qe(e.visitNode(t.expression,i,e.isExpression),t)}function Z(t){oe(t)?(ve(_e(e.visitNode(t.expression,i,e.isExpression))),O(t.statement),be()):We(e.visitNode(t,i,e.isStatement));}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,a=Oe(),o=_e(e.visitNode(t.expression,i,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,i,e.isExpression),[Ve(s[u],f.expression)]));}else p++;d.length&&(We(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}Xe(c>=0?s[c]:a);for(u=0;u=0;n--){var r=Jt[n];if(!Le(r))break;if(r.labelText===e)return!0}return!1}function je(t){if(e.Debug.assert(void 0!==Bt),t)for(n=Jt.length-1;n>=0;n--){if(Le(r=Jt[n])&&r.labelText===t)return r.breakLabel;if(Me(r)&&Ke(t,n-1))return r.breakLabel}else for(var n=Jt.length-1;n>=0;n--){var r=Jt[n];if(Me(r))return r.breakLabel}return 0}function Je(t){if(e.Debug.assert(void 0!==Bt),t){for(n=Jt.length-1;n>=0;n--)if(Be(r=Jt[n])&&Ke(t,n-1))return r.continueLabel}else for(var n=Jt.length-1;n>=0;n--){var r=Jt[n];if(Be(r))return r.continueLabel}return 0}function ze(t){if(t>0){void 0===Ut&&(Ut=[]);var n=e.createLiteral(-1);return void 0===Ut[t]?Ut[t]=[n]:Ut[t].push(n),n}return e.createOmittedExpression()}function Ue(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function Ve(t,n){return e.Debug.assert(t>0,"Invalid label: "+t),e.setTextRange(e.createReturn(e.createArrayLiteral([Ue(3),ze(t)])),n)}function qe(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ue(2),t]:[Ue(2)])),n)}function $e(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Gt,"sent"),void 0,[]),t)}function Ge(){at(0);}function We(e){e?at(1,[e]):Ge();}function He(e,t,n){at(2,[e,t],n);}function Xe(e,t){at(3,[e],t);}function Ye(e,t,n){at(4,[e,t],n);}function Qe(e,t,n){at(5,[e,t],n);}function Ze(e,t){at(7,[e],t);}function et(e,t){at(6,[e],t);}function tt(e,t){at(8,[e],t);}function nt(e,t){at(9,[e],t);}function rt(){at(10);}function at(e,t,n){void 0===Vt&&(Vt=[],qt=[],$t=[]),void 0===zt&&fe(pe());var r=Vt.length;Vt[r]=e,qt[r]=t,$t[r]=n;}function it(){rn=0,an=0,Wt=void 0,Ht=!1,Xt=!1,Yt=void 0,Qt=void 0,Zt=void 0,en=void 0,tn=void 0;var t=ot();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Gt)],void 0,e.createBlock(t,t.length>0)),524288))}function ot(){if(Vt){for(var t=0;t=0;n--){var r=tn[n];Qt=[e.createWith(r.expression,e.createBlock(Qt))];}if(en){var a=en.startLabel,i=en.catchLabel,o=en.finallyLabel,s=en.endLabel;Qt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Gt,"trys"),"push"),void 0,[e.createArrayLiteral([ze(a),ze(i),ze(o),ze(s)])]))),en=void 0;}t&&Qt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Gt,"label"),e.createLiteral(an+1))));}Yt.push(e.createCaseClause(e.createLiteral(an),Qt||[])),Qt=void 0;}function _t(e){if(zt)for(var t=0;t 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 };'};}(r||(r={}));!function(e){function t(t){function r(t){switch(t){case e.ModuleKind.AMD:return s;case e.ModuleKind.UMD:return c;default:return o}}function a(t){if(e.isDeclarationFile(t)||!e.isExternalModule(t)&&!$.isolatedModules)return t;Z=t,ee=e.collectExternalModuleInfo(t,G,$),ne[e.getOriginalNodeId(t)]=ee;var n=r(X)(t);return Z=void 0,ee=void 0,e.aggregateTransformFlags(n)}function i(){return!(ee.exportEquals||!e.isExternalModule(Z))}function o(t){V();var r=[],a=$.alwaysStrict||!$.noImplicitUseStrict&&e.isExternalModule(Z),o=e.addPrologue(r,t.statements,a,d);i()&&e.append(r,P()),e.append(r,e.visitNode(ee.externalHelpersImportDeclaration,d,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,d,e.isStatement,o)),_(r,!1),e.addRange(r,q());var s=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements));return ee.hasExportStarsToExportValues&&e.addEmitHelper(s,n),s}function s(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,W,$),a=u(t,!0),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,s=a.importAliasNames;return 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(i,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,l(t))])))]),t.statements))}function c(t){var n=u(t,!1),r=n.aliasedModuleNames,a=n.unaliasedModuleNames,i=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,a)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(i),void 0,l(t))]))]),t.statements))}function u(t,n){for(var r=[],a=[],i=[],o=0,s=t.amdDependencies;o=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)],H>=2?2:0))));if(S(t)){var i=e.getOriginalNodeId(t);re[i]=C(re[i],t);}else n=C(n,t);return e.singleOrMany(n)}function f(t){var n=e.getExternalModuleNameLiteral(t,Z,W,G,$),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function m(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(X!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(I(t.name,f(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,f(t))],H>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(I(e.getExportName(t),e.getLocalName(t))),t))),S(t)){var r=e.getOriginalNodeId(t);re[r]=E(re[r],t);}else n=E(n,t);return e.singleOrMany(n)}function g(t){if(t.moduleSpecifier){var n=e.getGeneratedNameForNode(t);if(t.exportClause){var r=[];X!==e.ModuleKind.AMD&&r.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,f(t))])),t));for(var a=0,i=t.exportClause.elements;a0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.createVariableDeclaration(t);S?S.push(n):S=[n];}function m(t){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),T?T.push(t):T=[t];}function g(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),D[A]=S,N[A]=T,A++,S=void 0,T=void 0;}function y(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0;}function h(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1;}function v(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((S||T)&&(T&&(t=T.slice()),S)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(S));t?t.push(n):t=[n];}return A--,S=D[A],T=N[A],0===A&&(D=[],N=[]),t}function b(t){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t);}function x(){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function k(){if(F<3){for(var t=0,n=a;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),x.sourceMapMappings+=r(h.nameIndex-b),b=h.nameIndex),v=h,x.sourceMapDecodedMappings.push(v);}}function c(t){if(!T&&!e.positionIsSynthesized(t)){S&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(f,t);r.line++,r.character++;var a=n.getLine(),i=n.getColumn();!h||h.emittedLine!==a||h.emittedColumn!==i||h.sourceIndex===y&&(h.sourceLine>r.line||h.sourceLine===r.line&&h.sourceColumn>r.character)?(s(),h={emittedLine:a,emittedColumn:i,sourceLine:r.line,sourceColumn:r.character,sourceIndex:y}):(h.sourceLine=r.line,h.sourceColumn=r.character,h.sourceIndex=y),S&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function u(t,n,r){if(T)return r(t,n);if(n){var a=n.emitNode,i=a&&a.flags,o=a&&a.sourceMapRange||n,s=o.pos,u=o.end;295!==n.kind&&0==(16&i)&&s>=0&&c(e.skipTrivia(m,s)),64&i?(T=!0,r(t,n),T=!1):r(t,n),295!==n.kind&&0==(32&i)&&u>=0&&c(u);}}function l(t,n,r,a){if(T)return a(n,r);var i=t&&t.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[n];return r=e.skipTrivia(m,s?s.pos:r),0==(128&o)&&r>=0&&c(r),r=a(n,r),s&&(r=s.end),0==(256&o)&&r>=0&&c(r),r}function _(n){if(!T){m=(f=n).text;var r=k.sourceRoot?t.getCommonSourceDirectory():g,a=e.getRelativePathToDirectoryOrUrl(r,f.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(y=e.indexOf(x.sourceMapSources,a))&&(y=x.sourceMapSources.length,x.sourceMapSources.push(a),x.inputSourceFileNames.push(f.fileName),k.inlineSources&&x.sourceMapSourcesContent.push(f.text));}}function d(){if(!T)return s(),JSON.stringify({version:3,file:x.sourceMapFile,sourceRoot:x.sourceMapSourceRoot,sources:x.sourceMapSources,names:x.sourceMapNames,mappings:x.sourceMapMappings,sourcesContent:x.sourceMapSourcesContent})}function p(){if(!T){if(k.inlineSourceMap){var t=e.convertToBase64(d());return x.jsSourceMappingURL="data:application/json;base64,"+t}return x.jsSourceMappingURL}}var f,m,g,y,h,v,b,x,k=t.getCompilerOptions(),S=k.extendedDiagnostics,T=!(k.sourceMap||k.inlineSourceMap);return{initialize:i,reset:o,getSourceMapData:function(){return x},setSourceFile:_,emitPos:c,emitNodeWithSourceMap:u,emitTokenWithSourceMap:l,getText:d,getSourceMappingURL:p}}function n(e){if(e<64)return i.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r);}while(e>0);return t}var a={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){function t(t,n){function r(t,n,r){if(j)r(t,n);else if(n){K=!1;var i=n.emitNode,o=i&&i.flags,s=i&&i.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)a(t,n,i,o,r);else{I&&e.performance.mark("preEmitNodeWithComment");var l=295!==n.kind,d=c<0||0!=(512&o),p=u<0||0!=(1024&o);d||_(c,l);var f=M,g=L,y=B;d||(M=c),p||(L=u,227===n.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),a(t,n,i,o,r),I&&e.performance.mark("postEmitNodeWithComment"),M=f,L=g,B=y,!p&&l&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment");}}}function a(t,n,r,a,s){var c=r&&r.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,i),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,a,s);var l=r&&r.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function i(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ");}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine();}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,R);}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(j=!0,r(e,t),j=!1):r(e,t);}function l(t,n,r){I&&e.performance.mark("preEmitBodyWithDetachedComments");var a=n.pos,i=n.end,o=e.getEmitFlags(t),s=a<0||0!=(512&o),c=j||i<0||0!=(1024&o);s||E(n),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,r(t),j=!1):r(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(n.end,!0),K&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");}function _(e,t){K=!1,t?v(e,p):0===e&&v(e,d);}function d(e,t,n,r,a){N(e,t)&&p(e,t,n,r,a);}function p(t,r,a,i,o){K||(e.emitNewLineBeforeLeadingCommentOfPosition(P,A,o,t),K=!0),n&&n(t),e.writeCommentRange(O,P,A,t,r,R),n&&n(r),i?A.writeLine():A.write(" ");}function f(e){j||-1===e||_(e,!0);}function m(e){b(e,g);}function g(t,r,a,i){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(O,P,A,t,r,R),n&&n(r),i&&A.writeLine();}function y(t){j||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,h),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));}function h(t,r,a,i){n&&n(t),e.writeCommentRange(O,P,A,t,r,R),n&&n(r),i?A.writeLine():A.write(" ");}function v(t,n){-1!==M&&t===M||(T(t)?C(n):e.forEachLeadingCommentRange(O,t,n,t));}function b(t,n){(-1===L||t!==L&&t!==B)&&e.forEachTrailingCommentRange(O,t,n);}function x(){w=void 0,O=void 0,P=void 0,F=void 0;}function k(e){A=e;}function S(t){O=(w=t).text,P=e.getLineStarts(w),F=void 0;}function T(t){return void 0!==F&&e.lastOrUndefined(F).nodePos===t}function C(t){var n=e.lastOrUndefined(F).detachedCommentEndPos;F.length-1?F.pop():F=void 0,e.forEachLeadingCommentRange(O,n,t,n);}function E(t){var n=e.emitDetachedComments(O,P,A,D,t,R,j);n&&(F?F.push(n):F=[n]);}function D(t,r,a,i,o,s){n&&n(i),e.writeCommentRange(t,r,a,i,o,s),n&&n(o);}function N(t,n){if(47===O.charCodeAt(t+1)&&t+2=0}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t);}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=f,t.reportInaccessibleThisError=g,t.reportIllegalExtends=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t);}function l(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,_e=e.decreaseIndent;}function _(t){var n=pe;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Oe,function(e){return e.node===n?e:void 0});if(!r&&Ce&&(r=e.forEach(Ce,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var a=r.indent;a;a--)le();233===n.kind&&(e.Debug.assert(void 0===Ce),Ce=[]),O(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ce,Ce=void 0),r.asynchronousOutput=pe.getText();}}),l(n);}function d(t){if(t){Ee||(Ee=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){a(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,T),ce(">"));}(t);case 162:return function(e){ce("typeof "),a(e.exprName);}(t);case 164:return function(e){T(e.elementType),ce("[]");}(t);case 165:return function(e){ce("["),x(e.elementTypes,T),ce("]");}(t);case 166:return function(e){b(e.types," | ",T);}(t);case 167:return function(e){b(e.types," & ",T);}(t);case 168:return function(e){ce("("),T(e.type),ce(")");}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),T(t.type);}(t);case 171:return function(e){T(e.objectType),ce("["),T(e.indexType),ce("]");}(t);case 172:return function(e){var t=he;he=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),T(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),T(e.type),ce(";"),ue(),_e(),ce("}"),he=t;}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),_e()),ce("}");}(t);case 71:case 143:return a(t);case 158:return function(e){de(be,e.parameterName),ce(" is "),T(e.type);}(t)}}function C(t){be=t.text,xe=e.getLineStarts(t),ke=t.identifiers,Se=e.isExternalModule(t),he=t,e.emitDetachedComments(be,xe,pe,e.writeCommentRange,t,ge,!0),v(t.statements);}function E(e){if(!ke.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!ke.has(n))return n}}function D(e,t,r,a){var i=E(t);return a&&ce("declare "),ce("const "),ce(i),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,he,1026,pe),ce(";"),ue(),i}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var r=D(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(r);}ce(";"),ue(),71===t.expression.kind&&_(n.collectLinkedAliases(t.expression));}function A(e){return n.isDeclarationVisible(e)}function w(e,t){if(t)O(e);else if(237===e.kind||265===e.parent.kind&&Se){var r=void 0;if(Ce&&265!==e.parent.kind)Ce.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});else{if(238===e.kind){var a=e;a.importClause&&(r=a.importClause.name&&n.isDeclarationVisible(a.importClause)||R(a.importClause.namedBindings));}Oe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});}}}function O(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return H(t);case 229:return W(t);case 231:return z(t);case 232:return U(t);case 233:return J(t);case 237:return I(t);case 238:return M(t);default:e.Debug.fail("Unknown symbol kind");}}function P(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&we&&ce("declare ");}}function F(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ");}function I(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(S(t.moduleReference,n),ce(";")):(ce("require("),L(t),ce(");")),pe.writeLine();}function R(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function M(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=pe.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&R(t.importClause.namedBindings)&&(r!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ");}L(t),ce(";"),pe.writeLine();}function L(r){ve=ve||233!==r.kind;var a;if(237===r.kind){var i=r;a=e.getExternalModuleImportEqualsDeclarationExpression(i);}else a=233===r.kind?r.name:(i=r).moduleSpecifier;if(9===a.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}de(be,a);}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name);}function K(e){B(e),_(n.collectLinkedAliases(e.propertyName||e.name));}function j(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,K),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),L(e)),ce(";"),pe.writeLine();}function J(t){for(Ne(t),P(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var n=he;t.body?(he=t,ce(" {"),ue(),le(),v(t.body.statements),_e(),ce("}"),ue(),he=n):ce(";");}function z(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=he;he=t,Ne(t),P(t),ce("type "),de(be,t.name),$(t.typeParameters),ce(" = "),S(t.type,n),ce(";"),ue(),he=r;}function U(t){Ne(t),P(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue();}function V(e){Ne(e),de(be,e.name);var t=n.getConstantValue(e);void 0!==t&&(ce(" = "),ce(t.toString())),ce(","),ue();}function q(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function $(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150: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:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231: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}}le(),Ne(t),_e(),de(be,t.name),t.constraint&&!q(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.constraint)):S(t.constraint,n)),t.default&&!q(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.default)):S(t.default,n));}t&&(ce("<"),x(t,n),ce(">"));}function G(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?S(t,r):n||95!==t.expression.kind||ce("null");}t&&(ce(n?" implements ":" extends "),x(t,r));}function W(t){var n=he;he=t;var r,a=e.getClassExtendsHeritageClauseElement(t);a&&!e.isEntityNameExpression(a.expression)&&(r=95===a.expression.kind?"null":D(a.expression,t.name.text+"_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 233===e.kind}))),Ne(t),P(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),$(t.typeParameters),a&&(e.isEntityNameExpression(a.expression)?G([a],!1):(ce(" extends "),ce(r),a.typeArguments&&(ce("<"),x(a.typeArguments,T),ce(">")))),G(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t);});}(e.getFirstConstructorWithBody(t)),v(t.members),_e(),ce("}"),ue(),he=n;}function H(t){Ne(t),P(t),ce("interface "),de(be,t.name);var n=he;he=t,$(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&G(r,!1),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue(),he=n;}function X(t){e.hasDynamicName(t)||(Ne(t),F(e.getModifierFlags(t)),Y(t),ce(";"),ue());}function Y(t){function r(n){return 226===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:149===t.kind||148===t.kind?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:229===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:void 0}function a(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===a.kind?(n=e.hasModifier(a.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:a.parameters[0],typeName:a.name}):(n=e.hasModifier(a,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:a.name,typeName:void 0})}if(!e.hasDynamicName(t)){var a,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(Ne(i.getAccessor),Ne(i.setAccessor),F(e.getModifierFlags(t)|(i.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){a=t;var o=n(t);if(!o){var s=153===t.kind?i.setAccessor:i.getAccessor;(o=n(s))&&(a=s);}y(t,o,r);}ce(";"),ue();}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(Ne(t),228===t.kind?P(t):151!==t.kind&&152!==t.kind||F(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ae(t));}function re(e){Ne(e),ae(e);}function ae(t){function n(n){var r;switch(t.kind){case 156: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 155: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 157: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 151:case 150: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:229===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 228: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}}var r=he;he=t;var a=!1;if(157===t.kind)F(e.getModifierFlags(t)),ce("[");else{if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var i=pe.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(a=!0,ce("("));}$(t.typeParameters),ce("(");}x(t.parameters,ie),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),T(t.type)):152===t.kind||e.hasModifier(t,8)||h(t,n),he=r,o?a&&ce(")"):(ce(";"),ue());}function ie(t){function r(e){var n=a(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(n){switch(t.parent.kind){case 152: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 156: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 155: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 157: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 151:case 150: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:229===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 228: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);}}function i(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]");}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?i(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))));}le(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?i(t.name):de(be,t.name),n.isOptionalParameter(t)&&ce("?"),_e(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||y(t,t.type,r);}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,Z(e));case 238:return w(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return V(e);case 243:return N(e);case 265:return C(e)}}function se(n,r,i){function o(t,a){var i=266===a.kind;i&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=i);}var s,c=!1;return e.isDeclarationFile(n)?s=n.fileName:e.forEachEmittedFile(t,o,n,i),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(a)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Pe+='/// '+ge),c}var ce,ue,le,_e,de,pe,fe=266===i.kind?i.sourceFiles:[i],me=266===i.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var he,ve,be,xe,ke,Se,Te,Ce,Ee,De=!1,Ne=ye.removeComments?e.noop:k,Ae=ye.stripInternal?c:oe,we=!0,Oe=[],Pe="",Fe=[],Ie=!1,Re=[];return e.forEach(fe,function(n){if(!e.isSourceFileJavaScript(n)){if(ye.noResolve||e.forEach(n.referencedFiles,function(r){var a=e.tryResolveScriptReference(t,n,r);a&&!e.contains(Fe,a)&&(se(a,!me&&!Ie,o)&&(Ie=!0),Fe.push(a));}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),C(n),_e(),ce("}"),ue()):(we=!0,C(n)),Oe.length){var r=pe;e.forEach(Oe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(n=0;n'+ge;}),{reportedDeclarationError:De,moduleElementDeclarationEmitInfo:Re,synchronousDeclarationOutput:pe.getText(),referencesOutput:Pe}}function r(t,r,a,i,o,s){function c(t,n){var r=0,a="";return e.forEach(n,function(e){e.asynchronousOutput&&(a+=t.substring(r,e.outputPos),a+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),a+=t.substring(r)}var u=n(a,i,o,t,r,s),l=u.reportedDeclarationError||a.isEmitBlocked(t)||a.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(a,o,t,d,a.getCompilerOptions().emitBOM,_);}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r;}(r||(r={}));!function(e){function t(t,r,a,i,o){function s(n,a){var o=n.jsFilePath,s=n.sourceMapFilePath,u=n.declarationFilePath;r.isEmitBlocked(o)||f.noEmit?k=!0:i||c(o,s,a),u&&(k=e.writeDeclarationFile(u,e.getOriginalSourceFileOrBundle(a),r,t,h,i)||k),!k&&y&&(i||y.push(o),s&&y.push(s),u&&y.push(u));}function c(t,n,a){var i=266===a.kind?a:void 0,o=265===a.kind?a:void 0,s=i?i.sourceFiles:[o];x.initialize(t,n,a),i?(d=e.createMap(),p=!1,C.writeBundle(i,b)):(p=!0,C.writeFile(o,b)),b.writeLine();var c=x.getSourceMappingURL();c&&b.write("//# sourceMappingURL="+c),f.sourceMap&&!f.inlineSourceMap&&e.writeFile(r,h,n,x.getText(),!1,s),g&&g.push(x.getSourceMapData()),e.writeFile(r,h,t,b.getText(),f.emitBOM,s),x.reset(),b.reset(),_=void 0,d=void 0,p=!1;}function u(e){_=e,x.setSourceFile(e);}function l(t,n){var r=!1,a=266===t.kind?t:void 0;if(!a||m!==e.ModuleKind.None){for(var i=a?a.sourceFiles.length:1,o=0;o "),h(e.type);}function Z(e){Fn("new "),En(e,e.typeParameters),Nn(e,e.parameters),Fn(" => "),h(e.type);}function ee(e){Fn("typeof "),h(e.exprName);}function te(e){Fn("{"),wn(e,e.members,65),Fn("}");}function ne(e){h(e.elementType),Fn("[]");}function re(e){Fn("["),wn(e,e.elementTypes,336),Fn("]");}function ae(e){wn(e,e.types,260);}function ie(e){wn(e,e.types,264);}function oe(e){Fn("("),h(e.type),Fn(")");}function se(){Fn("this");}function ce(e){jn(e.operator),Fn(" "),h(e.type);}function ue(e){h(e.objectType),Fn("["),h(e.indexType),Fn("]");}function le(e){Fn("{"),In(),Rn(),Bn(e.readonlyToken,"readonly "),Fn("["),h(e.typeParameter.name),Fn(" in "),h(e.typeParameter.constraint),Fn("]"),Bn(e.questionToken,"?"),Fn(": "),h(e.type),Fn(";"),In(),Mn(),Fn("}");}function _e(e){b(e.literal);}function de(e){var t=e.elements;0===t.length?Fn("{}"):(Fn("{"),wn(e,t,432),Fn("}"));}function pe(e){0===e.elements.length?Fn("[]"):(Fn("["),wn(e,e.elements,304),Fn("]"));}function fe(e){kn(e.propertyName,": "),Bn(e.dotDotDotToken,"..."),h(e.name),bn(" = ",e.initializer);}function me(e){var t=e.elements;0===t.length?Fn("[]"):On(e,t,4466|(e.multiLine?32768:0));}function ge(t){var n=t.properties;if(0===n.length)Fn("{}");else{var r=65536&e.getEmitFlags(t);r&&Rn();var a=t.multiLine?32768:0;wn(t,n,978|(hr.languageVersion>=1?32:0)|a),r&&Mn();}}function ye(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var a={kind:23,pos:t.expression.end,end:e.skipTrivia(hr.text,t.expression.end)+1};n=Xn(t,t.expression,a),r=Xn(t,a,t.name);}b(t.expression),Vn(n),Fn(!n&&he(t.expression)?"..":"."),Vn(r),h(t.name),qn(n,r);}function he(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=tr(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var a=e.getConstantValue(n);return isFinite(a)&&Math.floor(a)===a&&t.removeComments}}function ve(e){b(e.expression),Fn("["),b(e.argumentExpression),Fn("]");}function be(e){b(e.expression),Cn(e,e.typeArguments),On(e,e.arguments,1296);}function xe(e){Fn("new "),b(e.expression),Cn(e,e.typeArguments),On(e,e.arguments,9488);}function ke(e){b(e.tag),Fn(" "),b(e.template);}function Se(e){Fn("<"),h(e.type),Fn(">"),b(e.expression);}function Te(e){Fn("("),b(e.expression),Fn(")");}function Ce(e){gt(e);}function Ee(e){Tn(e,e.decorators),hn(e,e.modifiers),ht(e,De);}function De(e){En(e,e.typeParameters),Nn(e,e.parameters),vn(": ",e.type),Fn(" =>");}function Ne(e){Fn("delete "),b(e.expression);}function Ae(e){Fn("typeof "),b(e.expression);}function we(e){Fn("void "),b(e.expression);}function Oe(e){Fn("await "),b(e.expression);}function Pe(e){jn(e.operator),Fe(e)&&Fn(" "),b(e.operand);}function Fe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),jn(e.operator);}function Re(e){var t=26!==e.operatorToken.kind,n=Xn(e,e.left,e.operatorToken),r=Xn(e,e.operatorToken,e.right);b(e.left),Vn(n,t?" ":void 0),jn(e.operatorToken.kind),Vn(r," "),b(e.right),qn(n,r);}function Me(e){var t=Xn(e,e.condition,e.questionToken),n=Xn(e,e.questionToken,e.whenTrue),r=Xn(e,e.whenTrue,e.colonToken),a=Xn(e,e.colonToken,e.whenFalse);b(e.condition),Vn(t," "),Fn("?"),Vn(n," "),b(e.whenTrue),qn(t,n),Vn(r," "),Fn(":"),Vn(a," "),b(e.whenFalse),qn(r,a);}function Le(e){h(e.head),wn(e,e.templateSpans,131072);}function Be(e){Fn(e.asteriskToken?"yield*":"yield"),bn(" ",e.expression);}function Ke(e){Fn("..."),b(e.expression);}function je(e){Ct(e);}function Je(e){b(e.expression),Cn(e,e.typeArguments);}function ze(e){b(e.expression),e.type&&(Fn(" as "),h(e.type));}function Ue(e){b(e.expression),Fn("!");}function Ve(e){Kn(e.keywordToken,e.pos),Fn("."),h(e.name);}function qe(e){b(e.expression),h(e.literal);}function $e(e){Yn(e)?(Kn(17,e.pos,e),Fn(" "),Kn(18,e.statements.end,e)):(Kn(17,e.pos,e),Ge(e),Rn(),Jr(e.statements.end),Mn(),Kn(18,e.statements.end,e));}function Ge(t){1&e.getEmitFlags(t)?wn(t,t.statements,384):wn(t,t.statements,65);}function We(e){hn(e,e.modifiers),h(e.declarationList),Fn(";");}function He(){Fn(";");}function Xe(e){b(e.expression),Fn(";");}function Ye(e){var t=Kn(90,e.pos,e);Fn(" "),Kn(19,t,e),b(e.expression),Kn(20,e.expression.end,e),Sn(e,e.thenStatement),e.elseStatement&&(Jn(e),Kn(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Fn(" "),h(e.elseStatement)):Sn(e,e.elseStatement));}function Qe(t){Fn("do"),Sn(t,t.statement),e.isBlock(t.statement)?Fn(" "):Jn(t),Fn("while ("),b(t.expression),Fn(");");}function Ze(e){Fn("while ("),b(e.expression),Fn(")"),Sn(e,e.statement);}function et(e){var t=Kn(88,e.pos);Fn(" "),Kn(19,t,e),rt(e.initializer),Fn(";"),bn(" ",e.condition),Fn(";"),bn(" ",e.incrementor),Fn(")"),Sn(e,e.statement);}function tt(e){var t=Kn(88,e.pos);Fn(" "),Kn(19,t),rt(e.initializer),Fn(" in "),b(e.expression),Kn(20,e.expression.end),Sn(e,e.statement);}function nt(e){var t=Kn(88,e.pos);Fn(" "),kn(e.awaitModifier," "),Kn(19,t),rt(e.initializer),Fn(" of "),b(e.expression),Kn(20,e.expression.end),Sn(e,e.statement);}function rt(e){void 0!==e&&(227===e.kind?h(e):b(e));}function at(e){Kn(77,e.pos),vn(" ",e.label),Fn(";");}function it(e){Kn(72,e.pos),vn(" ",e.label),Fn(";");}function ot(e){Kn(96,e.pos,e),bn(" ",e.expression),Fn(";");}function st(e){Fn("with ("),b(e.expression),Fn(")"),Sn(e,e.statement);}function ct(e){var t=Kn(98,e.pos);Fn(" "),Kn(19,t),b(e.expression),Kn(20,e.expression.end),Fn(" "),h(e.caseBlock);}function ut(e){h(e.label),Fn(": "),h(e.statement);}function lt(e){Fn("throw"),bn(" ",e.expression),Fn(";");}function _t(e){Fn("try "),h(e.tryBlock),e.catchClause&&(Jn(e),h(e.catchClause)),e.finallyBlock&&(Jn(e),Fn("finally "),h(e.finallyBlock));}function dt(e){Kn(78,e.pos),Fn(";");}function pt(e){h(e.name),vn(": ",e.type),bn(" = ",e.initializer);}function ft(t){Fn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),wn(t,t.declarations,272);}function mt(e){gt(e);}function gt(e){Tn(e,e.decorators),hn(e,e.modifiers),Fn(e.asteriskToken?"function* ":"function "),v(e.name),ht(e,vt);}function yt(e,t){xt(t);}function ht(t,n){var r=t.body;if(r)if(e.isBlock(r)){var a=65536&e.getEmitFlags(t);a&&Rn(),524288&e.getEmitFlags(t)?(n(t),wr?wr(3,r,yt):xt(r)):(nr(),n(t),wr?wr(3,r,yt):xt(r),rr()),a&&Mn();}else n(t),Fn(" "),b(r);else n(t),Fn(";");}function vt(e){En(e,e.typeParameters),Dn(e,e.parameters),vn(": ",e.type);}function bt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,hr))return!1;if($n(t,t.statements,2)||Wn(t,t.statements,2))return!1;for(var n,r=0,a=t.statements;r0&&h(e.attributes),Fn("/>");}function Wt(e){Fn("<"),tn(e.tagName),Ln(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&h(e.attributes),Fn(">");}function Ht(e){Tr.writeLiteral(er(e,!0));}function Xt(e){Fn("");}function Yt(e){wn(e,e.properties,131328);}function Qt(e){h(e.name),vn("=",e.initializer);}function Zt(e){Fn("{..."),b(e.expression),Fn("}");}function en(e){e.expression&&(Fn("{"),e.dotDotDotToken&&Fn("..."),b(e.expression),Fn("}"));}function tn(e){71===e.kind?b(e):h(e);}function nn(e){Fn("case "),b(e.expression),Fn(":"),an(e,e.statements);}function rn(e){Fn("default:"),an(e,e.statements);}function an(t,n){1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],hr))?(Fn(" "),h(n[0])):wn(t,n,81985);}function on$$1(e){Fn(" "),jn(e.token),Fn(" "),wn(e,e.types,272);}function sn(e){var t=Kn(74,e.pos);Fn(" "),Kn(19,t),h(e.variableDeclaration),Kn(20,e.variableDeclaration?e.variableDeclaration.end:t),Fn(" "),h(e.block);}function cn(t){h(t.name),Fn(": ");var n=t.initializer;if(jr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);jr(r.pos);}b(n);}function un(e){h(e.name),e.objectAssignmentInitializer&&(Fn(" = "),b(e.objectAssignmentInitializer));}function ln(e){e.expression&&(Fn("..."),b(e.expression));}function _n(e){h(e.name),bn(" = ",e.initializer);}function dn(t){In();var n=t.statements;!Kr||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?pn(t):Kr(t,n,pn);}function pn(t){var n=t.statements;nr(),w(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});wn(t,n,1,-1===r?n.length:r),rr();}function fn(e){b(e.expression);}function mn(t,n,r){for(var a=0;a0)&&In(),h(i),r&&r.set(i.expression.text,i.expression.text));}return t.length}function gn(t){if(e.isSourceFile(t))m(t),mn(t.statements);else for(var n=e.createMap(),r=0,a=t.sourceFiles;r=o.length||0===u;if(!(_&&16384&s)){if(7680&s&&Fn(a(s)),Ir&&Ir(o),_)1&s?In():128&s&&Fn(" ");else{var d=0==(131072&s),p=d;$n(n,o,s)?(In(),p=!1):128&s&&Fn(" "),64&s&&Rn();for(var f=void 0,m=void 0,g=r(s),y=0;y"],e[4096]=["[","]"],e}();e.emitFiles=t,e.createPrinter=n;var c;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i";}(c||(c={}));var u;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=256]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.TypeLiteralMembers=65]="TypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters";}(u||(u={}));}(r||(r={}));!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var a=e.combinePaths(t,r);if(n(a))return a;var i=e.getDirectoryPath(t);if(i===t)break;t=i;}}function n(t,n){var r=e.getDirectoryPath(n),a=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(a)}function r(t,n,r){var a;return e.forEach(t,function(t){var i=e.getNormalizedPathComponents(t,n);if(i.pop(),a){for(var o=Math.min(a.length,i.length),s=0;se.getRootLength(t)&&!i(t)&&(o(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function s(t,n,r){l||(l=e.createMap());var a=e.sys.createHash(n),i=e.sys.getModifiedTime(t);if(i){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===a&&o.mtime.getTime()===i.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:a,byteOrderMark:r,mtime:s});}function c(n,r,a,i){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,a):e.sys.writeFile(n,r,a),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){i&&i(e.message);}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:a,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p}}function i(t,n,r){var a=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&(a=a.concat(t.getDeclarationDiagnostics(n,r))),e.sortAndDeduplicateDiagnostics(a)}function o(t,n){for(var r="",a=0,i=t;a0||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=y().getEmitResolver(i.outFile||i.out?void 0:n);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(i,s),d=e.emitFiles(l,m(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function S(t){return T(e.toPath(t,ke,Z))}function T(e){return Ne.get(e)}function C(t,n,r){if(t)return n(t,r);var a=[];return e.forEach(ae.getSourceFiles(),function(t){r&&r.throwIfCancellationRequested(),e.addRange(a,n(t,r));}),e.sortAndDeduplicateDiagnostics(a)}function E(e,t){return C(e,A,t)}function D(e,t){return C(e,O,t)}function N(e,t){var n=ae.getCompilerOptions();return!e||n.out||n.outFile?R(e,t):C(e,B,t)}function A(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=I(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function w(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(se=void 0,oe=void 0),t}}function O(e,t){return L(e,t,le,P)}function P(t,n){return w(function(){if(i.skipLibCheck&&t.isDeclarationFile||i.skipDefaultLibCheck&&t.hasNoDefaultLib)return _;var r=y();e.Debug.assert(!!t.bindDiagnostics);var a=t.bindDiagnostics,o=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,i)?r.getDiagnostics(t,n):[],s=pe.getDiagnostics(t.fileName),c=xe.getDiagnostics(t.fileName),u=a.concat(o,s,c);return e.isSourceFileJavaScript(t)?e.filter(u,F):u})}function F(t){var n=t.file,r=t.start;if(n)for(var a=e.getLineStarts(n),i=e.computeLineAndCharacterOfPosition(a,r).line;i>0;){var o=n.text.slice(a[i-1],a[i]),s=d.exec(o);if(!s)return!0;if(s[3])return!1;i--;}return!0}function I(t){return w(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 184:var a=t;return void c.push(s(a.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file))}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||i.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return a(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),l.path=n,o.useCaseSensitiveFileNames()){var _=Ae.get(n);_?G(t,_.fileName,a,s,c):Ae.set(n,l);}be=be||l.hasNoDefaultLib,i.noResolve||(H(l,r),X(l)),ee(l),r?ue.unshift(l):ue.push(l);}return l}function H(t,r){e.forEach(t.referencedFiles,function(e){$(n(e.fileName,t.fileName),r,t,e.pos,e.end);});}function X(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=Ee(n,t.fileName),a=0;afe,p=_&&!l(i,s)&&!i.noResolve&&o1})&&xe.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files));}if(!i.noEmit&&i.allowJs&&i.declaration&&xe.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration")),i.checkJs&&!i.allowJs&&xe.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),i.emitDecoratorMetadata&&!i.experimentalDecorators&&xe.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")),i.jsxFactory?(i.reactNamespace&&xe.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")),e.parseIsolatedEntityName(i.jsxFactory,l)||xe.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,i.jsxFactory))):i.reactNamespace&&!e.isIdentifierText(i.reactNamespace,l)&&xe.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,i.reactNamespace)),!i.noEmit&&!i.suppressOutputPathCheck){var v=m(),b=e.createFileMap(o.useCaseSensitiveFileNames()?void 0:function(e){return e.toLocaleLowerCase()});e.forEachEmittedFile(v,function(e){t(e.jsFilePath,b),t(e.declarationFilePath,b);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ae}function l(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function a(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(n.extension){case e.Extension.Ts:case e.Extension.Dts:return;case e.Extension.Tsx:return r();case e.Extension.Jsx:return r()||a();case e.Extension.Js:return a()}}var _=[],d=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=r,e.createCompilerHost=a,e.getPreEmitDiagnostics=i,e.formatDiagnostics=o,e.flattenDiagnosticMessageText=s,e.createProgram=u,e.getResolutionDiagnostic=l;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(F)return F;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),F={optionNameMap:t,shortOptionNames:n}}function r(t){var n=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return e.createCompilerDiagnostic(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function a(e,t,n){return b(e,k(t||""),n)}function i(t,n,r){if(void 0===n&&(n=""),n=k(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 a(t.element,e,r)}),function(e){return!!e})}}}function o(t,n){function r(t){for(var n=0;n=a.length)break;var s=o;if(34===a.charCodeAt(s)){for(o++;o32;)o++;i.push(a.substring(s,o));}}r(i);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var c={},u=[],l=[];return r(t),{options:c,fileNames:u,errors:l}}function s(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),a=r.optionNameMap,i=r.shortOptionNames;if(t){var o=i.get(e);void 0!==o&&(e=o);}return a.get(e)}function c(t,n){var r="";try{r=n(t);}catch(n){return{error:e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}}return u(t,r)}function u(t,n,r){void 0===r&&(r=!0);try{var a=r?_(n):n;return{config:/\S/.test(a)?JSON.parse(a):{}}}catch(n){return{error:e.createCompilerDiagnostic(e.Diagnostics.Failed_to_parse_file_0_Colon_1,t,n.message)}}}function l(t,r,a){function i(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?i(e.element):e.type}function o(t,n){return e.forEachEntry(n,function(e,n){if(e===t)return n})}function s(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.arrayFrom(t.type.keys())[0]}}function c(e){return Array(e+1).join(" ")}var u={compilerOptions:function(t){var r={},a=n().optionNameMap;for(var s in t)if(e.hasProperty(t,s)){if(a.has(s)&&a.get(s).category===e.Diagnostics.Command_line_Options)continue;var c=t[s],u=a.get(s.toLowerCase());if(u){var l=i(u);if(l)if("list"===u.type){for(var _=[],d=0,p=c;d=0)return{options:{},fileNames:[],typeAcquisition:{},raw:t,errors:[e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([_]).join(" -> "))],wildcardDirectories:{}};var f,m=g(t.compilerOptions,r,u,i),h=y(t.typeAcquisition||t.typingOptions,r,u,i);if(t.extends){var v=[void 0,void 0,void 0,{}],b=v[0],x=v[1],k=v[2],T=v[3];"string"==typeof t.extends?(b=(A=function(a){if(e.isRootedDiskPath(a)||e.startsWith(e.normalizeSlashes(a),"./")||e.startsWith(e.normalizeSlashes(a),"../")){var i=e.toPath(a,r,l);if(n.fileExists(i)||e.endsWith(i,".json")||(i+=".json",n.fileExists(i))){var s=c(i,function(e){return n.readFile(e)});if(!s.error){var p=e.getDirectoryPath(i),f=e.convertToRelativePath(p,r,l),m=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},g=d(s.config,n,p,void 0,e.getBaseFileName(i),o.concat([_]));u.push.apply(u,g.errors);var y=e.map(["include","exclude","files"],function(n){if(!t[n]&&s.config[n])return e.map(s.config[n],m)});return[y[0],y[1],y[2],g.compileOnSave,g.options]}u.push(s.error);}else u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_does_not_exist,a));}else u.push(e.createCompilerDiagnostic(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,a));}(t.extends)||[b,x,k,f,T])[0],x=A[1],k=A[2],f=A[3],T=A[4]):u.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")),b&&!t.include&&(t.include=b),x&&!t.exclude&&(t.exclude=x),k&&!t.files&&(t.files=k),m=e.assign({},T,m);}(m=e.extend(a,m)).configFilePath=i;var C=function(a){var c;e.hasProperty(t,"files")&&(e.isArray(t.files)?0===(c=t.files).length&&a.push(e.createCompilerDiagnostic(e.Diagnostics.The_files_list_in_config_file_0_is_empty,i||"tsconfig.json")):a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")));var u;e.hasProperty(t,"include")&&(e.isArray(t.include)?u=t.include:a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")));var l;if(e.hasProperty(t,"exclude"))e.isArray(t.exclude)?l=t.exclude:a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array"));else if(e.hasProperty(t,"excludes"))a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));else{l=u?[]:["node_modules","bower_components","jspm_packages"];var _=t.compilerOptions&&t.compilerOptions.outDir;_&&l.push(_);}void 0===c&&void 0===u&&(u=["**/*"]);var d=S(c,u,l,r,m,n,a,s);return 0!==d.fileNames.length||e.hasProperty(t,"files")||0!==o.length||a.push(e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,i||"tsconfig.json",JSON.stringify(u||[]),JSON.stringify(l||[]))),d}(u),E=C.fileNames,D=C.wildcardDirectories,N=p(t,r,u);return f&&void 0===t[e.compileOnSaveCommandLineOption.name]&&(N=f),{options:m,fileNames:E,typeAcquisition:h,raw:t,errors:u,wildcardDirectories:D,compileOnSave:N};var A;}function p(t,n,r){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var a=v(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof a||!a)&&a}function f(e,t,n){var r=[];return{options:g(e,t,r,n),errors:r}}function m(e,t,n){var r=[];return{options:y(e,t,r,n),errors:r}}function g(t,n,r,a){var i="jsconfig.json"===e.getBaseFileName(a)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{};return h(e.optionDeclarations,t,n,i,e.Diagnostics.Unknown_compiler_option_0,r),i}function y(n,r,a,i){var o={enable:"jsconfig.json"===e.getBaseFileName(i),include:[],exclude:[]},s=t(n);return h(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,a),o}function h(t,n,r,a,i,o){if(n){var s=e.arrayToMap(t,function(e){return e.name});for(var c in n){var u=s.get(c);u?a[u.name]=v(u,n[c],r,o):o.push(e.createCompilerDiagnostic(i,c));}}}function v(t,n,r,a){var i=t.type,o="string"==typeof i?i:"string";return"list"===i&&e.isArray(n)?x(t,n,r,a):typeof n===o?"string"!=typeof i?b(t,n,a):(t.isFilePath&&""===(n=e.normalizePath(e.combinePaths(r,n)))&&(n="."),n):void a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,o))}function b(e,t,n){var a=t.toLowerCase(),i=e.type.get(a);if(void 0!==i)return i;n.push(r(e));}function x(t,n,r,a){return e.filter(e.map(n,function(e){return v(t.element,e,r,a)}),function(e){return!!e})}function k(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function S(t,n,r,a,i,o,s,c){a=e.normalizePath(a);var u=o.useCaseSensitiveFileNames?A:w,l=e.createMap(),_=e.createMap();n&&(n=T(n,s,!1)),r&&(r=T(r,s,!0));var d=C(n,r,a,o.useCaseSensitiveFileNames),p=e.getSupportedExtensions(i,c);if(t)for(var f=0,m=t;f0)for(var h=0,v=o.readDirectory(a,p,r,n);h=n.end}function w(e,t,n){return e.pos<=t&&e.end>=n}function O(e,t,n){return P(e.pos,e.end,t,n)}function P(e,t,n,r){return Math.max(e,n)t||!I(e,n)}function I(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return R(t,18,n);case 260:return I(t.block,n);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return R(t,20,n);case 160:case 161:return I(t.type,n);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?I(t.body,n):t.type?I(t.type,n):L(t,20,n);case 233:return t.body&&I(t.body,n);case 211:return t.elseStatement?I(t.elseStatement,n):I(t.thenStatement,n);case 210:return I(t.expression,n)||L(t,25);case 177:case 175:case 180:case 144:case 165:return R(t,22,n);case 157:return t.type?I(t.type,n):L(t,22,n);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return I(t.statement,n);case 212:return B(t,106,n)?R(t,20,n):I(t.statement,n);case 162:return I(t.exprName,n);case 189:case 188:case 190:case 197:case 198:return I(t.expression,n);case 183:return I(t.template,n);case 196:return I(e.lastOrUndefined(t.templateSpans),n);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return I(t.operand,n);case 194:return I(t.right,n);case 195:return I(t.whenFalse,n);default:return!0}}function R(t,n,r){var a=t.getChildren(r);if(a.length){var i=e.lastOrUndefined(a);if(i.kind===n)return!0;if(25===i.kind&&1!==a.length)return a[a.length-2].kind===n}return!1}function M(t){var n=K(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}}function L(e,t,n){return!!B(e,t,n)}function B(t,n,r){return e.forEach(t.getChildren(r),function(e){return e.kind===n&&e})}function K(t){var n=e.forEach(t.parent.getChildren(),function(e){if(294===e.kind&&e.pos<=t.pos&&e.end>=t.end)return e});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function j(e,t,n){return void 0===n&&(n=!1),z(e,t,function(e){return ae(e.kind)},n)}function J(e,t,n){return void 0===n&&(n=!1),z(e,t,function(e){return ie(e.kind)},n)}function z(e,t,n,r){return void 0===r&&(r=!1),V(e,t,!1,n,r)}function U(e,t,n){return void 0===n&&(n=!1),V(e,t,!0,void 0,n)}function V(t,n,r,a,i){void 0===i&&(i=!1);var o=t;e:for(;;){if(e.isToken(o))return o;if(i)for(var s=0,c=e.filter(o.getChildren(),e.isJSDocNode);sr.getStart(t)&&nt.end||o.pos===t.end)&&te(o))return r(o)}}return r(n)}function G(t,n,r){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=o(n,n.length);return r&&a(r)}function i(s){if(e.isToken(s))return s;for(var c=s.getChildren(),u=0;u=t||10===l.kind&&_===l.end?(d=o(c,u))&&a(d):i(l)}}if(e.Debug.assert(void 0!==r||265===s.kind),c.length){var d=o(c,c.length);return d&&a(d)}}function o(e,t){for(var n=t-1;n>=0;n--)if(te(e[n]))return e[n]}return i(r||n)}function W(e,t){var n=G(t,e);if(n&&9===n.kind){var r=n.getStart(),a=n.getEnd();if(rr.getStart(t)}function Q(t,n,r){var a=U(t,n);if(a&&n<=a.getStart(t)){var i=e.getLeadingCommentRanges(t.text,a.pos);return r?e.forEach(i,function(e){return e.pos=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var a=U(t,n),i=e.getLeadingCommentRanges(t.text,a.pos);return e.forEach(i,r)}function ee(t,n){var r=e.getTokenAtPosition(t,n);if(e.isToken(r))switch(r.kind){case 104:case 110:case 76:r=void 0===r.parent?void 0:r.parent.parent;break;default:r=r.parent;}if(r&&r.jsDoc)for(var a=0,i=r.jsDoc;a0?r.join(","):e.ScriptElementKindModifier.none}function re(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ae(t){return 71===t||e.isKeyword(t)}function ie(e){return 9===e||8===e||ae(e)}function oe(e){return 2===e||3===e}function se(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function ce(e){return 17<=e&&e<=70}function ue(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,a){return r(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:8388608&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(a))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function a(){return r(" ",e.SymbolDisplayPartKind.space)}function i(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):i(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():E}function _(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function d(e){e(C);var t=C.displayParts();return C.clear(),t}function p(e,t,n,r){return d(function(a){e.getSymbolDisplayBuilder().buildTypeDisplay(t,a,n,r);})}function f(e,t,n,r,a){return d(function(i){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,i,n,r,a);})}function m(e,t,n,r){return d(function(a){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,a,n,r);})}function g(t,n,r){if(y(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return r.text;var a=e.getLocalSymbolForExportDefault(n);return t.symbolToString(a||n)}function y(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,n){for(var r=[],a=2;a=0){var _=c-o;_>0&&a.push({length:_,classification:e.TokenClass.Whitespace});}a.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&a.push({length:d,classification:e.TokenClass.Whitespace}),{entries:a,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function a(e,t,r){return n(i(e,t,r),e)}function i(n,r,a){function i(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,s=0,p=0;d.length>0;)d.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:d.push(14);}l.setText(n);var f={endOfLineState:0,spans:[]},m=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||_[p]){if(23===p&&c(s))s=71;else if(c(p)&&c(s)&&!t(p,s))s=71;else if(71===p&&27===s)m++;else if(29===s&&m>0)m--;else if(119===s||136===s||133===s||122===s||137===s)m>0&&!a&&(s=71);else if(14===s)d.push(s);else if(17===s)d.length>0&&d.push(s);else if(18===s&&d.length>0){var g=e.lastOrUndefined(d);14===g?16===(s=l.reScanTemplateToken())?d.pop():e.Debug.assert(15===s,"Should have been a template middle. Was "+s):(e.Debug.assert(17===g,"Should have been an open brace. Was: "+s),d.pop());}}else 12===l.reScanSlashToken()&&(s=12);p=s;}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(i(t,r,u(s)),r>=n.length)if(9===s){var a=l.getTokenText();if(l.isUnterminated()){for(var o=a.length-1,c=0;92===a.charCodeAt(o-c);)c++;if(1&c){var _=a.charCodeAt(0);f.endOfLineState=34===_?3:2;}}}else 3===s?l.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?f.endOfLineState=5:13===s?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):d.length>0&&14===e.lastOrUndefined(d)&&(f.endOfLineState=6);}();}while(1!==s);return f}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),_=[];_[71]=!0,_[9]=!0,_[8]=!0,_[12]=!0,_[99]=!0,_[43]=!0,_[44]=!0,_[20]=!0,_[22]=!0,_[18]=!0,_[101]=!0,_[86]=!0;var d=[];return{getClassificationsForLine:a,getEncodedLexicalClassifications:i}}function n(e,t,n,r,i){return o(a(e,t,n,r,i))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested();}}function a(t,n,a,i,o){function s(e,t,n){l.push(e),l.push(t),l.push(n);}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(a){if(a&&e.textSpanIntersectsWith(o,a.getFullStart(),a.getFullWidth())){var l=a.kind;if(r(n,l),71===l&&!e.nodeIsMissing(a)){var _=a;if(i.get(_.text)){var d=t.getSymbolAtLocation(a);if(d){var p=c(d,e.getMeaningFromLocation(a));p&&s(a.getStart(),a.getWidth(),p);}}}e.forEachChild(a,u);}}var l=[];return u(a),{spans:l,endOfLineState:0}}function i(t){switch(t){case 1:return e.ClassificationTypeNames.comment;case 2:return e.ClassificationTypeNames.identifier;case 3:return e.ClassificationTypeNames.keyword;case 4:return e.ClassificationTypeNames.numericLiteral;case 5:return e.ClassificationTypeNames.operator;case 6:return e.ClassificationTypeNames.stringLiteral;case 8:return e.ClassificationTypeNames.whiteSpace;case 9:return e.ClassificationTypeNames.text;case 10:return e.ClassificationTypeNames.punctuation;case 11:return e.ClassificationTypeNames.className;case 12:return e.ClassificationTypeNames.enumName;case 13:return e.ClassificationTypeNames.interfaceName;case 14:return e.ClassificationTypeNames.moduleName;case 15:return e.ClassificationTypeNames.typeParameterName;case 16:return e.ClassificationTypeNames.typeAliasName;case 17:return e.ClassificationTypeNames.parameterName;case 18:return e.ClassificationTypeNames.docCommentTagName;case 19:return e.ClassificationTypeNames.jsxOpenTagName;case 20:return e.ClassificationTypeNames.jsxCloseTagName;case 21:return e.ClassificationTypeNames.jsxSelfClosingTagName;case 22:return e.ClassificationTypeNames.jsxAttribute;case 23:return e.ClassificationTypeNames.jsxText;case 24:return e.ClassificationTypeNames.jsxAttributeStringLiteralValue}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],a=0;a=0),a>0){var s=n||m(t.kind,t);s&&i(r,a,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,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&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===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 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(a){if(a&&e.decodedTextSpanIntersectsWith(y,h,a.pos,a.getFullWidth())){r(t,a.kind);for(var i=0,o=a.getChildren(n);i=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(c.pos,n-c.pos),d=T.exec(_);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var h=m(g,c.pos+p.length);u.entries=i(g,y,e.getSupportedExtensions(r),!0,h,a,t.path);}else{var v={start:c.pos+p.length,length:d[0].length-p.length};u.entries=l(a,r,y,v);}}return u}}}}function l(t,n,r,a,i){if(void 0===i&&(i=[]),n.types)for(var o=0,s=n.types;o=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}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function h(e,t){return S(e,e.getDirectories)}function v(e,t,n,r,a){return S(e,e.readDirectory)}function b(e,t){return S(e,e.readFile)}function x(e,t){return S(e,e.fileExists)}function k(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function S(e,t){for(var n=[],r=2;r0&&(q=b(s,a)),!0}function d(n){var r=241===n.kind?238:244,a=e.getAncestor(n,r).moduleSpecifier;if(!a)return!1;J=!0,z=!1;var i=t.getSymbolAtLocation(a);if(!i)return q=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(i);return q=v(o,n.elements),!0}function p(e){if(e)switch(e.kind){case 17:case 26:var t=e.parent;if(t&&(178===t.kind||174===t.kind))return t}}function f(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function m(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function g(t){if(!e.isFunctionLikeKind(t))return!1;switch(t){case 152:case 161:case 160:return!1;default:return!0}}function y(e){var t=e.parent.kind;switch(e.kind){case 26:return 226===t||227===t||208===t||232===t||g(t)||229===t||199===t||230===t||175===t||231===t;case 23:return 175===t;case 56:return 176===t;case 21:return 175===t;case 19:return 260===t||g(t);case 17:return 232===t||230===t||163===t;case 25:return 148===t&&e.parent&&e.parent.parent&&(230===e.parent.parent.kind||163===e.parent.parent.kind);case 27:return 229===t||199===t||230===t||231===t||g(t);case 115:return 149===t;case 24:return 146===t||e.parent&&e.parent.parent&&175===e.parent.parent.kind;case 114:case 112:case 113:return 146===t;case 118:return 242===t||246===t||240===t;case 75:case 83:case 109:case 89:case 104:case 125:case 135:case 91:case 110:case 76:case 116:case 138:return!0}switch(e.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return!1}function h(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function v(t,n){for(var r=e.createMap(),i=0,o=n;i=0&&!g(n,r[a],106);a--);var i=d(t.statement);return e.forEach(i,function(e){p(t,e)&&g(n,e.getFirstToken(),72,77);}),n}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return x(t)}}function x(t){var n=[];return g(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){g(n,r.getFirstToken(),73,79);var a=d(r);e.forEach(a,function(e){p(t,e)&&g(n,e.getFirstToken(),72);});}),n}function k(t,n){var r=[];return g(r,t.getFirstToken(),102),t.catchClause&&g(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&g(r,e.findChildOfKind(t,87,n),87),r}function S(t){var n=_(t);if(n){var r=[];return e.forEach(l(n),function(e){g(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){g(r,e.getFirstToken(),96);}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){g(r,e.getFirstToken(),96);}),e.forEach(l(n.body),function(e){g(r,e.getFirstToken(),100);}),r}}function C(t,n){for(var a=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var i=t.getChildren();g(a,i[0],90);for(c=i.length-1;c>=0&&!g(a,i[c],82);c--);if(!s(t.elseStatement,211))break;t=t.elseStatement;}for(var o=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:e.HighlightSpanKind.reference}),c++;continue}}o.push(r(a[c],n));}return o}function E(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.text===t)return!0;return!1}t.getDocumentHighlights=n;}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function a(t,n){var r=p.get(t);return!r&&n&&p.set(t,r=e.createFileMap()),r}function i(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return p.get(e).forEachValue(function(e,n){t.push({name:e,refCount:n.languageServiceRefCount,references:n.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)}function o(t,a,i,o,c){return s(t,e.toPath(t,n,f),a,r(a),i,o,c)}function s(e,t,n,r,a,i,o){return l(e,t,n,r,a,i,!0,o)}function c(t,a,i,o,s){return u(t,e.toPath(t,n,f),a,r(a),i,o,s)}function u(e,t,n,r,a,i,o){return l(e,t,n,r,a,i,!1,o)}function l(t,n,r,i,o,s,c,u){var l=a(i,!0),_=l.get(n);return _?_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))):(e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?"),_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:0,owners:[]},l.set(n,_)),c&&_.languageServiceRefCount++,_.sourceFile}function _(t,a){return d(e.toPath(t,n,f),r(a))}function d(t,n){var r=a(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.remove(t);}void 0===n&&(n="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:_,releaseDocumentWithKey:d,reportStats:i,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t;}(r||(r={}));!function(e){!function(n){function r(e,n,r){var o=s(e,n,r);return function(s,c,u){var l=a(e,o,c,n,r),_=l.directImports,d=l.indirectUsers;return t({indirectUsers:d},i(_,s,c.exportKind,n,u))}}function a(t,n,r,a,i){function s(t){var n=_(t);if(n)for(var r=0,o=n;r=0&&!(u>a);){var l=u+c;0!==u&&e.isIdentifierPart(o.charCodeAt(u-1),5)||l!==s&&e.isIdentifierPart(o.charCodeAt(l),5)||i.push(u),u=o.indexOf(n,u+c+1);}return i}function y(t,r){for(var a=[],i=t.getSourceFile(),o=r.text,s=0,c=g(i,o,t.getStart(),t.getEnd());s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,a=t;r0)return r}switch(t.kind){case 265:var a=t;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 290:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(a.push(e),e.children))for(var t=0,i=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?i(t.parent.left).replace(R,""):261===t.parent.kind&&t.parent.name?i(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){return 186===e.kind||187===e.kind||199===e.kind}var P,F,I,R=/\s+/g,M=[],L=[];t.getNavigationBarItems=n,t.getNavigationTree=r;}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r,a,i){if(n&&r&&a){var o={textSpan:e.createTextSpanFromBounds(r.pos,a.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:i};u.push(o);}}function a(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function i(r){var i=e.getLeadingCommentRangesOfNode(r,t);if(i){for(var s=-1,c=-1,u=!0,l=0,_=0,d=i;_1&&a({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(a){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(a)&&i(a),a.kind){case 207:if(!e.isFunctionBlock(a)){var o=a.parent,p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(a));break}if(224===o.kind){var m=o;if(m.tryBlock===a){r(o,p,f,s(a));break}if(m.finallyBlock===a){var g=e.findChildOfKind(m,87,t);if(g){r(g,p,f,s(a));break}}}var y=e.createTextSpanFromNode(a);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(a)});break}case 234:var p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);r(a.parent,p,f,s(a));break;case 229:case 230:case 232:case 178:case 235:r(a,p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t),s(a));break;case 177:r(a,e.findChildOfKind(a,21,t),e.findChildOfKind(a,22,t),s(a));}_++,e.forEachChild(a,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u}t.collectElements=n;}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(n){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(v))}function l(t,n){if(!o(n)){var r=f(n,e.lastOrUndefined(v));if(r&&(t=t||[],!(v.length-1>t.length))){for(var a=r,i=v.length-2,s=t.length-1;i>=0;i-=1,s-=1){var c=v[i],u=f(t[s],c);if(!u)return;e.addRange(a,u);}return a}}}function _(e){var t=h.get(e);return t||h.set(e,t=m(e)),t}function d(n,r,a){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,a,n===r.text):t(x.prefix,a,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=0,l=_(n);u0)return t(x.substring,a,!0);if(!c&&r.characterSpans.length>0){var p=_(n),f=y(n,p,r,!1);if(void 0!==f)return t(x.camelCase,a,!0,f);if(void 0!==(f=y(n,p,r,!0)))return t(x.camelCase,a,!1,f)}return c&&r.text.length0&&i(n.charCodeAt(o))?t(x.substring,a,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(r)for(l=0;l1}}function r(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function a(e){return 0===e.subWordTextChunks.length}function i(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function _(e){return i(e)||o(e)||l(e)||95===e||36===e}function d(e){for(var t=[],n=0,r=0,a=0;a0&&(t.push(p(e.substr(n,r))),r=0);return r>0&&t.push(p(e.substr(n,r))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,n){for(var r=[],a=0,i=1;i0){if(e.some(c,o))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?a(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind)return o(t)?i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):a(u=e.stripQuotes(t.text),u,e.ScriptElementKind.variableElement,e.ScriptElementKindModifier.none,t,r)}function a(e,t,n,r,a,i){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(a,i)}}function i(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),a=t.getWidth(n);return 9===t.kind&&(r+=1,a-=2),e.createTextSpan(r,a)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=n;}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(t,n,a,i){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,a);if(s){var c=_(s,a,n);if(i.throwIfCancellationRequested(),c){var u=c.invocation,l=[],d=o.getResolvedSignature(u,l);if(i.throwIfCancellationRequested(),l.length)return f(l,d,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.text)for(var a=t.getTypeChecker(),i=0,o=t.getSourceFiles();i0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(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}function c(t,n,r){var a=13===t.template.kind?1:t.template.templateSpans.length+1;return e.Debug.assert(0===n||ni.parent.end)&&e.Debug.fail("Node of kind "+i.kind+" is not a subspan of its parent of kind "+i.parent.kind);var o=a(i,n,r);if(o)return o}}function d(t,n,r){var a=t.getChildren(r),i=a.indexOf(n);return e.Debug.assert(i>=0&&a.length>i+1),a[i+1]}function p(e,t){for(var n=-1,r=-1,a=0;a=t)return a;i.parameters.length>r&&(r=i.parameters.length,n=a);}return n}function f(t,n,r,a){function i(t){var n=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:a.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:m,displayParts:n,isOptional:!1}}var s=r.argumentsSpan,c=0===r.kind,u=r.invocation,l=e.getInvokedExpression(u),_=a.getSymbolAtLocation(l),d=_&&e.symbolToDisplayParts(a,_,void 0,void 0),f=e.map(t,function(t){var n,r=[],s=[];d&&e.addRange(r,d);var l;if(c){l=!1,r.push(e.punctuationPart(27));var _=t.typeParameters;n=_&&_.length>0?e.map(_,o):m,s.push(e.punctuationPart(29));var p=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,p);}else{l=t.hasRestParameter;var f=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,f),r.push(e.punctuationPart(19));var g=t.parameters;n=g.length>0?e.map(g,i):m,s.push(e.punctuationPart(20));}var y=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,y),{isVariadic:l,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}}),g=r.argumentIndex,y=r.argumentCount,h=t.indexOf(n);return h<0&&(h=p(t,y)),e.Debug.assert(0===g||g0?e.getNodeModifiers(t.declarations[0]):e.ScriptElementKindModifier.none}function i(t,a,i,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var a=e.symbolToDisplayParts(t,n,r||i,void 0,3);e.addRange(b,a);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case e.ScriptElementKind.variableElement:case e.ScriptElementKind.functionElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.constructorImplementationElement:return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,a){e.addRange(b,e.signatureToDisplayParts(t,n,o,32|a)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),y=n.getJsDocTags();}function m(n,r){var a=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,a);}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,h,v,b=[],x=a.flags,k=r(t,a,s),S=99===s.kind&&e.isExpression(s);if(k!==e.ScriptElementKind.unknown||32&x||8388608&x){k!==e.ScriptElementKind.memberGetAccessorElement&&k!==e.ScriptElementKind.memberSetAccessorElement||(k=e.ScriptElementKind.memberVariableElement);P=void 0;if(v=S?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(a,s)){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(181===s.kind||182===s.kind?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(a.valueDeclaration)&&(C=s.parent),C){var E=[];!(P=t.getResolvedSignature(C,E))&&E.length&&(P=E[0]);var D=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=D?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,P.target)||e.contains(N,P)||(P=N.length?N[0]:void 0),P){switch(D&&32&x?(k=e.ScriptElementKind.constructorImplementationElement,d(v.symbol,k)):8388608&x?(p(k=e.ScriptElementKind.alias),b.push(e.spacePart()),D&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(a)):d(a,k),k){case e.ScriptElementKind.jsxAttribute:case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.parameterElement:case e.ScriptElementKind.localVariableElement:b.push(e.punctuationPart(56)),b.push(e.spacePart()),D&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(P,N,8);break;default:f(P,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&a.flags)||123===s.kind&&152===s.parent.kind){var A=s.parent,N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();P=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(k=e.ScriptElementKind.constructorImplementationElement,d(v.symbol,k)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?a:v.symbol,k),f(P,N),h=!0;}}}if(32&x&&!h&&!S&&(e.getDeclarationOfKind(a,199)?p(e.ScriptElementKind.localClassElement):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(a),m(a,i)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(a),m(a,i)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(a),m(a,i),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(a),o,512))),384&x&&(u(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(a)),1536&x){u();var w=(O=e.getDeclarationOfKind(a,233))&&O.name&&71===O.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(a);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(a),a.parent)l(),_(a.parent,o),m(a.parent,o);else{var O=e.getDeclarationOfKind(a,145);if(e.Debug.assert(void 0!==O),O=O.parent)if(e.isFunctionLikeKind(O.kind)){l();var P=t.getSignatureFromDeclaration(O);156===O.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==O.kind&&O.name&&_(O.symbol),e.addRange(b,e.signatureToDisplayParts(t,P,i,32));}else 231===O.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(O.symbol),m(O.symbol,i));}if(8&x&&(k=e.ScriptElementKind.enumMemberElement,d(a,"enum member"),264===(O=a.declarations[0]).kind)){var F=t.getConstantValue(O);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(F.toString(),e.SymbolDisplayPartKind.numericLiteral)));}if(8388608&x&&(u(),236===a.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(a),e.forEach(a.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var a=t.getSymbolAtLocation(r.moduleReference);a&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(a,o));}return!0}})),!h)if(k!==e.ScriptElementKind.unknown){if(v)if(S?(u(),b.push(e.keywordPart(99))):d(a,k),k===e.ScriptElementKind.memberVariableElement||k===e.ScriptElementKind.jsxAttribute||3&x||k===e.ScriptElementKind.localVariableElement||S)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||k===e.ScriptElementKind.memberFunctionElement)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else k=n(t,a,s);if(!g&&(g=a.getDocumentationComment(),y=a.getJsDocTags(),0===g.length&&4&a.flags&&a.parent&&e.forEach(a.parent.declarations,function(e){return 265===e.kind})))for(var R=0,M=a.declarations;R0))break}return{displayParts:b,documentation:g,symbolKind:k,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=a,t.getSymbolDisplayPartsDocumentationAndSymbolKind=i;}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,n){var a=[],i=n.compilerOptions?r(n.compilerOptions,a):e.getDefaultCompilerOptions();i.isolatedModules=!0,i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,i.noLib=!0,i.lib=void 0,i.types=void 0,i.noEmit=void 0,i.noEmitOnError=void 0,i.paths=void 0,i.rootDirs=void 0,i.declaration=void 0,i.declarationDir=void 0,i.out=void 0,i.outFile=void 0,i.noResolve=!0;var o=n.fileName||(i.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,i.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(i),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assert(void 0===u,"Unexpected multiple source map outputs for the file '"+t+"'"),u=n):(e.Debug.assert(void 0===c,"Unexpected multiple outputs for the 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[]}},d=e.createProgram([o],i,_);return n.reportDiagnostics&&(e.addRange(a,d.getSyntacticDiagnostics(s)),e.addRange(a,d.getOptionsDiagnostics())),d.emit(),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:a,sourceMapText:u}}function n(n,r,a,i,o){var s=t(n,{compilerOptions:r,fileName:a,reportDiagnostics:!!i,moduleName:o});return e.addRange(i,s.diagnostics),s.outputText}function r(t,n){a=a||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.clone(t);for(var r=0,i=a;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},t}();t.TokenRangeAccess=n;var r=function(){function e(e){this.tokens=e&&e.length?e:[];}return e.prototype.GetTokens=function(){return this.tokens},e.prototype.Contains=function(e){return this.tokens.indexOf(e)>=0},e}();t.TokenValuesAccess=r;var a=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e}();t.TokenSingleValueAccess=a;var i=function(){function e(){}return e.prototype.GetTokens=function(){for(var e=[],t=0;t<=142;t++)e.push(t);return e},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e}();t.TokenAllAccess=i;var o=function(){function e(e){this.tokenAccess=e;}return e.FromToken=function(t){return new e(new a(t))},e.FromTokens=function(t){return new e(new r(t))},e.FromRange=function(t,r,a){return void 0===a&&(a=[]),new e(new n(t,r,a))},e.AllTokens=function(){return new e(new i)},e.prototype.GetTokens=function(){return this.tokenAccess.GetTokens()},e.prototype.Contains=function(e){return this.tokenAccess.Contains(e)},e.prototype.toString=function(){return this.tokenAccess.toString()},e}();o.Any=o.AllTokens(),o.AnyIncludingMultilineComments=o.FromTokens(o.Any.GetTokens().concat([3])),o.Keywords=o.FromRange(72,142),o.BinaryOperators=o.FromRange(27,70),o.BinaryKeywordOperators=o.FromTokens([92,93,142,118,126]),o.UnaryPrefixOperators=o.FromTokens([43,44,52,51]),o.UnaryPrefixExpressions=o.FromTokens([8,71,19,21,17,99,94]),o.UnaryPreincrementExpressions=o.FromTokens([71,19,99,94]),o.UnaryPostincrementExpressions=o.FromTokens([71,20,22,94]),o.UnaryPredecrementExpressions=o.FromTokens([71,19,99,94]),o.UnaryPostdecrementExpressions=o.FromTokens([71,20,22,94]),o.Comments=o.FromTokens([2,3]),o.TypeNames=o.FromTokens([71,133,136,122,137,105,119]),t.TokenRange=o;}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r,a){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var o=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,m({pos:e.getStartPositionOfLine(i-1,n),end:o+1},n,a,r,2)}function r(e,t,n,r){return s(e,25,t,r,n,3)}function a(e,t,n,r){return s(e,18,t,r,n,4)}function i(e,t,n){return m({pos:0,end:e.text.length},e,n,t,0)}function o(t,n,r,a,i){return m({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,a,1)}function s(t,n,r,a,i,o){var s=c(t,n,r);return s?m({pos:e.getLineStartPositionForPosition(s.getStart(r),r),end:s.end},r,a,i,o):[]}function c(t,n,r){var a=e.findPrecedingToken(t,r);if(a&&a.kind===n&&t===a.getEnd()){for(var i=a;i&&i.parent&&i.parent.end===a.end&&!u(i.parent,i);)i=i.parent;return i}}function u(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function l(t,n){function r(a){var i=e.forEachChild(a,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(i){var o=r(i);if(o)return o}return a}return r(n)}function _(t,n){function r(){return!1}if(!t.length)return r;var a=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!a.length)return r;var i=0;return function(t){for(;;){if(i>=a.length)return!1;var n=a[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 d(t,n,r){var a=t.getStart(r);if(a===n.pos&&t.end===n.end)return a;var i=e.findPrecedingToken(n.pos,r);return i?i.end>=n.pos?t.pos:i.end:t.pos}function p(e,n,r){for(var a,i=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&o!==i)break;if(t.SmartIndenter.shouldIndentChildNode(e,a))return n.indentSize;i=o,a=e,e=e.parent;}return 0}function f(e,n,r,a,i,o){var s={pos:0,end:n.text.length};return g(s,e,a,i,t.getFormattingScanner(n.text,r,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},n)}function m(e,n,r,a,i){var o=l(e,n);return g(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),p(o,r,n),t.getFormattingScanner(n.text,n.languageVariant,d(o,e,n),e.end),r,a,i,_(n.parseDiagnostics,e),n)}function g(n,r,a,i,o,s,c,u,l,_){function d(n,r,a,i,o){if(e.rangeOverlapsWithStartEnd(i,n,r)||e.rangeContainsStartEnd(i,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==a||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function p(e,n,r,a,i,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===L?B:i.getIndentation(),u=Math.min(s.indentSize,i.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,n,_)?i.getIndentation():i.getIndentation()+i.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,n,r,a){function i(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+i(a,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===f(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+i(a,s):r},getIndentation:function(){return r},getDelta:function(e){return i(a,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,a=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function g(t,r,a,i,s,c){function u(r,a,i,s,c,u,l,f){var m=r.getStart(_),y=_.getLineAndCharacterOfPosition(m).line,h=y;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var b=-1;if(l&&-1!==(b=d(m,r.end,c,n,a))&&(a=b),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endm);)v(x,t,s,t);if(!o.isOnToken())return a;if(e.isToken(r)&&10!==r.kind){var x=o.readTokenInfo(r);return e.Debug.assert(x.token.end===r.end,"Token end is child end"),v(x,t,s,r),a}var k=147===r.kind?y:u,S=p(r,y,b,t,s,k);return g(r,T,y,h,S.indentation,S.delta),T=t,f&&177===i.kind&&-1===a&&(a=S.indentation),a}function f(n,r,a,i){var s=y(r,n),c=h(s),l=i,d=a;if(0!==s)for(;o.isOnToken()&&!((x=o.readTokenInfo(r)).token.end>n.pos);)if(x.token.kind===s){d=_.getLineAndCharacterOfPosition(x.token.pos).line;var f=p(x.token,d,-1,r,i,a);v(x,r,l=m(r,a,f.indentation,f.delta),r);}else v(x,r,i,r);for(var g=-1,b=0;bt.end)break;v(C,t,k,t);}}}function b(t,r,a,i){for(var o=0,s=t;o0){var k=v(x,s);O(h,b.character,k);}else w(h,b.character);}}}else a||S(n.pos,r,!1);}function D(t,n,r){for(var a=t;ao)){var s=N(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function O(e,t,n){(t||n)&&j.push(A(e,t,n));}function P(e,t,n,r,a){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==a)return;1!==a-n&&O(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==a)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||O(t.end,r.pos-t.end," ");}}var F,I,R,M,L,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),g(r,r,J,z,a,i);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(b(U,r,r,void 0),function(){var e=I?I.end:n.pos;D(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function y(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function h(e){switch(e){case 19:return 20;case 27:return 29}return 0}function v(e,t){function n(e,t){for(var n="",r=0;rr.text.length)return a(o);if(o.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,r);if(!_)return a(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(r)<=n&&_.end>n)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(o.indentStyle===e.IndentStyle.Block){for(var p=n;p>0;){var g=r.text.charCodeAt(p);if(!e.isWhiteSpaceLike(g))break;p--;}var y=e.getLineStartPositionForPosition(p,r);return t.findFirstNonWhitespaceColumn(y,p,r,o)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=s(_,r,o)))return T;for(var h,v,b,x=_;x;){if(e.positionBelongsToNode(x,n,r)&&k(x,h)){v=l(x,r);var S=u(_,x,d,r);b=0!==S?c&&2===S?o.indentSize:0:d!==v.line?o.indentSize:0;break}var T=f(x,r,o);if(-1!==T)return T;if(-1!==(T=m(x,r,o)))return T+o.indentSize;h=x,x=x.parent;}return x?i(x,v,void 0,b,r,o):a(o)}function r(e,t,n,r){return i(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function a(e){return e.baseIndentSize||0}function i(e,t,n,r,i,s){for(var u,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(i);d=pn.end;}if(d&&-1!==(y=f(e,i,s)))return y+r;var g=(u=o(l,e,i)).line===t.line||_(l,e,t.line,i);if(d){var y=c(e,l,t,g,i,s);if(-1!==y)return y+r;if(-1!==(y=m(e,i,s)))return y+r}k(l,e)&&!g&&(r+=s.indentSize),t=u,l=(e=l).parent;}return r+a(s)}function o(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function s(t,n,r){var a=e.findListItemInfo(t);return a&&a.listItemIndex>0?g(a.list.getChildren(),a.listItemIndex-1,n,r):-1}function c(t,n,r,a,i,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!a)?y(r,i,o):-1}function u(t,n,r,a){var i=e.findNextToken(t,n);return i?17===i.kind?1:18===i.kind&&r===l(i,a).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,a){if(211===t.kind&&t.elseStatement===n){var i=e.findChildOfKind(t,82,a);return e.Debug.assert(void 0!==i),l(i,a).line===r}return!1}function d(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return d(e.parent.typeParameters,n,e.getEnd())||d(e.parent.parameters,n,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return d(e.parent.typeArguments,n,e.getEnd())||d(e.parent.arguments,n,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,n,r){var a=p(t,n);return a?function(a){var i=e.indexOf(a,t);return-1!==i?g(a,i,n,r):-1}(a):-1}function m(e,t,n){if(20===e.kind)return-1;if(e.parent&&(181===e.parent.kind||182===e.parent.kind)&&e.parent.expression!==e){var r=e.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(r);if(r===a)return-1;var i=t.getLineAndCharacterOfPosition(r.end),o=t.getLineAndCharacterOfPosition(a.end);return i.line===o.line?-1:y(i,t,n)}return-1}function g(t,n,r,a){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==i.line)return y(i,r,a);i=l(t[o],r);}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return v(r,r+e.character,t,n)}function h(t,n,r,a){for(var i=0,o=0,s=t;s=0;r--){var a=n[r];t=""+t.substring(0,a.span.start)+a.newText+t.substring(e.textSpanEnd(a.span));}return t}function g(t){return e.skipTrivia(t,0)===t.length}function y(t){function r(){}var i=e.visitEachChild(t,y,x,h,y),o=e.nodeIsSynthesized(i)?i:(r.prototype=i,new r);return o.pos=n(t),o.end=a(t),o}function h(t,r,i,o,s){var c=e.visitNodes(t,r,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=a(t),u}var v;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(v=t.Position||(t.Position={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var b=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t("\n"===e.newLineCharacter?1:0,e.rulesProvider)},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,v.FullStart),a=l(e,t,n);return this.changes.push({sourceFile:e,options:n,range:{pos:r,end:a}}),this},t.prototype.deleteRange=function(e,t){return this.changes.push({sourceFile:e,range:t}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var a=u(e,t,r,v.FullStart),i=l(e,n,r);return this.changes.push({sourceFile:e,options:r,range:{pos:a,end:i}}),this},t.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 a=r.indexOf(n);if(a<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(a!==r.length-1){var i=e.getTokenAtPosition(t,n.end);if(i&&_(n,i)){var o=e.skipTrivia(t.text,u(t,n,{},v.FullStart),!1,!0),s=r[a+1],c=e.skipTrivia(t.text,u(t,s,{},v.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c});}}else{var l=e.getTokenAtPosition(t,r[a-1].end);l&&_(n,l)&&this.deleteNodeRange(t,l,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var a=u(e,t,r,v.Start),i=l(e,t,r);return this.changes.push({sourceFile:e,options:r,useIndentationFromFile:!0,node:n,range:{pos:a,end:i}}),this},t.prototype.replaceNodeRange=function(e,t,n,r,a){void 0===a&&(a={});var i=u(e,t,a,v.Start),o=l(e,n,a);return this.changes.push({sourceFile:e,options:a,useIndentationFromFile:!0,node:r,range:{pos:i,end:o}}),this},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var a=u(e,t,r,v.Start);return this.changes.push({sourceFile:e,options:r,useIndentationFromFile:!0,node:n,range:{pos:a,end:a}}),this},t.prototype.insertNodeAfter=function(t,n,r,a){void 0===a&&(a={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var i=l(t,n,a);return this.changes.push({sourceFile:t,options:a,useIndentationFromFile:!0,node:r,range:{pos:i,end:i}}),this},t.prototype.insertNodeInListAfter=function(t,n,r){var a=e.formatting.SmartIndenter.getContainingList(n,t);if(!a)return e.Debug.fail("node is not a list element"),this;var i=a.indexOf(n);if(i<0)return this;var c=n.getEnd();if(i!==a.length-1){var u=e.getTokenAtPosition(t,n.end);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,a[i+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===l.line?(m=u.end,f=d(l.character-p.character)):m=e.getStartPositionOfLine(l.line,t),this.changes.push({sourceFile:t,range:{pos:m,end:a[i+1].getStart(t)},node:r,useIndentationFromFile:!0,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,a[i+1].getStart(t))}});}}else{var g=n.getStart(t),y=e.getLineStartPositionForPosition(g,t),h=void 0,v=!1;if(1===a.length)h=26;else{var b=e.findPrecedingToken(n.pos,t);h=_(n,b)?b.kind:26,v=e.getLineStartPositionForPosition(a[i-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var x=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:x,prefix:this.newLineCharacter}});}else this.changes.push({sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createFileMap(),a=0,i=this.changes;a0&&(r=r.concat(n));}),r}var i=[];t.registerCodeFix=n,t.getSupportedErrorCodes=r,t.getFixes=a;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(e,t,n,r){if(!n){var a=s.getIndexInfoOfType(e,t);if(a){var i=s.indexInfoToIndexSignatureDeclaration(a,t,c);r.push(i);}}}var a=n.sourceFile,i=n.span.start,o=e.getTokenAtPosition(a,i),s=n.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,a),l=s.getTypeAtLocation(c),_=e.getClassImplementsHeritageClauseElements(c),d=!!s.getIndexTypeOfType(l,1),p=!!s.getIndexTypeOfType(l,0),f=[],m=0,g=_;m0&&function(e,r,a){var i={description:a,changes:t.newNodesToChanges(r,u,n)};e.push(i);}(f,b,x);}return f}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n=t.sourceFile,r=t.span.start,a=e.getTokenAtPosition(n,r);if(71===a.kind&&e.isPropertyAccessExpression(a.parent)&&99===a.parent.expression.kind){var i=e.getThisContainer(a,!1);if(e.isClassElement(i)){var o=i.parent;if(o&&e.isClassLike(o)){var s=e.hasModifier(i,32);return e.isInJavaScriptFile(n)?function(){var r=a.getText();if(s){if(199===o.kind)return;var i=o.name.getText();return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[r]),changes:[{fileName:n.fileName,textChanges:[{span:{start:o.getEnd(),length:0},newText:""+t.newLineCharacter+i+"."+r+" = undefined;"+t.newLineCharacter}]}]}]}var c=e.getFirstConstructorWithBody(o);if(c)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[r]),changes:[{fileName:n.fileName,textChanges:[{span:{start:c.body.getEnd()-1,length:0},newText:"this."+r+" = undefined;"+t.newLineCharacter}]}]}]}():function(){var r;if(194===a.parent.parent.kind){var i=a.parent.parent,c=t.program.getTypeChecker(),u=c.getWidenedType(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(i.right)));r=c.typeToTypeNode(u,o);}r=r||e.createKeywordTypeNode(119);var l=e.getOpenBraceOfClassLike(o,n),_=e.createProperty(void 0,s?[e.createToken(115)]:void 0,a.getText(n),void 0,r,void 0),d=e.textChanges.ChangeTracker.fromCodeFixContext(t);d.insertNodeAfter(n,l,_,{suffix:t.newLineCharacter});var p=[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_declaration_for_missing_property_0),[a.getText()]),changes:d.getChanges()}];if(!s){var f=e.createKeywordTypeNode(136),m=e.createParameter(void 0,void 0,void 0,"x",void 0,f,void 0),g=e.createIndexSignatureDeclaration(void 0,void 0,[m],r),y=e.textChanges.ChangeTracker.fromCodeFixContext(t);y.insertNodeAfter(n,l,g,{suffix:t.newLineCharacter}),p.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_missing_property_0),[a.getText()]),changes:y.getChanges()});}return p}()}}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var a=n.sourceFile,i=n.span.start,o=e.getTokenAtPosition(a,i),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,a),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,a=e.getTokenAtPosition(r,t.span.start);if(99===a.kind){var i=e.getContainingFunction(a),o=n(i.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;g--){var y=l.statements[g];if(237===y.kind||238===y.kind){u=y;break}}var h=e.createGetCanonicalFileName(p),v=e.stripQuotes(n||function(){var n=l.fileName,a=r.valueDeclaration.getSourceFile().fileName,i=e.getDirectoryPath(n),s=t.program.getCompilerOptions();return function(){if(265!==r.valueDeclaration.kind)return r.name}()||function(){var n=e.getEffectiveTypeRoots(s,t.host);if(n)for(var r=0,i=e.map(n,function(t){return e.toPath(t,void 0,h)});r=l.length+p.length&&e.startsWith(t,l)&&e.endsWith(t,p)){var f=t.substr(l.length,t.length-p.length);return r.replace("*",f)}}else if(c===t||c===n)return r}return t}}}()||function(){if(s.rootDirs){var t=o(a,s.rootDirs),n=o(i,s.rootDirs);if(void 0!==t){var r=void 0!==n?f(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(f(a,i))}()),b=s(),x=a?e.createImportClause(e.createIdentifier(m),void 0):i?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(m))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(m))])),k=e.createImportDeclaration(void 0,void 0,x,e.createLiteral(v));return u?b.insertNodeAfter(l,u,k,{suffix:t.newLineCharacter}):b.insertNodeAt(l,l.getStart(),k,{suffix:""+t.newLineCharacter+t.newLineCharacter}),c(e.Diagnostics.Import_0_from_1,[m,'"'+v+'"'],b.getChanges(),"NewImport",v)}var _=n(r);return _.length>0?function(t){for(var n,r,a,u=[],_=0,d=t;_=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,a=t.program,i=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,a.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,i)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+i}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){for(var a=r.sourceFile,i=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;og.length){var v=r.getSignatureFromDeclaration(o[o.length-1]),b=a(v,n,s());b&&y.push(b);}else{e.Debug.assert(o.length===g.length);var x=i(g,l,f,d);y.push(x);}return y;default:return}}}function i(t,n,r,a){for(var i=t[0],s=t[0].minArgumentCount,c=!1,u=0;u=i.parameters.length&&(!l.hasRestParameter||i.hasRestParameter)&&(i=l);}for(var _=i.parameters.length-(i.hasRestParameter?1:0),d=i.parameters.map(function(e){return e.getName()}),p=[],u=0;u<_;u++){var f=e.createKeywordTypeNode(119),m=e.createParameter(void 0,void 0,void 0,d[u],u>=s?e.createToken(55):void 0,f,void 0);p.push(m);}if(c){var g=e.createArrayTypeNode(e.createKeywordTypeNode(119)),y=e.createParameter(void 0,void 0,e.createToken(24),d[_]||"rest",_>=s?e.createToken(55):void 0,g,void 0);p.push(y);}return o(a,n,r,void 0,p,void 0)}function o(t,n,r,a,i,o){return e.createMethodDeclaration(void 0,t,void 0,n,r?e.createToken(55):void 0,a,i,o,s())}function s(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function c(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createStubbedMethod=o;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){function t(e,t,n,r){var a=e>=143?new b(e,t,n):71===e?new T(71,t,n):new S(e,t,n);return a.parent=r,a}function r(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!a(r)){n=!1;break}if(n)return t;var i={};for(var r in t)e.hasProperty(t,r)&&(i[a(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return i}function a(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function i(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function c(e,t,n){e.version=n,e.scriptSnapshot=t;}function u(t,n,r,a,i,o){var s=n.getText(0,n.getLength()),u=e.createSourceFile(t,s,r,i,o);return c(u,n,a),u}function l(t,n,r,a,i){if(a&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==a.span.start?t.text.substr(0,a.span.start):"",l=e.textSpanEnd(a.span)!==t.text.length?t.text.substr(e.textSpanEnd(a.span)):"";if(0===a.newLength)o=s&&l?s+l:s||l;else{var _=n.getText(a.span.start,a.span.start+a.newLength);o=s&&l?s+_+l:s?s+_:_+l;}var d=e.updateSourceFile(t,o,a,i);return c(d,n,r),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return u(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function _(t,n){function a(e){t.log&&t.log(e);}function i(e){var t=ae.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return v.ensureUpToDate(e),v}function s(){function r(t){return i(t,e.toPath(t,ue,le))}function i(t,r){e.Debug.assert(void 0!==u);var a=u.getOrCreateEntryByPath(t,r);if(a){if(!d){var i=ae&&ae.getSourceFileByPath(r);if(i)return e.Debug.assert(a.scriptKind===i.scriptKind,"Registered script kind ("+i.scriptKind+") should match new script kind ("+a.scriptKind+") for file: "+r),n.updateDocumentWithKey(t,r,_,f,a.scriptSnapshot,a.version,a.scriptKind)}return n.acquireDocumentWithKey(t,r,_,f,a.scriptSnapshot,a.version,a.scriptKind)}}function o(t){if(!t)return!1;var n=t.path||e.toPath(t.fileName,ue,le);return t.version===u.getVersion(n)}if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(ie===s)return;ie=s;}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;oe!==c&&(a("TypeRoots version has changed; provide new program"),ae=void 0,oe=c);var u=new N(t,le);if(!function(){if(!ae)return!1;var t=u.getRootFileNames();if(ae.getSourceFiles().length!==t.length)return!1;for(var n=0,r=t;n0)for(var u=function(){var t=/(?:\/\/+\s*)/.source,a=/(?:\/\*+\s*)/.source,i="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+a+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=i+("("+o+/(?:.*?)/.source+")")+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){ce.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length,p=e.getTokenAtPosition(a,d);if(e.isInsideComment(a,p,d)){for(var f=void 0,m=0;m=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+f.text.length))){var g=l[2];c.push({descriptor:f,message:g,position:d});}}}return c}function ne(n,r){s();var a=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(ae.getTypeChecker(),a,le,i(n),r)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var re=new A(t);v=v||new e.formatting.RulesProvider;var ae,ie,oe=0,se=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),ce=new w(t.getCancellationToken&&t.getCancellationToken()),ue=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var le=e.createGetCanonicalFileName(se);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:_,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:V,getSemanticClassifications:z,getEncodedSyntacticClassifications:q,getEncodedSemanticClassifications:U,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:h,getImplementationAtPosition:x,getTypeDefinitionAtPosition:b,getReferencesAtPosition:E,findReferences:O,getOccurrencesAtPosition:k,getDocumentHighlights:S,getNameOrDottedNameSpan:L,getBreakpointStatementAtPosition:B,getNavigateToItems:P,getRenameInfo:ne,findRenameLocations:C,getNavigationBarItems:K,getNavigationTree:j,getOutliningSpans:$,getTodoComments:te,getBraceMatchingAtPosition:G,getIndentationAtPosition:W,getFormattingEditsForRange:H,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Q,getEmitOutput:F,getNonBoundSourceFile:R,getSourceFile:M,getProgram:c}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){function n(t){switch(t.kind){case 71:r(t.text,t);break;case 9:case 8:(e.isDeclarationName(t)||248===t.parent.kind||y(t)||e.isLiteralComputedPropertyDeclarationName(t))&&r(t.text,t);break;default:if(e.forEachChild(t,n),t.jsDoc)for(var a=0,i=t.jsDoc;a=143){e.scanner.setText((t||this.getSourceFile()).text),n=[];var a=this.pos,i=this.kind>=283&&this.kind<=293,o=function(t){var o=e.isJSDocTag(t);!o&&a293});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),x=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||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),k=function(){function t(e,t){this.flags=e,this.name=t;}return t.prototype.getFlags=function(){return this.flags},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),S=function(e){function t(t,n,r){var a=e.call(this,n,r)||this;return a.kind=t,a}return n(t,e),t}(x),T=function(e){function t(t,n,r){return e.call(this,n,r)||this}return n(t,e),t}(x);T.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 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),E=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),D=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.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 a=this.getFullText();return"\n"===a[t]&&"\r"===a[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&o.add(t,e);}function n(e){var t=o.get(e);return t||o.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=a(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:a(i)}}}function a(e){if(e&&(71===e.kind||9===e.kind||8===e.kind))return e.text}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=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 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 237:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var o=e.createMultiMap();return e.forEachChild(this,i),o},r}(b);e.toEditorSettings=r,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var N=function(){function t(t,n){this.host=t,this.getCanonicalFileName=n,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createFileMap();for(var r=0,a=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=O,e.createLanguageService=_,e.getNameTable=d,e.getContainingObjectLiteralElement=m,e.getPropertySymbolsFromContextualType=g,e.getDefaultLibFilePath=h,e.objectAllocator=function(){return{getNodeConstructor:function(){return b},getTokenConstructor:function(){return S},getIdentifierConstructor:function(){return T},getSourceFileConstructor:function(){return D},getSymbolConstructor:function(){return k},getTypeConstructor:function(){return C},getSignatureConstructor:function(){return E}}}();}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r){var a=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(a,(r||n).getEnd())}function a(t,n){return r(t,e.findNextToken(n,n.parent))}function i(e,n){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return y(t.name);if(d(t))return r(t);var n=t.parent,a=e.indexOf(n.parameters,t);return a?p(n.parameters[a-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return i(n.parent,n.statements[0]);case 214:case 216:return i(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,a=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return a?u(a):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?i(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return a(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return a(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return a(n,n.expression);case 216:return g(n);case 221:return a(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return i(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return i(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var a=n.parent;return i(e.findPrecedingToken(n.pos,t,n.parent),a.members.length?a.members[0]:a.getLastToken(t));case 235:return i(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,a=e.lastOrUndefined(n.clauses);if(a)return u(e.lastOrUndefined(a.statements));return;case 174:var i=t.parent;return u(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return r(e.lastOrUndefined(a.elements)||a)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?a(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){b=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n;}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){function t(t,n,r){var a=[];r=e.fixupCompilerOptions(r,a);var i=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,i,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}e.transform=t;}(r||(r={}));var r,a=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function i(e,n,r,a){var i;a&&(e.log(n),i=t.timestamp());var o=r();if(a){var s=t.timestamp();if(e.log(n+" completed in "+(s-i)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,a,o,s){try{var c=i(e,n,o,s);return a?JSON.stringify({result:c}):c}catch(a){return a instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,a),a.description=n,JSON.stringify({error:a}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var a=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(a.span.start,a.span.length),a.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var a=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(a,e);return n?{resolvedFileName:n,extension:t.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(e,r){var a=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(a,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.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},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.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}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,a,i){var o=t.getFileMatcherPatterns(e,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(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 e.prototype.readDirectory=function(e,n,r,a,i){try{var o=t.getFileMatcherPatterns(e,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}catch(a){for(var s=[],c=0,u=n;c",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findChildOfKind:findChildOfKind,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:l,ast:d,additionalOptions:p})}function r(e){const t=n(e);return{type:AST_NODE_TYPES.TypeAnnotation,loc:t.loc,range:t.range,typeAnnotation:t}}function a(e){const t=e[0],r=e[e.length-1];return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,r.end+1],loc:nodeUtils$1.getLocFor(t.pos-1,r.end+1,d),params:e.map(e=>({type:AST_NODE_TYPES.GenericTypeAnnotation,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,d),id:n(e.typeName||e),typeParameters:e.typeArguments?a(e.typeArguments):null}))}}function i(t){const n=t[0],a=t[t.length-1];return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,a.end+1],loc:nodeUtils$1.getLocFor(n.pos-1,a.end+1,d),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text);const a=t.default?e({node:t.default,parent:t,ast:d,additionalOptions:p}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,d),name:n,constraint:t.constraint?r(t.constraint):null,default:a}})}}function o(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=a(e.typeArguments)),r}function s(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=a(e.typeArguments)),r}function c(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,d),expression:t}}):[]}function u(e){const t=nodeUtils$1.convertToken(e,d);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const e=l.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(l.tagName.expression),t.property=n(l.tagName.name),t.object.type=e?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier;}else t.name=t.value;return delete t.value,t}const l=t.node,_=t.parent,d=t.ast,p=t.additionalOptions||{};if(!l)return null;let f={type:"",range:[l.getStart(),l.end],loc:nodeUtils$1.getLoc(l,d)};switch(l.kind){case SyntaxKind.SourceFile:Object.assign(f,{type:AST_NODE_TYPES.Program,body:[],sourceType:l.externalModuleIndicator?"module":"script"}),l.statements.forEach(e=>{const t=n(e);t&&f.body.push(t);}),f.range[1]=l.endOfFileToken.pos,f.loc=nodeUtils$1.getLocFor(l.getStart(),f.range[1],d);break;case SyntaxKind.Block:Object.assign(f,{type:AST_NODE_TYPES.BlockStatement,body:l.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(f,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(l.text)});break;case SyntaxKind.WithStatement:Object.assign(f,{type:AST_NODE_TYPES.WithStatement,object:n(l.expression),body:n(l.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(f,{type:AST_NODE_TYPES.ReturnStatement,argument:n(l.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(f,{type:AST_NODE_TYPES.LabeledStatement,label:n(l.label),body:n(l.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(f,{type:SyntaxKind[l.kind],label:n(l.label)});break;case SyntaxKind.IfStatement:Object.assign(f,{type:AST_NODE_TYPES.IfStatement,test:n(l.expression),consequent:n(l.thenStatement),alternate:n(l.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(f,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(l.expression),cases:l.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(f,{type:AST_NODE_TYPES.SwitchCase,test:n(l.expression),consequent:l.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(f,{type:AST_NODE_TYPES.ThrowStatement,argument:n(l.expression)});break;case SyntaxKind.TryStatement:Object.assign(f,{type:AST_NODE_TYPES.TryStatement,block:e({node:l.tryBlock,parent:null,ast:d,additionalOptions:p}),handler:n(l.catchClause),finalizer:n(l.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(f,{type:AST_NODE_TYPES.CatchClause,param:n(l.variableDeclaration.name),body:n(l.block)});break;case SyntaxKind.WhileStatement:Object.assign(f,{type:AST_NODE_TYPES.WhileStatement,test:n(l.expression),body:n(l.statement)});break;case SyntaxKind.DoStatement:Object.assign(f,{type:AST_NODE_TYPES.DoWhileStatement,test:n(l.expression),body:n(l.statement)});break;case SyntaxKind.ForStatement:Object.assign(f,{type:AST_NODE_TYPES.ForStatement,init:n(l.initializer),test:n(l.condition),update:n(l.incrementor),body:n(l.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=l.awaitModifier&&l.awaitModifier.kind===SyntaxKind.AwaitKeyword;Object.assign(f,{type:SyntaxKind[l.kind],left:n(l.initializer),right:n(l.expression),body:n(l.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;if(l.modifiers&&l.modifiers.length){const t=nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,l);t&&(e=AST_NODE_TYPES.DeclareFunction);}l.parent&&l.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(f,{type:e,id:n(l.name),generator:!!l.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),params:l.parameters.map(n),body:n(l.body)}),l.type&&(f.returnType=r(l.type)),l.typeParameters&&l.typeParameters.length&&(f.typeParameters=i(l.typeParameters)),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.VariableDeclaration:Object.assign(f,{type:AST_NODE_TYPES.VariableDeclarator,id:n(l.name),init:n(l.initializer)}),l.type&&(f.id.typeAnnotation=r(l.type));break;case SyntaxKind.VariableStatement:Object.assign(f,{type:AST_NODE_TYPES.VariableDeclaration,declarations:l.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(l.declarationList)}),f=nodeUtils$1.fixExports(l,f,d);break;case SyntaxKind.VariableDeclarationList:Object.assign(f,{type:AST_NODE_TYPES.VariableDeclaration,declarations:l.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(l)});break;case SyntaxKind.ExpressionStatement:Object.assign(f,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(l.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(f,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(l,SyntaxKind.BinaryExpression),t=l.parent&&l.parent.kind===SyntaxKind.ForOfStatement,r=l.parent&&l.parent.kind===SyntaxKind.ForInStatement;let a;e&&(a=e.left===l||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,d)===l),a||t||r?Object.assign(f,{type:AST_NODE_TYPES.ArrayPattern,elements:l.elements.map(n)}):Object.assign(f,{type:AST_NODE_TYPES.ArrayExpression,elements:l.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(l,SyntaxKind.BinaryExpression);let t;e&&(t=e.left===l||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ObjectLiteralExpression,d)===l),t?Object.assign(f,{type:AST_NODE_TYPES.ObjectPattern,properties:l.properties.map(n)}):Object.assign(f,{type:AST_NODE_TYPES.ObjectExpression,properties:l.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:n(l.initializer),computed:nodeUtils$1.isComputedProperty(l.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:n(l.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(_.kind!==SyntaxKind.ObjectLiteralExpression)return n(l.expression);Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:n(l.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l);Object.assign(f,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(l.name),value:n(l.initializer),computed:nodeUtils$1.isComputedProperty(l.name),static:nodeUtils$1.hasStaticModifierFlag(l),accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),decorators:c(l.decorators),typeAnnotation:l.type?r(l.type):null}),l.name.kind===SyntaxKind.Identifier&&l.questionToken&&(f.key.optional=!0),f.key.type===AST_NODE_TYPES.Literal&&l.questionToken&&(f.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=d.getLineAndCharacterOfPosition(l.name.end+1),t=l.kind===SyntaxKind.MethodDeclaration,a={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!l.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),body:n(l.body),range:[l.parameters.pos-1,f.range[1]],loc:{start:{line:e.line+1,column:e.character-1},end:f.loc.end}};if(l.type&&(a.returnType=r(l.type)),_.kind===SyntaxKind.ObjectLiteralExpression)a.params=l.parameters.map(n),Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:a,computed:nodeUtils$1.isComputedProperty(l.name),method:t,shorthand:!1,kind:"init"});else{a.params=l.parameters.map(e=>{const t=n(e);t.decorators=c(e.decorators);return t});const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(f,{type:e,key:n(l.name),value:a,computed:nodeUtils$1.isComputedProperty(l.name),static:nodeUtils$1.hasStaticModifierFlag(l),kind:"method",accessibility:nodeUtils$1.getTSNodeAccessibility(l),decorators:c(l.decorators)});}f.key.type===AST_NODE_TYPES.Identifier&&l.questionToken&&(f.key.optional=!0),l.kind===SyntaxKind.GetAccessor?f.kind="get":l.kind===SyntaxKind.SetAccessor?f.kind="set":f.static||l.name.kind!==SyntaxKind.StringLiteral||"constructor"!==l.name.text||(f.kind="constructor"),l.typeParameters&&l.typeParameters.length&&(a.typeParameters=i(l.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(l),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l),r=e?nodeUtils$1.findNextToken(l.getFirstToken(),d):l.getFirstToken(),a=d.getLineAndCharacterOfPosition(l.parameters.pos-1),i={type:AST_NODE_TYPES.FunctionExpression,id:null,params:l.parameters.map(e=>{const t=n(e);const r=c(e.decorators);return Object.assign(t,{decorators:r})}),generator:!1,expression:!1,async:!1,body:n(l.body),range:[l.parameters.pos-1,f.range[1]],loc:{start:{line:a.line+1,column:a.character},end:f.loc.end}},o=d.getLineAndCharacterOfPosition(r.getStart()),s=!!l.name&&nodeUtils$1.isComputedProperty(l.name);let u;u=s?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:l.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:i.loc.start.line,column:i.loc.start.column}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:i.loc.start.line,column:i.loc.start.column}}},Object.assign(f,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:u,value:i,computed:s,accessibility:nodeUtils$1.getTSNodeAccessibility(l),static:e,kind:e||s?"method":"constructor"});break}case SyntaxKind.FunctionExpression:Object.assign(f,{type:AST_NODE_TYPES.FunctionExpression,id:n(l.name),generator:!!l.asteriskToken,params:l.parameters.map(n),body:n(l.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),expression:!1}),l.type&&(f.returnType=r(l.type)),l.typeParameters&&l.typeParameters.length&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(f,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(f,{type:AST_NODE_TYPES.ArrayPattern,elements:l.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(f,{type:AST_NODE_TYPES.ObjectPattern,properties:l.elements.map(n)});break;case SyntaxKind.BindingElement:if(_.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:l.name,parent:_,ast:d,additionalOptions:p});if(l.initializer)Object.assign(f,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(l.initializer)});else{if(!l.dotDotDotToken)return t;Object.assign(f,{type:AST_NODE_TYPES.RestElement,argument:t});}}else _.kind===SyntaxKind.ObjectBindingPattern&&(l.dotDotDotToken?Object.assign(f,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(l.propertyName||l.name),computed:Boolean(l.propertyName&&l.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!l.propertyName}):Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.propertyName||l.name),value:n(l.name),computed:Boolean(l.propertyName&&l.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!l.propertyName,kind:"init"}),l.initializer&&(f.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(l.name),right:n(l.initializer),range:[l.name.getStart(),l.initializer.end],loc:nodeUtils$1.getLocFor(l.name.getStart(),l.initializer.end,d)}));break;case SyntaxKind.ArrowFunction:Object.assign(f,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:l.parameters.map(n),body:n(l.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),expression:l.body.kind!==SyntaxKind.Block}),l.type&&(f.returnType=r(l.type)),l.typeParameters&&l.typeParameters.length&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(f,{type:AST_NODE_TYPES.YieldExpression,delegate:!!l.asteriskToken,argument:n(l.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(f,{type:AST_NODE_TYPES.AwaitExpression,argument:n(l.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(f,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:d.text.slice(l.getStart()+1,l.end-1),cooked:l.text},tail:!0,range:f.range,loc:f.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(f,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(l.head)],expressions:[]}),l.templateSpans.forEach(e=>{f.expressions.push(n(e.expression));f.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(f,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(l.tag),quasi:n(l.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=l.kind===SyntaxKind.TemplateTail;Object.assign(f,{type:AST_NODE_TYPES.TemplateElement,value:{raw:d.text.slice(l.getStart()+1,l.end-(e?1:2)),cooked:l.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;l.parent&&l.parent.parent&&l.parent.parent.kind===SyntaxKind.BinaryExpression&&(l.parent.parent.left===l.parent?e=AST_NODE_TYPES.RestElement:l.parent.parent.right===l.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(f,{type:e,argument:n(l.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;l.parent&&l.parent.parent&&l.parent.parent.kind===SyntaxKind.BinaryExpression&&(l.parent.parent.right===l.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:l.parent.parent.left===l.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(f,{type:e,argument:n(l.expression)});break}case SyntaxKind.Parameter:{let t;if(l.dotDotDotToken?(t=n(l.name),Object.assign(f,{type:AST_NODE_TYPES.RestElement,argument:t})):l.initializer?(t=n(l.name),Object.assign(f,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(l.initializer)})):(t=e({node:l.name,parent:_,ast:d,additionalOptions:p}),f=t),l.type&&Object.assign(t,{typeAnnotation:r(l.type)}),l.questionToken&&(t.optional=!0),l.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[l.getStart(),l.end],loc:nodeUtils$1.getLoc(l,d),accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l),parameter:f};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=l.heritageClauses||[];let t=SyntaxKind[l.kind],r=e.length?e[e.length-1]:l.name;if(l.typeParameters&&l.typeParameters.length){const e=l.typeParameters[l.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,d)),f.typeParameters=i(l.typeParameters);}if(l.modifiers&&l.modifiers.length){l.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l)&&(t=`TSAbstract${t}`);const e=l.modifiers[l.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,d));}else r||(r=l.getFirstToken());const s=nodeUtils$1.findNextToken(r,d),u=e.length&&l.heritageClauses[0].token===SyntaxKind.ExtendsKeyword;let _,p=!1;u&&e[0].types.length>0&&(_=e.shift()).types[0]&&_.types[0].typeArguments&&(f.superTypeParameters=a(_.types[0].typeArguments)),p=e.length>0,Object.assign(f,{type:t,id:n(l.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),f.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),l.end,d)},superClass:_?n(_.types[0].expression):null,implements:p?e[0].types.map(o):[],decorators:c(l.decorators)});const m=l.members.filter(nodeUtils$1.isESTreeClassMember);m.length&&(f.body.body=m.map(n)),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.ModuleBlock:Object.assign(f,{type:AST_NODE_TYPES.TSModuleBlock,body:l.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(f,{type:AST_NODE_TYPES.ImportDeclaration,source:n(l.moduleSpecifier),specifiers:[]}),l.importClause&&(l.importClause.name&&f.specifiers.push(n(l.importClause)),l.importClause.namedBindings&&(l.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?f.specifiers.push(n(l.importClause.namedBindings)):f.specifiers=f.specifiers.concat(l.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(f,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(l.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(f,{type:AST_NODE_TYPES.ImportSpecifier,local:n(l.name),imported:n(l.propertyName||l.name)});break;case SyntaxKind.ImportClause:Object.assign(f,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(l.name)}),f.range[1]=l.name.end,f.loc=nodeUtils$1.getLocFor(f.range[0],f.range[1],d);break;case SyntaxKind.NamedImports:Object.assign(f,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(l.name)});break;case SyntaxKind.ExportDeclaration:l.exportClause?Object.assign(f,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(l.moduleSpecifier),specifiers:l.exportClause.elements.map(n),declaration:null}):Object.assign(f,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(l.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(f,{type:AST_NODE_TYPES.ExportSpecifier,local:n(l.propertyName||l.name),exported:n(l.name)});break;case SyntaxKind.ExportAssignment:Object.assign(f,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(l.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(l.operator);Object.assign(f,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:l.kind===SyntaxKind.PrefixUnaryExpression,argument:n(l.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(f,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(l.expression)});break;case SyntaxKind.VoidExpression:Object.assign(f,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(l.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(f,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(l.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(l.operatorToken)){Object.assign(f,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(l.left),t=n(l.right);e.type===AST_NODE_TYPES.SequenceExpression?f.expressions=f.expressions.concat(e.expressions):f.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?f.expressions=f.expressions.concat(t.expressions):f.expressions.push(t);}else if(Object.assign(f,{type:nodeUtils$1.getBinaryExpressionType(l.operatorToken),operator:nodeUtils$1.getTextForTokenKind(l.operatorToken.kind),left:n(l.left),right:n(l.right)}),f.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(l,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,d)===e),n&&(delete f.operator,f.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(_)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(l.expression),property:n(l.name)},t=l.expression.kind===SyntaxKind.PropertyAccessExpression;l.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(f,e);}else Object.assign(f,{type:AST_NODE_TYPES.MemberExpression,object:n(l.expression),property:n(l.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(f,{type:AST_NODE_TYPES.MemberExpression,object:n(l.expression),property:n(l.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(f,{type:AST_NODE_TYPES.ConditionalExpression,test:n(l.condition),consequent:n(l.whenTrue),alternate:n(l.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(f,{type:AST_NODE_TYPES.CallExpression,callee:n(l.expression),arguments:l.arguments.map(n)}),l.typeArguments&&l.typeArguments.length&&(f.typeParameters=a(l.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(f,{type:AST_NODE_TYPES.NewExpression,callee:n(l.expression),arguments:l.arguments?l.arguments.map(n):[]}),l.typeArguments&&l.typeArguments.length&&(f.typeParameters=a(l.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(l.getFirstToken(),d);Object.assign(f,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(l.name)});break}case SyntaxKind.StringLiteral:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:nodeUtils$1.unescapeStringLiteralText(l.text),raw:d.text.slice(f.range[0],f.range[1])});break;case SyntaxKind.NumericLiteral:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:Number(l.text),raw:d.text.slice(f.range[0],f.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=l.text.slice(1,l.text.lastIndexOf("/")),t=l.text.slice(l.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(f,{type:AST_NODE_TYPES.Literal,value:n,raw:l.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:!function(){Object.assign(f,{type:SyntaxKind[l.kind]});}();break;case SyntaxKind.JsxElement:Object.assign(f,{type:AST_NODE_TYPES.JSXElement,openingElement:n(l.openingElement),closingElement:n(l.closingElement),children:l.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{l.kind=SyntaxKind.JsxOpeningElement;const e=n(l);e.selfClosing=!0,Object.assign(f,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(f,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:u(l.tagName),attributes:l.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(f,{type:AST_NODE_TYPES.JSXClosingElement,name:u(l.tagName)});break;case SyntaxKind.JsxExpression:{const e=d.getLineAndCharacterOfPosition(f.range[0]+1),t=l.expression?n(l.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:f.loc.end.line,column:f.loc.end.column-1}},range:[f.range[0]+1,f.range[1]-1]};Object.assign(f,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(l.name,d);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(f,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(l.initializer)});break}case SyntaxKind.JsxText:{const e=l.getFullStart(),t=l.getEnd(),n=p.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(f,{type:n,value:d.text.slice(e,t),raw:d.text.slice(e,t)}),f.loc=nodeUtils$1.getLocFor(e,t,d),f.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(f,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(l.expression)});break;case SyntaxKind.FirstNode:Object.assign(f,{type:AST_NODE_TYPES.TSQualifiedName,left:n(l.left),right:n(l.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:l.expression,parent:_,ast:d,additionalOptions:p});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(l.name),init:n(l.type),range:[l.name.getStart(),l.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],d),l.typeParameters&&l.typeParameters.length&&(e.typeParameters=i(l.typeParameters)),Object.assign(f,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(l),declarations:[e]}),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.MethodSignature:Object.assign(f,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(l),computed:nodeUtils$1.isComputedProperty(l.name),key:n(l.name),params:l.parameters.map(e=>n(e)),typeAnnotation:l.type?r(l.type):null,accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l)}),l.typeParameters&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.PropertySignature:Object.assign(f,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(l),computed:nodeUtils$1.isComputedProperty(l.name),key:n(l.name),typeAnnotation:l.type?r(l.type):null,initializer:n(l.initializer),accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l)});break;case SyntaxKind.IndexSignature:Object.assign(f,{type:AST_NODE_TYPES.TSIndexSignature,index:n(l.parameters[0]),typeAnnotation:l.type?r(l.type):null,accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l)});break;case SyntaxKind.ConstructSignature:Object.assign(f,{type:AST_NODE_TYPES.TSConstructSignature,params:l.parameters.map(e=>n(e)),typeAnnotation:l.type?r(l.type):null}),l.typeParameters&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=l.heritageClauses||[];let t=e.length?e[e.length-1]:l.name;if(l.typeParameters&&l.typeParameters.length){const e=l.typeParameters[l.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,d)),f.typeParameters=i(l.typeParameters);}const r=e.length>0,a=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l),o=nodeUtils$1.findNextToken(t,d),c={type:AST_NODE_TYPES.TSInterfaceBody,body:l.members.map(e=>n(e)),range:[o.getStart(),f.range[1]],loc:nodeUtils$1.getLocFor(o.getStart(),l.end,d)};Object.assign(f,{abstract:a,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(l.name),heritage:r?e[0].types.map(s):[]}),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.FirstTypeNode:Object.assign(f,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(l.parameterName),typeAnnotation:r(l.type)});break;default:!function(){const e=`TS${SyntaxKind[l.kind]}`;if(p.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);f.type=e,Object.keys(l).filter(e=>!/^(?:kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)f.typeAnnotation=l.type?r(l.type):null;else if("typeArguments"===e)f.typeParameters=l.typeArguments?a(l.typeArguments):null;else if("typeParameters"===e)f.typeParameters=l.typeParameters?i(l.typeParameters):null;else if("decorators"===e){const e=c(l.decorators);e&&e.length&&(f.decorators=e);}else Array.isArray(l[e])?f[e]=l[e].map(n):l[e]&&"object"==typeof l[e]?f[e]=n(l[e]):f[e]=l[e];});}();}return f};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});t.tokens&&(n.tokens=nodeUtils.convertTokens(e));t.comment&&(n.comments=convertComments(e,t.code));return n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>W)return null;if(!(t?X[pe]:X[le]).test(e))return null;try{return new i(e,t)}catch(e){return null}}function r(e,t){var r=n(e,t);return r?r.version:null}function a(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}function i(e,t){if(e instanceof i){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>W)throw new TypeError("version is longer than "+W+" characters");if(!(this instanceof i))return new i(e,t);G("SemVer",e,t),this.loose=t;var n=e.trim().match(t?X[pe]:X[le]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>H||this.major<0)throw new TypeError("Invalid major version");if(this.minor>H||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>H||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function u(e,t){return c(t,e)}function l(e,t){return new i(e,t).major}function _(e,t){return new i(e,t).minor}function d(e,t){return new i(e,t).patch}function p(e,t,n){return new i(e,n).compare(t)}function f(e,t){return p(e,t,!0)}function m(e,t,n){return p(t,e,n)}function g(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function y(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function h(e,t,n){return p(e,t,n)>0}function v(e,t,n){return p(e,t,n)<0}function b(e,t,n){return 0===p(e,t,n)}function x(e,t,n){return 0!==p(e,t,n)}function k(e,t,n){return p(e,t,n)>=0}function S(e,t,n){return p(e,t,n)<=0}function T(e,t,n,r){var a;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),a=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),a=e!==n;break;case"":case"=":case"==":a=b(e,n,r);break;case"!=":a=x(e,n,r);break;case">":a=h(e,n,r);break;case">=":a=k(e,n,r);break;case"<":a=v(e,n,r);break;case"<=":a=S(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return a}function C(e,t){if(e instanceof C){if(e.loose===t)return e;e=e.value;}if(!(this instanceof C))return new C(e,t);G("comparator",e,t),this.loose=t,this.parse(e),this.semver===Le?this.value="":this.value=this.operator+this.semver.version,G("comp",this);}function E(e,t){if(e instanceof E&&e.loose===t)return e;if(!(this instanceof E))return new E(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function D(e,t){return new E(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function N(e,t){return G("comp",e),e=P(e,t),G("caret",e),e=w(e,t),G("tildes",e),e=I(e,t),G("xrange",e),e=M(e,t),G("stars",e),e}function A(e){return!e||"x"===e.toLowerCase()||"*"===e}function w(e,t){return e.trim().split(/\s+/).map(function(e){return O(e,t)}).join(" ")}function O(e,t){var n=t?X[Te]:X[Se];return e.replace(n,function(t,n,r,a,i){G("tilde",e,t,n,r,a,i);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(a)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(G("replaceTilde pr",i),"-"!==i.charAt(0)&&(i="-"+i),o=">="+n+"."+r+"."+a+i+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+a+" <"+n+"."+(+r+1)+".0",G("tilde return",o),o})}function P(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){G("caret",e,t);var n=t?X[Ne]:X[De];return e.replace(n,function(t,n,r,a,i){G("caret",e,t,n,r,a,i);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(a)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(G("replaceCaret pr",i),"-"!==i.charAt(0)&&(i="-"+i),o="0"===n?"0"===r?">="+n+"."+r+"."+a+i+" <"+n+"."+r+"."+(+a+1):">="+n+"."+r+"."+a+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+a+i+" <"+(+n+1)+".0.0"):(G("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+a+" <"+n+"."+r+"."+(+a+1):">="+n+"."+r+"."+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+a+" <"+(+n+1)+".0.0"),G("caret return",o),o})}function I(e,t){return G("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return R(e,t)}).join(" ")}function R(e,t){e=e.trim();var n=t?X[be]:X[ve];return e.replace(n,function(t,n,r,a,i,o){G("xRange",e,t,n,r,a,i,o);var s=A(r),c=s||A(a),u=c||A(i),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(a=0),u&&(i=0),">"===n?(n=">=",c?(r=+r+1,a=0,i=0):u&&(a=+a+1,i=0)):"<="===n&&(n="<",c?r=+r+1:a=+a+1),t=n+r+"."+a+"."+i):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0"),G("xRange return",t),t})}function M(e,t){return G("replaceStars",e,t),e.trim().replace(X[Ie],"")}function L(e,t,n,r,a,i,o,s,c,u,l,_,d){return t=A(n)?"":A(r)?">="+n+".0.0":A(a)?">="+n+"."+r+".0":">="+t,s=A(c)?"":A(u)?"<"+(+c+1)+".0.0":A(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function B(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function K(e,t,n){try{t=new E(t,n);}catch(e){return!1}return t.test(e)}function j(e,t,n){return e.filter(function(e){return K(e,t,n)}).sort(function(e,t){return m(e,t,n)})[0]||null}function J(e,t,n){return e.filter(function(e){return K(e,t,n)}).sort(function(e,t){return p(e,t,n)})[0]||null}function z(e,t){try{return new E(e,t).range||"*"}catch(e){return null}}function U(e,t,n){return q(e,t,"<",n)}function V(e,t,n){return q(e,t,">",n)}function q(e,t,n,r){e=new i(e,r),t=new E(t,r);var a,o,s,c,u;switch(n){case">":a=h,o=S,s=v,c=">",u=">=";break;case"<":a=v,o=k,s=h,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K(e,t,r))return!1;for(var l=0;l=0.0.0")),_=_||e,d=d||e,a(e.semver,_.semver,r)?_=e:s(e.semver,d.semver,r)&&(d=e);}),_.operator===c||_.operator===u)return!1;if((!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function $(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}t=e.exports=i;var G;G="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var W=256,H=Number.MAX_SAFE_INTEGER||9007199254740991,X=t.re=[],Y=t.src=[],Q=0,Z=Q++;Y[Z]="0|[1-9]\\d*";var ee=Q++;Y[ee]="[0-9]+";var te=Q++;Y[te]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var ne=Q++;Y[ne]="("+Y[Z]+")\\.("+Y[Z]+")\\.("+Y[Z]+")";var re=Q++;Y[re]="("+Y[ee]+")\\.("+Y[ee]+")\\.("+Y[ee]+")";var ae=Q++;Y[ae]="(?:"+Y[Z]+"|"+Y[te]+")";var ie=Q++;Y[ie]="(?:"+Y[ee]+"|"+Y[te]+")";var oe=Q++;Y[oe]="(?:-("+Y[ae]+"(?:\\."+Y[ae]+")*))";var se=Q++;Y[se]="(?:-?("+Y[ie]+"(?:\\."+Y[ie]+")*))";var ce=Q++;Y[ce]="[0-9A-Za-z-]+";var ue=Q++;Y[ue]="(?:\\+("+Y[ce]+"(?:\\."+Y[ce]+")*))";var le=Q++,_e="v?"+Y[ne]+Y[oe]+"?"+Y[ue]+"?";Y[le]="^"+_e+"$";var de="[v=\\s]*"+Y[re]+Y[se]+"?"+Y[ue]+"?",pe=Q++;Y[pe]="^"+de+"$";var fe=Q++;Y[fe]="((?:<|>)?=?)";var me=Q++;Y[me]=Y[ee]+"|x|X|\\*";var ge=Q++;Y[ge]=Y[Z]+"|x|X|\\*";var ye=Q++;Y[ye]="[v=\\s]*("+Y[ge]+")(?:\\.("+Y[ge]+")(?:\\.("+Y[ge]+")(?:"+Y[oe]+")?"+Y[ue]+"?)?)?";var he=Q++;Y[he]="[v=\\s]*("+Y[me]+")(?:\\.("+Y[me]+")(?:\\.("+Y[me]+")(?:"+Y[se]+")?"+Y[ue]+"?)?)?";var ve=Q++;Y[ve]="^"+Y[fe]+"\\s*"+Y[ye]+"$";var be=Q++;Y[be]="^"+Y[fe]+"\\s*"+Y[he]+"$";var xe=Q++;Y[xe]="(?:~>?)";var ke=Q++;Y[ke]="(\\s*)"+Y[xe]+"\\s+",X[ke]=new RegExp(Y[ke],"g");var Se=Q++;Y[Se]="^"+Y[xe]+Y[ye]+"$";var Te=Q++;Y[Te]="^"+Y[xe]+Y[he]+"$";var Ce=Q++;Y[Ce]="(?:\\^)";var Ee=Q++;Y[Ee]="(\\s*)"+Y[Ce]+"\\s+",X[Ee]=new RegExp(Y[Ee],"g");var De=Q++;Y[De]="^"+Y[Ce]+Y[ye]+"$";var Ne=Q++;Y[Ne]="^"+Y[Ce]+Y[he]+"$";var Ae=Q++;Y[Ae]="^"+Y[fe]+"\\s*("+de+")$|^$";var we=Q++;Y[we]="^"+Y[fe]+"\\s*("+_e+")$|^$";var Oe=Q++;Y[Oe]="(\\s*)"+Y[fe]+"\\s*("+de+"|"+Y[ye]+")",X[Oe]=new RegExp(Y[Oe],"g");var Pe=Q++;Y[Pe]="^\\s*("+Y[ye]+")\\s+-\\s+("+Y[ye]+")\\s*$";var Fe=Q++;Y[Fe]="^\\s*("+Y[he]+")\\s+-\\s+("+Y[he]+")\\s*$";var Ie=Q++;Y[Ie]="(<|>)?=?\\s*\\*";for(var Re=0;Re=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=o,t.diff=s,t.compareIdentifiers=c;var Me=/^[0-9]+$/;t.rcompareIdentifiers=u,t.major=l,t.minor=_,t.patch=d,t.compare=p,t.compareLoose=f,t.rcompare=m,t.sort=g,t.rsort=y,t.gt=h,t.lt=v,t.eq=b,t.neq=x,t.gte=k,t.lte=S,t.cmp=T,t.Comparator=C;var Le={};C.prototype.parse=function(e){var t=this.loose?X[Ae]:X[we],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new i(n[2],this.loose):this.semver=Le;},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){return G("Comparator.test",e,this.loose),this.semver===Le||("string"==typeof e&&(e=new i(e,this.loose)),T(e,this.operator,this.semver,this.loose))},t.Range=E,E.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},E.prototype.toString=function(){return this.range},E.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),G("range",e,t);var n=t?X[Fe]:X[Pe];e=e.replace(n,L),G("hyphen replace",e),e=e.replace(X[Oe],"$1$2$3"),G("comparator trim",e,X[Oe]),e=(e=(e=e.replace(X[ke],"$1~")).replace(X[Ee],"$1^")).split(/\s+/).join(" ");var r=t?X[Ae]:X[we],a=e.split(" ").map(function(e){return N(e,t)}).join(" ").split(/\s+/);return this.loose&&(a=a.filter(function(e){return!!e.match(r)})),a=a.map(function(e){return new C(e,t)})},t.toComparators=D,E.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new i(e,this.loose));for(var t=0;t=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={eslint:"3.19.0","eslint-config-eslint":"4.0.0","eslint-plugin-node":"4.2.2","eslint-release":"0.10.3",jest:"20.0.4","npm-license":"0.3.3",shelljs:"0.7.7","shelljs-nodecli":"0.1.1",typescript:"~2.3.2"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test",jest:"jest",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.3.0"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package$1.default||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);if(!isRunningSupportedTypeScriptVersion){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.",e];console.warn(t.join("\n\n"));}let extra;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; +"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,a=e.generatedColumn,i=t.generatedColumn;return r>n||r==n&&i>=a||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var a="",i=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();i?(c&&0!=i.indexOf(c)&&(a+=c+"."),a+=i,u&&i.indexOf("."+u)!=i.length-u.length-1&&(a+=" [as "+u+"]")):a+=c+"."+(u||"");}else s?a+="new "+(i||""):i?a+=i:(a+=t,o=!1);return o&&(a+=" ("+t+")"),a}function cloneCallSite(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=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var a=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var i=e.isEval()&&e.getEvalOrigin();return i?(i=mapEvalOrigin(i),e=cloneCallSite(e),e.getEvalOrigin=function(){return i},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],a=+t[3],i=fileContentsCache[n];if(!i&&fs$1&&fs$1.existsSync(n)&&(i=fs$1.readFileSync(n,"utf8")),i){var o=i.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(a).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return e=toString(e),e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),a=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:a.line+1,column:a.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function isWithinTypeAnnotation(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],a=e.modifiers[1],i=e.modifiers[e.modifiers.length-1],o=a&&a.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(i,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(u.specifiers=[],u.source=null),u}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),a=t.text.slice(n,r),i={type:getTokenType(e),value:a,start:n,end:r,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===i.type&&(i.regex={pattern:a.slice(1,a.lastIndexOf("/")),flags:a.slice(a.lastIndexOf("/")+1)}),i}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const i=e.pos,o=e.end;t>=i&&n<=o&&(isToken(e)?a=e:e.getChildren().forEach(r));}let a=null;return r(e),a}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,a,i){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof a&&(o.loc={start:a,end:i}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,a={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},i=n.substring(a.pos,a.end),o=r?i.replace(/^\/\*/,"").replace(/\*\/$/,""):i.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(a.pos,a.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,a.pos,a.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let a=r.scan();for(;a!==ts$2.SyntaxKind.EndOfFileToken;){const i=r.getTokenPos(),o=r.getTextPos();let s=null;switch(a){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const a=getCommentFromTriviaScanner(r,e,t);n.push(a);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,i,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){a=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,i,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){a=r.reScanSlashToken();continue}}a=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log};}function parse$1(e,t){const n=String;if("string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0),"function"==typeof t.loggerFn&&(extra.log=t.loggerFn)),!isRunningSupportedTypeScriptVersion){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.",e];extra.log(t.join("\n\n"));}const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",a={fileExists(){return!0},getCanonicalFileName(){return r},getCurrentDirectory(){return""},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0)},readFile(){return null},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},i=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},a).getSourceFile(r);return extra.code=e,convert(i,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:()=>{}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSExportAssignment:"TSExportAssigment",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPropertySignature:"TSPropertySignature",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSStringKeyword:"TSStringKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,a,i=e.length,o=0,s=0;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(a&VLQ_CONTINUATION_BIT),o+=(a&=VLQ_BASE_MASK)<=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?"/":"."),i?(i.path=n,a(i)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),o=r(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(y))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,a(o)):s}function s(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)}function c(e){return e}function u(e){return _(e)?"$"+e:e}function l(e){return _(e)?e.slice(1):e}function _(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 d(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:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function p(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:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function g(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=a,t.normalize=i,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(m)},t.relative=s;var h=function(){return!("__proto__"in Object.create(null))}();t.toSetString=h?c:u,t.fromSetString=h?c:l,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=g;}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,a=e.length;r=0&&e0&&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}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,i=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.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},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,a,i,o,s){var c=Math.floor((r-e)/2)+e,u=o(a,i[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,a,i,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,a,i,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,a,i){if(0===r.length)return-1;var o=n(-1,r.length,e,r,a,i||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===a(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,a=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=i&&(t=util$5.join(i,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);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(a>=0){var i=this._originalMappings[a];if(void 0===e.column)for(var o=i.originalLine;i&&i.originalLine===o;)r.push({line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++a];else for(var s=i.originalColumn;i&&i.originalLine===t&&i.originalColumn==s;)r.push({line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++a];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),i=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=a.length;s1&&(n.source=_+a[1],_+=a[1],n.originalLine=u+a[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+a[3],l=n.originalColumn,a.length>4&&(n.name=d+a[4],d+=a[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,a,i){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 binarySearch.search(e,t,a,i)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var a=util$5.getArg(r,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=util$5.join(this.sourceRoot,a)));var i=util$5.getArg(r,"name",null);return null!==i&&(i=this._names.at(i)),{source:a,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];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.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var a=this._originalMappings[r];if(a.source===n.source)return{line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),a.add(i.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),a.setSourceContent(e,r));}),a},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"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},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"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},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;nt?1:0};a<=i;){var o=a+(i-a>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?i=o-1:a=o+1;}return~a}function Y(e,t,n,r,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===r||r<0?0:r,s=void 0===a||o+a>i-1?i-1:o+a,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}function Q(e,t,n,r,a){if(e){var i=e.length;if(i>0){var o=void 0===r||r>i-1?i-1:r,s=void 0===a||o-a<0?0:o-a,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}function Z(e,t){return pn.call(e,t)}function ee(e,t){return pn.call(e,t)?e[t]:void 0}function te(e){var t=[];for(var n in e)pn.call(e,n)&&t.push(n);return t}function ne(e,t){for(var n=[],r=e.next(),a=r.value,i=r.done;!i;o=e.next(),a=o.value,i=o.done,o)n.push(t?t(a):a);return n;var o;}function re(e,t){for(var n=[],r=e.next(),a=r.value,i=r.done;!i;o=e.next(),a=o.value,i=o.done,o)n.push(t(a));return n;var o;}function ae(e,t){for(var n=e.entries(),r=n.next(),a=r.value,i=r.done;!i;c=n.next(),a=c.value,i=c.done,c){var o=a[0],s=t(a[1],o);if(s)return s}return;var c;}function ie(e,t){for(var n=e.keys(),r=n.next(),a=r.value,i=r.done;!i;s=n.next(),a=s.value,i=s.done,s){var o=t(a);if(o)return o}return;var s;}function oe(e,t){e.forEach(function(e,n){t.set(n,e);});}function se(e){for(var t=[],n=1;n=0,"start must be non-negative, is "+t),xn.assert(n>=0,"length must be non-negative, is "+n),e&&(xn.assert(t<=e.text.length,"start must be within the bounds of the file. "+t+" > "+e.text.length),xn.assert(a<=e.text.length,"end must be the bounds of the file. "+a+" > "+e.text.length));var i=Ce(r);return arguments.length>4&&(i=Te(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code}}function Ee(e,t){var n=Ce(t);return arguments.length>2&&(n=Te(n,arguments,2)),n}function Ne(e){var t=Ce(e);return arguments.length>1&&(t=Te(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function Ae(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function we(e,t){var n=Ce(t);return arguments.length>2&&(n=Te(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function Pe(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function Oe(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==$(r)?r.pop():o&&r.push(o));}return r}function Ue(t){var n=Je(t=je(t)),r=t.substr(0,n),a=ze(t,n);if(a.length){var i=r+a.join(e.directorySeparator);return qe(t)?i+e.directorySeparator:i}return r}function qe(e){return e.charCodeAt(e.length-1)===fn}function Ve(t){return t.substr(0,Math.max(Je(t),t.lastIndexOf(e.directorySeparator)))}function $e(e){return e&&!Qe(e)&&-1!==e.indexOf("://")}function We(e){return/^\.\.?($|[\\/])/.test(e)}function He(e){return e.target||0}function Ge(t){return"number"==typeof t.module?t.module:He(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Xe(t){var n=t.moduleResolution;return void 0===n&&(n=Ge(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function Ye(e){for(var t=!1,n=0;n1&&""===$(s)&&s.length--;var c;for(c=0;c=0&&e.indexOf(t,n)===n}function mt(e){return st(e).indexOf(".")>=0}function yt(e,t){return e.length>t.length&>(e,t)}function ht(e,t){for(var n=0,r=t;n0;)s+=")?",d--;return s}}function St(e){return Ct(e,yn)}function Tt(e){return Ct(e,hn)}function Ct(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Dt(e,t,n,r,a){e=Ue(e);var i=ct(a=Ue(a),e);return{includeFilePatterns:k(bt(n,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:vt(n,i,"files"),includeDirectoryPattern:vt(n,i,"directories"),excludePattern:vt(t,i,"exclude"),basePaths:Nt(e,n,r)}}function Et(e,t,n,r,a,i,o){function s(e,n){var r=o(e),a=r.files,i=r.directories;a=a.slice().sort(g),i=i.slice().sort(g);for(var c=0,u=a;c=0;n--)if(yt(e,t[n]))return Lt(n,t);return 0}function Lt(e,t){return e<2?0:ea&&(a=c.prefix.length,r=s);}return r}function an(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&pt(t,n)&>(t,r)}function on$$1(e){xn.assert(Ye(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function sn(e){return!(e>=0)}function cn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function un(e){var t=ln(e);if(void 0!==t)return t;xn.fail("File "+e+" has unknown extension.");}function ln(t){return d(e.supportedTypescriptExtensionsForExtractExtension,function(e){return yt(t,e)})||d(e.supportedJavascriptExtensions,function(e){return yt(t,e)})}function _n(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}!function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True";}(e.Ternary||(e.Ternary={})),e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createMapFromTemplate=r;var dn="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e);}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,a,i){e||(a&&(t+="\r\nVerbose Debug Information: "+a()),r(t?"False expression: "+t:"False expression.",i||n));}function r(e,t){var n=new Error(e?"Debug Failure. ":"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||r),n}function a(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]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=n,e.fail=r,e.getFunctionName=a;}(xn=e.Debug||(e.Debug={})),e.orderedRemoveItem=Ht,e.orderedRemoveItemAt=Gt,e.unorderedRemoveItemAt=Xt,e.unorderedRemoveItem=Yt,e.createGetCanonicalFileName=Zt,e.matchPatternOrExact=en,e.patternText=tn,e.matchedText=nn,e.findBestPatternMatch=rn,e.tryParsePattern=on$$1,e.positionIsSynthesized=sn,e.extensionIsTypeScript=cn,e.extensionFromPath=un,e.tryGetExtensionFromPath=ln,e.isCheckJsEnabledForFile=_n;}(r||(r={}));!function(e){function t(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.getNodeMajorVersion=t,e.sys=function(){function n(t,r){var a=e.getDirectoryPath(t),i=t!==a&&!r.directoryExists(a);i&&n(a,r),!i&&r.directoryExists(t)||r.createDirectory(t);}var r;if("undefined"!=typeof ChakraHost?r=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,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(t,n,r,a){var i=e.getFileMatcherPatterns(t,r,a,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,i.basePaths,i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(r=function(){function n(e,t){if(s(e)){var n=_.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var a=0;a=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")}}function r(e,t,n){n&&(t="\ufeff"+t);var r;try{r=_.openSync(e,"w"),_.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&_.closeSync(r);}}function a(t){try{for(var n=[],r=[],a=0,i=_.readdirSync(t||".").sort();a=4,h=p.platform(),v=function(){return"win32"!==h&&"win64"!==h&&(!s(__filename.toUpperCase())||!s(__filename.toLowerCase()))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(l||(l={}));var b={close:e.noop},x={args:process.argv.slice(2),newLine:p.EOL,useCaseSensitiveFileNames:v,write:function(e){process.stdout.write(e);},readFile:n,writeFile:r,watchFile:function(e,t,n){function r(n,r){+n.mtime<=+r.mtime||t(e);}if(g){var a=m.addFile(e,t);return{close:function(){return m.removeFile(a)}}}return _.watchFile(e,{persistent:!0,interval:n||250},r),{close:function(){return _.unwatchFile(e,r)}}},watchDirectory:function(t,n,r){var a;return c(t)?(a=!y||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},_.watch(t,a,function(r,a){"rename"===r&&n(a?e.normalizePath(e.combinePaths(t,a)):a);})):b},resolvePath:function(e){return d.resolve(e)},fileExists:s,directoryExists:c,createDirectory:function(e){x.directoryExists(e)||_.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:u,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:i,getModifiedTime:function(e){try{return _.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=f.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=_.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return _.realpathSync(e)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return x}()),r){var a=r.writeFile;r.writeFile=function(t,i,o){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!r.directoryExists(s)&&n(s,r),a.call(r,t,i,o);};}return r}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0);}(r||(r={}));!function(e){e.Diagnostics={Unterminated_string_literal:{code:1002,category:e.DiagnosticCategory.Error,key:"Unterminated_string_literal_1002",message:"Unterminated string literal."},Identifier_expected:{code:1003,category:e.DiagnosticCategory.Error,key:"Identifier_expected_1003",message:"Identifier expected."},_0_expected:{code:1005,category:e.DiagnosticCategory.Error,key:"_0_expected_1005",message:"'{0}' expected."},A_file_cannot_have_a_reference_to_itself:{code:1006,category:e.DiagnosticCategory.Error,key:"A_file_cannot_have_a_reference_to_itself_1006",message:"A file cannot have a reference to itself."},Trailing_comma_not_allowed:{code:1009,category:e.DiagnosticCategory.Error,key:"Trailing_comma_not_allowed_1009",message:"Trailing comma not allowed."},Asterisk_Slash_expected:{code:1010,category:e.DiagnosticCategory.Error,key:"Asterisk_Slash_expected_1010",message:"'*/' expected."},Unexpected_token:{code:1012,category:e.DiagnosticCategory.Error,key:"Unexpected_token_1012",message:"Unexpected token."},A_rest_parameter_must_be_last_in_a_parameter_list:{code:1014,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_last_in_a_parameter_list_1014",message:"A rest parameter must be last in a parameter list."},Parameter_cannot_have_question_mark_and_initializer:{code:1015,category:e.DiagnosticCategory.Error,key:"Parameter_cannot_have_question_mark_and_initializer_1015",message:"Parameter cannot have question mark and initializer."},A_required_parameter_cannot_follow_an_optional_parameter:{code:1016,category:e.DiagnosticCategory.Error,key:"A_required_parameter_cannot_follow_an_optional_parameter_1016",message:"A required parameter cannot follow an optional parameter."},An_index_signature_cannot_have_a_rest_parameter:{code:1017,category:e.DiagnosticCategory.Error,key:"An_index_signature_cannot_have_a_rest_parameter_1017",message:"An index signature cannot have a rest parameter."},An_index_signature_parameter_cannot_have_an_accessibility_modifier:{code:1018,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018",message:"An index signature parameter cannot have an accessibility modifier."},An_index_signature_parameter_cannot_have_a_question_mark:{code:1019,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_a_question_mark_1019",message:"An index signature parameter cannot have a question mark."},An_index_signature_parameter_cannot_have_an_initializer:{code:1020,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_initializer_1020",message:"An index signature parameter cannot have an initializer."},An_index_signature_must_have_a_type_annotation:{code:1021,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_a_type_annotation_1021",message:"An index signature must have a type annotation."},An_index_signature_parameter_must_have_a_type_annotation:{code:1022,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_must_have_a_type_annotation_1022",message:"An index signature parameter must have a type annotation."},An_index_signature_parameter_type_must_be_string_or_number:{code:1023,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_type_must_be_string_or_number_1023",message:"An index signature parameter type must be 'string' or 'number'."},readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:{code:1024,category:e.DiagnosticCategory.Error,key:"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024",message:"'readonly' modifier can only appear on a property declaration or index signature."},Accessibility_modifier_already_seen:{code:1028,category:e.DiagnosticCategory.Error,key:"Accessibility_modifier_already_seen_1028",message:"Accessibility modifier already seen."},_0_modifier_must_precede_1_modifier:{code:1029,category:e.DiagnosticCategory.Error,key:"_0_modifier_must_precede_1_modifier_1029",message:"'{0}' modifier must precede '{1}' modifier."},_0_modifier_already_seen:{code:1030,category:e.DiagnosticCategory.Error,key:"_0_modifier_already_seen_1030",message:"'{0}' modifier already seen."},_0_modifier_cannot_appear_on_a_class_element:{code:1031,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_class_element_1031",message:"'{0}' modifier cannot appear on a class element."},super_must_be_followed_by_an_argument_list_or_member_access:{code:1034,category:e.DiagnosticCategory.Error,key:"super_must_be_followed_by_an_argument_list_or_member_access_1034",message:"'super' must be followed by an argument list or member access."},Only_ambient_modules_can_use_quoted_names:{code:1035,category:e.DiagnosticCategory.Error,key:"Only_ambient_modules_can_use_quoted_names_1035",message:"Only ambient modules can use quoted names."},Statements_are_not_allowed_in_ambient_contexts:{code:1036,category:e.DiagnosticCategory.Error,key:"Statements_are_not_allowed_in_ambient_contexts_1036",message:"Statements are not allowed in ambient contexts."},A_declare_modifier_cannot_be_used_in_an_already_ambient_context:{code:1038,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038",message:"A 'declare' modifier cannot be used in an already ambient context."},Initializers_are_not_allowed_in_ambient_contexts:{code:1039,category:e.DiagnosticCategory.Error,key:"Initializers_are_not_allowed_in_ambient_contexts_1039",message:"Initializers are not allowed in ambient contexts."},_0_modifier_cannot_be_used_in_an_ambient_context:{code:1040,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_in_an_ambient_context_1040",message:"'{0}' modifier cannot be used in an ambient context."},_0_modifier_cannot_be_used_with_a_class_declaration:{code:1041,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_a_class_declaration_1041",message:"'{0}' modifier cannot be used with a class declaration."},_0_modifier_cannot_be_used_here:{code:1042,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_here_1042",message:"'{0}' modifier cannot be used here."},_0_modifier_cannot_appear_on_a_data_property:{code:1043,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_data_property_1043",message:"'{0}' modifier cannot appear on a data property."},_0_modifier_cannot_appear_on_a_module_or_namespace_element:{code:1044,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044",message:"'{0}' modifier cannot appear on a module or namespace element."},A_0_modifier_cannot_be_used_with_an_interface_declaration:{code:1045,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045",message:"A '{0}' modifier cannot be used with an interface declaration."},A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:{code:1046,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046",message:"A 'declare' modifier is required for a top level declaration in a .d.ts file."},A_rest_parameter_cannot_be_optional:{code:1047,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_be_optional_1047",message:"A rest parameter cannot be optional."},A_rest_parameter_cannot_have_an_initializer:{code:1048,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_have_an_initializer_1048",message:"A rest parameter cannot have an initializer."},A_set_accessor_must_have_exactly_one_parameter:{code:1049,category:e.DiagnosticCategory.Error,key:"A_set_accessor_must_have_exactly_one_parameter_1049",message:"A 'set' accessor must have exactly one parameter."},A_set_accessor_cannot_have_an_optional_parameter:{code:1051,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_an_optional_parameter_1051",message:"A 'set' accessor cannot have an optional parameter."},A_set_accessor_parameter_cannot_have_an_initializer:{code:1052,category:e.DiagnosticCategory.Error,key:"A_set_accessor_parameter_cannot_have_an_initializer_1052",message:"A 'set' accessor parameter cannot have an initializer."},A_set_accessor_cannot_have_rest_parameter:{code:1053,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_rest_parameter_1053",message:"A 'set' accessor cannot have rest parameter."},A_get_accessor_cannot_have_parameters:{code:1054,category:e.DiagnosticCategory.Error,key:"A_get_accessor_cannot_have_parameters_1054",message:"A 'get' accessor cannot have parameters."},Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:{code:1055,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055",message:"Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."},Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:{code:1056,category:e.DiagnosticCategory.Error,key:"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056",message:"Accessors are only available when targeting ECMAScript 5 and higher."},An_async_function_or_method_must_have_a_valid_awaitable_return_type:{code:1057,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057",message:"An async function or method must have a valid awaitable return type."},The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1058,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058",message:"The return type of an async function must either be a valid promise or must not contain a callable 'then' member."},A_promise_must_have_a_then_method:{code:1059,category:e.DiagnosticCategory.Error,key:"A_promise_must_have_a_then_method_1059",message:"A promise must have a 'then' method."},The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:{code:1060,category:e.DiagnosticCategory.Error,key:"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060",message:"The first parameter of the 'then' method of a promise must be a callback."},Enum_member_must_have_initializer:{code:1061,category:e.DiagnosticCategory.Error,key:"Enum_member_must_have_initializer_1061",message:"Enum member must have initializer."},Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:{code:1062,category:e.DiagnosticCategory.Error,key:"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",message:"Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."},An_export_assignment_cannot_be_used_in_a_namespace:{code:1063,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_namespace_1063",message:"An export assignment cannot be used in a namespace."},The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:{code:1064,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064",message:"The return type of an async function or method must be the global Promise type."},In_ambient_enum_declarations_member_initializer_must_be_constant_expression:{code:1066,category:e.DiagnosticCategory.Error,key:"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066",message:"In ambient enum declarations member initializer must be constant expression."},Unexpected_token_A_constructor_method_accessor_or_property_was_expected:{code:1068,category:e.DiagnosticCategory.Error,key:"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068",message:"Unexpected token. A constructor, method, accessor, or property was expected."},_0_modifier_cannot_appear_on_a_type_member:{code:1070,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_type_member_1070",message:"'{0}' modifier cannot appear on a type member."},_0_modifier_cannot_appear_on_an_index_signature:{code:1071,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_an_index_signature_1071",message:"'{0}' modifier cannot appear on an index signature."},A_0_modifier_cannot_be_used_with_an_import_declaration:{code:1079,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_import_declaration_1079",message:"A '{0}' modifier cannot be used with an import declaration."},Invalid_reference_directive_syntax:{code:1084,category:e.DiagnosticCategory.Error,key:"Invalid_reference_directive_syntax_1084",message:"Invalid 'reference' directive syntax."},Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:{code:1085,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",message:"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."},An_accessor_cannot_be_declared_in_an_ambient_context:{code:1086,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_be_declared_in_an_ambient_context_1086",message:"An accessor cannot be declared in an ambient context."},_0_modifier_cannot_appear_on_a_constructor_declaration:{code:1089,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_constructor_declaration_1089",message:"'{0}' modifier cannot appear on a constructor declaration."},_0_modifier_cannot_appear_on_a_parameter:{code:1090,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_parameter_1090",message:"'{0}' modifier cannot appear on a parameter."},Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:{code:1091,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091",message:"Only a single variable declaration is allowed in a 'for...in' statement."},Type_parameters_cannot_appear_on_a_constructor_declaration:{code:1092,category:e.DiagnosticCategory.Error,key:"Type_parameters_cannot_appear_on_a_constructor_declaration_1092",message:"Type parameters cannot appear on a constructor declaration."},Type_annotation_cannot_appear_on_a_constructor_declaration:{code:1093,category:e.DiagnosticCategory.Error,key:"Type_annotation_cannot_appear_on_a_constructor_declaration_1093",message:"Type annotation cannot appear on a constructor declaration."},An_accessor_cannot_have_type_parameters:{code:1094,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_have_type_parameters_1094",message:"An accessor cannot have type parameters."},A_set_accessor_cannot_have_a_return_type_annotation:{code:1095,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_a_return_type_annotation_1095",message:"A 'set' accessor cannot have a return type annotation."},An_index_signature_must_have_exactly_one_parameter:{code:1096,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_exactly_one_parameter_1096",message:"An index signature must have exactly one parameter."},_0_list_cannot_be_empty:{code:1097,category:e.DiagnosticCategory.Error,key:"_0_list_cannot_be_empty_1097",message:"'{0}' list cannot be empty."},Type_parameter_list_cannot_be_empty:{code:1098,category:e.DiagnosticCategory.Error,key:"Type_parameter_list_cannot_be_empty_1098",message:"Type parameter list cannot be empty."},Type_argument_list_cannot_be_empty:{code:1099,category:e.DiagnosticCategory.Error,key:"Type_argument_list_cannot_be_empty_1099",message:"Type argument list cannot be empty."},Invalid_use_of_0_in_strict_mode:{code:1100,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_in_strict_mode_1100",message:"Invalid use of '{0}' in strict mode."},with_statements_are_not_allowed_in_strict_mode:{code:1101,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_strict_mode_1101",message:"'with' statements are not allowed in strict mode."},delete_cannot_be_called_on_an_identifier_in_strict_mode:{code:1102,category:e.DiagnosticCategory.Error,key:"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102",message:"'delete' cannot be called on an identifier in strict mode."},A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:{code:1103,category:e.DiagnosticCategory.Error,key:"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103",message:"A 'for-await-of' statement is only allowed within an async function or async generator."},A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:{code:1104,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104",message:"A 'continue' statement can only be used within an enclosing iteration statement."},A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:{code:1105,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105",message:"A 'break' statement can only be used within an enclosing iteration or switch statement."},Jump_target_cannot_cross_function_boundary:{code:1107,category:e.DiagnosticCategory.Error,key:"Jump_target_cannot_cross_function_boundary_1107",message:"Jump target cannot cross function boundary."},A_return_statement_can_only_be_used_within_a_function_body:{code:1108,category:e.DiagnosticCategory.Error,key:"A_return_statement_can_only_be_used_within_a_function_body_1108",message:"A 'return' statement can only be used within a function body."},Expression_expected:{code:1109,category:e.DiagnosticCategory.Error,key:"Expression_expected_1109",message:"Expression expected."},Type_expected:{code:1110,category:e.DiagnosticCategory.Error,key:"Type_expected_1110",message:"Type expected."},A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:{code:1113,category:e.DiagnosticCategory.Error,key:"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113",message:"A 'default' clause cannot appear more than once in a 'switch' statement."},Duplicate_label_0:{code:1114,category:e.DiagnosticCategory.Error,key:"Duplicate_label_0_1114",message:"Duplicate label '{0}'."},A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:{code:1115,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115",message:"A 'continue' statement can only jump to a label of an enclosing iteration statement."},A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:{code:1116,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116",message:"A 'break' statement can only jump to a label of an enclosing statement."},An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:{code:1117,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117",message:"An object literal cannot have multiple properties with the same name in strict mode."},An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:{code:1118,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118",message:"An object literal cannot have multiple get/set accessors with the same name."},An_object_literal_cannot_have_property_and_accessor_with_the_same_name:{code:1119,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119",message:"An object literal cannot have property and accessor with the same name."},An_export_assignment_cannot_have_modifiers:{code:1120,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_have_modifiers_1120",message:"An export assignment cannot have modifiers."},Octal_literals_are_not_allowed_in_strict_mode:{code:1121,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_strict_mode_1121",message:"Octal literals are not allowed in strict mode."},A_tuple_type_element_list_cannot_be_empty:{code:1122,category:e.DiagnosticCategory.Error,key:"A_tuple_type_element_list_cannot_be_empty_1122",message:"A tuple type element list cannot be empty."},Variable_declaration_list_cannot_be_empty:{code:1123,category:e.DiagnosticCategory.Error,key:"Variable_declaration_list_cannot_be_empty_1123",message:"Variable declaration list cannot be empty."},Digit_expected:{code:1124,category:e.DiagnosticCategory.Error,key:"Digit_expected_1124",message:"Digit expected."},Hexadecimal_digit_expected:{code:1125,category:e.DiagnosticCategory.Error,key:"Hexadecimal_digit_expected_1125",message:"Hexadecimal digit expected."},Unexpected_end_of_text:{code:1126,category:e.DiagnosticCategory.Error,key:"Unexpected_end_of_text_1126",message:"Unexpected end of text."},Invalid_character:{code:1127,category:e.DiagnosticCategory.Error,key:"Invalid_character_1127",message:"Invalid character."},Declaration_or_statement_expected:{code:1128,category:e.DiagnosticCategory.Error,key:"Declaration_or_statement_expected_1128",message:"Declaration or statement expected."},Statement_expected:{code:1129,category:e.DiagnosticCategory.Error,key:"Statement_expected_1129",message:"Statement expected."},case_or_default_expected:{code:1130,category:e.DiagnosticCategory.Error,key:"case_or_default_expected_1130",message:"'case' or 'default' expected."},Property_or_signature_expected:{code:1131,category:e.DiagnosticCategory.Error,key:"Property_or_signature_expected_1131",message:"Property or signature expected."},Enum_member_expected:{code:1132,category:e.DiagnosticCategory.Error,key:"Enum_member_expected_1132",message:"Enum member expected."},Variable_declaration_expected:{code:1134,category:e.DiagnosticCategory.Error,key:"Variable_declaration_expected_1134",message:"Variable declaration expected."},Argument_expression_expected:{code:1135,category:e.DiagnosticCategory.Error,key:"Argument_expression_expected_1135",message:"Argument expression expected."},Property_assignment_expected:{code:1136,category:e.DiagnosticCategory.Error,key:"Property_assignment_expected_1136",message:"Property assignment expected."},Expression_or_comma_expected:{code:1137,category:e.DiagnosticCategory.Error,key:"Expression_or_comma_expected_1137",message:"Expression or comma expected."},Parameter_declaration_expected:{code:1138,category:e.DiagnosticCategory.Error,key:"Parameter_declaration_expected_1138",message:"Parameter declaration expected."},Type_parameter_declaration_expected:{code:1139,category:e.DiagnosticCategory.Error,key:"Type_parameter_declaration_expected_1139",message:"Type parameter declaration expected."},Type_argument_expected:{code:1140,category:e.DiagnosticCategory.Error,key:"Type_argument_expected_1140",message:"Type argument expected."},String_literal_expected:{code:1141,category:e.DiagnosticCategory.Error,key:"String_literal_expected_1141",message:"String literal expected."},Line_break_not_permitted_here:{code:1142,category:e.DiagnosticCategory.Error,key:"Line_break_not_permitted_here_1142",message:"Line break not permitted here."},or_expected:{code:1144,category:e.DiagnosticCategory.Error,key:"or_expected_1144",message:"'{' or ';' expected."},Declaration_expected:{code:1146,category:e.DiagnosticCategory.Error,key:"Declaration_expected_1146",message:"Declaration expected."},Import_declarations_in_a_namespace_cannot_reference_a_module:{code:1147,category:e.DiagnosticCategory.Error,key:"Import_declarations_in_a_namespace_cannot_reference_a_module_1147",message:"Import declarations in a namespace cannot reference a module."},Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:{code:1148,category:e.DiagnosticCategory.Error,key:"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148",message:"Cannot use imports, exports, or module augmentations when '--module' is 'none'."},File_name_0_differs_from_already_included_file_name_1_only_in_casing:{code:1149,category:e.DiagnosticCategory.Error,key:"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149",message:"File name '{0}' differs from already included file name '{1}' only in casing."},new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:{code:1150,category:e.DiagnosticCategory.Error,key:"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150",message:"'new T[]' cannot be used to create an array. Use 'new Array()' instead."},const_declarations_must_be_initialized:{code:1155,category:e.DiagnosticCategory.Error,key:"const_declarations_must_be_initialized_1155",message:"'const' declarations must be initialized."},const_declarations_can_only_be_declared_inside_a_block:{code:1156,category:e.DiagnosticCategory.Error,key:"const_declarations_can_only_be_declared_inside_a_block_1156",message:"'const' declarations can only be declared inside a block."},let_declarations_can_only_be_declared_inside_a_block:{code:1157,category:e.DiagnosticCategory.Error,key:"let_declarations_can_only_be_declared_inside_a_block_1157",message:"'let' declarations can only be declared inside a block."},Unterminated_template_literal:{code:1160,category:e.DiagnosticCategory.Error,key:"Unterminated_template_literal_1160",message:"Unterminated template literal."},Unterminated_regular_expression_literal:{code:1161,category:e.DiagnosticCategory.Error,key:"Unterminated_regular_expression_literal_1161",message:"Unterminated regular expression literal."},An_object_member_cannot_be_declared_optional:{code:1162,category:e.DiagnosticCategory.Error,key:"An_object_member_cannot_be_declared_optional_1162",message:"An object member cannot be declared optional."},A_yield_expression_is_only_allowed_in_a_generator_body:{code:1163,category:e.DiagnosticCategory.Error,key:"A_yield_expression_is_only_allowed_in_a_generator_body_1163",message:"A 'yield' expression is only allowed in a generator body."},Computed_property_names_are_not_allowed_in_enums:{code:1164,category:e.DiagnosticCategory.Error,key:"Computed_property_names_are_not_allowed_in_enums_1164",message:"Computed property names are not allowed in enums."},A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:{code:1165,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165",message:"A computed property name in an ambient context must directly refer to a built-in symbol."},A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:{code:1166,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166",message:"A computed property name in a class property declaration must directly refer to a built-in symbol."},A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:{code:1168,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168",message:"A computed property name in a method overload must directly refer to a built-in symbol."},A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:{code:1169,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169",message:"A computed property name in an interface must directly refer to a built-in symbol."},A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:{code:1170,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170",message:"A computed property name in a type literal must directly refer to a built-in symbol."},A_comma_expression_is_not_allowed_in_a_computed_property_name:{code:1171,category:e.DiagnosticCategory.Error,key:"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171",message:"A comma expression is not allowed in a computed property name."},extends_clause_already_seen:{code:1172,category:e.DiagnosticCategory.Error,key:"extends_clause_already_seen_1172",message:"'extends' clause already seen."},extends_clause_must_precede_implements_clause:{code:1173,category:e.DiagnosticCategory.Error,key:"extends_clause_must_precede_implements_clause_1173",message:"'extends' clause must precede 'implements' clause."},Classes_can_only_extend_a_single_class:{code:1174,category:e.DiagnosticCategory.Error,key:"Classes_can_only_extend_a_single_class_1174",message:"Classes can only extend a single class."},implements_clause_already_seen:{code:1175,category:e.DiagnosticCategory.Error,key:"implements_clause_already_seen_1175",message:"'implements' clause already seen."},Interface_declaration_cannot_have_implements_clause:{code:1176,category:e.DiagnosticCategory.Error,key:"Interface_declaration_cannot_have_implements_clause_1176",message:"Interface declaration cannot have 'implements' clause."},Binary_digit_expected:{code:1177,category:e.DiagnosticCategory.Error,key:"Binary_digit_expected_1177",message:"Binary digit expected."},Octal_digit_expected:{code:1178,category:e.DiagnosticCategory.Error,key:"Octal_digit_expected_1178",message:"Octal digit expected."},Unexpected_token_expected:{code:1179,category:e.DiagnosticCategory.Error,key:"Unexpected_token_expected_1179",message:"Unexpected token. '{' expected."},Property_destructuring_pattern_expected:{code:1180,category:e.DiagnosticCategory.Error,key:"Property_destructuring_pattern_expected_1180",message:"Property destructuring pattern expected."},Array_element_destructuring_pattern_expected:{code:1181,category:e.DiagnosticCategory.Error,key:"Array_element_destructuring_pattern_expected_1181",message:"Array element destructuring pattern expected."},A_destructuring_declaration_must_have_an_initializer:{code:1182,category:e.DiagnosticCategory.Error,key:"A_destructuring_declaration_must_have_an_initializer_1182",message:"A destructuring declaration must have an initializer."},An_implementation_cannot_be_declared_in_ambient_contexts:{code:1183,category:e.DiagnosticCategory.Error,key:"An_implementation_cannot_be_declared_in_ambient_contexts_1183",message:"An implementation cannot be declared in ambient contexts."},Modifiers_cannot_appear_here:{code:1184,category:e.DiagnosticCategory.Error,key:"Modifiers_cannot_appear_here_1184",message:"Modifiers cannot appear here."},Merge_conflict_marker_encountered:{code:1185,category:e.DiagnosticCategory.Error,key:"Merge_conflict_marker_encountered_1185",message:"Merge conflict marker encountered."},A_rest_element_cannot_have_an_initializer:{code:1186,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_have_an_initializer_1186",message:"A rest element cannot have an initializer."},A_parameter_property_may_not_be_declared_using_a_binding_pattern:{code:1187,category:e.DiagnosticCategory.Error,key:"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187",message:"A parameter property may not be declared using a binding pattern."},Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:{code:1188,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188",message:"Only a single variable declaration is allowed in a 'for...of' statement."},The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:{code:1189,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189",message:"The variable declaration of a 'for...in' statement cannot have an initializer."},The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:{code:1190,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190",message:"The variable declaration of a 'for...of' statement cannot have an initializer."},An_import_declaration_cannot_have_modifiers:{code:1191,category:e.DiagnosticCategory.Error,key:"An_import_declaration_cannot_have_modifiers_1191",message:"An import declaration cannot have modifiers."},Module_0_has_no_default_export:{code:1192,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_default_export_1192",message:"Module '{0}' has no default export."},An_export_declaration_cannot_have_modifiers:{code:1193,category:e.DiagnosticCategory.Error,key:"An_export_declaration_cannot_have_modifiers_1193",message:"An export declaration cannot have modifiers."},Export_declarations_are_not_permitted_in_a_namespace:{code:1194,category:e.DiagnosticCategory.Error,key:"Export_declarations_are_not_permitted_in_a_namespace_1194",message:"Export declarations are not permitted in a namespace."},Catch_clause_variable_cannot_have_a_type_annotation:{code:1196,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_a_type_annotation_1196",message:"Catch clause variable cannot have a type annotation."},Catch_clause_variable_cannot_have_an_initializer:{code:1197,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_an_initializer_1197",message:"Catch clause variable cannot have an initializer."},An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:{code:1198,category:e.DiagnosticCategory.Error,key:"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198",message:"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."},Unterminated_Unicode_escape_sequence:{code:1199,category:e.DiagnosticCategory.Error,key:"Unterminated_Unicode_escape_sequence_1199",message:"Unterminated Unicode escape sequence."},Line_terminator_not_permitted_before_arrow:{code:1200,category:e.DiagnosticCategory.Error,key:"Line_terminator_not_permitted_before_arrow_1200",message:"Line terminator not permitted before arrow."},Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:{code:1202,category:e.DiagnosticCategory.Error,key:"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202",message:"Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."},Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead:{code:1203,category:e.DiagnosticCategory.Error,key:"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203",message:"Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."},Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:{code:1205,category:e.DiagnosticCategory.Error,key:"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205",message:"Cannot re-export a type when the '--isolatedModules' flag is provided."},Decorators_are_not_valid_here:{code:1206,category:e.DiagnosticCategory.Error,key:"Decorators_are_not_valid_here_1206",message:"Decorators are not valid here."},Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:{code:1207,category:e.DiagnosticCategory.Error,key:"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207",message:"Decorators cannot be applied to multiple get/set accessors of the same name."},Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:{code:1208,category:e.DiagnosticCategory.Error,key:"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208",message:"Cannot compile namespaces when the '--isolatedModules' flag is provided."},Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:{code:1209,category:e.DiagnosticCategory.Error,key:"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209",message:"Ambient const enums are not allowed when the '--isolatedModules' flag is provided."},Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:{code:1210,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210",message:"Invalid use of '{0}'. Class definitions are automatically in strict mode."},A_class_declaration_without_the_default_modifier_must_have_a_name:{code:1211,category:e.DiagnosticCategory.Error,key:"A_class_declaration_without_the_default_modifier_must_have_a_name_1211",message:"A class declaration without the 'default' modifier must have a name."},Identifier_expected_0_is_a_reserved_word_in_strict_mode:{code:1212,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212",message:"Identifier expected. '{0}' is a reserved word in strict mode."},Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:{code:1213,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213",message:"Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."},Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:{code:1214,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214",message:"Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."},Invalid_use_of_0_Modules_are_automatically_in_strict_mode:{code:1215,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215",message:"Invalid use of '{0}'. Modules are automatically in strict mode."},Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:{code:1216,category:e.DiagnosticCategory.Error,key:"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216",message:"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."},Export_assignment_is_not_supported_when_module_flag_is_system:{code:1218,category:e.DiagnosticCategory.Error,key:"Export_assignment_is_not_supported_when_module_flag_is_system_1218",message:"Export assignment is not supported when '--module' flag is 'system'."},Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:{code:1219,category:e.DiagnosticCategory.Error,key:"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219",message:"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."},Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:{code:1220,category:e.DiagnosticCategory.Error,key:"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220",message:"Generators are only available when targeting ECMAScript 2015 or higher."},Generators_are_not_allowed_in_an_ambient_context:{code:1221,category:e.DiagnosticCategory.Error,key:"Generators_are_not_allowed_in_an_ambient_context_1221",message:"Generators are not allowed in an ambient context."},An_overload_signature_cannot_be_declared_as_a_generator:{code:1222,category:e.DiagnosticCategory.Error,key:"An_overload_signature_cannot_be_declared_as_a_generator_1222",message:"An overload signature cannot be declared as a generator."},_0_tag_already_specified:{code:1223,category:e.DiagnosticCategory.Error,key:"_0_tag_already_specified_1223",message:"'{0}' tag already specified."},Signature_0_must_have_a_type_predicate:{code:1224,category:e.DiagnosticCategory.Error,key:"Signature_0_must_have_a_type_predicate_1224",message:"Signature '{0}' must have a type predicate."},Cannot_find_parameter_0:{code:1225,category:e.DiagnosticCategory.Error,key:"Cannot_find_parameter_0_1225",message:"Cannot find parameter '{0}'."},Type_predicate_0_is_not_assignable_to_1:{code:1226,category:e.DiagnosticCategory.Error,key:"Type_predicate_0_is_not_assignable_to_1_1226",message:"Type predicate '{0}' is not assignable to '{1}'."},Parameter_0_is_not_in_the_same_position_as_parameter_1:{code:1227,category:e.DiagnosticCategory.Error,key:"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227",message:"Parameter '{0}' is not in the same position as parameter '{1}'."},A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:{code:1228,category:e.DiagnosticCategory.Error,key:"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228",message:"A type predicate is only allowed in return type position for functions and methods."},A_type_predicate_cannot_reference_a_rest_parameter:{code:1229,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_a_rest_parameter_1229",message:"A type predicate cannot reference a rest parameter."},A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:{code:1230,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230",message:"A type predicate cannot reference element '{0}' in a binding pattern."},An_export_assignment_can_only_be_used_in_a_module:{code:1231,category:e.DiagnosticCategory.Error,key:"An_export_assignment_can_only_be_used_in_a_module_1231",message:"An export assignment can only be used in a module."},An_import_declaration_can_only_be_used_in_a_namespace_or_module:{code:1232,category:e.DiagnosticCategory.Error,key:"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232",message:"An import declaration can only be used in a namespace or module."},An_export_declaration_can_only_be_used_in_a_module:{code:1233,category:e.DiagnosticCategory.Error,key:"An_export_declaration_can_only_be_used_in_a_module_1233",message:"An export declaration can only be used in a module."},An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:{code:1234,category:e.DiagnosticCategory.Error,key:"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234",message:"An ambient module declaration is only allowed at the top level in a file."},A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:{code:1235,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235",message:"A namespace declaration is only allowed in a namespace or module."},The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:{code:1236,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236",message:"The return type of a property decorator function must be either 'void' or 'any'."},The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:{code:1237,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237",message:"The return type of a parameter decorator function must be either 'void' or 'any'."},Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:{code:1238,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238",message:"Unable to resolve signature of class decorator when called as an expression."},Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:{code:1239,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239",message:"Unable to resolve signature of parameter decorator when called as an expression."},Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:{code:1240,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240",message:"Unable to resolve signature of property decorator when called as an expression."},Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:{code:1241,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241",message:"Unable to resolve signature of method decorator when called as an expression."},abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:{code:1242,category:e.DiagnosticCategory.Error,key:"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242",message:"'abstract' modifier can only appear on a class, method, or property declaration."},_0_modifier_cannot_be_used_with_1_modifier:{code:1243,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_1_modifier_1243",message:"'{0}' modifier cannot be used with '{1}' modifier."},Abstract_methods_can_only_appear_within_an_abstract_class:{code:1244,category:e.DiagnosticCategory.Error,key:"Abstract_methods_can_only_appear_within_an_abstract_class_1244",message:"Abstract methods can only appear within an abstract class."},Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:{code:1245,category:e.DiagnosticCategory.Error,key:"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245",message:"Method '{0}' cannot have an implementation because it is marked abstract."},An_interface_property_cannot_have_an_initializer:{code:1246,category:e.DiagnosticCategory.Error,key:"An_interface_property_cannot_have_an_initializer_1246",message:"An interface property cannot have an initializer."},A_type_literal_property_cannot_have_an_initializer:{code:1247,category:e.DiagnosticCategory.Error,key:"A_type_literal_property_cannot_have_an_initializer_1247",message:"A type literal property cannot have an initializer."},A_class_member_cannot_have_the_0_keyword:{code:1248,category:e.DiagnosticCategory.Error,key:"A_class_member_cannot_have_the_0_keyword_1248",message:"A class member cannot have the '{0}' keyword."},A_decorator_can_only_decorate_a_method_implementation_not_an_overload:{code:1249,category:e.DiagnosticCategory.Error,key:"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249",message:"A decorator can only decorate a method implementation, not an overload."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:{code:1250,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:{code:1251,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."},Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:{code:1252,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252",message:"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."},_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:{code:1253,category:e.DiagnosticCategory.Error,key:"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253",message:"'{0}' tag cannot be used independently as a top level JSDoc tag."},A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:{code:1254,category:e.DiagnosticCategory.Error,key:"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254",message:"A 'const' initializer in an ambient context must be a string or numeric literal."},with_statements_are_not_allowed_in_an_async_function_block:{code:1300,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_an_async_function_block_1300",message:"'with' statements are not allowed in an async function block."},await_expression_is_only_allowed_within_an_async_function:{code:1308,category:e.DiagnosticCategory.Error,key:"await_expression_is_only_allowed_within_an_async_function_1308",message:"'await' expression is only allowed within an async function."},can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:{code:1312,category:e.DiagnosticCategory.Error,key:"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312",message:"'=' can only be used in an object literal property inside a destructuring assignment."},The_body_of_an_if_statement_cannot_be_the_empty_statement:{code:1313,category:e.DiagnosticCategory.Error,key:"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313",message:"The body of an 'if' statement cannot be the empty statement."},Global_module_exports_may_only_appear_in_module_files:{code:1314,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_module_files_1314",message:"Global module exports may only appear in module files."},Global_module_exports_may_only_appear_in_declaration_files:{code:1315,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_declaration_files_1315",message:"Global module exports may only appear in declaration files."},Global_module_exports_may_only_appear_at_top_level:{code:1316,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_at_top_level_1316",message:"Global module exports may only appear at top level."},A_parameter_property_cannot_be_declared_using_a_rest_parameter:{code:1317,category:e.DiagnosticCategory.Error,key:"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317",message:"A parameter property cannot be declared using a rest parameter."},An_abstract_accessor_cannot_have_an_implementation:{code:1318,category:e.DiagnosticCategory.Error,key:"An_abstract_accessor_cannot_have_an_implementation_1318",message:"An abstract accessor cannot have an implementation."},A_default_export_can_only_be_used_in_an_ECMAScript_style_module:{code:1319,category:e.DiagnosticCategory.Error,key:"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319",message:"A default export can only be used in an ECMAScript-style module."},Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1320,category:e.DiagnosticCategory.Error,key:"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320",message:"Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."},Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1321,category:e.DiagnosticCategory.Error,key:"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321",message:"Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."},Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:{code:1322,category:e.DiagnosticCategory.Error,key:"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322",message:"Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."},Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:{code:1323,category:e.DiagnosticCategory.Error,key:"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323",message:"Dynamic import cannot be used when targeting ECMAScript 2015 modules."},Dynamic_import_must_have_one_specifier_as_an_argument:{code:1324,category:e.DiagnosticCategory.Error,key:"Dynamic_import_must_have_one_specifier_as_an_argument_1324",message:"Dynamic import must have one specifier as an argument."},Specifier_of_dynamic_import_cannot_be_spread_element:{code:1325,category:e.DiagnosticCategory.Error,key:"Specifier_of_dynamic_import_cannot_be_spread_element_1325",message:"Specifier of dynamic import cannot be spread element."},Dynamic_import_cannot_have_type_arguments:{code:1326,category:e.DiagnosticCategory.Error,key:"Dynamic_import_cannot_have_type_arguments_1326",message:"Dynamic import cannot have type arguments"},String_literal_with_double_quotes_expected:{code:1327,category:e.DiagnosticCategory.Error,key:"String_literal_with_double_quotes_expected_1327",message:"String literal with double quotes expected."},Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:{code:1328,category:e.DiagnosticCategory.Error,key:"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328",message:"Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."},Duplicate_identifier_0:{code:2300,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_2300",message:"Duplicate identifier '{0}'."},Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:{code:2301,category:e.DiagnosticCategory.Error,key:"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",message:"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},Static_members_cannot_reference_class_type_parameters:{code:2302,category:e.DiagnosticCategory.Error,key:"Static_members_cannot_reference_class_type_parameters_2302",message:"Static members cannot reference class type parameters."},Circular_definition_of_import_alias_0:{code:2303,category:e.DiagnosticCategory.Error,key:"Circular_definition_of_import_alias_0_2303",message:"Circular definition of import alias '{0}'."},Cannot_find_name_0:{code:2304,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_2304",message:"Cannot find name '{0}'."},Module_0_has_no_exported_member_1:{code:2305,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_exported_member_1_2305",message:"Module '{0}' has no exported member '{1}'."},File_0_is_not_a_module:{code:2306,category:e.DiagnosticCategory.Error,key:"File_0_is_not_a_module_2306",message:"File '{0}' is not a module."},Cannot_find_module_0:{code:2307,category:e.DiagnosticCategory.Error,key:"Cannot_find_module_0_2307",message:"Cannot find module '{0}'."},Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:{code:2308,category:e.DiagnosticCategory.Error,key:"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308",message:"Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."},An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:{code:2309,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309",message:"An export assignment cannot be used in a module with other exported elements."},Type_0_recursively_references_itself_as_a_base_type:{code:2310,category:e.DiagnosticCategory.Error,key:"Type_0_recursively_references_itself_as_a_base_type_2310",message:"Type '{0}' recursively references itself as a base type."},A_class_may_only_extend_another_class:{code:2311,category:e.DiagnosticCategory.Error,key:"A_class_may_only_extend_another_class_2311",message:"A class may only extend another class."},An_interface_may_only_extend_a_class_or_another_interface:{code:2312,category:e.DiagnosticCategory.Error,key:"An_interface_may_only_extend_a_class_or_another_interface_2312",message:"An interface may only extend a class or another interface."},Type_parameter_0_has_a_circular_constraint:{code:2313,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_has_a_circular_constraint_2313",message:"Type parameter '{0}' has a circular constraint."},Generic_type_0_requires_1_type_argument_s:{code:2314,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_1_type_argument_s_2314",message:"Generic type '{0}' requires {1} type argument(s)."},Type_0_is_not_generic:{code:2315,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_generic_2315",message:"Type '{0}' is not generic."},Global_type_0_must_be_a_class_or_interface_type:{code:2316,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_be_a_class_or_interface_type_2316",message:"Global type '{0}' must be a class or interface type."},Global_type_0_must_have_1_type_parameter_s:{code:2317,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_have_1_type_parameter_s_2317",message:"Global type '{0}' must have {1} type parameter(s)."},Cannot_find_global_type_0:{code:2318,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_type_0_2318",message:"Cannot find global type '{0}'."},Named_property_0_of_types_1_and_2_are_not_identical:{code:2319,category:e.DiagnosticCategory.Error,key:"Named_property_0_of_types_1_and_2_are_not_identical_2319",message:"Named property '{0}' of types '{1}' and '{2}' are not identical."},Interface_0_cannot_simultaneously_extend_types_1_and_2:{code:2320,category:e.DiagnosticCategory.Error,key:"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320",message:"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."},Excessive_stack_depth_comparing_types_0_and_1:{code:2321,category:e.DiagnosticCategory.Error,key:"Excessive_stack_depth_comparing_types_0_and_1_2321",message:"Excessive stack depth comparing types '{0}' and '{1}'."},Type_0_is_not_assignable_to_type_1:{code:2322,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_2322",message:"Type '{0}' is not assignable to type '{1}'."},Cannot_redeclare_exported_variable_0:{code:2323,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_exported_variable_0_2323",message:"Cannot redeclare exported variable '{0}'."},Property_0_is_missing_in_type_1:{code:2324,category:e.DiagnosticCategory.Error,key:"Property_0_is_missing_in_type_1_2324",message:"Property '{0}' is missing in type '{1}'."},Property_0_is_private_in_type_1_but_not_in_type_2:{code:2325,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_in_type_1_but_not_in_type_2_2325",message:"Property '{0}' is private in type '{1}' but not in type '{2}'."},Types_of_property_0_are_incompatible:{code:2326,category:e.DiagnosticCategory.Error,key:"Types_of_property_0_are_incompatible_2326",message:"Types of property '{0}' are incompatible."},Property_0_is_optional_in_type_1_but_required_in_type_2:{code:2327,category:e.DiagnosticCategory.Error,key:"Property_0_is_optional_in_type_1_but_required_in_type_2_2327",message:"Property '{0}' is optional in type '{1}' but required in type '{2}'."},Types_of_parameters_0_and_1_are_incompatible:{code:2328,category:e.DiagnosticCategory.Error,key:"Types_of_parameters_0_and_1_are_incompatible_2328",message:"Types of parameters '{0}' and '{1}' are incompatible."},Index_signature_is_missing_in_type_0:{code:2329,category:e.DiagnosticCategory.Error,key:"Index_signature_is_missing_in_type_0_2329",message:"Index signature is missing in type '{0}'."},Index_signatures_are_incompatible:{code:2330,category:e.DiagnosticCategory.Error,key:"Index_signatures_are_incompatible_2330",message:"Index signatures are incompatible."},this_cannot_be_referenced_in_a_module_or_namespace_body:{code:2331,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_module_or_namespace_body_2331",message:"'this' cannot be referenced in a module or namespace body."},this_cannot_be_referenced_in_current_location:{code:2332,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_current_location_2332",message:"'this' cannot be referenced in current location."},this_cannot_be_referenced_in_constructor_arguments:{code:2333,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_constructor_arguments_2333",message:"'this' cannot be referenced in constructor arguments."},this_cannot_be_referenced_in_a_static_property_initializer:{code:2334,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_static_property_initializer_2334",message:"'this' cannot be referenced in a static property initializer."},super_can_only_be_referenced_in_a_derived_class:{code:2335,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_a_derived_class_2335",message:"'super' can only be referenced in a derived class."},super_cannot_be_referenced_in_constructor_arguments:{code:2336,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_constructor_arguments_2336",message:"'super' cannot be referenced in constructor arguments."},Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:{code:2337,category:e.DiagnosticCategory.Error,key:"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337",message:"Super calls are not permitted outside constructors or in nested functions inside constructors."},super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:{code:2338,category:e.DiagnosticCategory.Error,key:"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338",message:"'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."},Property_0_does_not_exist_on_type_1:{code:2339,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_2339",message:"Property '{0}' does not exist on type '{1}'."},Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:{code:2340,category:e.DiagnosticCategory.Error,key:"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",message:"Only public and protected methods of the base class are accessible via the 'super' keyword."},Property_0_is_private_and_only_accessible_within_class_1:{code:2341,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_and_only_accessible_within_class_1_2341",message:"Property '{0}' is private and only accessible within class '{1}'."},An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:{code:2342,category:e.DiagnosticCategory.Error,key:"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",message:"An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."},This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:{code:2343,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",message:"This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."},Type_0_does_not_satisfy_the_constraint_1:{code:2344,category:e.DiagnosticCategory.Error,key:"Type_0_does_not_satisfy_the_constraint_1_2344",message:"Type '{0}' does not satisfy the constraint '{1}'."},Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:{code:2345,category:e.DiagnosticCategory.Error,key:"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345",message:"Argument of type '{0}' is not assignable to parameter of type '{1}'."},Call_target_does_not_contain_any_signatures:{code:2346,category:e.DiagnosticCategory.Error,key:"Call_target_does_not_contain_any_signatures_2346",message:"Call target does not contain any signatures."},Untyped_function_calls_may_not_accept_type_arguments:{code:2347,category:e.DiagnosticCategory.Error,key:"Untyped_function_calls_may_not_accept_type_arguments_2347",message:"Untyped function calls may not accept type arguments."},Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:{code:2348,category:e.DiagnosticCategory.Error,key:"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348",message:"Value of type '{0}' is not callable. Did you mean to include 'new'?"},Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:{code:2349,category:e.DiagnosticCategory.Error,key:"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349",message:"Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."},Only_a_void_function_can_be_called_with_the_new_keyword:{code:2350,category:e.DiagnosticCategory.Error,key:"Only_a_void_function_can_be_called_with_the_new_keyword_2350",message:"Only a void function can be called with the 'new' keyword."},Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:{code:2351,category:e.DiagnosticCategory.Error,key:"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",message:"Cannot use 'new' with an expression whose type lacks a call or construct signature."},Type_0_cannot_be_converted_to_type_1:{code:2352,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_converted_to_type_1_2352",message:"Type '{0}' cannot be converted to type '{1}'."},Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:{code:2353,category:e.DiagnosticCategory.Error,key:"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",message:"Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."},This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:{code:2354,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354",message:"This syntax requires an imported helper but module '{0}' cannot be found."},A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:{code:2355,category:e.DiagnosticCategory.Error,key:"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",message:"A function whose declared type is neither 'void' nor 'any' must return a value."},An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:{code:2356,category:e.DiagnosticCategory.Error,key:"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356",message:"An arithmetic operand must be of type 'any', 'number' or an enum type."},The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:{code:2357,category:e.DiagnosticCategory.Error,key:"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",message:"The operand of an increment or decrement operator must be a variable or a property access."},The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2358,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358",message:"The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."},The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:{code:2359,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359",message:"The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."},The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:{code:2360,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360",message:"The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."},The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2361,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361",message:"The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."},The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2362,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362",message:"The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2363,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363",message:"The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:{code:2364,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364",message:"The left-hand side of an assignment expression must be a variable or a property access."},Operator_0_cannot_be_applied_to_types_1_and_2:{code:2365,category:e.DiagnosticCategory.Error,key:"Operator_0_cannot_be_applied_to_types_1_and_2_2365",message:"Operator '{0}' cannot be applied to types '{1}' and '{2}'."},Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:{code:2366,category:e.DiagnosticCategory.Error,key:"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366",message:"Function lacks ending return statement and return type does not include 'undefined'."},Type_parameter_name_cannot_be_0:{code:2368,category:e.DiagnosticCategory.Error,key:"Type_parameter_name_cannot_be_0_2368",message:"Type parameter name cannot be '{0}'."},A_parameter_property_is_only_allowed_in_a_constructor_implementation:{code:2369,category:e.DiagnosticCategory.Error,key:"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369",message:"A parameter property is only allowed in a constructor implementation."},A_rest_parameter_must_be_of_an_array_type:{code:2370,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_of_an_array_type_2370",message:"A rest parameter must be of an array type."},A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:{code:2371,category:e.DiagnosticCategory.Error,key:"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371",message:"A parameter initializer is only allowed in a function or constructor implementation."},Parameter_0_cannot_be_referenced_in_its_initializer:{code:2372,category:e.DiagnosticCategory.Error,key:"Parameter_0_cannot_be_referenced_in_its_initializer_2372",message:"Parameter '{0}' cannot be referenced in its initializer."},Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:{code:2373,category:e.DiagnosticCategory.Error,key:"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373",message:"Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."},Duplicate_string_index_signature:{code:2374,category:e.DiagnosticCategory.Error,key:"Duplicate_string_index_signature_2374",message:"Duplicate string index signature."},Duplicate_number_index_signature:{code:2375,category:e.DiagnosticCategory.Error,key:"Duplicate_number_index_signature_2375",message:"Duplicate number index signature."},A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:{code:2376,category:e.DiagnosticCategory.Error,key:"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376",message:"A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."},Constructors_for_derived_classes_must_contain_a_super_call:{code:2377,category:e.DiagnosticCategory.Error,key:"Constructors_for_derived_classes_must_contain_a_super_call_2377",message:"Constructors for derived classes must contain a 'super' call."},A_get_accessor_must_return_a_value:{code:2378,category:e.DiagnosticCategory.Error,key:"A_get_accessor_must_return_a_value_2378",message:"A 'get' accessor must return a value."},Getter_and_setter_accessors_do_not_agree_in_visibility:{code:2379,category:e.DiagnosticCategory.Error,key:"Getter_and_setter_accessors_do_not_agree_in_visibility_2379",message:"Getter and setter accessors do not agree in visibility."},get_and_set_accessor_must_have_the_same_type:{code:2380,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_type_2380",message:"'get' and 'set' accessor must have the same type."},A_signature_with_an_implementation_cannot_use_a_string_literal_type:{code:2381,category:e.DiagnosticCategory.Error,key:"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381",message:"A signature with an implementation cannot use a string literal type."},Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:{code:2382,category:e.DiagnosticCategory.Error,key:"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382",message:"Specialized overload signature is not assignable to any non-specialized signature."},Overload_signatures_must_all_be_exported_or_non_exported:{code:2383,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_exported_or_non_exported_2383",message:"Overload signatures must all be exported or non-exported."},Overload_signatures_must_all_be_ambient_or_non_ambient:{code:2384,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_ambient_or_non_ambient_2384",message:"Overload signatures must all be ambient or non-ambient."},Overload_signatures_must_all_be_public_private_or_protected:{code:2385,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_public_private_or_protected_2385",message:"Overload signatures must all be public, private or protected."},Overload_signatures_must_all_be_optional_or_required:{code:2386,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_optional_or_required_2386",message:"Overload signatures must all be optional or required."},Function_overload_must_be_static:{code:2387,category:e.DiagnosticCategory.Error,key:"Function_overload_must_be_static_2387",message:"Function overload must be static."},Function_overload_must_not_be_static:{code:2388,category:e.DiagnosticCategory.Error,key:"Function_overload_must_not_be_static_2388",message:"Function overload must not be static."},Function_implementation_name_must_be_0:{code:2389,category:e.DiagnosticCategory.Error,key:"Function_implementation_name_must_be_0_2389",message:"Function implementation name must be '{0}'."},Constructor_implementation_is_missing:{code:2390,category:e.DiagnosticCategory.Error,key:"Constructor_implementation_is_missing_2390",message:"Constructor implementation is missing."},Function_implementation_is_missing_or_not_immediately_following_the_declaration:{code:2391,category:e.DiagnosticCategory.Error,key:"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391",message:"Function implementation is missing or not immediately following the declaration."},Multiple_constructor_implementations_are_not_allowed:{code:2392,category:e.DiagnosticCategory.Error,key:"Multiple_constructor_implementations_are_not_allowed_2392",message:"Multiple constructor implementations are not allowed."},Duplicate_function_implementation:{code:2393,category:e.DiagnosticCategory.Error,key:"Duplicate_function_implementation_2393",message:"Duplicate function implementation."},Overload_signature_is_not_compatible_with_function_implementation:{code:2394,category:e.DiagnosticCategory.Error,key:"Overload_signature_is_not_compatible_with_function_implementation_2394",message:"Overload signature is not compatible with function implementation."},Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:{code:2395,category:e.DiagnosticCategory.Error,key:"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395",message:"Individual declarations in merged declaration '{0}' must be all exported or all local."},Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:{code:2396,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396",message:"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."},Declaration_name_conflicts_with_built_in_global_identifier_0:{code:2397,category:e.DiagnosticCategory.Error,key:"Declaration_name_conflicts_with_built_in_global_identifier_0_2397",message:"Declaration name conflicts with built-in global identifier '{0}'."},Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:{code:2399,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399",message:"Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."},Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:{code:2400,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400",message:"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."},Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:{code:2401,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401",message:"Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."},Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:{code:2402,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402",message:"Expression resolves to '_super' that compiler uses to capture base class reference."},Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:{code:2403,category:e.DiagnosticCategory.Error,key:"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403",message:"Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."},The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:{code:2404,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404",message:"The left-hand side of a 'for...in' statement cannot use a type annotation."},The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:{code:2405,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405",message:"The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."},The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:{code:2406,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406",message:"The left-hand side of a 'for...in' statement must be a variable or a property access."},The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2407,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407",message:"The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."},Setters_cannot_return_a_value:{code:2408,category:e.DiagnosticCategory.Error,key:"Setters_cannot_return_a_value_2408",message:"Setters cannot return a value."},Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:{code:2409,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409",message:"Return type of constructor signature must be assignable to the instance type of the class."},The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:{code:2410,category:e.DiagnosticCategory.Error,key:"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410",message:"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."},Property_0_of_type_1_is_not_assignable_to_string_index_type_2:{code:2411,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411",message:"Property '{0}' of type '{1}' is not assignable to string index type '{2}'."},Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:{code:2412,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412",message:"Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."},Numeric_index_type_0_is_not_assignable_to_string_index_type_1:{code:2413,category:e.DiagnosticCategory.Error,key:"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413",message:"Numeric index type '{0}' is not assignable to string index type '{1}'."},Class_name_cannot_be_0:{code:2414,category:e.DiagnosticCategory.Error,key:"Class_name_cannot_be_0_2414",message:"Class name cannot be '{0}'."},Class_0_incorrectly_extends_base_class_1:{code:2415,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_extends_base_class_1_2415",message:"Class '{0}' incorrectly extends base class '{1}'."},Class_static_side_0_incorrectly_extends_base_class_static_side_1:{code:2417,category:e.DiagnosticCategory.Error,key:"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417",message:"Class static side '{0}' incorrectly extends base class static side '{1}'."},Class_0_incorrectly_implements_interface_1:{code:2420,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_implements_interface_1_2420",message:"Class '{0}' incorrectly implements interface '{1}'."},A_class_may_only_implement_another_class_or_interface:{code:2422,category:e.DiagnosticCategory.Error,key:"A_class_may_only_implement_another_class_or_interface_2422",message:"A class may only implement another class or interface."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:{code:2423,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:{code:2424,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."},Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:{code:2425,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425",message:"Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."},Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:{code:2426,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426",message:"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."},Interface_name_cannot_be_0:{code:2427,category:e.DiagnosticCategory.Error,key:"Interface_name_cannot_be_0_2427",message:"Interface name cannot be '{0}'."},All_declarations_of_0_must_have_identical_type_parameters:{code:2428,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_type_parameters_2428",message:"All declarations of '{0}' must have identical type parameters."},Interface_0_incorrectly_extends_interface_1:{code:2430,category:e.DiagnosticCategory.Error,key:"Interface_0_incorrectly_extends_interface_1_2430",message:"Interface '{0}' incorrectly extends interface '{1}'."},Enum_name_cannot_be_0:{code:2431,category:e.DiagnosticCategory.Error,key:"Enum_name_cannot_be_0_2431",message:"Enum name cannot be '{0}'."},In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:{code:2432,category:e.DiagnosticCategory.Error,key:"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432",message:"In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."},A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:{code:2433,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433",message:"A namespace declaration cannot be in a different file from a class or function with which it is merged."},A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:{code:2434,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434",message:"A namespace declaration cannot be located prior to a class or function with which it is merged."},Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:{code:2435,category:e.DiagnosticCategory.Error,key:"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435",message:"Ambient modules cannot be nested in other modules or namespaces."},Ambient_module_declaration_cannot_specify_relative_module_name:{code:2436,category:e.DiagnosticCategory.Error,key:"Ambient_module_declaration_cannot_specify_relative_module_name_2436",message:"Ambient module declaration cannot specify relative module name."},Module_0_is_hidden_by_a_local_declaration_with_the_same_name:{code:2437,category:e.DiagnosticCategory.Error,key:"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437",message:"Module '{0}' is hidden by a local declaration with the same name."},Import_name_cannot_be_0:{code:2438,category:e.DiagnosticCategory.Error,key:"Import_name_cannot_be_0_2438",message:"Import name cannot be '{0}'."},Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:{code:2439,category:e.DiagnosticCategory.Error,key:"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439",message:"Import or export declaration in an ambient module declaration cannot reference module through relative module name."},Import_declaration_conflicts_with_local_declaration_of_0:{code:2440,category:e.DiagnosticCategory.Error,key:"Import_declaration_conflicts_with_local_declaration_of_0_2440",message:"Import declaration conflicts with local declaration of '{0}'."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:{code:2441,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."},Types_have_separate_declarations_of_a_private_property_0:{code:2442,category:e.DiagnosticCategory.Error,key:"Types_have_separate_declarations_of_a_private_property_0_2442",message:"Types have separate declarations of a private property '{0}'."},Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:{code:2443,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443",message:"Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."},Property_0_is_protected_in_type_1_but_public_in_type_2:{code:2444,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_in_type_1_but_public_in_type_2_2444",message:"Property '{0}' is protected in type '{1}' but public in type '{2}'."},Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:{code:2445,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445",message:"Property '{0}' is protected and only accessible within class '{1}' and its subclasses."},Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:{code:2446,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446",message:"Property '{0}' is protected and only accessible through an instance of class '{1}'."},The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:{code:2447,category:e.DiagnosticCategory.Error,key:"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447",message:"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."},Block_scoped_variable_0_used_before_its_declaration:{code:2448,category:e.DiagnosticCategory.Error,key:"Block_scoped_variable_0_used_before_its_declaration_2448",message:"Block-scoped variable '{0}' used before its declaration."},Class_0_used_before_its_declaration:{code:2449,category:e.DiagnosticCategory.Error,key:"Class_0_used_before_its_declaration_2449",message:"Class '{0}' used before its declaration."},Enum_0_used_before_its_declaration:{code:2450,category:e.DiagnosticCategory.Error,key:"Enum_0_used_before_its_declaration_2450",message:"Enum '{0}' used before its declaration."},Cannot_redeclare_block_scoped_variable_0:{code:2451,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_block_scoped_variable_0_2451",message:"Cannot redeclare block-scoped variable '{0}'."},An_enum_member_cannot_have_a_numeric_name:{code:2452,category:e.DiagnosticCategory.Error,key:"An_enum_member_cannot_have_a_numeric_name_2452",message:"An enum member cannot have a numeric name."},The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:{code:2453,category:e.DiagnosticCategory.Error,key:"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453",message:"The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."},Variable_0_is_used_before_being_assigned:{code:2454,category:e.DiagnosticCategory.Error,key:"Variable_0_is_used_before_being_assigned_2454",message:"Variable '{0}' is used before being assigned."},Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:{code:2455,category:e.DiagnosticCategory.Error,key:"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455",message:"Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."},Type_alias_0_circularly_references_itself:{code:2456,category:e.DiagnosticCategory.Error,key:"Type_alias_0_circularly_references_itself_2456",message:"Type alias '{0}' circularly references itself."},Type_alias_name_cannot_be_0:{code:2457,category:e.DiagnosticCategory.Error,key:"Type_alias_name_cannot_be_0_2457",message:"Type alias name cannot be '{0}'."},An_AMD_module_cannot_have_multiple_name_assignments:{code:2458,category:e.DiagnosticCategory.Error,key:"An_AMD_module_cannot_have_multiple_name_assignments_2458",message:"An AMD module cannot have multiple name assignments."},Type_0_has_no_property_1_and_no_string_index_signature:{code:2459,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_and_no_string_index_signature_2459",message:"Type '{0}' has no property '{1}' and no string index signature."},Type_0_has_no_property_1:{code:2460,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_2460",message:"Type '{0}' has no property '{1}'."},Type_0_is_not_an_array_type:{code:2461,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_2461",message:"Type '{0}' is not an array type."},A_rest_element_must_be_last_in_a_destructuring_pattern:{code:2462,category:e.DiagnosticCategory.Error,key:"A_rest_element_must_be_last_in_a_destructuring_pattern_2462",message:"A rest element must be last in a destructuring pattern."},A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:{code:2463,category:e.DiagnosticCategory.Error,key:"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463",message:"A binding pattern parameter cannot be optional in an implementation signature."},A_computed_property_name_must_be_of_type_string_number_symbol_or_any:{code:2464,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464",message:"A computed property name must be of type 'string', 'number', 'symbol', or 'any'."},this_cannot_be_referenced_in_a_computed_property_name:{code:2465,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_computed_property_name_2465",message:"'this' cannot be referenced in a computed property name."},super_cannot_be_referenced_in_a_computed_property_name:{code:2466,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_a_computed_property_name_2466",message:"'super' cannot be referenced in a computed property name."},A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:{code:2467,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467",message:"A computed property name cannot reference a type parameter from its containing type."},Cannot_find_global_value_0:{code:2468,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_value_0_2468",message:"Cannot find global value '{0}'."},The_0_operator_cannot_be_applied_to_type_symbol:{code:2469,category:e.DiagnosticCategory.Error,key:"The_0_operator_cannot_be_applied_to_type_symbol_2469",message:"The '{0}' operator cannot be applied to type 'symbol'."},Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:{code:2470,category:e.DiagnosticCategory.Error,key:"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470",message:"'Symbol' reference does not refer to the global Symbol constructor object."},A_computed_property_name_of_the_form_0_must_be_of_type_symbol:{code:2471,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471",message:"A computed property name of the form '{0}' must be of type 'symbol'."},Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:{code:2472,category:e.DiagnosticCategory.Error,key:"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472",message:"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."},Enum_declarations_must_all_be_const_or_non_const:{code:2473,category:e.DiagnosticCategory.Error,key:"Enum_declarations_must_all_be_const_or_non_const_2473",message:"Enum declarations must all be const or non-const."},In_const_enum_declarations_member_initializer_must_be_constant_expression:{code:2474,category:e.DiagnosticCategory.Error,key:"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474",message:"In 'const' enum declarations member initializer must be constant expression."},const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:{code:2475,category:e.DiagnosticCategory.Error,key:"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475",message:"'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."},A_const_enum_member_can_only_be_accessed_using_a_string_literal:{code:2476,category:e.DiagnosticCategory.Error,key:"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476",message:"A const enum member can only be accessed using a string literal."},const_enum_member_initializer_was_evaluated_to_a_non_finite_value:{code:2477,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477",message:"'const' enum member initializer was evaluated to a non-finite value."},const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:{code:2478,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478",message:"'const' enum member initializer was evaluated to disallowed value 'NaN'."},Property_0_does_not_exist_on_const_enum_1:{code:2479,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_const_enum_1_2479",message:"Property '{0}' does not exist on 'const' enum '{1}'."},let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:{code:2480,category:e.DiagnosticCategory.Error,key:"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480",message:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:{code:2481,category:e.DiagnosticCategory.Error,key:"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481",message:"Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."},The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:{code:2483,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483",message:"The left-hand side of a 'for...of' statement cannot use a type annotation."},Export_declaration_conflicts_with_exported_declaration_of_0:{code:2484,category:e.DiagnosticCategory.Error,key:"Export_declaration_conflicts_with_exported_declaration_of_0_2484",message:"Export declaration conflicts with exported declaration of '{0}'."},The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:{code:2487,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487",message:"The left-hand side of a 'for...of' statement must be a variable or a property access."},Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2488,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488",message:"Type must have a '[Symbol.iterator]()' method that returns an iterator."},An_iterator_must_have_a_next_method:{code:2489,category:e.DiagnosticCategory.Error,key:"An_iterator_must_have_a_next_method_2489",message:"An iterator must have a 'next()' method."},The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:{code:2490,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490",message:"The type returned by the 'next()' method of an iterator must have a 'value' property."},The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:{code:2491,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491",message:"The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},Cannot_redeclare_identifier_0_in_catch_clause:{code:2492,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_identifier_0_in_catch_clause_2492",message:"Cannot redeclare identifier '{0}' in catch clause."},Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:{code:2493,category:e.DiagnosticCategory.Error,key:"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493",message:"Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."},Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:{code:2494,category:e.DiagnosticCategory.Error,key:"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494",message:"Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."},Type_0_is_not_an_array_type_or_a_string_type:{code:2495,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_2495",message:"Type '{0}' is not an array type or a string type."},The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:{code:2496,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496",message:"The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."},Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:{code:2497,category:e.DiagnosticCategory.Error,key:"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497",message:"Module '{0}' resolves to a non-module entity and cannot be imported using this construct."},Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:{code:2498,category:e.DiagnosticCategory.Error,key:"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498",message:"Module '{0}' uses 'export =' and cannot be used with 'export *'."},An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2499,category:e.DiagnosticCategory.Error,key:"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499",message:"An interface can only extend an identifier/qualified-name with optional type arguments."},A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2500,category:e.DiagnosticCategory.Error,key:"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500",message:"A class can only implement an identifier/qualified-name with optional type arguments."},A_rest_element_cannot_contain_a_binding_pattern:{code:2501,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_contain_a_binding_pattern_2501",message:"A rest element cannot contain a binding pattern."},_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:{code:2502,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502",message:"'{0}' is referenced directly or indirectly in its own type annotation."},Cannot_find_namespace_0:{code:2503,category:e.DiagnosticCategory.Error,key:"Cannot_find_namespace_0_2503",message:"Cannot find namespace '{0}'."},Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:{code:2504,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504",message:"Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."},A_generator_cannot_have_a_void_type_annotation:{code:2505,category:e.DiagnosticCategory.Error,key:"A_generator_cannot_have_a_void_type_annotation_2505",message:"A generator cannot have a 'void' type annotation."},_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:{code:2506,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506",message:"'{0}' is referenced directly or indirectly in its own base expression."},Type_0_is_not_a_constructor_function_type:{code:2507,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_constructor_function_type_2507",message:"Type '{0}' is not a constructor function type."},No_base_constructor_has_the_specified_number_of_type_arguments:{code:2508,category:e.DiagnosticCategory.Error,key:"No_base_constructor_has_the_specified_number_of_type_arguments_2508",message:"No base constructor has the specified number of type arguments."},Base_constructor_return_type_0_is_not_a_class_or_interface_type:{code:2509,category:e.DiagnosticCategory.Error,key:"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509",message:"Base constructor return type '{0}' is not a class or interface type."},Base_constructors_must_all_have_the_same_return_type:{code:2510,category:e.DiagnosticCategory.Error,key:"Base_constructors_must_all_have_the_same_return_type_2510",message:"Base constructors must all have the same return type."},Cannot_create_an_instance_of_the_abstract_class_0:{code:2511,category:e.DiagnosticCategory.Error,key:"Cannot_create_an_instance_of_the_abstract_class_0_2511",message:"Cannot create an instance of the abstract class '{0}'."},Overload_signatures_must_all_be_abstract_or_non_abstract:{code:2512,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_abstract_or_non_abstract_2512",message:"Overload signatures must all be abstract or non-abstract."},Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:{code:2513,category:e.DiagnosticCategory.Error,key:"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513",message:"Abstract method '{0}' in class '{1}' cannot be accessed via super expression."},Classes_containing_abstract_methods_must_be_marked_abstract:{code:2514,category:e.DiagnosticCategory.Error,key:"Classes_containing_abstract_methods_must_be_marked_abstract_2514",message:"Classes containing abstract methods must be marked abstract."},Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:{code:2515,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515",message:"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."},All_declarations_of_an_abstract_method_must_be_consecutive:{code:2516,category:e.DiagnosticCategory.Error,key:"All_declarations_of_an_abstract_method_must_be_consecutive_2516",message:"All declarations of an abstract method must be consecutive."},Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:{code:2517,category:e.DiagnosticCategory.Error,key:"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517",message:"Cannot assign an abstract constructor type to a non-abstract constructor type."},A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:{code:2518,category:e.DiagnosticCategory.Error,key:"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518",message:"A 'this'-based type guard is not compatible with a parameter-based type guard."},An_async_iterator_must_have_a_next_method:{code:2519,category:e.DiagnosticCategory.Error,key:"An_async_iterator_must_have_a_next_method_2519",message:"An async iterator must have a 'next()' method."},Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:{code:2520,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520",message:"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."},Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:{code:2521,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521",message:"Expression resolves to variable declaration '{0}' that compiler uses to support async functions."},The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:{code:2522,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522",message:"The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."},yield_expressions_cannot_be_used_in_a_parameter_initializer:{code:2523,category:e.DiagnosticCategory.Error,key:"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523",message:"'yield' expressions cannot be used in a parameter initializer."},await_expressions_cannot_be_used_in_a_parameter_initializer:{code:2524,category:e.DiagnosticCategory.Error,key:"await_expressions_cannot_be_used_in_a_parameter_initializer_2524",message:"'await' expressions cannot be used in a parameter initializer."},Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:{code:2525,category:e.DiagnosticCategory.Error,key:"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525",message:"Initializer provides no value for this binding element and the binding element has no default value."},A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:{code:2526,category:e.DiagnosticCategory.Error,key:"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526",message:"A 'this' type is available only in a non-static member of a class or interface."},The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:{code:2527,category:e.DiagnosticCategory.Error,key:"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527",message:"The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."},A_module_cannot_have_multiple_default_exports:{code:2528,category:e.DiagnosticCategory.Error,key:"A_module_cannot_have_multiple_default_exports_2528",message:"A module cannot have multiple default exports."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:{code:2529,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."},Property_0_is_incompatible_with_index_signature:{code:2530,category:e.DiagnosticCategory.Error,key:"Property_0_is_incompatible_with_index_signature_2530",message:"Property '{0}' is incompatible with index signature."},Object_is_possibly_null:{code:2531,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_2531",message:"Object is possibly 'null'."},Object_is_possibly_undefined:{code:2532,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_undefined_2532",message:"Object is possibly 'undefined'."},Object_is_possibly_null_or_undefined:{code:2533,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_or_undefined_2533",message:"Object is possibly 'null' or 'undefined'."},A_function_returning_never_cannot_have_a_reachable_end_point:{code:2534,category:e.DiagnosticCategory.Error,key:"A_function_returning_never_cannot_have_a_reachable_end_point_2534",message:"A function returning 'never' cannot have a reachable end point."},Enum_type_0_has_members_with_initializers_that_are_not_literals:{code:2535,category:e.DiagnosticCategory.Error,key:"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535",message:"Enum type '{0}' has members with initializers that are not literals."},Type_0_cannot_be_used_to_index_type_1:{code:2536,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_to_index_type_1_2536",message:"Type '{0}' cannot be used to index type '{1}'."},Type_0_has_no_matching_index_signature_for_type_1:{code:2537,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_matching_index_signature_for_type_1_2537",message:"Type '{0}' has no matching index signature for type '{1}'."},Type_0_cannot_be_used_as_an_index_type:{code:2538,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_as_an_index_type_2538",message:"Type '{0}' cannot be used as an index type."},Cannot_assign_to_0_because_it_is_not_a_variable:{code:2539,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_not_a_variable_2539",message:"Cannot assign to '{0}' because it is not a variable."},Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:{code:2540,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540",message:"Cannot assign to '{0}' because it is a constant or a read-only property."},The_target_of_an_assignment_must_be_a_variable_or_a_property_access:{code:2541,category:e.DiagnosticCategory.Error,key:"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541",message:"The target of an assignment must be a variable or a property access."},Index_signature_in_type_0_only_permits_reading:{code:2542,category:e.DiagnosticCategory.Error,key:"Index_signature_in_type_0_only_permits_reading_2542",message:"Index signature in type '{0}' only permits reading."},Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:{code:2543,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543",message:"Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."},Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:{code:2544,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544",message:"Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."},A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:{code:2545,category:e.DiagnosticCategory.Error,key:"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545",message:"A mixin class must have a constructor with a single rest parameter of type 'any[]'."},Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:{code:2546,category:e.DiagnosticCategory.Error,key:"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546",message:"Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."},The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:{code:2547,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547",message:"The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."},Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2548,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548",message:"Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2549,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549",message:"Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:{code:2550,category:e.DiagnosticCategory.Error,key:"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550",message:"Generic type instantiation is excessively deep and possibly infinite."},Property_0_does_not_exist_on_type_1_Did_you_mean_2:{code:2551,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551",message:"Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"},Cannot_find_name_0_Did_you_mean_1:{code:2552,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_1_2552",message:"Cannot find name '{0}'. Did you mean '{1}'?"},Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:{code:2553,category:e.DiagnosticCategory.Error,key:"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553",message:"Computed values are not permitted in an enum with string valued members."},Expected_0_arguments_but_got_1:{code:2554,category:e.DiagnosticCategory.Error,key:"Expected_0_arguments_but_got_1_2554",message:"Expected {0} arguments, but got {1}."},Expected_at_least_0_arguments_but_got_1:{code:2555,category:e.DiagnosticCategory.Error,key:"Expected_at_least_0_arguments_but_got_1_2555",message:"Expected at least {0} arguments, but got {1}."},Expected_0_arguments_but_got_a_minimum_of_1:{code:2556,category:e.DiagnosticCategory.Error,key:"Expected_0_arguments_but_got_a_minimum_of_1_2556",message:"Expected {0} arguments, but got a minimum of {1}."},Expected_at_least_0_arguments_but_got_a_minimum_of_1:{code:2557,category:e.DiagnosticCategory.Error,key:"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557",message:"Expected at least {0} arguments, but got a minimum of {1}."},Expected_0_type_arguments_but_got_1:{code:2558,category:e.DiagnosticCategory.Error,key:"Expected_0_type_arguments_but_got_1_2558",message:"Expected {0} type arguments, but got {1}."},Type_0_has_no_properties_in_common_with_type_1:{code:2559,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_properties_in_common_with_type_1_2559",message:"Type '{0}' has no properties in common with type '{1}'."},JSX_element_attributes_type_0_may_not_be_a_union_type:{code:2600,category:e.DiagnosticCategory.Error,key:"JSX_element_attributes_type_0_may_not_be_a_union_type_2600",message:"JSX element attributes type '{0}' may not be a union type."},The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:{code:2601,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601",message:"The return type of a JSX element constructor must return an object type."},JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:{code:2602,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602",message:"JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."},Property_0_in_type_1_is_not_assignable_to_type_2:{code:2603,category:e.DiagnosticCategory.Error,key:"Property_0_in_type_1_is_not_assignable_to_type_2_2603",message:"Property '{0}' in type '{1}' is not assignable to type '{2}'."},JSX_element_type_0_does_not_have_any_construct_or_call_signatures:{code:2604,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604",message:"JSX element type '{0}' does not have any construct or call signatures."},JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:{code:2605,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605",message:"JSX element type '{0}' is not a constructor function for JSX elements."},Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:{code:2606,category:e.DiagnosticCategory.Error,key:"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606",message:"Property '{0}' of JSX spread attribute is not assignable to target property."},JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:{code:2607,category:e.DiagnosticCategory.Error,key:"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607",message:"JSX element class does not support attributes because it does not have a '{0}' property."},The_global_type_JSX_0_may_not_have_more_than_one_property:{code:2608,category:e.DiagnosticCategory.Error,key:"The_global_type_JSX_0_may_not_have_more_than_one_property_2608",message:"The global type 'JSX.{0}' may not have more than one property."},JSX_spread_child_must_be_an_array_type:{code:2609,category:e.DiagnosticCategory.Error,key:"JSX_spread_child_must_be_an_array_type_2609",message:"JSX spread child must be an array type."},Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:{code:2649,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649",message:"Cannot augment module '{0}' with value exports because it resolves to a non-module entity."},A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:{code:2651,category:e.DiagnosticCategory.Error,key:"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651",message:"A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."},Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:{code:2652,category:e.DiagnosticCategory.Error,key:"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652",message:"Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."},Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:{code:2653,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653",message:"Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."},Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:{code:2654,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654",message:"Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."},Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:{code:2656,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656",message:"Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."},JSX_expressions_must_have_one_parent_element:{code:2657,category:e.DiagnosticCategory.Error,key:"JSX_expressions_must_have_one_parent_element_2657",message:"JSX expressions must have one parent element."},Type_0_provides_no_match_for_the_signature_1:{code:2658,category:e.DiagnosticCategory.Error,key:"Type_0_provides_no_match_for_the_signature_1_2658",message:"Type '{0}' provides no match for the signature '{1}'."},super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:{code:2659,category:e.DiagnosticCategory.Error,key:"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659",message:"'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."},super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:{code:2660,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660",message:"'super' can only be referenced in members of derived classes or object literal expressions."},Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:{code:2661,category:e.DiagnosticCategory.Error,key:"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661",message:"Cannot export '{0}'. Only local declarations can be exported from a module."},Cannot_find_name_0_Did_you_mean_the_static_member_1_0:{code:2662,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662",message:"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"},Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:{code:2663,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663",message:"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"},Invalid_module_name_in_augmentation_module_0_cannot_be_found:{code:2664,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664",message:"Invalid module name in augmentation, module '{0}' cannot be found."},Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:{code:2665,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665",message:"Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."},Exports_and_export_assignments_are_not_permitted_in_module_augmentations:{code:2666,category:e.DiagnosticCategory.Error,key:"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666",message:"Exports and export assignments are not permitted in module augmentations."},Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:{code:2667,category:e.DiagnosticCategory.Error,key:"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667",message:"Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."},export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:{code:2668,category:e.DiagnosticCategory.Error,key:"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668",message:"'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."},Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:{code:2669,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669",message:"Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."},Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:{code:2670,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670",message:"Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."},Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:{code:2671,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671",message:"Cannot augment module '{0}' because it resolves to a non-module entity."},Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:{code:2672,category:e.DiagnosticCategory.Error,key:"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672",message:"Cannot assign a '{0}' constructor type to a '{1}' constructor type."},Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:{code:2673,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673",message:"Constructor of class '{0}' is private and only accessible within the class declaration."},Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:{code:2674,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674",message:"Constructor of class '{0}' is protected and only accessible within the class declaration."},Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:{code:2675,category:e.DiagnosticCategory.Error,key:"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675",message:"Cannot extend a class '{0}'. Class constructor is marked as private."},Accessors_must_both_be_abstract_or_non_abstract:{code:2676,category:e.DiagnosticCategory.Error,key:"Accessors_must_both_be_abstract_or_non_abstract_2676",message:"Accessors must both be abstract or non-abstract."},A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:{code:2677,category:e.DiagnosticCategory.Error,key:"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677",message:"A type predicate's type must be assignable to its parameter's type."},Type_0_is_not_comparable_to_type_1:{code:2678,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_comparable_to_type_1_2678",message:"Type '{0}' is not comparable to type '{1}'."},A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:{code:2679,category:e.DiagnosticCategory.Error,key:"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679",message:"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."},A_this_parameter_must_be_the_first_parameter:{code:2680,category:e.DiagnosticCategory.Error,key:"A_this_parameter_must_be_the_first_parameter_2680",message:"A 'this' parameter must be the first parameter."},A_constructor_cannot_have_a_this_parameter:{code:2681,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_have_a_this_parameter_2681",message:"A constructor cannot have a 'this' parameter."},get_and_set_accessor_must_have_the_same_this_type:{code:2682,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_this_type_2682",message:"'get' and 'set' accessor must have the same 'this' type."},this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:{code:2683,category:e.DiagnosticCategory.Error,key:"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683",message:"'this' implicitly has type 'any' because it does not have a type annotation."},The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:{code:2684,category:e.DiagnosticCategory.Error,key:"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684",message:"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."},The_this_types_of_each_signature_are_incompatible:{code:2685,category:e.DiagnosticCategory.Error,key:"The_this_types_of_each_signature_are_incompatible_2685",message:"The 'this' types of each signature are incompatible."},_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:{code:2686,category:e.DiagnosticCategory.Error,key:"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686",message:"'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."},All_declarations_of_0_must_have_identical_modifiers:{code:2687,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_modifiers_2687",message:"All declarations of '{0}' must have identical modifiers."},Cannot_find_type_definition_file_for_0:{code:2688,category:e.DiagnosticCategory.Error,key:"Cannot_find_type_definition_file_for_0_2688",message:"Cannot find type definition file for '{0}'."},Cannot_extend_an_interface_0_Did_you_mean_implements:{code:2689,category:e.DiagnosticCategory.Error,key:"Cannot_extend_an_interface_0_Did_you_mean_implements_2689",message:"Cannot extend an interface '{0}'. Did you mean 'implements'?"},An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:{code:2691,category:e.DiagnosticCategory.Error,key:"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691",message:"An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."},_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:{code:2692,category:e.DiagnosticCategory.Error,key:"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692",message:"'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."},_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:{code:2693,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693",message:"'{0}' only refers to a type, but is being used as a value here."},Namespace_0_has_no_exported_member_1:{code:2694,category:e.DiagnosticCategory.Error,key:"Namespace_0_has_no_exported_member_1_2694",message:"Namespace '{0}' has no exported member '{1}'."},Left_side_of_comma_operator_is_unused_and_has_no_side_effects:{code:2695,category:e.DiagnosticCategory.Error,key:"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695",message:"Left side of comma operator is unused and has no side effects."},The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:{code:2696,category:e.DiagnosticCategory.Error,key:"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696",message:"The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"},An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:{code:2697,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697",message:"An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."},Spread_types_may_only_be_created_from_object_types:{code:2698,category:e.DiagnosticCategory.Error,key:"Spread_types_may_only_be_created_from_object_types_2698",message:"Spread types may only be created from object types."},Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:{code:2699,category:e.DiagnosticCategory.Error,key:"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699",message:"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."},Rest_types_may_only_be_created_from_object_types:{code:2700,category:e.DiagnosticCategory.Error,key:"Rest_types_may_only_be_created_from_object_types_2700",message:"Rest types may only be created from object types."},The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:{code:2701,category:e.DiagnosticCategory.Error,key:"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701",message:"The target of an object rest assignment must be a variable or a property access."},_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:{code:2702,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702",message:"'{0}' only refers to a type, but is being used as a namespace here."},The_operand_of_a_delete_operator_must_be_a_property_reference:{code:2703,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_must_be_a_property_reference_2703",message:"The operand of a delete operator must be a property reference."},The_operand_of_a_delete_operator_cannot_be_a_read_only_property:{code:2704,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704",message:"The operand of a delete operator cannot be a read-only property."},An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:{code:2705,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705",message:"An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."},Required_type_parameters_may_not_follow_optional_type_parameters:{code:2706,category:e.DiagnosticCategory.Error,key:"Required_type_parameters_may_not_follow_optional_type_parameters_2706",message:"Required type parameters may not follow optional type parameters."},Generic_type_0_requires_between_1_and_2_type_arguments:{code:2707,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_between_1_and_2_type_arguments_2707",message:"Generic type '{0}' requires between {1} and {2} type arguments."},Cannot_use_namespace_0_as_a_value:{code:2708,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_value_2708",message:"Cannot use namespace '{0}' as a value."},Cannot_use_namespace_0_as_a_type:{code:2709,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_type_2709",message:"Cannot use namespace '{0}' as a type."},_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:{code:2710,category:e.DiagnosticCategory.Error,key:"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710",message:"'{0}' are specified twice. The attribute named '{0}' will be overwritten."},A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:{code:2711,category:e.DiagnosticCategory.Error,key:"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711",message:"A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."},A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:{code:2712,category:e.DiagnosticCategory.Error,key:"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712",message:"A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."},Import_declaration_0_is_using_private_name_1:{code:4e3,category:e.DiagnosticCategory.Error,key:"Import_declaration_0_is_using_private_name_1_4000",message:"Import declaration '{0}' is using private name '{1}'."},Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:{code:4002,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002",message:"Type parameter '{0}' of exported class has or is using private name '{1}'."},Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:{code:4004,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004",message:"Type parameter '{0}' of exported interface has or is using private name '{1}'."},Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4006,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006",message:"Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."},Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4008,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008",message:"Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."},Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:{code:4010,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010",message:"Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."},Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:{code:4012,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012",message:"Type parameter '{0}' of public method from exported class has or is using private name '{1}'."},Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:{code:4014,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014",message:"Type parameter '{0}' of method from exported interface has or is using private name '{1}'."},Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:{code:4016,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016",message:"Type parameter '{0}' of exported function has or is using private name '{1}'."},Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:{code:4019,category:e.DiagnosticCategory.Error,key:"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019",message:"Implements clause of exported class '{0}' has or is using private name '{1}'."},extends_clause_of_exported_class_0_has_or_is_using_private_name_1:{code:4020,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020",message:"'extends' clause of exported class '{0}' has or is using private name '{1}'."},extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:{code:4022,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022",message:"'extends' clause of exported interface '{0}' has or is using private name '{1}'."},Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4023,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023",message:"Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."},Exported_variable_0_has_or_is_using_name_1_from_private_module_2:{code:4024,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024",message:"Exported variable '{0}' has or is using name '{1}' from private module '{2}'."},Exported_variable_0_has_or_is_using_private_name_1:{code:4025,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_private_name_1_4025",message:"Exported variable '{0}' has or is using private name '{1}'."},Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4026,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026",message:"Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."},Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4027,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027",message:"Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."},Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:{code:4028,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028",message:"Public static property '{0}' of exported class has or is using private name '{1}'."},Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4029,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029",message:"Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."},Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4030,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030",message:"Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."},Public_property_0_of_exported_class_has_or_is_using_private_name_1:{code:4031,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031",message:"Public property '{0}' of exported class has or is using private name '{1}'."},Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4032,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032",message:"Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."},Property_0_of_exported_interface_has_or_is_using_private_name_1:{code:4033,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033",message:"Property '{0}' of exported interface has or is using private name '{1}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4034,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034",message:"Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4035,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035",message:"Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4036,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036",message:"Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4037,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037",message:"Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4038,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038",message:"Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4039,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039",message:"Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4040,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040",message:"Return type of public static property getter from exported class has or is using private name '{0}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4041,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041",message:"Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4042,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042",message:"Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4043,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043",message:"Return type of public property getter from exported class has or is using private name '{0}'."},Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4044,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044",message:"Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:{code:4045,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045",message:"Return type of constructor signature from exported interface has or is using private name '{0}'."},Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4046,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046",message:"Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:{code:4047,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047",message:"Return type of call signature from exported interface has or is using private name '{0}'."},Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4048,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048",message:"Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:{code:4049,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049",message:"Return type of index signature from exported interface has or is using private name '{0}'."},Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4050,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050",message:"Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4051,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051",message:"Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:{code:4052,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052",message:"Return type of public static method from exported class has or is using private name '{0}'."},Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4053,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053",message:"Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4054,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054",message:"Return type of public method from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:{code:4055,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055",message:"Return type of public method from exported class has or is using private name '{0}'."},Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4056,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056",message:"Return type of method from exported interface has or is using name '{0}' from private module '{1}'."},Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:{code:4057,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057",message:"Return type of method from exported interface has or is using private name '{0}'."},Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4058,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058",message:"Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:{code:4059,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059",message:"Return type of exported function has or is using name '{0}' from private module '{1}'."},Return_type_of_exported_function_has_or_is_using_private_name_0:{code:4060,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_private_name_0_4060",message:"Return type of exported function has or is using private name '{0}'."},Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4061,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061",message:"Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4062,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062",message:"Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:{code:4063,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063",message:"Parameter '{0}' of constructor from exported class has or is using private name '{1}'."},Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4064,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064",message:"Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4065,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065",message:"Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."},Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4066,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066",message:"Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4067,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067",message:"Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."},Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4068,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068",message:"Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4069,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069",message:"Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:{code:4070,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070",message:"Parameter '{0}' of public static method from exported class has or is using private name '{1}'."},Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4071,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071",message:"Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4072,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072",message:"Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:{code:4073,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073",message:"Parameter '{0}' of public method from exported class has or is using private name '{1}'."},Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4074,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074",message:"Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:{code:4075,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075",message:"Parameter '{0}' of method from exported interface has or is using private name '{1}'."},Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:{code:4076,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076",message:"Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."},Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:{code:4077,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077",message:"Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."},Parameter_0_of_exported_function_has_or_is_using_private_name_1:{code:4078,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078",message:"Parameter '{0}' of exported function has or is using private name '{1}'."},Exported_type_alias_0_has_or_is_using_private_name_1:{code:4081,category:e.DiagnosticCategory.Error,key:"Exported_type_alias_0_has_or_is_using_private_name_1_4081",message:"Exported type alias '{0}' has or is using private name '{1}'."},Default_export_of_the_module_has_or_is_using_private_name_0:{code:4082,category:e.DiagnosticCategory.Error,key:"Default_export_of_the_module_has_or_is_using_private_name_0_4082",message:"Default export of the module has or is using private name '{0}'."},Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:{code:4083,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083",message:"Type parameter '{0}' of exported type alias has or is using private name '{1}'."},Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:{code:4090,category:e.DiagnosticCategory.Message,key:"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",message:"Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."},Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:{code:4091,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",message:"Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."},Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:{code:4092,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",message:"Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."},Property_0_of_exported_class_expression_may_not_be_private_or_protected:{code:4094,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094",message:"Property '{0}' of exported class expression may not be private or protected."},The_current_host_does_not_support_the_0_option:{code:5001,category:e.DiagnosticCategory.Error,key:"The_current_host_does_not_support_the_0_option_5001",message:"The current host does not support the '{0}' option."},Cannot_find_the_common_subdirectory_path_for_the_input_files:{code:5009,category:e.DiagnosticCategory.Error,key:"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009",message:"Cannot find the common subdirectory path for the input files."},File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5010,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",message:"File specification cannot end in a recursive directory wildcard ('**'): '{0}'."},File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:{code:5011,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011",message:"File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."},Cannot_read_file_0_Colon_1:{code:5012,category:e.DiagnosticCategory.Error,key:"Cannot_read_file_0_Colon_1_5012",message:"Cannot read file '{0}': {1}."},Failed_to_parse_file_0_Colon_1:{code:5014,category:e.DiagnosticCategory.Error,key:"Failed_to_parse_file_0_Colon_1_5014",message:"Failed to parse file '{0}': {1}."},Unknown_compiler_option_0:{code:5023,category:e.DiagnosticCategory.Error,key:"Unknown_compiler_option_0_5023",message:"Unknown compiler option '{0}'."},Compiler_option_0_requires_a_value_of_type_1:{code:5024,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_requires_a_value_of_type_1_5024",message:"Compiler option '{0}' requires a value of type {1}."},Could_not_write_file_0_Colon_1:{code:5033,category:e.DiagnosticCategory.Error,key:"Could_not_write_file_0_Colon_1_5033",message:"Could not write file '{0}': {1}."},Option_project_cannot_be_mixed_with_source_files_on_a_command_line:{code:5042,category:e.DiagnosticCategory.Error,key:"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042",message:"Option 'project' cannot be mixed with source files on a command line."},Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:{code:5047,category:e.DiagnosticCategory.Error,key:"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047",message:"Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."},Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:{code:5051,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051",message:"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."},Option_0_cannot_be_specified_without_specifying_option_1:{code:5052,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_without_specifying_option_1_5052",message:"Option '{0}' cannot be specified without specifying option '{1}'."},Option_0_cannot_be_specified_with_option_1:{code:5053,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_with_option_1_5053",message:"Option '{0}' cannot be specified with option '{1}'."},A_tsconfig_json_file_is_already_defined_at_Colon_0:{code:5054,category:e.DiagnosticCategory.Error,key:"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054",message:"A 'tsconfig.json' file is already defined at: '{0}'."},Cannot_write_file_0_because_it_would_overwrite_input_file:{code:5055,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_overwrite_input_file_5055",message:"Cannot write file '{0}' because it would overwrite input file."},Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:{code:5056,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056",message:"Cannot write file '{0}' because it would be overwritten by multiple input files."},Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:{code:5057,category:e.DiagnosticCategory.Error,key:"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057",message:"Cannot find a tsconfig.json file at the specified directory: '{0}'."},The_specified_path_does_not_exist_Colon_0:{code:5058,category:e.DiagnosticCategory.Error,key:"The_specified_path_does_not_exist_Colon_0_5058",message:"The specified path does not exist: '{0}'."},Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:{code:5059,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059",message:"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."},Option_paths_cannot_be_used_without_specifying_baseUrl_option:{code:5060,category:e.DiagnosticCategory.Error,key:"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060",message:"Option 'paths' cannot be used without specifying '--baseUrl' option."},Pattern_0_can_have_at_most_one_Asterisk_character:{code:5061,category:e.DiagnosticCategory.Error,key:"Pattern_0_can_have_at_most_one_Asterisk_character_5061",message:"Pattern '{0}' can have at most one '*' character."},Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:{code:5062,category:e.DiagnosticCategory.Error,key:"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062",message:"Substitution '{0}' in pattern '{1}' in can have at most one '*' character."},Substitutions_for_pattern_0_should_be_an_array:{code:5063,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_should_be_an_array_5063",message:"Substitutions for pattern '{0}' should be an array."},Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:{code:5064,category:e.DiagnosticCategory.Error,key:"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064",message:"Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."},File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5065,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065",message:"File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."},Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:{code:5066,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066",message:"Substitutions for pattern '{0}' shouldn't be an empty array."},Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:{code:5067,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067",message:"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."},Concatenate_and_emit_output_to_single_file:{code:6001,category:e.DiagnosticCategory.Message,key:"Concatenate_and_emit_output_to_single_file_6001",message:"Concatenate and emit output to single file."},Generates_corresponding_d_ts_file:{code:6002,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_d_ts_file_6002",message:"Generates corresponding '.d.ts' file."},Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:{code:6003,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003",message:"Specify the location where debugger should locate map files instead of generated locations."},Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:{code:6004,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004",message:"Specify the location where debugger should locate TypeScript files instead of source locations."},Watch_input_files:{code:6005,category:e.DiagnosticCategory.Message,key:"Watch_input_files_6005",message:"Watch input files."},Redirect_output_structure_to_the_directory:{code:6006,category:e.DiagnosticCategory.Message,key:"Redirect_output_structure_to_the_directory_6006",message:"Redirect output structure to the directory."},Do_not_erase_const_enum_declarations_in_generated_code:{code:6007,category:e.DiagnosticCategory.Message,key:"Do_not_erase_const_enum_declarations_in_generated_code_6007",message:"Do not erase const enum declarations in generated code."},Do_not_emit_outputs_if_any_errors_were_reported:{code:6008,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_if_any_errors_were_reported_6008",message:"Do not emit outputs if any errors were reported."},Do_not_emit_comments_to_output:{code:6009,category:e.DiagnosticCategory.Message,key:"Do_not_emit_comments_to_output_6009",message:"Do not emit comments to output."},Do_not_emit_outputs:{code:6010,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_6010",message:"Do not emit outputs."},Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:{code:6011,category:e.DiagnosticCategory.Message,key:"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",message:"Allow default imports from modules with no default export. This does not affect code emit, just typechecking."},Skip_type_checking_of_declaration_files:{code:6012,category:e.DiagnosticCategory.Message,key:"Skip_type_checking_of_declaration_files_6012",message:"Skip type checking of declaration files."},Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:{code:6015,category:e.DiagnosticCategory.Message,key:"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",message:"Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."},Specify_module_code_generation_Colon_commonjs_amd_system_umd_es2015_or_ESNext:{code:6016,category:e.DiagnosticCategory.Message,key:"Specify_module_code_generation_Colon_commonjs_amd_system_umd_es2015_or_ESNext_6016",message:"Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."},Print_this_message:{code:6017,category:e.DiagnosticCategory.Message,key:"Print_this_message_6017",message:"Print this message."},Print_the_compiler_s_version:{code:6019,category:e.DiagnosticCategory.Message,key:"Print_the_compiler_s_version_6019",message:"Print the compiler's version."},Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:{code:6020,category:e.DiagnosticCategory.Message,key:"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020",message:"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."},Syntax_Colon_0:{code:6023,category:e.DiagnosticCategory.Message,key:"Syntax_Colon_0_6023",message:"Syntax: {0}"},options:{code:6024,category:e.DiagnosticCategory.Message,key:"options_6024",message:"options"},file:{code:6025,category:e.DiagnosticCategory.Message,key:"file_6025",message:"file"},Examples_Colon_0:{code:6026,category:e.DiagnosticCategory.Message,key:"Examples_Colon_0_6026",message:"Examples: {0}"},Options_Colon:{code:6027,category:e.DiagnosticCategory.Message,key:"Options_Colon_6027",message:"Options:"},Version_0:{code:6029,category:e.DiagnosticCategory.Message,key:"Version_0_6029",message:"Version {0}"},Insert_command_line_options_and_files_from_a_file:{code:6030,category:e.DiagnosticCategory.Message,key:"Insert_command_line_options_and_files_from_a_file_6030",message:"Insert command line options and files from a file."},File_change_detected_Starting_incremental_compilation:{code:6032,category:e.DiagnosticCategory.Message,key:"File_change_detected_Starting_incremental_compilation_6032",message:"File change detected. Starting incremental compilation..."},KIND:{code:6034,category:e.DiagnosticCategory.Message,key:"KIND_6034",message:"KIND"},FILE:{code:6035,category:e.DiagnosticCategory.Message,key:"FILE_6035",message:"FILE"},VERSION:{code:6036,category:e.DiagnosticCategory.Message,key:"VERSION_6036",message:"VERSION"},LOCATION:{code:6037,category:e.DiagnosticCategory.Message,key:"LOCATION_6037",message:"LOCATION"},DIRECTORY:{code:6038,category:e.DiagnosticCategory.Message,key:"DIRECTORY_6038",message:"DIRECTORY"},STRATEGY:{code:6039,category:e.DiagnosticCategory.Message,key:"STRATEGY_6039",message:"STRATEGY"},FILE_OR_DIRECTORY:{code:6040,category:e.DiagnosticCategory.Message,key:"FILE_OR_DIRECTORY_6040",message:"FILE OR DIRECTORY"},Compilation_complete_Watching_for_file_changes:{code:6042,category:e.DiagnosticCategory.Message,key:"Compilation_complete_Watching_for_file_changes_6042",message:"Compilation complete. Watching for file changes."},Generates_corresponding_map_file:{code:6043,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_map_file_6043",message:"Generates corresponding '.map' file."},Compiler_option_0_expects_an_argument:{code:6044,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_expects_an_argument_6044",message:"Compiler option '{0}' expects an argument."},Unterminated_quoted_string_in_response_file_0:{code:6045,category:e.DiagnosticCategory.Error,key:"Unterminated_quoted_string_in_response_file_0_6045",message:"Unterminated quoted string in response file '{0}'."},Argument_for_0_option_must_be_Colon_1:{code:6046,category:e.DiagnosticCategory.Error,key:"Argument_for_0_option_must_be_Colon_1_6046",message:"Argument for '{0}' option must be: {1}."},Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:{code:6048,category:e.DiagnosticCategory.Error,key:"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048",message:"Locale must be of the form or -. For example '{0}' or '{1}'."},Unsupported_locale_0:{code:6049,category:e.DiagnosticCategory.Error,key:"Unsupported_locale_0_6049",message:"Unsupported locale '{0}'."},Unable_to_open_file_0:{code:6050,category:e.DiagnosticCategory.Error,key:"Unable_to_open_file_0_6050",message:"Unable to open file '{0}'."},Corrupted_locale_file_0:{code:6051,category:e.DiagnosticCategory.Error,key:"Corrupted_locale_file_0_6051",message:"Corrupted locale file {0}."},Raise_error_on_expressions_and_declarations_with_an_implied_any_type:{code:6052,category:e.DiagnosticCategory.Message,key:"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052",message:"Raise error on expressions and declarations with an implied 'any' type."},File_0_not_found:{code:6053,category:e.DiagnosticCategory.Error,key:"File_0_not_found_6053",message:"File '{0}' not found."},File_0_has_unsupported_extension_The_only_supported_extensions_are_1:{code:6054,category:e.DiagnosticCategory.Error,key:"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054",message:"File '{0}' has unsupported extension. The only supported extensions are {1}."},Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:{code:6055,category:e.DiagnosticCategory.Message,key:"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055",message:"Suppress noImplicitAny errors for indexing objects lacking index signatures."},Do_not_emit_declarations_for_code_that_has_an_internal_annotation:{code:6056,category:e.DiagnosticCategory.Message,key:"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056",message:"Do not emit declarations for code that has an '@internal' annotation."},Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:{code:6058,category:e.DiagnosticCategory.Message,key:"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058",message:"Specify the root directory of input files. Use to control the output directory structure with --outDir."},File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:{code:6059,category:e.DiagnosticCategory.Error,key:"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059",message:"File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."},Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:{code:6060,category:e.DiagnosticCategory.Message,key:"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060",message:"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."},NEWLINE:{code:6061,category:e.DiagnosticCategory.Message,key:"NEWLINE_6061",message:"NEWLINE"},Option_0_can_only_be_specified_in_tsconfig_json_file:{code:6064,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_specified_in_tsconfig_json_file_6064",message:"Option '{0}' can only be specified in 'tsconfig.json' file."},Enables_experimental_support_for_ES7_decorators:{code:6065,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_decorators_6065",message:"Enables experimental support for ES7 decorators."},Enables_experimental_support_for_emitting_type_metadata_for_decorators:{code:6066,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066",message:"Enables experimental support for emitting type metadata for decorators."},Enables_experimental_support_for_ES7_async_functions:{code:6068,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_async_functions_6068",message:"Enables experimental support for ES7 async functions."},Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:{code:6069,category:e.DiagnosticCategory.Message,key:"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069",message:"Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."},Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:{code:6070,category:e.DiagnosticCategory.Message,key:"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070",message:"Initializes a TypeScript project and creates a tsconfig.json file."},Successfully_created_a_tsconfig_json_file:{code:6071,category:e.DiagnosticCategory.Message,key:"Successfully_created_a_tsconfig_json_file_6071",message:"Successfully created a tsconfig.json file."},Suppress_excess_property_checks_for_object_literals:{code:6072,category:e.DiagnosticCategory.Message,key:"Suppress_excess_property_checks_for_object_literals_6072",message:"Suppress excess property checks for object literals."},Stylize_errors_and_messages_using_color_and_context_experimental:{code:6073,category:e.DiagnosticCategory.Message,key:"Stylize_errors_and_messages_using_color_and_context_experimental_6073",message:"Stylize errors and messages using color and context (experimental)."},Do_not_report_errors_on_unused_labels:{code:6074,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unused_labels_6074",message:"Do not report errors on unused labels."},Report_error_when_not_all_code_paths_in_function_return_a_value:{code:6075,category:e.DiagnosticCategory.Message,key:"Report_error_when_not_all_code_paths_in_function_return_a_value_6075",message:"Report error when not all code paths in function return a value."},Report_errors_for_fallthrough_cases_in_switch_statement:{code:6076,category:e.DiagnosticCategory.Message,key:"Report_errors_for_fallthrough_cases_in_switch_statement_6076",message:"Report errors for fallthrough cases in switch statement."},Do_not_report_errors_on_unreachable_code:{code:6077,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unreachable_code_6077",message:"Do not report errors on unreachable code."},Disallow_inconsistently_cased_references_to_the_same_file:{code:6078,category:e.DiagnosticCategory.Message,key:"Disallow_inconsistently_cased_references_to_the_same_file_6078",message:"Disallow inconsistently-cased references to the same file."},Specify_library_files_to_be_included_in_the_compilation_Colon:{code:6079,category:e.DiagnosticCategory.Message,key:"Specify_library_files_to_be_included_in_the_compilation_Colon_6079",message:"Specify library files to be included in the compilation: "},Specify_JSX_code_generation_Colon_preserve_react_native_or_react:{code:6080,category:e.DiagnosticCategory.Message,key:"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080",message:"Specify JSX code generation: 'preserve', 'react-native', or 'react'."},File_0_has_an_unsupported_extension_so_skipping_it:{code:6081,category:e.DiagnosticCategory.Message,key:"File_0_has_an_unsupported_extension_so_skipping_it_6081",message:"File '{0}' has an unsupported extension, so skipping it."},Only_amd_and_system_modules_are_supported_alongside_0:{code:6082,category:e.DiagnosticCategory.Error,key:"Only_amd_and_system_modules_are_supported_alongside_0_6082",message:"Only 'amd' and 'system' modules are supported alongside --{0}."},Base_directory_to_resolve_non_absolute_module_names:{code:6083,category:e.DiagnosticCategory.Message,key:"Base_directory_to_resolve_non_absolute_module_names_6083",message:"Base directory to resolve non-absolute module names."},Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:{code:6084,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084",message:"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"},Enable_tracing_of_the_name_resolution_process:{code:6085,category:e.DiagnosticCategory.Message,key:"Enable_tracing_of_the_name_resolution_process_6085",message:"Enable tracing of the name resolution process."},Resolving_module_0_from_1:{code:6086,category:e.DiagnosticCategory.Message,key:"Resolving_module_0_from_1_6086",message:"======== Resolving module '{0}' from '{1}'. ========"},Explicitly_specified_module_resolution_kind_Colon_0:{code:6087,category:e.DiagnosticCategory.Message,key:"Explicitly_specified_module_resolution_kind_Colon_0_6087",message:"Explicitly specified module resolution kind: '{0}'."},Module_resolution_kind_is_not_specified_using_0:{code:6088,category:e.DiagnosticCategory.Message,key:"Module_resolution_kind_is_not_specified_using_0_6088",message:"Module resolution kind is not specified, using '{0}'."},Module_name_0_was_successfully_resolved_to_1:{code:6089,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_successfully_resolved_to_1_6089",message:"======== Module name '{0}' was successfully resolved to '{1}'. ========"},Module_name_0_was_not_resolved:{code:6090,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_not_resolved_6090",message:"======== Module name '{0}' was not resolved. ========"},paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:{code:6091,category:e.DiagnosticCategory.Message,key:"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091",message:"'paths' option is specified, looking for a pattern to match module name '{0}'."},Module_name_0_matched_pattern_1:{code:6092,category:e.DiagnosticCategory.Message,key:"Module_name_0_matched_pattern_1_6092",message:"Module name '{0}', matched pattern '{1}'."},Trying_substitution_0_candidate_module_location_Colon_1:{code:6093,category:e.DiagnosticCategory.Message,key:"Trying_substitution_0_candidate_module_location_Colon_1_6093",message:"Trying substitution '{0}', candidate module location: '{1}'."},Resolving_module_name_0_relative_to_base_url_1_2:{code:6094,category:e.DiagnosticCategory.Message,key:"Resolving_module_name_0_relative_to_base_url_1_2_6094",message:"Resolving module name '{0}' relative to base url '{1}' - '{2}'."},Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:{code:6095,category:e.DiagnosticCategory.Message,key:"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095",message:"Loading module as file / folder, candidate module location '{0}', target file type '{1}'."},File_0_does_not_exist:{code:6096,category:e.DiagnosticCategory.Message,key:"File_0_does_not_exist_6096",message:"File '{0}' does not exist."},File_0_exist_use_it_as_a_name_resolution_result:{code:6097,category:e.DiagnosticCategory.Message,key:"File_0_exist_use_it_as_a_name_resolution_result_6097",message:"File '{0}' exist - use it as a name resolution result."},Loading_module_0_from_node_modules_folder_target_file_type_1:{code:6098,category:e.DiagnosticCategory.Message,key:"Loading_module_0_from_node_modules_folder_target_file_type_1_6098",message:"Loading module '{0}' from 'node_modules' folder, target file type '{1}'."},Found_package_json_at_0:{code:6099,category:e.DiagnosticCategory.Message,key:"Found_package_json_at_0_6099",message:"Found 'package.json' at '{0}'."},package_json_does_not_have_a_0_field:{code:6100,category:e.DiagnosticCategory.Message,key:"package_json_does_not_have_a_0_field_6100",message:"'package.json' does not have a '{0}' field."},package_json_has_0_field_1_that_references_2:{code:6101,category:e.DiagnosticCategory.Message,key:"package_json_has_0_field_1_that_references_2_6101",message:"'package.json' has '{0}' field '{1}' that references '{2}'."},Allow_javascript_files_to_be_compiled:{code:6102,category:e.DiagnosticCategory.Message,key:"Allow_javascript_files_to_be_compiled_6102",message:"Allow javascript files to be compiled."},Option_0_should_have_array_of_strings_as_a_value:{code:6103,category:e.DiagnosticCategory.Error,key:"Option_0_should_have_array_of_strings_as_a_value_6103",message:"Option '{0}' should have array of strings as a value."},Checking_if_0_is_the_longest_matching_prefix_for_1_2:{code:6104,category:e.DiagnosticCategory.Message,key:"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104",message:"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."},Expected_type_of_0_field_in_package_json_to_be_string_got_1:{code:6105,category:e.DiagnosticCategory.Message,key:"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105",message:"Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."},baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:{code:6106,category:e.DiagnosticCategory.Message,key:"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106",message:"'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."},rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:{code:6107,category:e.DiagnosticCategory.Message,key:"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107",message:"'rootDirs' option is set, using it to resolve relative module name '{0}'."},Longest_matching_prefix_for_0_is_1:{code:6108,category:e.DiagnosticCategory.Message,key:"Longest_matching_prefix_for_0_is_1_6108",message:"Longest matching prefix for '{0}' is '{1}'."},Loading_0_from_the_root_dir_1_candidate_location_2:{code:6109,category:e.DiagnosticCategory.Message,key:"Loading_0_from_the_root_dir_1_candidate_location_2_6109",message:"Loading '{0}' from the root dir '{1}', candidate location '{2}'."},Trying_other_entries_in_rootDirs:{code:6110,category:e.DiagnosticCategory.Message,key:"Trying_other_entries_in_rootDirs_6110",message:"Trying other entries in 'rootDirs'."},Module_resolution_using_rootDirs_has_failed:{code:6111,category:e.DiagnosticCategory.Message,key:"Module_resolution_using_rootDirs_has_failed_6111",message:"Module resolution using 'rootDirs' has failed."},Do_not_emit_use_strict_directives_in_module_output:{code:6112,category:e.DiagnosticCategory.Message,key:"Do_not_emit_use_strict_directives_in_module_output_6112",message:"Do not emit 'use strict' directives in module output."},Enable_strict_null_checks:{code:6113,category:e.DiagnosticCategory.Message,key:"Enable_strict_null_checks_6113",message:"Enable strict null checks."},Unknown_option_excludes_Did_you_mean_exclude:{code:6114,category:e.DiagnosticCategory.Error,key:"Unknown_option_excludes_Did_you_mean_exclude_6114",message:"Unknown option 'excludes'. Did you mean 'exclude'?"},Raise_error_on_this_expressions_with_an_implied_any_type:{code:6115,category:e.DiagnosticCategory.Message,key:"Raise_error_on_this_expressions_with_an_implied_any_type_6115",message:"Raise error on 'this' expressions with an implied 'any' type."},Resolving_type_reference_directive_0_containing_file_1_root_directory_2:{code:6116,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"},Resolving_using_primary_search_paths:{code:6117,category:e.DiagnosticCategory.Message,key:"Resolving_using_primary_search_paths_6117",message:"Resolving using primary search paths..."},Resolving_from_node_modules_folder:{code:6118,category:e.DiagnosticCategory.Message,key:"Resolving_from_node_modules_folder_6118",message:"Resolving from node_modules folder..."},Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:{code:6119,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119",message:"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"},Type_reference_directive_0_was_not_resolved:{code:6120,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_not_resolved_6120",message:"======== Type reference directive '{0}' was not resolved. ========"},Resolving_with_primary_search_path_0:{code:6121,category:e.DiagnosticCategory.Message,key:"Resolving_with_primary_search_path_0_6121",message:"Resolving with primary search path '{0}'."},Root_directory_cannot_be_determined_skipping_primary_search_paths:{code:6122,category:e.DiagnosticCategory.Message,key:"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122",message:"Root directory cannot be determined, skipping primary search paths."},Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:{code:6123,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"},Type_declaration_files_to_be_included_in_compilation:{code:6124,category:e.DiagnosticCategory.Message,key:"Type_declaration_files_to_be_included_in_compilation_6124",message:"Type declaration files to be included in compilation."},Looking_up_in_node_modules_folder_initial_location_0:{code:6125,category:e.DiagnosticCategory.Message,key:"Looking_up_in_node_modules_folder_initial_location_0_6125",message:"Looking up in 'node_modules' folder, initial location '{0}'."},Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:{code:6126,category:e.DiagnosticCategory.Message,key:"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126",message:"Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."},Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:{code:6127,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127",message:"======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"},Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:{code:6128,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128",message:"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"},The_config_file_0_found_doesn_t_contain_any_source_files:{code:6129,category:e.DiagnosticCategory.Error,key:"The_config_file_0_found_doesn_t_contain_any_source_files_6129",message:"The config file '{0}' found doesn't contain any source files."},Resolving_real_path_for_0_result_1:{code:6130,category:e.DiagnosticCategory.Message,key:"Resolving_real_path_for_0_result_1_6130",message:"Resolving real path for '{0}', result '{1}'."},Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:{code:6131,category:e.DiagnosticCategory.Error,key:"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131",message:"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."},File_name_0_has_a_1_extension_stripping_it:{code:6132,category:e.DiagnosticCategory.Message,key:"File_name_0_has_a_1_extension_stripping_it_6132",message:"File name '{0}' has a '{1}' extension - stripping it."},_0_is_declared_but_never_used:{code:6133,category:e.DiagnosticCategory.Error,key:"_0_is_declared_but_never_used_6133",message:"'{0}' is declared but never used."},Report_errors_on_unused_locals:{code:6134,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_locals_6134",message:"Report errors on unused locals."},Report_errors_on_unused_parameters:{code:6135,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_parameters_6135",message:"Report errors on unused parameters."},The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:{code:6136,category:e.DiagnosticCategory.Message,key:"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136",message:"The maximum dependency depth to search under node_modules and load JavaScript files."},Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:{code:6137,category:e.DiagnosticCategory.Error,key:"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137",message:"Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."},Property_0_is_declared_but_never_used:{code:6138,category:e.DiagnosticCategory.Error,key:"Property_0_is_declared_but_never_used_6138",message:"Property '{0}' is declared but never used."},Import_emit_helpers_from_tslib:{code:6139,category:e.DiagnosticCategory.Message,key:"Import_emit_helpers_from_tslib_6139",message:"Import emit helpers from 'tslib'."},Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:{code:6140,category:e.DiagnosticCategory.Error,key:"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140",message:"Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."},Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:{code:6141,category:e.DiagnosticCategory.Message,key:"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",message:'Parse in strict mode and emit "use strict" for each source file.'},Module_0_was_resolved_to_1_but_jsx_is_not_set:{code:6142,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142",message:"Module '{0}' was resolved to '{1}', but '--jsx' is not set."},Module_0_was_resolved_to_1_but_allowJs_is_not_set:{code:6143,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143",message:"Module '{0}' was resolved to '{1}', but '--allowJs' is not set."},Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:{code:6144,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144",message:"Module '{0}' was resolved as locally declared ambient module in file '{1}'."},Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:{code:6145,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",message:"Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."},Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:{code:6146,category:e.DiagnosticCategory.Message,key:"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",message:"Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."},Resolution_for_module_0_was_found_in_cache:{code:6147,category:e.DiagnosticCategory.Message,key:"Resolution_for_module_0_was_found_in_cache_6147",message:"Resolution for module '{0}' was found in cache."},Directory_0_does_not_exist_skipping_all_lookups_in_it:{code:6148,category:e.DiagnosticCategory.Message,key:"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148",message:"Directory '{0}' does not exist, skipping all lookups in it."},Show_diagnostic_information:{code:6149,category:e.DiagnosticCategory.Message,key:"Show_diagnostic_information_6149",message:"Show diagnostic information."},Show_verbose_diagnostic_information:{code:6150,category:e.DiagnosticCategory.Message,key:"Show_verbose_diagnostic_information_6150",message:"Show verbose diagnostic information."},Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:{code:6151,category:e.DiagnosticCategory.Message,key:"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151",message:"Emit a single file with source maps instead of having a separate file."},Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:{code:6152,category:e.DiagnosticCategory.Message,key:"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152",message:"Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."},Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:{code:6153,category:e.DiagnosticCategory.Message,key:"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153",message:"Transpile each file as a separate module (similar to 'ts.transpileModule')."},Print_names_of_generated_files_part_of_the_compilation:{code:6154,category:e.DiagnosticCategory.Message,key:"Print_names_of_generated_files_part_of_the_compilation_6154",message:"Print names of generated files part of the compilation."},Print_names_of_files_part_of_the_compilation:{code:6155,category:e.DiagnosticCategory.Message,key:"Print_names_of_files_part_of_the_compilation_6155",message:"Print names of files part of the compilation."},The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:{code:6156,category:e.DiagnosticCategory.Message,key:"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156",message:"The locale used when displaying messages to the user (e.g. 'en-us')"},Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:{code:6157,category:e.DiagnosticCategory.Message,key:"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157",message:"Do not generate custom helper functions like '__extends' in compiled output."},Do_not_include_the_default_library_file_lib_d_ts:{code:6158,category:e.DiagnosticCategory.Message,key:"Do_not_include_the_default_library_file_lib_d_ts_6158",message:"Do not include the default library file (lib.d.ts)."},Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:{code:6159,category:e.DiagnosticCategory.Message,key:"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159",message:"Do not add triple-slash references or imported modules to the list of compiled files."},Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:{code:6160,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160",message:"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."},List_of_folders_to_include_type_definitions_from:{code:6161,category:e.DiagnosticCategory.Message,key:"List_of_folders_to_include_type_definitions_from_6161",message:"List of folders to include type definitions from."},Disable_size_limitations_on_JavaScript_projects:{code:6162,category:e.DiagnosticCategory.Message,key:"Disable_size_limitations_on_JavaScript_projects_6162",message:"Disable size limitations on JavaScript projects."},The_character_set_of_the_input_files:{code:6163,category:e.DiagnosticCategory.Message,key:"The_character_set_of_the_input_files_6163",message:"The character set of the input files."},Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:{code:6164,category:e.DiagnosticCategory.Message,key:"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164",message:"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."},Do_not_truncate_error_messages:{code:6165,category:e.DiagnosticCategory.Message,key:"Do_not_truncate_error_messages_6165",message:"Do not truncate error messages."},Output_directory_for_generated_declaration_files:{code:6166,category:e.DiagnosticCategory.Message,key:"Output_directory_for_generated_declaration_files_6166",message:"Output directory for generated declaration files."},A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:{code:6167,category:e.DiagnosticCategory.Message,key:"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167",message:"A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."},List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:{code:6168,category:e.DiagnosticCategory.Message,key:"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168",message:"List of root folders whose combined content represents the structure of the project at runtime."},Show_all_compiler_options:{code:6169,category:e.DiagnosticCategory.Message,key:"Show_all_compiler_options_6169",message:"Show all compiler options."},Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:{code:6170,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170",message:"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"},Command_line_Options:{code:6171,category:e.DiagnosticCategory.Message,key:"Command_line_Options_6171",message:"Command-line Options"},Basic_Options:{code:6172,category:e.DiagnosticCategory.Message,key:"Basic_Options_6172",message:"Basic Options"},Strict_Type_Checking_Options:{code:6173,category:e.DiagnosticCategory.Message,key:"Strict_Type_Checking_Options_6173",message:"Strict Type-Checking Options"},Module_Resolution_Options:{code:6174,category:e.DiagnosticCategory.Message,key:"Module_Resolution_Options_6174",message:"Module Resolution Options"},Source_Map_Options:{code:6175,category:e.DiagnosticCategory.Message,key:"Source_Map_Options_6175",message:"Source Map Options"},Additional_Checks:{code:6176,category:e.DiagnosticCategory.Message,key:"Additional_Checks_6176",message:"Additional Checks"},Experimental_Options:{code:6177,category:e.DiagnosticCategory.Message,key:"Experimental_Options_6177",message:"Experimental Options"},Advanced_Options:{code:6178,category:e.DiagnosticCategory.Message,key:"Advanced_Options_6178",message:"Advanced Options"},Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:{code:6179,category:e.DiagnosticCategory.Message,key:"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179",message:"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."},Enable_all_strict_type_checking_options:{code:6180,category:e.DiagnosticCategory.Message,key:"Enable_all_strict_type_checking_options_6180",message:"Enable all strict type-checking options."},List_of_language_service_plugins:{code:6181,category:e.DiagnosticCategory.Message,key:"List_of_language_service_plugins_6181",message:"List of language service plugins."},Scoped_package_detected_looking_in_0:{code:6182,category:e.DiagnosticCategory.Message,key:"Scoped_package_detected_looking_in_0_6182",message:"Scoped package detected, looking in '{0}'"},Reusing_resolution_of_module_0_to_file_1_from_old_program:{code:6183,category:e.DiagnosticCategory.Message,key:"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183",message:"Reusing resolution of module '{0}' to file '{1}' from old program."},Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:{code:6184,category:e.DiagnosticCategory.Message,key:"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184",message:"Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."},Disable_strict_checking_of_generic_signatures_in_function_types:{code:6185,category:e.DiagnosticCategory.Message,key:"Disable_strict_checking_of_generic_signatures_in_function_types_6185",message:"Disable strict checking of generic signatures in function types."},Variable_0_implicitly_has_an_1_type:{code:7005,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_an_1_type_7005",message:"Variable '{0}' implicitly has an '{1}' type."},Parameter_0_implicitly_has_an_1_type:{code:7006,category:e.DiagnosticCategory.Error,key:"Parameter_0_implicitly_has_an_1_type_7006",message:"Parameter '{0}' implicitly has an '{1}' type."},Member_0_implicitly_has_an_1_type:{code:7008,category:e.DiagnosticCategory.Error,key:"Member_0_implicitly_has_an_1_type_7008",message:"Member '{0}' implicitly has an '{1}' type."},new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:{code:7009,category:e.DiagnosticCategory.Error,key:"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009",message:"'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."},_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:{code:7010,category:e.DiagnosticCategory.Error,key:"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010",message:"'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."},Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:{code:7011,category:e.DiagnosticCategory.Error,key:"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011",message:"Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."},Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7013,category:e.DiagnosticCategory.Error,key:"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013",message:"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."},Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:{code:7015,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015",message:"Element implicitly has an 'any' type because index expression is not of type 'number'."},Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:{code:7016,category:e.DiagnosticCategory.Error,key:"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016",message:"Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."},Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:{code:7017,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017",message:"Element implicitly has an 'any' type because type '{0}' has no index signature."},Object_literal_s_property_0_implicitly_has_an_1_type:{code:7018,category:e.DiagnosticCategory.Error,key:"Object_literal_s_property_0_implicitly_has_an_1_type_7018",message:"Object literal's property '{0}' implicitly has an '{1}' type."},Rest_parameter_0_implicitly_has_an_any_type:{code:7019,category:e.DiagnosticCategory.Error,key:"Rest_parameter_0_implicitly_has_an_any_type_7019",message:"Rest parameter '{0}' implicitly has an 'any[]' type."},Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7020,category:e.DiagnosticCategory.Error,key:"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020",message:"Call signature, which lacks return-type annotation, implicitly has an 'any' return type."},_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:{code:7022,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022",message:"'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."},_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:{code:7023,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023",message:"'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."},Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:{code:7024,category:e.DiagnosticCategory.Error,key:"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024",message:"Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."},Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:{code:7025,category:e.DiagnosticCategory.Error,key:"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025",message:"Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."},JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:{code:7026,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026",message:"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."},Unreachable_code_detected:{code:7027,category:e.DiagnosticCategory.Error,key:"Unreachable_code_detected_7027",message:"Unreachable code detected."},Unused_label:{code:7028,category:e.DiagnosticCategory.Error,key:"Unused_label_7028",message:"Unused label."},Fallthrough_case_in_switch:{code:7029,category:e.DiagnosticCategory.Error,key:"Fallthrough_case_in_switch_7029",message:"Fallthrough case in switch."},Not_all_code_paths_return_a_value:{code:7030,category:e.DiagnosticCategory.Error,key:"Not_all_code_paths_return_a_value_7030",message:"Not all code paths return a value."},Binding_element_0_implicitly_has_an_1_type:{code:7031,category:e.DiagnosticCategory.Error,key:"Binding_element_0_implicitly_has_an_1_type_7031",message:"Binding element '{0}' implicitly has an '{1}' type."},Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:{code:7032,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032",message:"Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."},Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:{code:7033,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033",message:"Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."},Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:{code:7034,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034",message:"Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."},Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:{code:7035,category:e.DiagnosticCategory.Error,key:"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035",message:"Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"},Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:{code:7036,category:e.DiagnosticCategory.Error,key:"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036",message:"Dynamic import's specifier must be of type 'string', but here has type '{0}'."},You_cannot_rename_this_element:{code:8e3,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_this_element_8000",message:"You cannot rename this element."},You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:{code:8001,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001",message:"You cannot rename elements that are defined in the standard TypeScript library."},import_can_only_be_used_in_a_ts_file:{code:8002,category:e.DiagnosticCategory.Error,key:"import_can_only_be_used_in_a_ts_file_8002",message:"'import ... =' can only be used in a .ts file."},export_can_only_be_used_in_a_ts_file:{code:8003,category:e.DiagnosticCategory.Error,key:"export_can_only_be_used_in_a_ts_file_8003",message:"'export=' can only be used in a .ts file."},type_parameter_declarations_can_only_be_used_in_a_ts_file:{code:8004,category:e.DiagnosticCategory.Error,key:"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004",message:"'type parameter declarations' can only be used in a .ts file."},implements_clauses_can_only_be_used_in_a_ts_file:{code:8005,category:e.DiagnosticCategory.Error,key:"implements_clauses_can_only_be_used_in_a_ts_file_8005",message:"'implements clauses' can only be used in a .ts file."},interface_declarations_can_only_be_used_in_a_ts_file:{code:8006,category:e.DiagnosticCategory.Error,key:"interface_declarations_can_only_be_used_in_a_ts_file_8006",message:"'interface declarations' can only be used in a .ts file."},module_declarations_can_only_be_used_in_a_ts_file:{code:8007,category:e.DiagnosticCategory.Error,key:"module_declarations_can_only_be_used_in_a_ts_file_8007",message:"'module declarations' can only be used in a .ts file."},type_aliases_can_only_be_used_in_a_ts_file:{code:8008,category:e.DiagnosticCategory.Error,key:"type_aliases_can_only_be_used_in_a_ts_file_8008",message:"'type aliases' can only be used in a .ts file."},_0_can_only_be_used_in_a_ts_file:{code:8009,category:e.DiagnosticCategory.Error,key:"_0_can_only_be_used_in_a_ts_file_8009",message:"'{0}' can only be used in a .ts file."},types_can_only_be_used_in_a_ts_file:{code:8010,category:e.DiagnosticCategory.Error,key:"types_can_only_be_used_in_a_ts_file_8010",message:"'types' can only be used in a .ts file."},type_arguments_can_only_be_used_in_a_ts_file:{code:8011,category:e.DiagnosticCategory.Error,key:"type_arguments_can_only_be_used_in_a_ts_file_8011",message:"'type arguments' can only be used in a .ts file."},parameter_modifiers_can_only_be_used_in_a_ts_file:{code:8012,category:e.DiagnosticCategory.Error,key:"parameter_modifiers_can_only_be_used_in_a_ts_file_8012",message:"'parameter modifiers' can only be used in a .ts file."},enum_declarations_can_only_be_used_in_a_ts_file:{code:8015,category:e.DiagnosticCategory.Error,key:"enum_declarations_can_only_be_used_in_a_ts_file_8015",message:"'enum declarations' can only be used in a .ts file."},type_assertion_expressions_can_only_be_used_in_a_ts_file:{code:8016,category:e.DiagnosticCategory.Error,key:"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016",message:"'type assertion expressions' can only be used in a .ts file."},Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:{code:9002,category:e.DiagnosticCategory.Error,key:"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002",message:"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."},class_expressions_are_not_currently_supported:{code:9003,category:e.DiagnosticCategory.Error,key:"class_expressions_are_not_currently_supported_9003",message:"'class' expressions are not currently supported."},Language_service_is_disabled:{code:9004,category:e.DiagnosticCategory.Error,key:"Language_service_is_disabled_9004",message:"Language service is disabled."},JSX_attributes_must_only_be_assigned_a_non_empty_expression:{code:17e3,category:e.DiagnosticCategory.Error,key:"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000",message:"JSX attributes must only be assigned a non-empty 'expression'."},JSX_elements_cannot_have_multiple_attributes_with_the_same_name:{code:17001,category:e.DiagnosticCategory.Error,key:"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001",message:"JSX elements cannot have multiple attributes with the same name."},Expected_corresponding_JSX_closing_tag_for_0:{code:17002,category:e.DiagnosticCategory.Error,key:"Expected_corresponding_JSX_closing_tag_for_0_17002",message:"Expected corresponding JSX closing tag for '{0}'."},JSX_attribute_expected:{code:17003,category:e.DiagnosticCategory.Error,key:"JSX_attribute_expected_17003",message:"JSX attribute expected."},Cannot_use_JSX_unless_the_jsx_flag_is_provided:{code:17004,category:e.DiagnosticCategory.Error,key:"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004",message:"Cannot use JSX unless the '--jsx' flag is provided."},A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:{code:17005,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005",message:"A constructor cannot contain a 'super' call when its class extends 'null'."},An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:{code:17006,category:e.DiagnosticCategory.Error,key:"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006",message:"An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."},A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:{code:17007,category:e.DiagnosticCategory.Error,key:"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007",message:"A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."},JSX_element_0_has_no_corresponding_closing_tag:{code:17008,category:e.DiagnosticCategory.Error,key:"JSX_element_0_has_no_corresponding_closing_tag_17008",message:"JSX element '{0}' has no corresponding closing tag."},super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:{code:17009,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",message:"'super' must be called before accessing 'this' in the constructor of a derived class."},Unknown_type_acquisition_option_0:{code:17010,category:e.DiagnosticCategory.Error,key:"Unknown_type_acquisition_option_0_17010",message:"Unknown type acquisition option '{0}'."},super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:{code:17011,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",message:"'super' must be called before accessing a property of 'super' in the constructor of a derived class."},_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:{code:17012,category:e.DiagnosticCategory.Error,key:"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012",message:"'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"},Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:{code:17013,category:e.DiagnosticCategory.Error,key:"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013",message:"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."},Circularity_detected_while_resolving_configuration_Colon_0:{code:18e3,category:e.DiagnosticCategory.Error,key:"Circularity_detected_while_resolving_configuration_Colon_0_18000",message:"Circularity detected while resolving configuration: {0}"},A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:{code:18001,category:e.DiagnosticCategory.Error,key:"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001",message:"A path in an 'extends' option must be relative or rooted, but '{0}' is not."},The_files_list_in_config_file_0_is_empty:{code:18002,category:e.DiagnosticCategory.Error,key:"The_files_list_in_config_file_0_is_empty_18002",message:"The 'files' list in config file '{0}' is empty."},No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:{code:18003,category:e.DiagnosticCategory.Error,key:"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003",message:"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."},Add_missing_super_call:{code:90001,category:e.DiagnosticCategory.Message,key:"Add_missing_super_call_90001",message:"Add missing 'super()' call."},Make_super_call_the_first_statement_in_the_constructor:{code:90002,category:e.DiagnosticCategory.Message,key:"Make_super_call_the_first_statement_in_the_constructor_90002",message:"Make 'super()' call the first statement in the constructor."},Change_extends_to_implements:{code:90003,category:e.DiagnosticCategory.Message,key:"Change_extends_to_implements_90003",message:"Change 'extends' to 'implements'."},Remove_declaration_for_Colon_0:{code:90004,category:e.DiagnosticCategory.Message,key:"Remove_declaration_for_Colon_0_90004",message:"Remove declaration for: '{0}'."},Implement_interface_0:{code:90006,category:e.DiagnosticCategory.Message,key:"Implement_interface_0_90006",message:"Implement interface '{0}'."},Implement_inherited_abstract_class:{code:90007,category:e.DiagnosticCategory.Message,key:"Implement_inherited_abstract_class_90007",message:"Implement inherited abstract class."},Add_this_to_unresolved_variable:{code:90008,category:e.DiagnosticCategory.Message,key:"Add_this_to_unresolved_variable_90008",message:"Add 'this.' to unresolved variable."},Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:{code:90009,category:e.DiagnosticCategory.Error,key:"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009",message:"Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."},Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:{code:90010,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010",message:"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."},Import_0_from_1:{code:90013,category:e.DiagnosticCategory.Message,key:"Import_0_from_1_90013",message:"Import {0} from {1}."},Change_0_to_1:{code:90014,category:e.DiagnosticCategory.Message,key:"Change_0_to_1_90014",message:"Change {0} to {1}."},Add_0_to_existing_import_declaration_from_1:{code:90015,category:e.DiagnosticCategory.Message,key:"Add_0_to_existing_import_declaration_from_1_90015",message:"Add {0} to existing import declaration from {1}."},Declare_property_0:{code:90016,category:e.DiagnosticCategory.Message,key:"Declare_property_0_90016",message:"Declare property '{0}'."},Add_index_signature_for_property_0:{code:90017,category:e.DiagnosticCategory.Message,key:"Add_index_signature_for_property_0_90017",message:"Add index signature for property '{0}'."},Disable_checking_for_this_file:{code:90018,category:e.DiagnosticCategory.Message,key:"Disable_checking_for_this_file_90018",message:"Disable checking for this file."},Ignore_this_error_message:{code:90019,category:e.DiagnosticCategory.Message,key:"Ignore_this_error_message_90019",message:"Ignore this error message."},Initialize_property_0_in_the_constructor:{code:90020,category:e.DiagnosticCategory.Message,key:"Initialize_property_0_in_the_constructor_90020",message:"Initialize property '{0}' in the constructor."},Initialize_static_property_0:{code:90021,category:e.DiagnosticCategory.Message,key:"Initialize_static_property_0_90021",message:"Initialize static property '{0}'."},Change_spelling_to_0:{code:90022,category:e.DiagnosticCategory.Message,key:"Change_spelling_to_0_90022",message:"Change spelling to '{0}'."},Declare_method_0:{code:90023,category:e.DiagnosticCategory.Message,key:"Declare_method_0_90023",message:"Declare method '{0}'."},Declare_static_method_0:{code:90024,category:e.DiagnosticCategory.Message,key:"Declare_static_method_0_90024",message:"Declare static method '{0}'."},Prefix_0_with_an_underscore:{code:90025,category:e.DiagnosticCategory.Message,key:"Prefix_0_with_an_underscore_90025",message:"Prefix '{0}' with an underscore."},Convert_function_to_an_ES2015_class:{code:95001,category:e.DiagnosticCategory.Message,key:"Convert_function_to_an_ES2015_class_95001",message:"Convert function to an ES2015 class"},Convert_function_0_to_class:{code:95002,category:e.DiagnosticCategory.Message,key:"Convert_function_0_to_class_95002",message:"Convert function '{0}' to class"},Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:{code:8017,category:e.DiagnosticCategory.Error,key:"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017",message:"Octal literal types must use ES2015 syntax. Use the syntax '{0}'."},Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:{code:8018,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018",message:"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."},Report_errors_in_js_files:{code:8019,category:e.DiagnosticCategory.Message,key:"Report_errors_in_js_files_8019",message:"Report errors in .js files."}};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,j):n(e,B)}function a(e,t){return t>=1?n(e,J):n(e,K)}function i(e){return z[e]}function o(e){return L.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&g(a)&&(t.push(r),r=n);}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n)}function u(t,n,r){return e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function g(e){return 10===e||13===e||8232===e||8233===e}function m(e){return e>=48&&e<=57}function y(e){return e>=48&&e<=55}function h(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}}function v(t,n,r,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(n))return n;for(;;){var i=t.charCodeAt(n);switch(i){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(a)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&p(i)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||g(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+U=0&&n127&&p(m)){_&&g(m)&&(l=!0),n++;continue}break e}}return _&&(f=a(s,c,u,l,i,f)),f}function C(e,t,n,r){return T(!1,e,t,!1,n,r)}function D(e,t,n,r){return T(!1,e,t,!0,n,r)}function E(e,t,n,r,a){return T(!0,e,t,!1,n,r,a)}function N(e,t,n,r,a){return T(!0,e,t,!0,n,r,a)}function A(e,t,n,r,a,i){return i||(i=[]),i.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),i}function w(e,t){return E(e,t,A,void 0,void 0)}function P(e,t){return N(e,t,A,void 0,void 0)}function O(e){var t=q.exec(e);if(t)return t[0]}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&a(e,t)}function M(e,t){if(!F(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&a<=57)r=16*r+a-48;else if(a>=65&&a<=70)r=16*r+a-65+10;else{if(!(a>=97&&a<=102))break;r=16*r+a-97+10;}ne++,n++;}return n=re){r+=i.substring(a,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=i.charCodeAt(ne);if(o===n){r+=i.substring(a,ne),ne++;break}if(92===o&&t)r+=i.substring(a,ne),r+=D(),a=ne;else{if(g(o)){r+=i.substring(a,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++;}}return r}function C(){for(var t,n=96===i.charCodeAt(ne),r=++ne,a="";;){if(ne>=re){a+=i.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=i.charCodeAt(ne);if(96===o){a+=i.substring(r,ne),ne++,t=n?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=i.charCodeAt(ne);switch(ne++,t){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 ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=h(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===i.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function w(){if(ne+5=0&&I(r,n)))break;e+=i.substring(t,ne),e+=String.fromCharCode(r),t=ne+=6;}}return e+=i.substring(t,ne)}function O(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=L.get(se)))return oe}return oe=71}function M(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var a=i.charCodeAt(ne),o=a-48;if(!m(a)||o>=t)break;n=n*t+o,ne++,r++;}return 0===r?-1:n}function R(){for(ae=ne,ue=!1,ce=!1,le=!1,_e=0;;){if(ie=ne,ne>=re)return oe=1;var t=i.charCodeAt(ne);if(35===t&&0===ne&&k(i,ne)){if(ne=S(i,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&F(d,n)?(ne+=6,se=String.fromCharCode(d)+P(),oe=O()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(F(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=i.charCodeAt(t);if(g(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!a){t++;break}91===o?a=!0:92===o?r=!0:93===o&&(a=!1);}t++;}for(;t=re)return oe=1;var e=i.charCodeAt(ne);if(60===e)return 47===i.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ae=ne,ie=ne;var e=i.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ae=t,ie=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1;}void 0===a&&(a=0);var ne,re,ae,ie,oe,se,ce,ue,le,_e;return Y(i,s,c),{getStartPos:function(){return ae},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ie},getTokenText:function(){return i.substring(ie,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return _e},reScanGreaterToken:B,reScanSlashToken:K,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:q,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:V,scan:R,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:G,lookAhead:H,scanRange:W}}e.tokenIsIdentifierOrKeyword=t;var L=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":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}),B=[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],K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,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],j=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],J=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];e.isUnicodeIdentifierStart=r;var z=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(L);e.tokenToString=i,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=_,e.getLineAndCharacterOfPosition=d,e.isWhiteSpaceLike=p,e.isWhiteSpaceSingleLine=f,e.isLineBreak=g,e.isOctalDigit=y,e.couldStartTrivia=h,e.skipTrivia=v;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=C,e.forEachTrailingCommentRange=D,e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=P,e.getShebang=O,e.isIdentifierStart=F,e.isIdentifierPart=I,e.isIdentifierText=M,e.createScanner=R;}(r||(r={}));!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,a=n;r=0),e.getLineStarts(n)[t]}function h(t){var n=g(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function v(e){return e.pos}function b(e){return void 0!==e}function x(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),a=t,i=n.text;if(a+1===r.length)return i.length-1;var o=r[a],s=r[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function k(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function S(e){return!k(e)}function T(t,n,r){return k(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((n||g(t)).text,t.pos,!1,!0):r&&t.jsDoc&&t.jsDoc.length>0?T(t.jsDoc[0]):295===t.kind&&t._children.length>0?T(t._children[0],n,r):e.skipTrivia((n||g(t)).text,t.pos)}function C(t,n){return k(t)||!t.decorators?T(t,n):e.skipTrivia((n||g(t)).text,t.decorators.end)}function D(t,n,r){if(void 0===r&&(r=!1),k(n))return"";var a=t.text;return a.substring(r?n.pos:e.skipTrivia(a,n.pos),n.end)}function E(t,n){return k(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function N(e,t){return void 0===t&&(t=!1),D(g(e),e,t)}function A(e){var t=e.emitNode;return t&&t.flags}function w(t,n){if(!en(t)&&t.parent)return D(n,t);var r=16777216&A(t)?ln:fn;switch(t.kind){case 9:return'"'+r(t.text)+'"';case 13:return"`"+r(t.text)+"`";case 14:return"`"+r(t.text)+"${";case 15:return"}"+r(t.text)+"${";case 16:return"}"+r(t.text)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.");}function P(e){return"string"==typeof e?'"'+fn(e)+'"':""+e}function O(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function F(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function I(t){return 0!=(3&e.getCombinedNodeFlags(t))||M(t)}function M(e){var t=Qt(e);return 226===t.kind&&260===t.parent.kind}function R(e){return e&&233===e.kind&&(9===e.name.kind||j(e))}function L(e){return B(e.valueDeclaration)}function B(e){return e&&233===e.kind&&!e.body}function K(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function j(e){return!!(512&e.flags)}function J(t){if(!t||!R(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return R(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function z(t,n){return e.isExternalModule(t)||n.isolatedModules}function U(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function q(e){for(var t=e.parent;t;){if(U(t,t.parent))return t;t=t.parent;}}function V(e){return 0===i(e)?"(Missing)":N(e)}function $(e){return e.declaration?V(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.text;case 9:case 8:return e.text;case 144:if(Ut(e.expression))return e.expression.text}}function H(t){switch(t.kind){case 71:return 0===i(t)?e.unescapeIdentifier(t.text):N(t);case 143:return H(t.left)+"."+H(t.right);case 179:return H(t.expression)+"."+H(t.name)}}function G(e,t,n,r,a){return X(g(e),e,t,n,r,a)}function X(t,n,r,a,i,o){var s=ee(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,a,i,o)}function Y(e,t){var n=g(e),r=ee(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Q(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var a=r.getTokenPos();return e.createTextSpanFromBounds(a,r.getTextPos())}function Z(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var a=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(a=0;case 183:return!1}}return!1}function de(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1}function pe(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function fe(t,n){function r(t){switch(t.kind){case 197:n(t);var a=t.expression;return void(a&&r(a));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var i=t.name;if(i&&144===i.kind)return void r(i.expression)}else _e(t)||e.forEachChild(t,r);}}return r(t)}function ge(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function me(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function ye(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function he(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}}function ve(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function be(e){return e&&151===e.kind&&178===e.parent.kind}function xe(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function ke(e){return e&&1===e.kind}function Se(e){return e&&0===e.kind}function Te(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=W(e.name);return n===t||r&&r===t}})}function Ce(t){for(;;)if(!(t=t.parent)||e.isFunctionLike(t))return t}function De(t){for(;;)if(!(t=t.parent)||e.isClassLike(t))return t}function Ee(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Ne(e){var t=Ee(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ae(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);}}}function we(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function Pe(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Oe(e){switch(e.kind){case 159:case 277:return e.typeName;case 201:return ur(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Fe(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Ie(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Me(e){return void 0!==e.decorators&&Ie(e)}function Re(e){return Me(e)||Le(e)}function Le(t){switch(t.kind){case 229:return e.forEach(t.members,Re);case 151:case 154:return e.forEach(t.parameters,Me)}}function Be(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Ke(e){switch(e.kind){case 99:case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Be(e);case 71:if(162===e.parent.kind||Be(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:case 221:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&sr(t);default:if(Ke(t))return!0}}return!1}function je(e){return 237===e.kind&&248===e.moduleReference.kind}function Je(t){return e.Debug.assert(je(t)),t.moduleReference.expression}function ze(e){return 237===e.kind&&248!==e.moduleReference.kind}function Ue(e){return qe(e)}function qe(e){return e&&!!(65536&e.flags)}function Ve(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,a=n.arguments;if(71!==r.kind||"require"!==r.text)return!1;if(1!==a.length)return!1;var i=a[0];return!t||9===i.kind||13===i.kind}function $e(e){return 39===e||34===e}function We(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function He(e){for(;rr(e,!0);)e=e.right;return e}function Ge(t){return e.isIdentifier(t)&&"exports"===t.text}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.text&&"exports"===t.name.text}function Ye(e){if(!qe(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.text?1:"module"===r.text&&"exports"===n.name.text?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var a=n.expression;if(71===a.expression.kind){if("module"===a.expression.text&&"exports"===a.name.text)return 1;if("prototype"===a.name.text)return 3}}return 0}function Qe(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function Ze(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function et(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function tt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function nt(e){return 279===e.kind&&e.parameters.length>0&&281===e.parameters[0].type.kind}function rt(t){return e.map(st(t),function(e){return e.comment})}function at(e){var t=it(e,287);return t&&t.length>0}function it(t,n){return e.flatMap(st(t),function(t){return 283===t.kind?e.filter(t.tags,function(e){return e.kind===n}):t.kind===n&&t})}function ot(t,n){return t&&e.firstOrUndefined(it(t,n))}function st(t){function n(t){var a=t.parent,i=me(a)&&a.initializer===t&&208===a.parent.parent.kind,o=me(t)&&208===a.parent.kind,s=i?a.parent.parent:o?a.parent:void 0;s&&n(s),a&&a.parent&&194===a.kind&&58===a.operatorToken.kind&&210===a.parent.kind&&n(a.parent);var c=233===t.kind&&a&&233===a.kind,u=a&&261===a.kind;(c||u)&&n(a),146===t.kind&&(r=e.concatenate(r,ct(t))),me(t)&&t.initializer&&(r=e.concatenate(r,t.initializer.jsDoc)),r=e.concatenate(r,t.jsDoc);}if(e.isJSDocTypedefTag(t))return[t.parent];var r=t.jsDocCache;return r||(n(t),t.jsDocCache=r),r}function ct(t){var n=t.parent,r=it(n,287);if(t.name){if(71===t.name.kind){var a=t.name.text;return e.filter(r,function(e){return 287===e.kind&&e.name.text===a})}}else{var i=n.parameters.indexOf(t),o=e.filter(r,function(e){return 287===e.kind});if(o&&0<=i&&i0?t.types[0]:void 0}function Ft(e){var t=Mt(e.heritageClauses,108);return t?t.types:void 0}function It(e){var t=Mt(e.heritageClauses,85);return t?t.types:void 0}function Mt(e,t){if(e)for(var n=0,r=e;n/gim;if(/^\/\/\/\s*1&&(_=_+r.length-1,d=c.length-t.length+e.lastOrUndefined(r));}}function o(){l||(_++,d=(c+=t).length,l=!0);}function s(e,t){n(E(e,t));}var c,u,l,_,d;return r(),{write:n,rawWrite:a,writeTextOfNode:s,writeLiteral:i,writeLine:o,increaseIndent:function(){u++;},decreaseIndent:function(){u--;},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*mn()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function hn(e,t){return t.moduleName||bn(e,t.fileName)}function vn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return hn(e,r)}function bn(t,n){var r=function(e){return t.getCanonicalFileName(e)},a=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),i=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(a,i,a,r,!1);return e.removeFileExtension(o)}function xn(t,n,r){var a=n.getCompilerOptions();return(a.outDir?e.removeFileExtension(Cn(t,n,a.outDir)):e.removeFileExtension(t.fileName))+r}function kn(t,n){var r=n.getCompilerOptions(),a=r.declarationDir||r.outDir,i=a?Cn(t,n,a):t.fileName;return e.removeFileExtension(i)+".d.ts"}function Sn(t,n){var r=t.getCompilerOptions(),a=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var i=e.getEmitModuleKind(r),o=i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Tn(t,r,a)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Tn(e,r,a)})}function Tn(e,t,n){return!(t.noEmitForJsFiles&&Ue(e)||e.isDeclarationFile||n(e))}function Cn(t,n,r){var a=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),i=n.getCommonSourceDirectory();return a=0===n.getCanonicalFileName(a).indexOf(n.getCanonicalFileName(i))?a.substring(i.length):a,e.combinePaths(r,a)}function Dn(t,n,r,a,i,o){t.writeFile(r,a,i,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t));},o);}function En(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function Nn(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function An(t){return e.forEach(t.members,function(e){if(152===e.kind&&S(e.body))return e})}function wn(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Fn(e.parameters[0]);return e.parameters[t?1:0]}}function Pn(e){var t=wn(e);return t&&t.type}function On(e){if(e.parameters.length){var t=e.parameters[0];if(Fn(t))return t}}function Fn(e){return In(e.name)}function In(e){return e&&71===e.kind&&Mn(e)}function Mn(e){return 99===e.originalKeywordKind}function Rn(t,n){var r,a,i,o;return qt(n)?(r=n,153===n.kind?i=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||Xn(e,32)!==Xn(n,32)||Wt(e.name)===Wt(n.name)&&(r?a||(a=e):r=e,153!==e.kind||i||(i=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}}function Ln(e){return e.type?e.type:65536&e.flags?_t(e):void 0}function Bn(e){return e.type?e.type:65536&e.flags?gt(e):void 0}function Kn(e){if(e.typeParameters)return e.typeParameters;if(65536&e.flags){var t=mt(e);return t&&t.typeParameters}}function jn(e){var t=wn(e);return t&&Ln(t)}function Jn(e,t,n,r){zn(e,t,n.pos,r);}function zn(e,t,n,r){r&&r.length&&n!==r[0].pos&&Nn(e,n)!==Nn(e,r[0].pos)&&t.writeLine();}function Un(e,t,n,r){n!==r&&Nn(e,n)!==Nn(e,r)&&t.writeLine();}function qn(e,t,n,r,a,i,o,s){if(r&&r.length>0){a&&n.write(" ");for(var c=!1,u=0,l=r;u=m+2)break}_.push(g),d=g;}if(_.length){var m=Nn(n,e.lastOrUndefined(_).end);Nn(n,e.skipTrivia(t,i.pos))>=m+2&&(Jn(n,r,i,u),qn(t,n,r,_,!1,!0,o,a),l={nodePos:i.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l}function $n(t,n,r,a,i,o){if(42===t.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(n,a),c=n.length,u=void 0,l=a,_=s.line;l0){var f=p%mn(),g=gn((p-f)/mn());for(r.rawWrite(g);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}Wn(t,i,r,o,l,d),l=d;}else r.write(t.substring(a,i));}function Wn(e,t,n,r,a,i){var o=Math.min(t,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r);}function Hn(t,n,r){for(var a=0;n=58&&e<=70}function nr(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function rr(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:tr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function ar(e){if(rr(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function ir(e){return or(e.expression)}function or(t){return 71===t.kind||!!e.isPropertyAccessExpression(t)&&or(t.expression)}function sr(e){return void 0!==nr(e)}function cr(t){return 201===t.kind&&ur(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function ur(e){return 71===e.kind||179===e.kind&&ur(e.expression)}function lr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function _r(e){return 178===e.kind&&0===e.properties.length}function dr(e){return 177===e.kind&&0===e.elements.length}function pr(e){return fr(e)?e.declarations[0].localSymbol:void 0}function fr(t){return t&&e.length(t.declarations)>0&&Xn(t.declarations[0],512)}function gr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function mr(t){for(var n=[],r=t.length,a=0;a>6|192),n.push(63&i|128)):i<65536?(n.push(i>>12|224),n.push(i>>6&63|128),n.push(63&i|128)):i<131072?(n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function yr(e){for(var t,n,r,a,i="",o=mr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,a=63&o[s+2],s+1>=c?r=a=64:s+2>=c&&(a=64),i+=ua.charAt(t)+ua.charAt(n)+ua.charAt(r)+ua.charAt(a),s+=3;return i}function hr(t){switch(t.newLine){case 0:return la;case 1:return _a}return e.sys?e.sys.newLine:la}function vr(e){return br(e,0)}function br(e,t){if(t<=5){var n=e.kind;if(9===n||8===n||12===n||13===n||71===n||99===n||97===n||101===n||86===n||95===n)return!0;if(179===n)return br(e.expression,t+1);if(180===n)return br(e.expression,t+1)&&br(e.argumentExpression,t+1);if(192===n||193===n)return br(e.operand,t+1);if(194===n)return 40!==e.operatorToken.kind&&br(e.left,t+1)&&br(e.right,t+1);if(195===n)return br(e.condition,t+1)&&br(e.whenTrue,t+1)&&br(e.whenFalse,t+1);if(190===n||189===n||188===n)return br(e.expression,t+1);if(177===n)return 0===e.elements.length;if(178===n)return 0===e.properties.length;if(181===n){if(!br(e.expression,t+1))return!1;for(var r=0,a=e.arguments;r0&&0===r[0][0]?r[0][1]:"0";if(n){for(var a="",i=e,o=r.length-1;o>=0&&0!==i;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(i&c)===c&&(i&=~c,a=u+(a?", ":"")+a);}if(0===i)return a}else for(var l=0,_=r;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function kr(t){var n=[];for(var r in t){var a=t[r];"number"==typeof a&&n.push([a,r]);}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}function Sr(t){return xr(t,e.SyntaxKind,!1)}function Tr(t){return xr(t,e.ModifierFlags,!0)}function Cr(t){return xr(t,e.TransformFlags,!0)}function Dr(t){return xr(t,e.EmitFlags,!0)}function Er(t){return xr(t,e.SymbolFlags,!0)}function Nr(t){return xr(t,e.TypeFlags,!0)}function Ar(t){return xr(t,e.ObjectFlags,!0)}function wr(e){return e?e.pos:-1}function Pr(e){return e?e.end:-1}function Or(t,n){return e.positionIsSynthesized(t)?-1:t+n}function Fr(e,t){return{pos:e,end:t}}function Ir(e,t){return Fr(e.pos,t)}function Mr(e,t){return Fr(t,e.end)}function Rr(e){return e.decorators&&e.decorators.length>0?Mr(e,e.decorators.end):e}function Lr(e){return e.modifiers&&e.modifiers.length>0?Mr(e,e.modifiers.end):Rr(e)}function Br(e){return e.pos===e.end}function Kr(e){return Br(e)?e:Ir(e,e.pos)}function jr(e){return Br(e)?e:Mr(e,e.end)}function Jr(t,n){return Fr(t,t+e.tokenToString(n).length)}function zr(e,t){return Vr(e,e,t)}function Ur(e,t,n){return Wr(Hr(e,n),Hr(t,n),n)}function qr(e,t,n){return Wr(e.end,t.end,n)}function Vr(e,t,n){return Wr(Hr(e,n),t.end,n)}function $r(e,t,n){return Wr(e.end,Hr(t,n),n)}function Wr(e,t,n){return e===t||En(n,e)===En(n,t)}function Hr(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function Gr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Xr(t){return e.filter(t.declarations,Yr)}function Yr(e){return void 0!==e.initializer}function Qr(e){if(e.symbol)for(var t=0,n=e.symbol.declarations;t/,e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx=/^(\/\/\/\s*/,e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/,e.isPartOfTypeNode=_e,e.isChildOfNodeWithKind=de,e.forEachReturnStatement=pe,e.forEachYieldExpression=fe,e.getRestParameterElementType=ge,e.isVariableLike=me,e.introducesArgumentsExoticObject=ye,e.unwrapInnermostStatementOfLabel=he,e.isFunctionBlock=ve,e.isObjectLiteralMethod=be,e.isObjectLiteralOrClassExpressionMethod=xe,e.isIdentifierTypePredicate=ke,e.isThisTypePredicate=Se,e.getPropertyAssignment=Te,e.getContainingFunction=Ce,e.getContainingClass=De,e.getThisContainer=Ee,e.getNewTargetContainer=Ne,e.getSuperContainer=Ae,e.getImmediatelyInvokedFunctionExpression=we,e.isSuperProperty=Pe,e.getEntityNameFromTypeNode=Oe,e.getInvokedExpression=Fe,e.nodeCanBeDecorated=Ie,e.nodeIsDecorated=Me,e.nodeOrChildIsDecorated=Re,e.childIsDecorated=Le,e.isJSXTagName=Be,e.isPartOfExpression=Ke,e.isExternalModuleImportEqualsDeclaration=je,e.getExternalModuleImportEqualsDeclarationExpression=Je,e.isInternalModuleImportEqualsDeclaration=ze,e.isSourceFileJavaScript=Ue,e.isInJavaScriptFile=qe,e.isRequireCall=Ve,e.isSingleOrDoubleQuote=$e,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=He,e.isExportsIdentifier=Ge,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Ye,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=et,e.hasQuestionToken=tt,e.isJSDocConstructSignature=nt,e.getCommentsFromJSDoc=rt,e.hasJSDocParameterTags=at,e.getJSDocs=st,e.getJSDocParameterTags=ct,e.getParameterFromJSDoc=ut,e.getTypeParameterFromJsDoc=lt,e.getJSDocType=_t,e.getJSDocAugmentsTag=dt,e.getJSDocClassTag=pt,e.getJSDocReturnTag=ft,e.getJSDocReturnType=gt,e.getJSDocTemplateTag=mt,e.hasRestParameter=yt,e.hasDeclaredRestParameter=ht,e.isRestParameter=vt,e.isDeclaredRestParam=bt;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=xt,e.isAssignmentTarget=kt,e.isDeleteTarget=St,e.isNodeDescendantOf=Tt,e.isInAmbientContext=Ct,e.isDeclarationName=Dt,e.isAnyDeclarationName=Et,e.isLiteralComputedPropertyDeclarationName=Nt,e.isIdentifierName=At,e.isAliasSymbolDeclaration=wt,e.exportAssignmentIsAlias=Pt,e.getClassExtendsHeritageClauseElement=Ot,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=It,e.getHeritageClause=Mt,e.tryResolveScriptReference=Rt,e.getAncestor=Lt,e.getFileReferenceFromReferencePath=Bt,e.isKeyword=Kt,e.isTrivia=jt;!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=Jt,e.isAsyncFunction=zt,e.isStringOrNumericLiteral=Ut,e.hasDynamicName=qt,e.isDynamicName=Vt,e.isWellKnownSymbolSyntactically=$t,e.getPropertyNameForPropertyNameNode=Wt,e.getPropertyNameForKnownSymbolName=Ht,e.isESSymbolIdentifier=Gt,e.isPushOrUnshiftIdentifier=Xt,e.isParameterDeclaration=Yt,e.getRootDeclaration=Qt,e.nodeStartsNewLexicalEnvironment=Zt,e.nodeIsSynthesized=en,e.getOriginalSourceFile=tn,e.getOriginalSourceFiles=nn;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right";}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=rn,e.getOperatorAssociativity=an,e.getExpressionPrecedence=on$$1,e.getOperator=sn,e.getOperatorPrecedence=cn,e.createDiagnosticCollection=un;var ia=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,oa=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});e.escapeString=ln,e.isIntrinsicJsxName=dn;var sa=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=fn;var ca=[""," "];e.getIndentString=gn,e.getIndentSize=mn,e.createTextWriter=yn,e.getResolvedExternalModuleName=hn,e.getExternalModuleNameFromDeclaration=vn,e.getExternalModuleNameFromPath=bn,e.getOwnEmitOutputFilePath=xn,e.getDeclarationEmitOutputFilePath=kn,e.getSourceFilesToEmit=Sn,e.sourceFileMayBeEmitted=Tn,e.getSourceFilePathInNewDir=Cn,e.writeFile=Dn,e.getLineOfLocalPosition=En,e.getLineOfLocalPositionFromLineMap=Nn,e.getFirstConstructorWithBody=An,e.getSetAccessorTypeAnnotationNode=Pn,e.getThisParameter=On,e.parameterIsThisKeyword=Fn,e.isThisIdentifier=In,e.identifierIsThisKeyword=Mn,e.getAllAccessorDeclarations=Rn,e.getEffectiveTypeAnnotationNode=Ln,e.getEffectiveReturnTypeNode=Bn,e.getEffectiveTypeParameterDeclarations=Kn,e.getEffectiveSetAccessorTypeAnnotationNode=jn,e.emitNewLineBeforeLeadingComments=Jn,e.emitNewLineBeforeLeadingCommentsOfPosition=zn,e.emitNewLineBeforeLeadingCommentOfPosition=Un,e.emitComments=qn,e.emitDetachedComments=Vn,e.writeCommentRange=$n,e.hasModifiers=Gn,e.hasModifier=Xn,e.getModifierFlags=Yn,e.getModifierFlagsNoCache=Qn,e.modifierToFlag=Zn,e.isLogicalOperator=er,e.isAssignmentOperator=tr,e.tryGetClassExtendingExpressionWithTypeArguments=nr,e.isAssignmentExpression=rr,e.isDestructuringAssignment=ar,e.isSupportedExpressionWithTypeArguments=ir,e.isExpressionWithTypeArgumentsInClassExtendsClause=sr,e.isExpressionWithTypeArgumentsInClassImplementsClause=cr,e.isEntityNameExpression=ur,e.isRightSideOfQualifiedNameOrPropertyAccess=lr,e.isEmptyObjectLiteral=_r,e.isEmptyArrayLiteral=dr,e.getLocalSymbolForExportDefault=pr,e.tryExtractTypeScriptExtension=gr;var ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=yr;var la="\r\n",_a="\n";e.getNewLineCharacter=hr,e.isSimpleExpression=vr,e.formatSyntaxKind=Sr,e.formatModifierFlags=Tr,e.formatTransformFlags=Cr,e.formatEmitFlags=Dr,e.formatSymbolFlags=Er,e.formatTypeFlags=Nr,e.formatObjectFlags=Ar,e.getRangePos=wr,e.getRangeEnd=Pr,e.movePos=Or,e.createRange=Fr,e.moveRangeEnd=Ir,e.moveRangePos=Mr,e.moveRangePastDecorators=Rr,e.moveRangePastModifiers=Lr,e.isCollapsedRange=Br,e.collapseRangeToStart=Kr,e.collapseRangeToEnd=jr,e.createTokenRange=Jr,e.rangeIsOnSingleLine=zr,e.rangeStartPositionsAreOnSameLine=Ur,e.rangeEndPositionsAreOnSameLine=qr,e.rangeStartIsOnSameLineAsRangeEnd=Vr,e.rangeEndIsOnSameLineAsRangeStart=$r,e.positionsAreOnSameLine=Wr,e.getStartPositionOfRange=Hr,e.isDeclarationNameOfEnumOrNamespace=Gr,e.getInitializedVariables=Xr,e.isMergedWithClass=Qr,e.isFirstDeclarationOfKind=Zr,e.isWatchSet=ea,e.getCheckFlags=ta,e.getDeclarationModifierFlagsFromSymbol=na,e.levenshtein=ra;}(r||(r={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function a(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var a=t+r;return t<=n(e)&&a>=e.start}function l(e,t,n,r){var a=n+r;return n<=e+t&&a>=e}function _(e,t){return t<=n(e)&&t>=e.start}function d(e,t){var r=Math.max(e.start,t.start),a=Math.min(n(e),n(t));if(r<=a)return f(r,a)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function g(e){return p(e.span.start,e.newLength)}function m(e){return r(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],a=r.span.start,i=n(r.span),o=a+r.newLength,s=1;s=3&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}function A(t){if(t){if(194!==t.kind)return t.name;var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}}}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=a,e.textSpanContainsTextSpan=i,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=_,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=g,e.textChangeRangeIsUnchanged=m,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=h,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.getCombinedModifierFlags=k,e.getCombinedNodeFlags=S,e.validateLocaleAndSetLanguage=T,e.getOriginalNode=C,e.isParseTreeNode=D,e.getParseTreeNode=E,e.unescapeIdentifier=N,e.getNameOfDeclaration=A;}(r||(r={})),function(e){function t(e){return 8===e.kind}function n(e){return 9===e.kind}function r(e){return 10===e.kind}function a(e){return 12===e.kind}function i(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function l(e){return 143===e.kind}function _(e){return 144===e.kind}function d(e){return 145===e.kind}function p(e){return 146===e.kind}function f(e){return 147===e.kind}function g(e){return 148===e.kind}function m(e){return 149===e.kind}function y(e){return 150===e.kind}function h(e){return 151===e.kind}function v(e){return 152===e.kind}function b(e){return 153===e.kind}function x(e){return 154===e.kind}function k(e){return 155===e.kind}function S(e){return 156===e.kind}function T(e){return 157===e.kind}function C(e){return 158===e.kind}function D(e){return 159===e.kind}function E(e){return 160===e.kind}function N(e){return 161===e.kind}function A(e){return 162===e.kind}function w(e){return 163===e.kind}function P(e){return 164===e.kind}function O(e){return 165===e.kind}function F(e){return 166===e.kind}function I(e){return 167===e.kind}function M(e){return 168===e.kind}function R(e){return 169===e.kind}function L(e){return 170===e.kind}function B(e){return 171===e.kind}function K(e){return 172===e.kind}function j(e){return 173===e.kind}function J(e){return 174===e.kind}function z(e){return 175===e.kind}function U(e){return 176===e.kind}function q(e){return 177===e.kind}function V(e){return 178===e.kind}function $(e){return 179===e.kind}function W(e){return 180===e.kind}function H(e){return 181===e.kind}function G(e){return 182===e.kind}function X(e){return 183===e.kind}function Y(e){return 184===e.kind}function Q(e){return 185===e.kind}function Z(e){for(;297===e.kind;)e=e.expression;return e}function ee(e){return 186===e.kind}function te(e){return 187===e.kind}function ne(e){return 188===e.kind}function re(e){return 191===e.kind}function ae(e){return 190===e.kind}function ie(e){return 191===e.kind}function oe(e){return 192===e.kind}function se(e){return 193===e.kind}function ce(e){return 194===e.kind}function ue(e){return 195===e.kind}function le(e){return 196===e.kind}function _e(e){return 197===e.kind}function de(e){return 198===e.kind}function pe(e){return 199===e.kind}function fe(e){return 200===e.kind}function ge(e){return 201===e.kind}function me(e){return 202===e.kind}function ye(e){return 203===e.kind}function he(e){return 204===e.kind}function ve(e){return 205===e.kind}function be(e){return 206===e.kind}function xe(e){return 207===e.kind}function ke(e){return 208===e.kind}function Se(e){return 209===e.kind}function Te(e){return 210===e.kind}function Ce(e){return 211===e.kind}function De(e){return 212===e.kind}function Ee(e){return 213===e.kind}function Ne(e){return 214===e.kind}function Ae(e){return 215===e.kind}function we(e){return 216===e.kind}function Pe(e){return 217===e.kind}function Oe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Ie(e){return 220===e.kind}function Me(e){return 221===e.kind}function Re(e){return 222===e.kind}function Le(e){return 223===e.kind}function Be(e){return 224===e.kind}function Ke(e){return 225===e.kind}function je(e){return 226===e.kind}function Je(e){return 227===e.kind}function ze(e){return 228===e.kind}function Ue(e){return 229===e.kind}function qe(e){return 230===e.kind}function Ve(e){return 231===e.kind}function $e(e){return 232===e.kind}function We(e){return 233===e.kind}function He(e){return 234===e.kind}function Ge(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Ye(e){return 237===e.kind}function Qe(e){return 238===e.kind}function Ze(e){return 239===e.kind}function et(e){return 240===e.kind}function tt(e){return 241===e.kind}function nt(e){return 242===e.kind}function rt(e){return 243===e.kind}function at(e){return 244===e.kind}function it(e){return 245===e.kind}function ot(e){return 246===e.kind}function st(e){return 247===e.kind}function ct(e){return 248===e.kind}function ut(e){return 249===e.kind}function lt(e){return 250===e.kind}function _t(e){return 251===e.kind}function dt(e){return 252===e.kind}function pt(e){return 253===e.kind}function ft(e){return 254===e.kind}function gt(e){return 255===e.kind}function mt(e){return 256===e.kind}function yt(e){return 257===e.kind}function ht(e){return 258===e.kind}function vt(e){return 259===e.kind}function bt(e){return 260===e.kind}function xt(e){return 261===e.kind}function kt(e){return 262===e.kind}function St(e){return 263===e.kind}function Tt(e){return 264===e.kind}function Ct(e){return 265===e.kind}function Dt(e){return 266===e.kind}function Et(e){return 267===e.kind}function Nt(e){return 268===e.kind}function At(e){return 269===e.kind}function wt(e){return 270===e.kind}function Pt(e){return 271===e.kind}function Ot(e){return 272===e.kind}function Ft(e){return 273===e.kind}function It(e){return 274===e.kind}function Mt(e){return 275===e.kind}function Rt(e){return 276===e.kind}function Lt(e){return 277===e.kind}function Bt(e){return 278===e.kind}function Kt(e){return 279===e.kind}function jt(e){return 280===e.kind}function Jt(e){return 281===e.kind}function zt(e){return 282===e.kind}function Ut(e){return 283===e.kind}function qt(e){return 285===e.kind}function Vt(e){return 287===e.kind}function $t(e){return 288===e.kind}function Wt(e){return 289===e.kind}function Ht(e){return 290===e.kind}function Gt(e){return 291===e.kind}function Xt(e){return 292===e.kind}function Yt(e){return 293===e.kind}function Qt(e){return 294===e.kind}e.isNumericLiteral=t,e.isStringLiteral=n,e.isJsxText=r,e.isRegularExpressionLiteral=a,e.isNoSubstitutionTemplateLiteral=i,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=l,e.isComputedPropertyName=_,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=g,e.isPropertyDeclaration=m,e.isMethodSignature=y,e.isMethodDeclaration=h,e.isConstructorDeclaration=v,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=x,e.isCallSignatureDeclaration=k,e.isConstructSignatureDeclaration=S,e.isIndexSignatureDeclaration=T,e.isTypePredicateNode=C,e.isTypeReferenceNode=D,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=P,e.isTupleTypeNode=O,e.isUnionTypeNode=F,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=M,e.isThisTypeNode=R,e.isTypeOperatorNode=L,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=K,e.isLiteralTypeNode=j,e.isObjectBindingPattern=J,e.isArrayBindingPattern=z,e.isBindingElement=U,e.isArrayLiteralExpression=q,e.isObjectLiteralExpression=V,e.isPropertyAccessExpression=$,e.isElementAccessExpression=W,e.isCallExpression=H,e.isNewExpression=G,e.isTaggedTemplateExpression=X,e.isTypeAssertion=Y,e.isParenthesizedExpression=Q,e.skipPartiallyEmittedExpressions=Z,e.isFunctionExpression=ee,e.isArrowFunction=te,e.isDeleteExpression=ne,e.isTypeOfExpression=re,e.isVoidExpression=ae,e.isAwaitExpression=ie,e.isPrefixUnaryExpression=oe,e.isPostfixUnaryExpression=se,e.isBinaryExpression=ce,e.isConditionalExpression=ue,e.isTemplateExpression=le,e.isYieldExpression=_e,e.isSpreadElement=de,e.isClassExpression=pe,e.isOmittedExpression=fe,e.isExpressionWithTypeArguments=ge,e.isAsExpression=me,e.isNonNullExpression=ye,e.isMetaProperty=he,e.isTemplateSpan=ve,e.isSemicolonClassElement=be,e.isBlock=xe,e.isVariableStatement=ke,e.isEmptyStatement=Se,e.isExpressionStatement=Te,e.isIfStatement=Ce,e.isDoStatement=De,e.isWhileStatement=Ee,e.isForStatement=Ne,e.isForInStatement=Ae,e.isForOfStatement=we,e.isContinueStatement=Pe,e.isBreakStatement=Oe,e.isReturnStatement=Fe,e.isWithStatement=Ie,e.isSwitchStatement=Me,e.isLabeledStatement=Re,e.isThrowStatement=Le,e.isTryStatement=Be,e.isDebuggerStatement=Ke,e.isVariableDeclaration=je,e.isVariableDeclarationList=Je,e.isFunctionDeclaration=ze,e.isClassDeclaration=Ue,e.isInterfaceDeclaration=qe,e.isTypeAliasDeclaration=Ve,e.isEnumDeclaration=$e,e.isModuleDeclaration=We,e.isModuleBlock=He,e.isCaseBlock=Ge,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Ye,e.isImportDeclaration=Qe,e.isImportClause=Ze,e.isNamespaceImport=et,e.isNamedImports=tt,e.isImportSpecifier=nt,e.isExportAssignment=rt,e.isExportDeclaration=at,e.isNamedExports=it,e.isExportSpecifier=ot,e.isMissingDeclaration=st,e.isExternalModuleReference=ct,e.isJsxElement=ut,e.isJsxSelfClosingElement=lt,e.isJsxOpeningElement=_t,e.isJsxClosingElement=dt,e.isJsxAttribute=pt,e.isJsxAttributes=ft,e.isJsxSpreadAttribute=gt,e.isJsxExpression=mt,e.isCaseClause=yt,e.isDefaultClause=ht,e.isHeritageClause=vt,e.isCatchClause=bt,e.isPropertyAssignment=xt,e.isShorthandPropertyAssignment=kt,e.isSpreadAssignment=St,e.isEnumMember=Tt,e.isSourceFile=Ct,e.isBundle=Dt,e.isJSDocTypeExpression=Et,e.isJSDocAllType=Nt,e.isJSDocUnknownType=At,e.isJSDocArrayType=wt,e.isJSDocUnionType=Pt,e.isJSDocTupleType=Ot,e.isJSDocNullableType=Ft,e.isJSDocNonNullableType=It,e.isJSDocRecordType=Mt,e.isJSDocRecordMember=Rt,e.isJSDocTypeReference=Lt,e.isJSDocOptionalType=Bt,e.isJSDocFunctionType=Kt,e.isJSDocVariadicType=jt,e.isJSDocConstructorType=Jt,e.isJSDocThisType=zt,e.isJSDoc=Ut,e.isJSDocAugmentsTag=qt,e.isJSDocParameterTag=Vt,e.isJSDocReturnTag=$t,e.isJSDocTypeTag=Wt,e.isJSDocTemplateTag=Ht,e.isJSDocTypedefTag=Gt,e.isJSDocPropertyTag=Xt,e.isJSDocTypeLiteral=Yt,e.isJSDocLiteralType=Qt;}(r||(r={})),function(e){function t(e){return n(e.kind)}function n(e){return e>=143}function r(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function i(e){return 8<=e&&e<=13}function o(e){return i(e.kind)}function s(e){return 13<=e&&e<=16}function c(e){var t=e.kind;return 15===t||16===t}function u(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function l(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function _(e){return l(e.kind)}function d(e){var t=e.kind;return 143===t||71===t}function p(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function f(e){var t=e.kind;return 71===t||174===t||175===t}function g(e){return e&&m(e.kind)}function m(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 161:return!0}return!1}function y(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function h(e){return e&&(229===e.kind||199===e.kind)}function v(e){return e&&(153===e.kind||154===e.kind)}function b(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function x(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function k(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function S(e){return k(e.kind)}function T(e){switch(e.kind){case 160:case 161:return!0}return!1}function C(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function D(e){var t=e.kind;return 177===t||178===t}function E(e){var t=e.kind;return 176===t||200===t}function N(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function A(e){return w(e)||P(e)}function w(e){switch(e.kind){case 174:case 178:return!0}return!1}function P(e){switch(e.kind){case 175:case 177:return!0}return!1}function O(e){var t=e.kind;return 179===t||143===t}function F(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function I(e){return 181===e.kind||182===e.kind}function M(e){var t=e.kind;return 196===t||13===t}function R(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||203===e||204===e}function L(t){return R(e.skipPartiallyEmittedExpressions(t).kind)}function B(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||R(e)}function K(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||298===e||B(e)}function J(t){return j(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){var t=e.kind;return 184===t||202===t}function U(e){return 297===e.kind}function q(e){return 296===e.kind}function V(e){return q(e)||U(e)}function $(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&$(e.statement,t)}return!1}function W(e){return 215===e.kind||216===e.kind}function H(t){return e.isBlock(t)||J(t)}function G(t){return e.isBlock(t)}function X(t){return e.isVariableDeclarationList(t)||J(t)}function Y(e){var t=e.kind;return 234===t||233===t||71===t}function Q(e){var t=e.kind;return 234===t||233===t}function Z(e){var t=e.kind;return 71===t||233===t}function ee(e){var t=e.kind;return 241===t||240===t}function te(e){return 233===e.kind||232===e.kind}function ne(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||291===e}function re(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function ae(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||296===e||300===e||299===e}function ie(t){return 145===t.kind?290!==t.parent.kind||e.isInJavaScriptFile(t):ne(t.kind)}function oe(e){return re(e.kind)}function se(e){return ae(e.kind)}function ce(e){var t=e.kind;return ae(t)||re(t)||207===t}function ue(e){var t=e.kind;return 248===t||143===t||71===t}function le(e){var t=e.kind;return 99===t||71===t||179===t}function _e(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function de(e){var t=e.kind;return 253===t||255===t}function pe(e){var t=e.kind;return 9===t||256===t}function fe(e){var t=e.kind;return 251===t||250===t}function ge(e){var t=e.kind;return 257===t||258===t}function me(e){return e.kind>=267&&e.kind<=294}function ye(e){return 283===e.kind||he(e)}function he(e){return e.kind>=284&&e.kind<=294}e.isNode=t,e.isNodeKind=n,e.isToken=r,e.isNodeArray=a,e.isLiteralKind=i,e.isLiteralExpression=o,e.isTemplateLiteralKind=s,e.isTemplateMiddleOrTemplateTail=c,e.isGeneratedIdentifier=u,e.isModifierKind=l,e.isModifier=_,e.isEntityName=d,e.isPropertyName=p,e.isBindingName=f,e.isFunctionLike=g,e.isFunctionLikeKind=m,e.isClassElement=y,e.isClassLike=h,e.isAccessor=v,e.isTypeElement=b,e.isObjectLiteralElementLike=x,e.isTypeNode=S,e.isFunctionOrConstructorTypeNode=T,e.isBindingPattern=C,e.isAssignmentPattern=D,e.isArrayBindingElement=E,e.isDeclarationBindingElement=N,e.isBindingOrAssignmentPattern=A,e.isObjectBindingOrAssignmentPattern=w,e.isArrayBindingOrAssignmentPattern=P,e.isPropertyAccessOrQualifiedName=O,e.isCallLikeExpression=F,e.isCallOrNewExpression=I,e.isTemplateLiteral=M,e.isLeftHandSideExpression=L,e.isUnaryExpression=K,e.isExpression=J,e.isAssertionExpression=z,e.isPartiallyEmittedExpression=U,e.isNotEmittedStatement=q,e.isNotEmittedOrPartiallyEmittedNode=V,e.isIterationStatement=$,e.isForInOrOfStatement=W,e.isConciseBody=H,e.isFunctionBody=G,e.isForInitializer=X,e.isModuleBody=Y,e.isNamespaceBody=Q,e.isJSDocNamespaceBody=Z,e.isNamedImportBindings=ee,e.isModuleOrEnumDeclaration=te,e.isDeclaration=ie,e.isDeclarationStatement=oe,e.isStatementButNotDeclaration=se,e.isStatement=ce,e.isModuleReference=ue,e.isJsxTagNameExpression=le,e.isJsxChild=_e,e.isJsxAttributeLike=de,e.isStringLiteralOrJsxExpression=pe,e.isJsxOpeningLikeElement=fe,e.isCaseOrDefaultClause=ge,e.isJSDocNode=me,e.isJSDocCommentContainingNode=ye,e.isJSDocTag=he;}(r||(r={}));!function(e){function t(t,n,r){return 265===t?new(m||(m=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(g||(g=e.objectAllocator.getIdentifierConstructor()))(t,n,r):e.isNodeKind(t)?new(p||(p=e.objectAllocator.getNodeConstructor()))(t,n,r):new(f||(f=e.objectAllocator.getTokenConstructor()))(t,n,r)}function n(e,t){if(t)return e(t)}function r(e,t){if(t)return e(t)}function a(e,t){if(t)for(var n=0,r=t;n107)}function G(t,n,r){return void 0===r&&(r=!0),L()===t?(r&&B(),!0):(n?O(n):O(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return L()===e&&(B(),!0)}function Y(e){if(L()===e)return Z()}function Q(e,t,n,r){return Y(e)||ie(e,t,n,r)}function Z(){var e=ne(L());return B(),ae(e)}function ee(){return 25===L()||(18===L()||1===L()||di.hasPrecedingLineBreak())}function te(){return ee()?(25===L()&&B(),!0):G(25)}function ne(t,n){return si++,n>=0||(n=di.getStartPos()),e.isNodeKind(t)?new Qa(t,n,n):71===t?new ei(t,n,n):new Za(t,n,n)}function re(e,t){var n=e||[];return t>=0||(t=M()),n.pos=t,n.end=t,n}function ae(e,t){return e.end=void 0===t?di.getStartPos():t,_i&&(e.flags|=_i),fi&&(fi=!1,e.flags|=32768),e}function ie(e,t,n,r){t?F(di.getStartPos(),0,n,r):O(n,r);var a=ne(e,di.getStartPos());return a.text="",ae(a)}function oe(t){t=e.escapeIdentifier(t);var n=ci.get(t);return void 0===n&&ci.set(t,n=t),n}function se(t,n){if(ui++,t){var r=ne(71);return 71!==L()&&(r.originalKeywordKind=L()),r.text=oe(di.getTokenValue()),B(),ae(r)}return ie(71,!1,n||e.Diagnostics.Identifier_expected)}function ce(e){return se(H(),e)}function ue(){return se(e.tokenIsIdentifierOrKeyword(L()))}function le(){return e.tokenIsIdentifierOrKeyword(L())||9===L()||8===L()}function _e(e){return 9===L()||8===L()?Qe(!0):e&&21===L()?ge():ue()}function de(){return _e(!0)}function pe(){return _e(!1)}function fe(){return 9===L()||8===L()||e.tokenIsIdentifierOrKeyword(L())}function ge(){var e=ne(144);return G(21),e.expression=b(tn),G(22),ae(e)}function me(e){return L()===e&&W(he)}function ye(){return B(),!di.hasPrecedingLineBreak()&&be()}function he(){return 76===L()?83===B():84===L()?(B(),79===L()?$(xe):39!==L()&&118!==L()&&17!==L()&&be()):79===L()?xe():115===L()?(B(),be()):ye()}function ve(){return e.isModifierKind(L())&&W(he)}function be(){return 21===L()||17===L()||39===L()||24===L()||le()}function xe(){return B(),75===L()||89===L()||109===L()||117===L()&&$(Ir)||120===L()&&$(Mr)}function ke(t,n){if(Fe(t))return!0;switch(t){case 0:case 1:case 3:return!(25===L()&&n)&&Kr();case 2:return 73===L()||79===L();case 4:return $(xt);case 5:return $(la)||25===L()&&!n;case 6:return 21===L()||le();case 12:return 21===L()||39===L()||24===L()||le();case 17:return le();case 9:return 21===L()||24===L()||le();case 7:return 17===L()?$(Se):n?H()&&!De():Qt()&&!De();case 8:return Xr();case 10:return 26===L()||24===L()||Xr();case 18:return H();case 11:case 15:return 26===L()||24===L()||Zt();case 16:return ut();case 19:case 20:return 26===L()||Rt();case 21:return Sa();case 22:return e.tokenIsIdentifierOrKeyword(L());case 13:return e.tokenIsIdentifierOrKeyword(L())||17===L();case 14:return!0;case 23:case 24:case 26:return yi.isJSDocType();case 25:return fe()}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function Se(){if(e.Debug.assert(17===L()),18===B()){var t=B();return 26===t||17===t||85===t||108===t}return!0}function Te(){return B(),H()}function Ce(){return B(),e.tokenIsIdentifierOrKeyword(L())}function De(){return(108===L()||85===L())&&$(Ee)}function Ee(){return B(),Zt()}function Ne(e){if(1===L())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===L();case 3:return 18===L()||73===L()||79===L();case 7:return 17===L()||85===L()||108===L();case 8:return Ae();case 18:return 29===L()||19===L()||17===L()||85===L()||108===L();case 11:return 20===L()||25===L();case 15:case 20:case 10:return 22===L();case 16:case 17:return 20===L()||22===L();case 19:return 26!==L();case 21:return 17===L()||18===L();case 13:return 29===L()||41===L();case 14:return 27===L()&&$(Ma);case 23:return 20===L()||56===L()||18===L();case 24:return 29===L()||18===L();case 26:return 22===L()||18===L();case 25:return 18===L()}}function Ae(){return!!ee()||(!!vn(L())||36===L())}function we(){for(var e=0;e<27;e++)if(li&1<=0&&(a.hasTrailingComma=!0),a.end=R(),li=r,a}function $e(){return re()}function We(e,t,n,r){if(G(n)){var a=Ve(e,t);return G(r),a}return $e()}function He(e,t){for(var n=ce(t);X(23);){var r=ne(143,n.pos);r.left=n,r.right=Ge(e),n=ae(r);}return n}function Ge(t){return di.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(L())&&$(Fr)?ie(71,!0,e.Diagnostics.Identifier_expected):t?ue():ce()}function Xe(){var t=ne(196);t.head=Ze(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=re();do{n.push(Ye());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=R(),t.templateSpans=n,ae(t)}function Ye(){var t=ne(205);t.expression=b(tn);var n;return 18===L()?(J(),n=et()):n=Q(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,ae(t)}function Qe(e){return tt(L(),e)}function Ze(){var t=tt(L(),!1);return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function et(){var t=tt(L(),!1);return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function tt(e,t){var n=ne(e),r=di.getTokenValue();return n.text=t?oe(r):r,di.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),di.isUnterminated()&&(n.isUnterminated=!0),8===n.kind&&(n.numericLiteralFlags=di.getNumericLiteralFlags()),B(),ae(n),n}function nt(){var t=ne(159);return t.typeName=He(!1,e.Diagnostics.Type_expected),di.hasPrecedingLineBreak()||27!==L()||(t.typeArguments=We(19,Gt,27,29)),ae(t)}function rt(e){B();var t=ne(158,e.pos);return t.parameterName=e,t.type=Gt(),ae(t)}function at(){var e=ne(169);return B(),ae(e)}function it(){var e=ne(162);return G(103),e.exprName=He(!0),ae(e)}function ot(){var e=ne(145);return e.name=ce(),X(85)&&(Rt()||!Zt()?e.constraint=Gt():e.expression=Pn()),X(58)&&(e.default=Gt()),ae(e)}function st(){if(27===L())return We(18,ot,27,29)}function ct(){if(X(56))return Gt()}function ut(){return 24===L()||Xr()||e.isModifierKind(L())||57===L()||99===L()}function lt(){var t=ne(146);return 99===L()?(t.name=se(!0),t.type=ct(),ae(t)):(t.decorators=_a(),t.modifiers=da(),t.dotDotDotToken=Y(24),t.name=Yr(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(L())&&B(),t.questionToken=Y(55),t.type=ct(),t.initializer=_t(!0),l(ae(t)))}function _t(e){return e?dt():sa()}function dt(){return nn(!0)}function pt(e,t,n,r,a){var i=36===e;a.typeParameters=st(),a.parameters=ft(t,n,r),i?(G(e),a.type=Wt()):X(e)&&(a.type=Wt());}function ft(e,t,n){if(G(19)){var r=N(),a=P();g(e),y(t);var i=Ve(16,lt);if(g(r),y(a),!G(20)&&n)return;return i}return n?void 0:$e()}function gt(){X(26)||te();}function mt(e){var t=ne(e);return 156===e&&G(94),pt(56,!1,!1,!1,t),gt(),l(ae(t))}function yt(){return 21===L()&&$(ht)}function ht(){if(B(),24===L()||22===L())return!0;if(e.isModifierKind(L())){if(B(),H())return!0}else{if(!H())return!1;B();}return 56===L()||26===L()||55===L()&&(B(),56===L()||26===L()||22===L())}function vt(e,t,n){var r=ne(157,e);return r.decorators=t,r.modifiers=n,r.parameters=We(16,lt,21,22),r.type=Yt(),gt(),ae(r)}function bt(e,t){var n=de(),r=Y(55);if(19===L()||27===L()){var a=ne(150,e);return a.modifiers=t,a.name=n,a.questionToken=r,pt(56,!1,!1,!1,a),gt(),l(ae(a))}var i=ne(148,e);return i.modifiers=t,i.name=n,i.questionToken=r,i.type=Yt(),58===L()&&(i.initializer=sa()),gt(),l(ae(i))}function xt(){if(19===L()||27===L())return!0;for(var t;e.isModifierKind(L());)t=!0,B();return 21===L()||(le()&&(t=!0,B()),!!t&&(19===L()||27===L()||55===L()||56===L()||26===L()||ee()))}function kt(){if(19===L()||27===L())return mt(155);if(94===L()&&$(St))return mt(156);var e=M(),t=da();return yt()?vt(e,void 0,t):bt(e,t)}function St(){return B(),19===L()||27===L()}function Tt(){var e=ne(163);return e.members=Ct(),ae(e)}function Ct(){var e;return G(17)?(e=Pe(4,kt),G(18)):e=$e(),e}function Dt(){return B(),131===L()&&B(),21===L()&&Te()&&92===B()}function Et(){var e=ne(145);return e.name=ce(),G(92),e.constraint=Gt(),ae(e)}function Nt(){var e=ne(172);return G(17),e.readonlyToken=Y(131),G(21),e.typeParameter=Et(),G(22),e.questionToken=Y(55),e.type=Yt(),te(),G(18),ae(e)}function At(){var e=ne(165);return e.elementTypes=We(20,Gt,21,22),ae(e)}function wt(){var e=ne(168);return G(19),e.type=Gt(),G(20),ae(e)}function Pt(e){var t=ne(e);return 161===e&&G(94),pt(36,!1,!1,!1,t),ae(t)}function Ot(){var e=Z();return 23===L()?void 0:e}function Ft(){var e=ne(173);return e.literal=On(),ae(e),e}function It(){return 8===B()}function Mt(){switch(L()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return W(Ot)||nt();case 9:case 8:case 101:case 86:return Ft();case 38:return $(It)?Ft():nt();case 105:case 95:return Z();case 99:var e=at();return 126!==L()||di.hasPrecedingLineBreak()?e:rt(e);case 103:return it();case 17:return $(Dt)?Nt():Tt();case 21:return At();case 19:return wt();default:return nt()}}function Rt(){switch(L()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:return!0;case 38:return $(It);case 19:return $(Lt);default:return H()}}function Lt(){return B(),20===L()||ut()||Rt()}function Bt(){for(var e=Mt();!di.hasPrecedingLineBreak()&&X(21);)if(Rt())(t=ne(171,e.pos)).objectType=e,t.indexType=Gt(),G(22),e=ae(t);else{var t=ne(164,e.pos);t.elementType=e,G(22),e=ae(t);}return e}function Kt(e){var t=ne(170);return G(e),t.operator=e,t.type=jt(),ae(t)}function jt(){switch(L()){case 127:return Kt(127)}return Bt()}function Jt(e,t,n){X(n);var r=t();if(L()===n){for(var a=re([r],r.pos);X(n);)a.push(t());a.end=R();var i=ne(e,r.pos);i.types=a,r=ae(i);}return r}function zt(){return Jt(167,jt,48)}function Ut(){return Jt(166,zt,49)}function qt(){return 27===L()||19===L()&&$($t)}function Vt(){if(e.isModifierKind(L())&&da(),H()||99===L())return B(),!0;if(21===L()||17===L()){var t=ri.length;return Yr(),t===ri.length}return!1}function $t(){if(B(),20===L()||24===L())return!0;if(Vt()){if(56===L()||26===L()||55===L()||58===L())return!0;if(20===L()&&(B(),36===L()))return!0}return!1}function Wt(){var e=H()&&W(Ht),t=Gt();if(e){var n=ne(158,e.pos);return n.parameterName=e,n.type=t,ae(n)}return t}function Ht(){var e=ce();if(126===L()&&!di.hasPrecedingLineBreak())return B(),e}function Gt(){return h(20480,Xt)}function Xt(){return qt()?Pt(160):94===L()?Pt(161):Ut()}function Yt(){return X(56)?Gt():void 0}function Qt(){switch(L()){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 $(St);default:return H()}}function Zt(){if(Qt())return!0;switch(L()){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!!xn()||H()}}function en(){return 17!==L()&&89!==L()&&75!==L()&&57!==L()&&Zt()}function tn(){var e=w();e&&m(!1);for(var t,n=rn();t=Y(26);)n=Sn(n,t,rn());return e&&m(!0),n}function nn(e){if(58===L()||!(di.hasPrecedingLineBreak()||e&&17===L())&&Zt())return G(58),rn()}function rn(){if(an())return sn();var t=un()||pn();if(t)return t;var n=hn(0);return 71===n.kind&&36===L()?cn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(K())?Sn(n,Z(),rn()):yn(n)}function an(){return 116===L()&&(!!N()||$(Rr))}function on$$1(){return B(),!di.hasPrecedingLineBreak()&&H()}function sn(){var e=ne(197);return B(),di.hasPrecedingLineBreak()||39!==L()&&!Zt()?ae(e):(e.asteriskToken=Y(39),e.expression=rn(),ae(e))}function cn(t,n){e.Debug.assert(36===L(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=ne(187,n.pos)).modifiers=n:r=ne(187,t.pos);var a=ne(146,t.pos);return a.name=t,ae(a),r.parameters=re([a],a.pos),r.parameters.end=a.end,r.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),r.body=mn(!!n),l(ae(r))}function un(){var t=ln();if(0!==t){var n=1===t?gn(!0):W(dn);if(n){var r=!!(256&e.getModifierFlags(n)),a=L();return n.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===a||17===a?mn(r):ce(),l(ae(n))}}}function ln(){return 19===L()||27===L()||120===L()?$(_n):36===L()?1:0}function _n(){if(120===L()){if(B(),di.hasPrecedingLineBreak())return 0;if(19!==L()&&27!==L())return 0}var t=L(),n=B();if(19===t){if(20===n)switch(B()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:H()?56===B()?1:2:0}return e.Debug.assert(27===t),H()?1===ni.languageVariant?$(function(){var e=B();if(85===e)switch(B()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function dn(){return gn(!1)}function pn(){if(120===L()&&1===$(fn)){var e=pa();return cn(hn(0),e)}}function fn(){if(120===L()){if(B(),di.hasPrecedingLineBreak()||36===L())return 0;var e=hn(0);if(!di.hasPrecedingLineBreak()&&71===e.kind&&36===L())return 1}return 0}function gn(t){var n=ne(187);if(n.modifiers=pa(),pt(56,!1,!!(256&e.getModifierFlags(n)),!t,n),n.parameters&&(t||36===L()||17===L()))return n}function mn(e){return 17===L()?gr(!1,e,!1):25!==L()&&89!==L()&&75!==L()&&Kr()&&!en()?gr(!1,e,!0):e?T(rn):C(rn)}function yn(t){var n=Y(55);if(!n)return t;var r=ne(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=h(pi,rn),r.colonToken=Q(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=rn(),ae(r)}function hn(e){return bn(e,Pn())}function vn(e){return 92===e||142===e}function bn(e,t){for(;;){K();var n=kn();if(!(40===L()?n>=e:n>e))break;if(92===L()&&A())break;if(118===L()){if(di.hasPrecedingLineBreak())break;B(),t=Tn(t,Gt());}else t=Sn(t,Z(),hn(n));}return t}function xn(){return(!A()||92!==L())&&kn()>0}function kn(){switch(L()){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 Sn(e,t,n){var r=ne(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,ae(r)}function Tn(e,t){var n=ne(202,e.pos);return n.expression=e,n.type=t,ae(n)}function Cn(){var e=ne(192);return e.operator=L(),B(),e.operand=On(),ae(e)}function Dn(){var e=ne(188);return B(),e.expression=On(),ae(e)}function En(){var e=ne(189);return B(),e.expression=On(),ae(e)}function Nn(){var e=ne(190);return B(),e.expression=On(),ae(e)}function An(){return 121===L()&&(!!P()||$(Rr))}function wn(){var e=ne(191);return B(),e.expression=On(),ae(e)}function Pn(){if(Fn()){var t=In();return 40===L()?bn(kn(),t):t}var n=L(),r=On();if(40===L()){var a=e.skipTrivia(oi,r.pos);184===r.kind?F(a,r.end-a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):F(a,r.end-a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n));}return r}function On(){switch(L()){case 37:case 38:case 52:case 51:return Cn();case 80:return Dn();case 103:return En();case 105:return Nn();case 27:return Xn();case 121:if(An())return wn();default:return In()}}function Fn(){switch(L()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==ni.languageVariant)return!1;default:return!0}}function In(){if(43===L()||44===L())return(n=ne(192)).operator=L(),B(),n.operand=Mn(),ae(n);if(1===ni.languageVariant&&27===L()&&$(Ce))return Kn(!0);var t=Mn();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===L()||44===L())&&!di.hasPrecedingLineBreak()){var n=ne(193,t.pos);return n.operand=t,n.operator=L(),B(),ae(n)}return t}function Mn(){var e;return 91===L()?(ni.flags|=524288,e=Z()):e=97===L()?Ln():Rn(),Qn(e)}function Rn(){return Yn(nr())}function Ln(){var t=Z();if(19===L()||23===L()||21===L())return t;var n=ne(179,t.pos);return n.expression=t,Q(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ge(!0),ae(n)}function Bn(e,t){return e.kind===t.kind&&(71===e.kind?e.text===t.text:99===e.kind||e.name.text===t.name.text&&Bn(e.expression,t.expression))}function Kn(t){var n,r=qn(t);if(251===r.kind){var a=ne(249,r.pos);a.openingElement=r,a.children=zn(a.openingElement.tagName),a.closingElement=Gn(t),Bn(a.openingElement.tagName,a.closingElement.tagName)||F(a.closingElement.pos,a.closingElement.end-a.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(oi,a.openingElement.tagName)),n=ae(a);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===L()){var i=W(function(){return Kn(!0)});if(i){O(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ne(194,n.pos);return o.end=i.end,o.left=n,o.right=i,o.operatorToken=ie(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function jn(){var e=ne(10,di.getStartPos());return e.containsOnlyWhiteSpaces=11===ii,ii=di.scanJsxToken(),ae(e)}function Jn(){switch(L()){case 10:case 11:return jn();case 17:return $n(!1);case 27:return Kn(!1)}e.Debug.fail("Unknown JSX child kind "+L());}function zn(t){var n=re(),r=li;for(li|=16384;;){if(ii=di.reScanJsxToken(),28===L())break;if(1===L()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(oi,t));break}if(7===L())break;var a=Jn();a&&n.push(a);}return n.end=di.getTokenPos(),li=r,n}function Un(){var e=ne(254);return e.properties=Pe(13,Wn),ae(e)}function qn(e){var t=di.getStartPos();G(27);var n,r=Vn(),a=Un();return 29===L()?(n=ne(251,t),U()):(G(41),e?G(29):(G(29,void 0,!1),U()),n=ne(250,t)),n.tagName=r,n.attributes=a,ae(n)}function Vn(){z();for(var e=99===L()?Z():ue();X(23);){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ae(t);}return e}function $n(e){var t=ne(256);return G(17),18!==L()&&(t.dotDotDotToken=Y(24),t.expression=rn()),e?G(18):(G(18,void 0,!1),U()),ae(t)}function Wn(){if(17===L())return Hn();z();var e=ne(253);if(e.name=ue(),58===L())switch(q()){case 9:e.initializer=Qe();break;default:e.initializer=$n(!0);}return ae(e)}function Hn(){var e=ne(255);return G(17),G(24),e.expression=tn(),G(18),ae(e)}function Gn(e){var t=ne(252);return G(28),t.tagName=Vn(),e?G(29):(G(29,void 0,!1),U()),ae(t)}function Xn(){var e=ne(184);return G(27),e.type=Gt(),G(29),e.expression=On(),ae(e)}function Yn(e){for(;;)if(Y(23)){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ae(t);}else if(51!==L()||di.hasPrecedingLineBreak())if(w()||!X(21)){if(13!==L()&&14!==L())return e;var n=ne(183,e.pos);n.tag=e,n.template=13===L()?Qe():Xe(),e=ae(n);}else{var r=ne(180,e.pos);if(r.expression=e,22!==L()&&(r.argumentExpression=b(tn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var a=r.argumentExpression;a.text=oe(a.text);}G(22),e=ae(r);}else{B();var i=ne(203,e.pos);i.expression=e,e=ae(i);}}function Qn(e){for(;;)if(e=Yn(e),27!==L()){if(19!==L())return e;var t=ne(181,e.pos);t.expression=e,t.arguments=Zn(),e=ae(t);}else{var n=W(er);if(!n)return e;(t=ne(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=Zn(),e=ae(t);}}function Zn(){G(19);var e=Ve(11,or);return G(20),e}function er(){if(X(27)){var e=Ve(19,Gt);if(G(29))return e&&tr()?e:void 0}}function tr(){switch(L()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function nr(){switch(L()){case 8:case 9:case 13:return Qe();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return rr();case 21:return sr();case 17:return lr();case 120:if(!$(Mr))break;return _r();case 75:return ga();case 89:return _r();case 94:return pr();case 41:case 63:if(12===j())return Qe();break;case 14:return Xe()}return ce(e.Diagnostics.Expression_expected)}function rr(){var e=ne(185);return G(19),e.expression=b(tn),G(20),ae(e)}function ar(){var e=ne(198);return G(24),e.expression=rn(),ae(e)}function ir(){return 24===L()?ar():26===L()?ne(200):rn()}function or(){return h(pi,ir)}function sr(){var e=ne(177);return G(21),di.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ve(15,ir),G(22),ae(e)}function cr(e,t,n){return me(125)?ca(153,e,t,n):me(135)?ca(154,e,t,n):void 0}function ur(){var e=di.getStartPos();if(Y(24)){var t=ne(263,e);return t.expression=rn(),l(ae(t))}var n=_a(),r=da(),a=cr(e,n,r);if(a)return a;var i=Y(39),o=H(),s=de(),c=Y(55);if(i||19===L()||27===L())return aa(e,n,r,i,s,c);if(o&&(26===L()||18===L()||58===L())){var u=ne(262,e);u.name=s,u.questionToken=c;var _=Y(58);return _&&(u.equalsToken=_,u.objectAssignmentInitializer=b(rn)),l(ae(u))}var d=ne(261,e);return d.modifiers=r,d.name=s,d.questionToken=c,G(56),d.initializer=b(rn),l(ae(d))}function lr(){var e=ne(178);return G(17),di.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ve(12,ur,!0),G(18),ae(e)}function _r(){var t=w();t&&m(!1);var n=ne(186);n.modifiers=da(),G(89),n.asteriskToken=Y(39);var r=!!n.asteriskToken,a=!!(256&e.getModifierFlags(n));return n.name=r&&a?D(dr):r?k(dr):a?T(dr):dr(),pt(56,r,a,!1,n),n.body=gr(r,a,!1),t&&m(!0),l(ae(n))}function dr(){return H()?ce():void 0}function pr(){var e=di.getStartPos();if(G(94),X(23)){var t=ne(204,e);return t.keywordToken=94,t.name=ue(),ae(t)}var n=ne(182,e);return n.expression=Rn(),n.typeArguments=W(er),(n.typeArguments||19===L())&&(n.arguments=Zn()),ae(n)}function fr(e,t){var n=ne(207);return G(17,t)||e?(di.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Pe(1,zr),G(18)):n.statements=$e(),ae(n)}function gr(e,t,n,r){var a=N();g(e);var i=P();y(t);var o=w();o&&m(!1);var s=fr(n,r);return o&&m(!0),g(a),y(i),s}function mr(){var e=ne(209);return G(25),ae(e)}function yr(){var e=ne(211);return G(90),G(19),e.expression=b(tn),G(20),e.thenStatement=zr(),e.elseStatement=X(82)?zr():void 0,ae(e)}function hr(){var e=ne(212);return G(81),e.statement=zr(),G(106),G(19),e.expression=b(tn),G(20),X(25),ae(e)}function vr(){var e=ne(213);return G(106),G(19),e.expression=b(tn),G(20),e.statement=zr(),ae(e)}function br(){var e=M();G(88);var t=Y(121);G(19);var n=void 0;25!==L()&&(n=104===L()||110===L()||76===L()?Zr(!0):x(tn));var r;if(t?G(142):X(142)){var a=ne(216,e);a.awaitModifier=t,a.initializer=n,a.expression=b(rn),G(20),r=a;}else if(X(92)){var i=ne(215,e);i.initializer=n,i.expression=b(tn),G(20),r=i;}else{var o=ne(214,e);o.initializer=n,G(25),25!==L()&&20!==L()&&(o.condition=b(tn)),G(25),20!==L()&&(o.incrementor=b(tn)),G(20),r=o;}return r.statement=zr(),ae(r)}function xr(e){var t=ne(e);return G(218===e?72:77),ee()||(t.label=ce()),te(),ae(t)}function kr(){var e=ne(219);return G(96),ee()||(e.expression=b(tn)),te(),ae(e)}function Sr(){var e=ne(220);return G(107),G(19),e.expression=b(tn),G(20),e.statement=zr(),ae(e)}function Tr(){var e=ne(257);return G(73),e.expression=b(tn),G(56),e.statements=Pe(3,zr),ae(e)}function Cr(){var e=ne(258);return G(79),G(56),e.statements=Pe(3,zr),ae(e)}function Dr(){return 73===L()?Tr():Cr()}function Er(){var e=ne(221);G(98),G(19),e.expression=b(tn),G(20);var t=ne(235,di.getStartPos());return G(17),t.clauses=Pe(2,Dr),G(18),e.caseBlock=ae(t),ae(e)}function Nr(){var e=ne(223);return G(100),e.expression=di.hasPrecedingLineBreak()?void 0:b(tn),te(),ae(e)}function Ar(){var e=ne(224);return G(102),e.tryBlock=fr(!1),e.catchClause=74===L()?wr():void 0,e.catchClause&&87!==L()||(G(87),e.finallyBlock=fr(!1)),ae(e)}function wr(){var e=ne(260);return G(74),G(19)&&(e.variableDeclaration=Qr()),G(20),e.block=fr(!1),ae(e)}function Pr(){var e=ne(225);return G(78),te(),ae(e)}function Or(){var e=di.getStartPos(),t=b(tn);if(71===t.kind&&X(56)){var n=ne(222,e);return n.label=t,n.statement=zr(),l(ae(n))}var r=ne(210,e);return r.expression=t,te(),l(ae(r))}function Fr(){return B(),e.tokenIsIdentifierOrKeyword(L())&&!di.hasPrecedingLineBreak()}function Ir(){return B(),75===L()&&!di.hasPrecedingLineBreak()}function Mr(){return B(),89===L()&&!di.hasPrecedingLineBreak()}function Rr(){return B(),(e.tokenIsIdentifierOrKeyword(L())||8===L()||9===L())&&!di.hasPrecedingLineBreak()}function Lr(){for(;;)switch(L()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return on$$1();case 128:case 129:return qr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(B(),di.hasPrecedingLineBreak())return!1;continue;case 141:return B(),17===L()||71===L()||84===L();case 91:return B(),9===L()||39===L()||17===L()||e.tokenIsIdentifierOrKeyword(L());case 84:if(B(),58===L()||39===L()||17===L()||79===L()||118===L())return!0;continue;case 115:B();continue;default:return!1}}function Br(){return $(Lr)}function Kr(){switch(L()){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 Br()||$(St);case 76:case 84:return Br();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Br()||!$(Fr);default:return Zt()}}function jr(){return B(),H()||17===L()||21===L()}function Jr(){return $(jr)}function zr(){switch(L()){case 25:return mr();case 17:return fr(!1);case 104:return ta(di.getStartPos(),void 0,void 0);case 110:if(Jr())return ta(di.getStartPos(),void 0,void 0);break;case 89:return na(di.getStartPos(),void 0,void 0);case 75:return ma(di.getStartPos(),void 0,void 0);case 90:return yr();case 81:return hr();case 106:return vr();case 88:return br();case 77:return xr(217);case 72:return xr(218);case 96:return kr();case 107:return Sr();case 98:return Er();case 100:return Nr();case 102:case 74:case 87:return Ar();case 78:return Pr();case 57:return Ur();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Br())return Ur()}return Or()}function Ur(){var t=M(),n=_a(),r=da();switch(L()){case 104:case 110:case 76:return ta(t,n,r);case 89:return na(t,n,r);case 75:return ma(t,n,r);case 109:return Ca(t,n,r);case 138:return Da(t,n,r);case 83:return Na(t,n,r);case 141:case 128:case 129:return Oa(t,n,r);case 91:return La(t,n,r);case 84:switch(B(),L()){case 79:case 58:return Ga(t,n,r);case 118:return Ra(t,n,r);default:return Ha(t,n,r)}default:if(n||r){var a=ie(247,!0,e.Diagnostics.Declaration_expected);return a.pos=t,a.decorators=n,a.modifiers=r,ae(a)}}}function qr(){return B(),!di.hasPrecedingLineBreak()&&(H()||9===L())}function Vr(e,t,n){if(17===L()||!ee())return gr(e,t,!1,n);te();}function $r(){if(26===L())return ne(200);var e=ne(176);return e.dotDotDotToken=Y(24),e.name=Yr(),e.initializer=_t(!1),ae(e)}function Wr(){var e=ne(176);e.dotDotDotToken=Y(24);var t=H(),n=de();return t&&56!==L()?e.name=n:(G(56),e.propertyName=n,e.name=Yr()),e.initializer=_t(!1),ae(e)}function Hr(){var e=ne(174);return G(17),e.elements=Ve(9,Wr),G(18),ae(e)}function Gr(){var e=ne(175);return G(21),e.elements=Ve(10,$r),G(22),ae(e)}function Xr(){return 17===L()||21===L()||H()}function Yr(){return 21===L()?Gr():17===L()?Hr():ce()}function Qr(){var e=ne(226);return e.name=Yr(),e.type=Yt(),vn(L())||(e.initializer=nn(!1)),ae(e)}function Zr(t){var n=ne(227);switch(L()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(B(),142===L()&&$(ea))n.declarations=$e();else{var r=A();f(t),n.declarations=Ve(8,Qr),f(r);}return ae(n)}function ea(){return Te()&&20===B()}function ta(e,t,n){var r=ne(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=Zr(!1),te(),l(ae(r))}function na(t,n,r){var a=ne(228,t);a.decorators=n,a.modifiers=r,G(89),a.asteriskToken=Y(39),a.name=e.hasModifier(a,512)?dr():ce();var i=!!a.asteriskToken,o=e.hasModifier(a,256);return pt(56,i,o,!1,a),a.body=Vr(i,o,e.Diagnostics.or_expected),l(ae(a))}function ra(t,n,r){var a=ne(152,t);return a.decorators=n,a.modifiers=r,G(123),pt(56,!1,!1,!1,a),a.body=Vr(!1,!1,e.Diagnostics.or_expected),l(ae(a))}function aa(t,n,r,a,i,o,s){var c=ne(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=a,c.name=i,c.questionToken=o;var u=!!a,_=e.hasModifier(c,256);return pt(56,u,_,!1,c),c.body=Vr(u,_,s),l(ae(c))}function ia(t,n,r,a,i){var o=ne(149,t);return o.decorators=n,o.modifiers=r,o.name=a,o.questionToken=i,o.type=Yt(),o.initializer=e.hasModifier(o,32)?b(sa):h(6144,sa),te(),l(ae(o))}function oa(t,n,r){var a=Y(39),i=de(),o=Y(55);return a||19===L()||27===L()?aa(t,n,r,a,i,o,e.Diagnostics.or_expected):ia(t,n,r,i,o)}function sa(){return nn(!1)}function ca(e,t,n,r){var a=ne(e,t);return a.decorators=n,a.modifiers=r,a.name=de(),pt(56,!1,!1,!1,a),a.body=Vr(!1,!1),l(ae(a))}function ua(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function la(){var t;if(57===L())return!0;for(;e.isModifierKind(L());){if(t=L(),ua(t))return!0;B();}if(39===L())return!0;if(le()&&(t=L(),B()),21===L())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(L()){case 19:case 27:case 56:case 58:case 55:return!0;default:return ee()}}return!1}function _a(){for(var e;;){var t=M();if(!X(57))break;var n=ne(147,t);n.expression=S(Mn),ae(n),e?e.push(n):e=re([n],t);}return e&&(e.end=R()),e}function da(e){for(var t;;){var n=di.getStartPos(),r=L();if(76===L()&&e){if(!W(ye))break}else if(!ve())break;var a=ae(ne(r,n));t?t.push(a):t=re([a],n);}return t&&(t.end=di.getStartPos()),t}function pa(){var e;if(120===L()){var t=di.getStartPos(),n=L();B(),(e=re([ae(ne(n,t))],t)).end=di.getStartPos();}return e}function fa(){if(25===L()){var t=ne(206);return B(),ae(t)}var n=M(),r=_a(),a=da(!0),i=cr(n,r,a);return i||(123===L()?ra(n,r,a):yt()?vt(n,r,a):e.tokenIsIdentifierOrKeyword(L())||9===L()||8===L()||39===L()||21===L()?oa(n,r,a):r||a?ia(n,r,a,ie(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function ga(){return ya(di.getStartPos(),void 0,void 0,199)}function ma(e,t,n){return ya(e,t,n,229)}function ya(e,t,n,r){var a=ne(r,e);return a.decorators=t,a.modifiers=n,G(75),a.name=ha(),a.typeParameters=st(),a.heritageClauses=ba(),G(17)?(a.members=Ta(),G(18)):a.members=$e(),l(ae(a))}function ha(){return H()&&!va()?ce():void 0}function va(){return 108===L()&&$(Ce)}function ba(){if(Sa())return Pe(21,xa)}function xa(){var e=L();if(85===e||108===e){var t=ne(259);return t.token=e,B(),t.types=Ve(7,ka),ae(t)}}function ka(){var e=ne(201);return e.expression=Mn(),27===L()&&(e.typeArguments=We(19,Gt,27,29)),ae(e)}function Sa(){return 85===L()||108===L()}function Ta(){return Pe(5,fa)}function Ca(e,t,n){var r=ne(230,e);return r.decorators=t,r.modifiers=n,G(109),r.name=ce(),r.typeParameters=st(),r.heritageClauses=ba(),r.members=Ct(),l(ae(r))}function Da(e,t,n){var r=ne(231,e);return r.decorators=t,r.modifiers=n,G(138),r.name=ce(),r.typeParameters=st(),G(58),r.type=Gt(),te(),l(ae(r))}function Ea(){var e=ne(264,di.getStartPos());return e.name=de(),e.initializer=b(sa),l(ae(e))}function Na(e,t,n){var r=ne(232,e);return r.decorators=t,r.modifiers=n,G(83),r.name=ce(),G(17)?(r.members=Ve(6,Ea),G(18)):r.members=$e(),l(ae(r))}function Aa(){var e=ne(234,di.getStartPos());return G(17)?(e.statements=Pe(1,zr),G(18)):e.statements=$e(),ae(e)}function wa(e,t,n,r){var a=ne(233,e),i=16&r;return a.decorators=t,a.modifiers=n,a.flags|=r,a.name=ce(),a.body=X(23)?wa(M(),void 0,void 0,4|i):Aa(),l(ae(a))}function Pa(e,t,n){var r=ne(233,e);return r.decorators=t,r.modifiers=n,141===L()?(r.name=ce(),r.flags|=512):r.name=Qe(!0),17===L()?r.body=Aa():te(),ae(r)}function Oa(e,t,n){var r=0;if(141===L())return Pa(e,t,n);if(X(129))r|=16;else if(G(128),9===L())return Pa(e,t,n);return wa(e,t,n,r)}function Fa(){return 132===L()&&$(Ia)}function Ia(){return 19===B()}function Ma(){return 41===B()}function Ra(e,t,n){var r=ne(236,e);return r.decorators=t,r.modifiers=n,G(118),G(129),r.name=ce(),te(),ae(r)}function La(e,t,n){G(91);var r,a=di.getStartPos();if(H()&&(r=ce(),26!==L()&&140!==L()))return Ba(e,t,n,r);var i=ne(238,e);return i.decorators=t,i.modifiers=n,(r||39===L()||17===L())&&(i.importClause=Ka(r,a),G(140)),i.moduleSpecifier=za(),te(),ae(i)}function Ba(e,t,n,r){var a=ne(237,e);return a.decorators=t,a.modifiers=n,a.name=r,G(58),a.moduleReference=ja(),te(),l(ae(a))}function Ka(e,t){var n=ne(239,t);return e&&(n.name=e),n.name&&!X(26)||(n.namedBindings=39===L()?Ua():qa(241)),ae(n)}function ja(){return Fa()?Ja():He(!1)}function Ja(){var e=ne(248);return G(132),G(19),e.expression=za(),G(20),ae(e)}function za(){if(9===L()){var e=Qe();return oe(e.text),e}return tn()}function Ua(){var e=ne(240);return G(39),G(118),e.name=ce(),ae(e)}function qa(e){var t=ne(e);return t.elements=We(22,241===e?$a:Va,17,18),ae(t)}function Va(){return Wa(246)}function $a(){return Wa(242)}function Wa(t){var n=ne(t),r=e.isKeyword(L())&&!H(),a=di.getTokenPos(),i=di.getTextPos(),o=ue();return 118===L()?(n.propertyName=o,G(118),r=e.isKeyword(L())&&!H(),a=di.getTokenPos(),i=di.getTextPos(),n.name=ue()):n.name=o,242===t&&r&&F(a,i-a,e.Diagnostics.Identifier_expected),ae(n)}function Ha(e,t,n){var r=ne(244,e);return r.decorators=t,r.modifiers=n,X(39)?(G(140),r.moduleSpecifier=za()):(r.exportClause=qa(245),(140===L()||9===L()&&!di.hasPrecedingLineBreak())&&(G(140),r.moduleSpecifier=za())),te(),ae(r)}function Ga(e,t,n){var r=ne(243,e);return r.decorators=t,r.modifiers=n,X(58)?r.isExportEquals=!0:G(79),r.expression=rn(),te(),ae(r)}function Xa(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,oi),a=[],i=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=oi.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?i.push(d):a.push(d)),p&&ri.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*".length-n,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function b(e){var t=ne(143,e.pos);return t.left=e,t.right=ue(),ae(t)}function x(){var e=ne(275);return e.literal=Tt(),ae(e)}function k(){var e=ne(274);return B(),e.type=o(),ae(e)}function S(){var e=ne(272);return B(),e.types=Ve(26,o),T(e.types),G(22),ae(e)}function T(t){0===ri.length&&t.hasTrailingComma&&F(t.end-",".length,",".length,e.Diagnostics.Trailing_comma_not_allowed);}function C(){var e=ne(271);return B(),e.types=D(o()),G(20),ae(e)}function D(t){e.Debug.assert(!!t);for(var n=re([t],t.pos);X(49);)n.push(o());return n.end=di.getStartPos(),n}function E(){var e=ne(268);return B(),ae(e)}function N(){var e=ne(294);return e.literal=Ft(),ae(e)}function A(){var e=di.getStartPos();if(B(),26===L()||18===L()||20===L()||29===L()||58===L()||49===L())return ae(t=ne(269,e));var t=ne(273,e);return t.type=o(),ae(t)}function w(e,t,n){s(e,5,void 0,1),ni={languageVariant:0,text:e};var r=I(t,n),a=ri;return c(),r?{jsDoc:r,diagnostics:a}:void 0}function P(t,n,r){var a=ii,i=ri.length,o=fi,s=I(n,r);return s&&(s.parent=t),e.isInJavaScriptFile(t)&&(ni.jsDocDiagnostics||(ni.jsDocDiagnostics=[]),(c=ni.jsDocDiagnostics).push.apply(c,ri)),ii=a,ri.length=i,fi=o,s;var c;}function I(t,n){function r(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift();}function i(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop();}function o(){var e=ne(283,t);return e.tags=E,e.comment=A.length?A.join(""):void 0,ae(e,D)}function s(){for(;5===L()||4===L();)k();}function c(t){e.Debug.assert(57===L());var n=ne(57,di.getTokenPos());n.end=di.getTextPos(),k();var r=S();if(s(),r){var a;if(r)switch(r.text){case"augments":a=y(n,r);break;case"class":case"constructor":a=h(n,r);break;case"arg":case"argument":case"param":a=f(n,r,!0);break;case"return":case"returns":a=g(n,r);break;case"template":a=x(n,r);break;case"type":a=m(n,r);break;case"typedef":a=v(n,r);break;default:a=l(n,r);}else a=l(n,r);a&&_(a,u(t+a.end-a.pos));}}function u(e){function t(t){n||(n=e),a.push(t),e+=t.length;}for(var n,a=[],o=0;57!==L()&&1!==L();){switch(L()){case 4:o>=1&&(o=0,a.push(di.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(di.getTokenText());else{var s=di.getTokenText();void 0!==n&&e+s.length>n&&a.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=di.getTokenText().length;break}default:o=2,t(di.getTokenText());}if(57===L())break;k();}return r(a),i(a),a}function l(e,t){var n=ne(284,e.pos);return n.atToken=e,n.tagName=t,ae(n)}function _(e,t){e.comment=t.join(""),E?E.push(e):E=re([e],e.pos),E.end=e.end;}function d(){return W(function(){if(s(),17===L())return a()})}function p(){var e=X(21),t=S(!0);return e&&(s(),Y(58)&&tn(),G(22)),{name:t,isBracketed:e}}function f(e,t,n){var r=d();s();var a=p(),i=a.name,o=a.isBracketed;s();var c,u;r?u=i:(c=i,r=d());var l=n?ne(287,e.pos):ne(292,e.pos);return l.atToken=e,l.tagName=t,l.preParameterName=c,l.typeExpression=r,l.postParameterName=u,l.name=u||c,l.isBracketed=o,ae(l)}function g(t,n){e.forEach(E,function(e){return 288===e.kind})&&F(n.pos,di.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.text);var r=ne(288,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ae(r)}function m(t,n){e.forEach(E,function(e){return 289===e.kind})&&F(n.pos,di.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.text);var r=ne(289,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ae(r)}function y(e,t){var n=d(),r=ne(285,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,ae(r)}function h(e,t){var n=ne(286,e.pos);return n.atToken=e,n.tagName=t,ae(n)}function v(e,t){function n(){for(var e=ne(293,di.getStartPos()),t=di.getStartPos(),n=!0,r=!1,a=!1;1!==L()&&!a;)switch(k(),L()){case 57:n&&((a=!b(e))||(t=di.getStartPos())),r=!1;break;case 4:t=di.getStartPos()-1,n=!0,r=!1;break;case 39:r&&(n=!1),r=!0;break;case 71:n=!1;}return di.setTextPos(t),ae(e)}function r(e){var t=di.getTokenPos(),n=S();if(n&&X(23)){var a=ne(233,t);return a.flags|=e,a.name=n,a.body=r(4),ae(a)}return n&&4&e&&(n.isInJSDocNamespace=!0),n}var a=d();s();var i=ne(291,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=r(0),i.fullName)for(var o=i.fullName;;){if(71===o.kind||!o.body){i.name=71===o.kind?o:o.name;break}o=o.body;}if(i.typeExpression=a,s(),a){if(277===a.type.kind){var c=a.type;if(71===c.name.kind){var u=c.name;"Object"!==u.text&&"object"!==u.text||(i.jsDocTypeLiteral=n());}}i.jsDocTypeLiteral||(i.jsDocTypeLiteral=a.type);}else i.jsDocTypeLiteral=n();return ae(i)}function b(t){e.Debug.assert(57===L());var n=ne(57,di.getStartPos());n.end=di.getTextPos(),k();var r=S();if(s(),!r)return!1;switch(r.text){case"type":return!t.jsDocTypeTag&&(t.jsDocTypeTag=m(n,r),!0);case"prop":case"property":var a=f(n,r,!1);return!!a&&(t.jsDocPropertyTags||(t.jsDocPropertyTags=[]),t.jsDocPropertyTags.push(a),!0)}return!1}function x(t,n){e.forEach(E,function(e){return 290===e.kind})&&F(n.pos,di.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.text);for(var r=re();;){var a=S();if(s(),!a)return void F(di.getStartPos(),0,e.Diagnostics.Identifier_expected);var i=ne(145,a.pos);if(i.name=a,ae(i),r.push(i),26!==L())break;k(),s();}var o=ne(290,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,ae(o),r.end=o.end,o}function k(){return ii=di.scanJSDocToken()}function S(t){return void 0===t&&(t=!1),T(e.tokenIsIdentifierOrKeyword(L()),t)}function T(t,n){if(!t)return n?ie(71,!0,e.Diagnostics.Identifier_expected):void O(e.Diagnostics.Identifier_expected);var r=di.getTokenPos(),a=di.getTextPos(),i=ne(71,r);return i.text=C.substring(r,a),ae(i,a),k(),i}var C=oi;t=t||0;var D=void 0===n?C.length:t+n;n=D-t,e.Debug.assert(t>=0),e.Debug.assert(t<=D),e.Debug.assert(D<=C.length);var E,N,A=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(C,t)?(di.scanRange(t+3,n-5,function(){function e(e){s||(s=u),A.push(e),u+=e.length;}var n=!0,a=1,s=void 0,u=t-Math.max(C.lastIndexOf("\n",t),0)+4;for(k();5===L();)k();for(4===L()&&(a=0,u=0,k());1!==L();){switch(L()){case 57:0===a||1===a?(i(A),c(u),a=0,n=!1,s=void 0,u++):e(di.getTokenText());break;case 4:A.push(di.getTokenText()),a=0,u=0;break;case 39:var l=di.getTokenText();1===a||2===a?(a=2,e(l)):(a=1,u+=l.length);break;case 71:e(di.getTokenText()),a=2;break;case 5:var _=di.getTokenText();2===a?A.push(_):void 0!==s&&u+_.length>s&&A.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:a=2,e(di.getTokenText());}n?k():n=!0;}r(A),i(A),N=o();}),N):N}t.isJSDocType=n,t.parseJSDocTypeExpressionForTests=r,t.parseJSDocTypeExpression=a,t.parseIsolatedJSDocComment=w,t.parseJSDocComment=P;var M;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(M||(M={})),t.parseJSDocCommentWorker=I;}(yi=t.JSDocParser||(t.JSDocParser={}));}(y||(y={}));var h;!function(t){function n(t,n,r,a){if(a=a||e.Debug.shouldAssert(2),_(t,n,r,a),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return y.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var i=t;e.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,r);_(t,n,l,a),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;return c(i,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,n,a),y.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=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,a),t.end>=r?t.end+=i:t.end=Math.min(t.end,a),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end;}),e.Debug.assert(r<=t.end);}}function c(t,n,a,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)r(t,!1,u,l,_,d);else{var g=t.end;if(g>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,p,f),void s(t,d);e.Debug.assert(ga)r(t,!0,u,l,_,d);else{var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,f=t;s0&&a<=1;a++){var i=l(t,r);e.Debug.assert(i.pos<=r);var o=i.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,a){var i=t.text;if(r&&(e.Debug.assert(i.length-r.span.length+r.newLength===n.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(r.span),i.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function O(t,n){n.parent=t,e.forEachChild(n,function(e){return O(n,e)});}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var F;!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";}(F||(F={}));var I=function(){function n(t,n){Nt=t,At=n,wt=e.getEmitScriptTarget(At),$t=a(Nt,n),Ht=e.createMap(),Xt=0,Gt=Nt.isDeclarationFile,Wt=e.objectAllocator.getSymbolConstructor(),Nt.locals||(We(Nt),Nt.symbolCount=Xt,Nt.classifiableNames=Ht),Nt=void 0,At=void 0,wt=void 0,Pt=void 0,Ot=void 0,Ft=void 0,It=void 0,Mt=!1,Rt=void 0,Lt=void 0,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,Ut=void 0,qt=!1,Vt=0,Zt=0;}function a(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function i(e,t){return Xt++,new Wt(e,t)}function o(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createMap()),6240&r&&!t.members&&(t.members=e.createMap()),107455&r){var a=t.valueDeclaration;(!a||a.kind!==n.kind&&233===a.kind)&&(t.valueDeclaration=n);}}function s(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t))return e.isGlobalScopeAugmentation(t)?"__global":'"'+n.text+'"';if(144===n.kind){var r=n.expression;return e.isStringOrNumericLiteral(r)?r.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(r)),e.getPropertyNameForKnownSymbolName(r.name.text))}return n.text}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 279:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(279===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 291:var i=t.parent&&t.parent.parent,o=void 0;if(i&&208===i.kind&&i.declarationList.declarations.length>0){var s=i.declarationList.declarations[0].name;71===s.kind&&(o=s.text);}return o}}function c(t){return t.name?e.declarationNameToString(t.name):s(t)}function u(t,n,r,a,u){e.Debug.assert(!e.hasDynamicName(r));var l,_=e.hasModifier(r,512),d=_&&n?"default":s(r);if(void 0===d)l=i(0,"__missing");else if((l=t.get(d))||t.set(d,l=i(0,d)),d&&788448&a&&Ht.set(d,d),l.flags&u)if(l.isReplaceableByMethod)t.set(d,l=i(0,d));else{r.name&&(r.name.parent=r);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;l.declarations&&l.declarations.length&&(_?p=e.Diagnostics.A_module_cannot_have_multiple_default_exports:l.declarations&&l.declarations.length&&(_||243===r.kind&&!r.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(l.declarations,function(t){Nt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,p,c(t)));}),Nt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,p,c(r))),l=i(0,d);}return o(l,r,a),l.parent=n,l}function l(t,n,r){var a=1&e.getCombinedModifierFlags(t);if(8388608&n)return 246===t.kind||237===t.kind&&a?u(Ot.symbol.exports,Ot.symbol,t,n,r):u(Ot.locals,void 0,t,n,r);291===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var i=291===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(a||32&Ot.flags)||i){var o=(107455&n?1048576:0)|(793064&n?2097152:0)|(1920&n?4194304:0),s=u(Ot.locals,void 0,t,o,r);return s.exportSymbol=u(Ot.symbol.exports,Ot.symbol,t,n,r),t.localSymbol=s,s}return u(Ot.locals,void 0,t,n,r)}function _(t,n){var r=Ot,a=Ft;if(1&n?(Ot=Ft=t,32&n&&(Ot.locals=e.createMap()),fe(Ot)):2&n&&((Ft=t).locals=void 0),4&n){var i=Rt,o=Lt,s=Bt,c=Kt,u=Ut,l=qt,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_?Kt=k():(Rt={flags:2},144&n&&(Rt.container=t),Kt=void 0),Lt=void 0,Bt=void 0,Ut=void 0,qt=!1,d(t),t.flags&=-1409,!(1&Rt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,qt&&(t.flags|=256)),265===t.kind&&(t.flags|=Vt),_?(C(Kt,Rt),Rt=w(Kt)):Rt=i,Lt=o,Bt=s,Kt=c,Ut=u,qt=l;}else 64&n?(Mt=!1,d(t),t.flags=Mt?64|t.flags:-65&t.flags):d(t);Ot=r,Ft=a;}function d(e){if(Gt)g(e);else if(536870912&e.transformFlags)Gt=!0,g(e),Gt=!1,Zt|=e.transformFlags&~P(e.kind);else{var t=Zt;Zt=0,g(e),Zt=t|r(e,Zt);}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,We);else{var n=Zt;Zt=0;for(var r=0,a=0,i=t;a=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Nt.parseDiagnostics.length||Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,Pe(t),e.declarationNameToString(t))));}function Pe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Nt.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Oe(t){$t&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left);}function Fe(e){$t&&e.variableDeclaration&&Re(e,e.variableDeclaration.name);}function Ie(t){if($t&&71===t.expression.kind){var n=e.getErrorSpanForNode(Nt,t.expression);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Me(e){return 71===e.kind&&("eval"===e.text||"arguments"===e.text)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Me(r)){var a=e.getErrorSpanForNode(Nt,n);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,a.start,a.length,Le(t),r.text));}}}function Le(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Nt.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){$t&&Re(e,e.name);}function Ke(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Nt.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function je(t){if(wt<2&&265!==Ft.kind&&233!==Ft.kind&&!e.isFunctionLike(Ft)){var n=e.getErrorSpanForNode(Nt,t);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,n.start,n.length,Ke(t)));}}function Je(t){$t&&4&t.numericLiteralFlags&&Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function ze(e){$t&&Re(e,e.operand);}function Ue(e){$t&&(43!==e.operator&&44!==e.operator||Re(e,e.operand));}function qe(t){$t&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function Ve(t,n,r,a,i){var o=e.getSpanOfTokenAtPosition(Nt,t.pos);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,o.start,o.length,n,r,a,i));}function $e(t){return"__"+e.indexOf(t.parent.parameters,t)}function We(t){if(t){t.parent=Pt;var n=$t;if(e.isInJavaScriptFile(t)&&He(t),Ye(t),t.kind>142){var a=Pt;Pt=t;var i=pe(t);0===i?d(t):_(t,i),Pt=a;}else Gt||0!=(536870912&t.transformFlags)||(Zt|=r(t,0));$t=n;}}function He(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function x(t,n,r){function a(t,n){return function(r){return tb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,i){var o=t.get(i);o?e.forEach(o.declarations,a(i,r)):t.set(i,n);});}function k(e){if(134217728&e.flags)return e;var t=n(e);return qv[t]||(qv[t]={})}function S(e){var n=t(e);return Vv[n]||(Vv[n]={flags:0})}function T(e){return 32768&e.flags?e.objectFlags:0}function C(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function D(t,n,r){if(r){var a=t.get(n);if(a){if(e.Debug.assert(0==(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&r)return a;if(8388608&a.flags){var i=ne(a);if(i===kh||i.flags&r)return a}}}}function E(t,n){var r=t.parent,a=t.parent.parent,i=D(r.locals,n,107455),o=D(a.symbol.members,n,107455);if(i&&o)return[i,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function N(t,n){function r(t,n,r){return!!e.findAncestor(t,function(a){if(a===r)return"quit";if(e.isFunctionLike(a))return!0;if(a.parent&&149===a.parent.kind&&a.parent.initializer===a)if(32&e.getModifierFlags(a.parent)){if(151===n.kind)return!0}else if(!(149===n.kind&&!(32&e.getModifierFlags(n)))||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var i=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(i!==o){if(ih&&(i.externalModuleIndicator||o.externalModuleIndicator)||!rh.outFile&&!rh.out||Ks(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var s=a.getSourceFiles();return e.indexOf(s,i)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ge(t,n,r){var a=e.getSingleLineStringWriter();nt().buildTypePredicateDisplay(t,a,n,r);var i=a.string();return e.releaseStringWriter(a),i}function Xe(e){for(var t=[],n=0,r=0;r0&&(26!==t&&Ve(a),qe(a,t),Ve(a)),c(e[n],26===t?0:128);}function l(e,t,n,o,s){if((32&e.flags||!we(e.name))&&r(e,a,i,793064,0,s),n0&&(qe(t,26),Ve(t)),n(e[r]);}function d(e,t,n,r){if(e&&e.length){qe(n,27);for(var i=512,o=0;o0&&(qe(n,26),Ve(n),i=0),a(t(e[o]),n,r,i);qe(n,29);}}function p(e,t,n,r,a,i){qe(n,19),e&&s(e,n,r,a,i);for(var o=0;o0||e)&&(qe(n,26),Ve(n)),s(t[o],n,r,a,i);qe(n,20);}function g(t,n,r,i,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):Ue(n,99),Ve(n),Ue(n,126),Ve(n),a(t.type,n,r,i,o);}function m(e,t,n,r,i){var o=Lr(e);4096&r&&dt(o)||(16&r?(Ve(t),qe(t,36)):qe(t,56),Ve(t),e.typePredicate?g(e.typePredicate,t,n,r,i):a(o,t,n,r,i));}function y(e,t,n,r,a,i){1===a&&(Ue(t,94),Ve(t)),e.target&&64&r?d(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,i),p(e.thisParameter,e.parameters,t,n,r,i),m(e,t,n,r,i);}function h(t,n,r,i,o,s){if(t){switch(t.isReadonly&&(Ue(n,131),Ve(n)),qe(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),qe(n,56),Ve(n),r){case 1:Ue(n,133);break;case 0:Ue(n,136);}qe(n,22),qe(n,56),Ve(n),a(t.type,n,i,o,s),qe(n,25),n.writeLine();}}return ob||(ob={buildSymbolDisplay:r,buildTypeDisplay:a,buildTypeParameterDisplay:o,buildTypePredicateDisplay:g,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:i,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:m})}function rt(t){if(t){var n=S(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return rt(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=ut(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?rt(n):C(n);case 149:case 148:case 153:case 154:case 151:case 150:if(24&e.getModifierFlags(t))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return rt(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function at(t){function n(t){e.forEach(t,function(t){S(t).isVisible=!0;var r=j(t)||t;if(e.contains(a,r)||a.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var i=A(t,hg(t.moduleReference).text,901119,void 0,void 0);i&&n(i.declarations);}});}var r;t.parent&&243===t.parent.kind?r=A(t.parent,t.text,9289727,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(r=Y(t.parent,9289727));var a=[];return r&&n(r.declarations),a}function it(e,t){var n=ot(e,t);if(n>=0){for(var r=Bv.length,a=n;a=0;n--){if(st(Bv[n],jv[n]))return-1;if(Bv[n]===e&&jv[n]===t)return n}return-1}function st(t,n){return 0===n?k(t).type:2===n?k(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function ct(){return Bv.pop(),jv.pop(),Kv.pop()}function ut(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function lt(t){var n=yn(Se(t));return n.typeParameters?Qr(n,e.map(n.typeParameters,function(e){return Th})):n}function _t(e,t){var n=gr(e,t);return n?jt(n):void 0}function dt(e){return e&&0!=(1&e.flags)}function pt(e){var t=ke(e);return t&&k(t).type||xt(e,!1)}function ft(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function gt(t,n,r){if(8192&(t=Dc(t,function(e){return!(6144&e.flags)})).flags)return Jh;if(65536&t.flags)return Ec(t,function(e){return gt(e,n,r)});for(var a=e.createMap(),i=e.createMap(),o=0,s=n;o=2?Ba(Th):nv;var o=qa(e.map(a,function(t){return e.isOmittedExpression(t)?Th:St(t,n,r)}));return n&&((o=Zr(o)).pattern=t),o}function Dt(e,t,n){return 174===e.kind?Tt(e,t,n):Ct(e,t,n)}function Et(e,t){var n=xt(e,!0);return n?(t&&Ss(e,n),261===e.kind?n:bs(n)):(n=e.dotDotDotToken?nv:Th,t&&uh&&(Nt(e)||ks(e,n)),n)}function Nt(t){var n=e.getRootDeclaration(t);return Ap(146===n.kind?n.parent:n)}function At(t){var n=k(t);if(!n.type){if(16777216&t.flags)return n.type=lt(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=Th;if(243===r.kind)return n.type=ep(r.expression);if(65536&r.flags&&292===r.kind&&r.typeExpression)return n.type=Mi(r.typeExpression.type);if(!it(t,0))return Dh;var a=void 0;a=194===r.kind||179===r.kind&&194===r.parent.kind?kt(t):Et(r,!0),ct()||(a=Kt(t)),n.type=a;}return n.type}function wt(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Mi(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Mi(r)}}function Pt(e){var t=yy(e);return t&&t.symbol}function Ot(e){return Rr(Pr(e))}function Ft(t){var n=k(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),a=e.getDeclarationOfKind(t,154);if(r&&65536&r.flags){var i=yt(r);if(i)return n.type=i}if(!it(t,0))return Dh;var o=void 0,s=wt(r);if(s)o=s;else{var c=wt(a);c?o=c:r&&r.body?o=nd(r):(uh&&(a?d(a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,$e(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),d(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,$e(t)))),o=Th);}ct()||(o=Th,uh&&d(e.getDeclarationOfKind(t,153),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(t))),n.type=o;}return n.type}function It(e){var t=en(cn(e));return 540672&t.flags?t:void 0}function Mt(t){var n=k(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Th;else{var r=Ae(16,t);if(32&t.flags){var a=It(t);n.type=a?oi([r,a]):r;}else n.type=ch&&67108864&t.flags?_s(r,2048):r;}return n.type}function Rt(e){var t=k(e);return t.type||(t.type=fn(e)),t.type}function Lt(e){var t=k(e);if(!t.type){var n=ne(e);t.type=107455&n.flags?jt(n):Dh;}return t.type}function Bt(t){var n=k(t);if(!n.type)if(100===eh)d(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=Dh;else{if(!it(t,0))return Dh;eh++;var r=so(jt(n.target),n.mapper);eh--,ct()||(r=Kt(t)),n.type=r;}return n.type}function Kt(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(d(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,$e(t)),Dh):(uh&&d(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,$e(t)),Th)}function jt(t){return 1&e.getCheckFlags(t)?Bt(t):7&t.flags?At(t):9136&t.flags?Mt(t):8&t.flags?Rt(t):98304&t.flags?Ft(t):8388608&t.flags?Lt(t):Dh}function Jt(e,t){return void 0!==e&&void 0!==t&&0!=(4&T(e))&&e.target===t}function zt(e){return 4&T(e)?e.target:e}function Ut(t,n){function r(t){if(7&T(t)){var a=zt(t);return a===n||e.forEach(tn(a),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function qt(t,n){for(var r=0,a=n;r0)return!0;if(540672&e.flags){var t=or(e);return t&&an(t)&&Gt(t)}return!1}function Yt(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function Qt(t,n,r){var a=e.length(n),i=e.isInJavaScriptFile(r);return e.filter(yr(t,1),function(t){return(i||a>=Ar(t.typeParameters))&&a<=e.length(t.typeParameters)})}function Zt(t,n,r){var a=Qt(t,n,r),i=e.map(n,Mi);return e.sameMap(a,function(t){return e.some(t.typeParameters)?Kr(t,i):t})}function en(t){if(!t.resolvedBaseConstructorType){var n=Yt(t);if(!n)return t.resolvedBaseConstructorType=Eh;if(!it(t,1))return Dh;var r=ep(n.expression);if(163840&r.flags&&Yn(r),!ct())return d(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,$e(t.symbol)),t.resolvedBaseConstructorType=Dh;if(!(1&r.flags||r===wh||Xt(r)))return d(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,He(r)),t.resolvedBaseConstructorType=Dh;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function tn(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[ja(ti(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&nn(t),64&t.symbol.flags&&on$$1(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function nn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||th;var n=_r(en(t));if(163841&n.flags){var r,a=Yt(t),i=da(a),o=n&&n.symbol?yn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&rn(o))r=ta(a,n.symbol,i);else if(1&n.flags)r=n;else{var s=Zt(n,a.typeArguments,a);if(!s.length)return void d(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Lr(s[0]);}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(r=Mi(u.typeExpression.type));}r!==Dh&&(an(r)?t===r||Ut(r,t)?d(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,He(t,void 0,1)):t.resolvedBaseTypes===th?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):d(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,He(r)));}}function rn(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function an(t){return 16809985&t.flags&&!Xn(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!an(e)})}function on$$1(t){t.resolvedBaseTypes=t.resolvedBaseTypes||th;for(var n=0,r=t.symbol.declarations;n=_)&&o<=d){var p=d?jr(l,wr(i,l.typeParameters,_,r)):On(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function In(e,t,n,r,a){for(var i=0,o=e;i0)return;for(i=1;i1){if(l=On(c),e.forEach(u,function(e){return e.thisParameter})){var _=ti(e.map(u,function(e){return jt(e.thisParameter)||Th}),!0);l.thisParameter=fs$$1(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(a||(a=[])).push(l);}}}return a||th}function Ln(e,t){for(var n=[],r=!1,a=0,i=e;a0&&(l=e.map(l,function(e){var t=On(e);return t.resolvedReturnType=zn(Lr(e),o,c),t})),i=e.concatenate(i,l);}a=e.concatenate(a,yr(u,0)),n=jn(n,br(u,0)),r=jn(r,br(u,1));}(c);Oe(t,nh,a,i,n,r);}function qn(e){var t=e.symbol;if(e.target)Oe(e,r=Tn(Qn(e.target),e.mapper,!1),n=Bi(yr(e.target,0),e.mapper),a=Bi(yr(e.target,1),e.mapper),i=uo(br(e.target,0),e.mapper),c=uo(br(e.target,1),e.mapper));else if(2048&t.flags){var n=Ir((r=t.members).get("__call"));Oe(e,r,n,a=Ir(r.get("__new")),i=$r(t,0),c=$r(t,1));}else{var r=nh,a=th,i=void 0;if(t.exports&&(r=ye(t)),32&t.flags){var o=cn(t);(a=Ir(t.members.get("__constructor"))).length||(a=Fn(o));var s=en(o);704512&s.flags?Cn(r=Sn(Pe(r)),tr(s)):s===Th&&(i=Vr(Th,!1));}var c=384&t.flags?wv:void 0;Oe(e,r,th,a,i,c),8208&t.flags&&(e.callSignatures=Ir(t));}}function Vn(t){function n(e,n){var o=Ui([i],[e]),_=t.mapper?Gi(t.mapper,o):o,d=so(s,_);if(32&e.flags){var f=e.value,g=gr(c,f),m=p(4|(l||!!(g&&67108864&g.flags)?67108864:0),f);m.checkFlags=u||g&&_d(g)?8:0,m.type=d,n&&(m.syntheticOrigin=n,m.declarations=n.declarations),a.set(f,m);}else 2&e.flags&&(r=Vr(d,u));}var r,a=e.createMap();Oe(t,nh,th,th,void 0,void 0);var i=$n(t),o=Wn(t),s=Hn(t),c=_r(Gn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var _=0,d=tr(c);_=2):16777216&t.flags?Jh:t}function dr(t,n){for(var r,a=t.types,i=65536&t.flags,o=i?24:0,s=i?0:67108864,c=4,u=0,l=0,_=a;l<_.length;l++)if((b=_r(_[l]))!==Dh){var d=(v=gr(b,n))?e.getDeclarationModifierFlagsFromSymbol(v):0;!v||d&o?i&&(u|=16):(s&=v.flags,r?e.contains(r,v)||r.push(v):r=[v],u|=(_d(v)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),Rl(v)||(c=2));}if(r){if(1===r.length&&!(16&u))return r[0];for(var f=[],g=[],m=void 0,y=0,h=r;y=0),a>=r.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=i.arguments.length)}function Nr(e){if(71===e.parameterName.kind){var t=e.parameterName;return{kind:1,parameterName:t?t.text:void 0,parameterIndex:t?ap(e.parent.parameters,t):void 0,type:Mi(e.type)}}return{kind:0,type:Mi(e.type)}}function Ar(e){var t=0;if(e)for(var n=0;n=r)&&o<=i){t||(t=[]);for(c=o;cc.arguments.length&&!d.type||Cr(d)||l||(i=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var g=153===t.kind?154:153,m=e.getDeclarationOfKind(t.symbol,g);m&&(o=Pt(m));}var y=152===t.kind?cn(xe(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Sr(t),v=Or(t,u,y),b=t.type&&158===t.type.kind?Nr(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&!e.hasJSDocParameterTags(t)&&Fr(t)){x=!0;var k=p(3,"args");k.type=nv,k.isRestParameter=!0,r.push(k);}n.resolvedSignature=Pn(t,h,o,r,v,b,i,x,a);}return n.resolvedSignature}function Or(t,n,r){if(n)return Mi(t.parameters[0].type);if(r)return r;var a=e.getEffectiveReturnTypeNode(t);return a?Mi(a):153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?Th:void 0:wt(e.getDeclarationOfKind(t.symbol,154))}function Fr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.text&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=S(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Ir(e){if(!e)return th;for(var t=[],n=0;n0&&r.body){var a=e.declarations[n-1];if(r.parent===a.parent&&r.kind===a.kind&&r.pos===a.end)break}t.push(Pr(r));}}return t}function Mr(e){var t=ce(e,e);if(t){var n=_e(t);if(n)return jt(n)}return Th}function Rr(e){if(e.thisParameter)return jt(e.thisParameter)}function Lr(t){if(!t.resolvedReturnType){if(!it(t,3))return Dh;var n=void 0;if(n=t.target?so(Lr(t.target),t.mapper):t.unionSignatures?ti(e.map(t.unionSignatures,Lr),!0):nd(t.declaration),!ct()&&(n=Th,uh)){var r=t.declaration,a=e.getNameOfDeclaration(r);a?d(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):d(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 Br(t){if(t.hasRestParameter){var n=jt(e.lastOrUndefined(t.parameters));if(4&T(n)&&n.target===Gh)return n.typeArguments[0]}return Th}function Kr(t,n){n=wr(n,t.typeParameters,Ar(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),a=Xr(n),i=r.get(a);return i||r.set(a,i=jr(t,n)),i}function jr(e,t){return Zi(e,Ui(e.typeParameters,t),!0)}function Jr(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=Zi(e,qi(e.typeParameters),!0)),e.erasedSignatureCache):e}function zr(e){if(!e.isolatedSignatureType){var t=152===e.declaration.kind||156===e.declaration.kind,n=Ae(16);n.members=nh,n.properties=th,n.callSignatures=t?th:[e],n.constructSignatures=t?[e]:th,e.isolatedSignatureType=n;}return e.isolatedSignatureType}function Ur(e){return e.members.get("__index")}function qr(e,t){var n=1===t?133:136,r=Ur(e);if(r)for(var a=0,i=r.declarations;a1&&(t+=":"+i),r+=i;}return t}function Yr(e,t){for(var n=0,r=0,a=e;ri.length)?(d(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,He(a,void 0,1),s,i.length),Dh):Qr(a,e.concatenate(a.outerTypeParameters,wr(r,i,s,t)))}return t.typeArguments?(d(t,e.Diagnostics.Type_0_is_not_generic,He(a)),Dh):a}function na(e,t){var n=yn(e),r=k(e),a=r.typeParameters,i=Xr(t),o=r.instantiations.get(i);return o||r.instantiations.set(i,o=co(n,Ui(a,wr(t,a,Ar(a))))),o}function ra(t,n,r){var a=yn(n),i=k(n).typeParameters;if(i){var o=e.length(t.typeArguments),s=Ar(i);return oi.length?(d(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,$e(n),s,i.length),Dh):na(n,r)}return t.typeArguments?(d(t,e.Diagnostics.Type_0_is_not_generic,$e(n)),Dh):a}function aa(t,n){return t.typeArguments?(d(t,e.Diagnostics.Type_0_is_not_generic,$e(n)),Dh):yn(n)}function ia(t){switch(t.kind){case 159:return t.typeName;case 277:return t.name;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function oa(e,t){return e?se(e,t)||kh:kh}function sa(e,t){var n=da(e);if(t===kh)return Dh;var r=ca(e,t,n);if(r)return r;if(107455&t.flags&&277===e.kind){var a=jt(t);if(a.symbol&&!K_(a)){var i=ca(e,a.symbol,n);if(i)return i}return oa(ia(e),793064),a}return aa(e,t)}function ca(t,n,r){return 96&n.flags?ta(t,n,r):524288&n.flags?ra(t,n,r):16&n.flags&&277===t.kind&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?B_(n):void 0}function ua(t){if(e.isIdentifier(t.name))switch(t.name.text){case"String":return Ph;case"Number":return Oh;case"Boolean":return Mh;case"Void":return Lh;case"Undefined":return Eh;case"Null":return Ah;case"Object":return Th;case"Function":case"function":return Hh;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:ja(Th);case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:ed(Th)}}function la(e){var t=Mi(e.type);return ch?ti([t,Ah]):t}function _a(e){var t=S(e);if(!t.resolvedType){var n=void 0,r=void 0,a=793064;277===e.kind&&(r=ua(e),a|=107455),r||(r=sa(e,n=oa(ia(e),a))),t.resolvedSymbol=n,t.resolvedType=r;}return t.resolvedType}function da(t){return e.map(t.typeArguments,Mi)}function pa(e){var t=S(e);return t.resolvedType||(t.resolvedType=bs(ep(e.exprName))),t.resolvedType}function fa(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[i].id;if(o===a)return i;o>a?r=i-1:n=i+1;}return~n}function Wa(e,t){return $a(e,t)>=0}function Ha(e,t){var n=t.flags;if(65536&n)Ga(e,t.types);else if(1&n)e.containsAny=!0;else if(!ch&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,a=r&&t.id>e[r-1].id?~r:$a(e,t);a<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&Xa(e,t)||e.splice(~a,0,t));}}function Ga(e,t){for(var n=0,r=t;n0;)Ya(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function ei(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&Wa(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function ti(e,t,n,r){if(0===e.length)return Bh;if(1===e.length)return e[0];var a=[];return Ga(a,e),a.containsAny?Th:(t?Za(a):a.containsStringOrNumberLiteral&&ei(a),0===a.length?a.containsNull?a.containsNonWideningType?Ah:wh:a.containsUndefined?a.containsNonWideningType?Eh:Nh:Bh:ni(a,n,r))}function ni(e,t,n){if(0===e.length)return Bh;if(1===e.length)return e[0];var r=Xr(e),a=yh.get(r);return a||(a=Ee(65536|Yr(e,6144)),yh.set(r,a),a.types=e,a.aliasSymbol=t,a.aliasTypeArguments=n),a}function ri(t){var n=S(t);return n.resolvedType||(n.resolvedType=ti(e.map(t.types,Mi),!1,xi(t),ki(t))),n.resolvedType}function ai(t,n){131072&n.flags?ii(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&T(n)&&Oo(n)?t.containsEmptyObject=!0:!ch&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&Xa(t,n)||t.push(n));}function ii(e,t){for(var n=0,r=t;n=n?Jh:r};return r.mappedTypes=t,r}function $i(e){return!!e.signature}function Wi(e){return e&&$i(e)?Cs(e.signature,2|e.flags,e.inferences):e}function Hi(e){return e}function Gi(t,n){var r=function(e){return so(t(e),n)};return r.mappedTypes=e.concatenate(t.mappedTypes,n.mappedTypes),r}function Xi(e,t,n){var r=function(r){return r===e?t:n(r)};return r.mappedTypes=n.mappedTypes,r}function Yi(e){var t=Ee(16384);return t.symbol=e.symbol,t.target=e,t}function Qi(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:so(t.type,n)}:{kind:0,type:so(t.type,n)}}function Zi(t,n,r){var a,i;if(t.typeParameters&&!r){a=e.map(t.typeParameters,Yi),n=Gi(Ui(t.typeParameters,a),n);for(var o=0,s=a;on.parameters.length)return 0;t.typeParameters&&(t=u_(t,n));var c=-1,u=Rr(t);if(u&&u!==Lh){var l=Rr(n);if(l){if(!(x=s(u,l,!1)||s(l,u,i)))return i&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=x;}}for(var _=Ao(t),d=Ao(n),p=wo(t,_,n,d),f=t.parameters,g=n.parameters,m=0;m0&&E(n)&&!N(t,n))return a&&s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,He(t),He(n)),0;var o=0,_=B,d=V;return V=!1,65536&t.flags?o=r===hb?v(t,n,a&&!(8190&t.flags)):b(t,n,a&&!(8190&t.flags)):(65536&n.flags?o=m(t,n,a&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?(V=!0,o=h(t,n,a)):131072&t.flags&&(o=v(t,n,!1)),!o&&(1032192&t.flags||1032192&n.flags)&&(o=k(t,n,a))&&(B=_)),V=d,!o&&a&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&Wh===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(i,t,n)),o}function p(e,t){var n;return 32768&e.flags&&32768&t.flags?k(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=g(e,t))&&(n&=g(t,e))?n:0}function f(t,n,i){if(xd(n,32768)&&!(512&T(n))){var o=!!(33554432&t.flags);if((r===yb||r===hb)&&(Sc(Wh,n)||!o&&Oo(n)))return!1;for(var c=0,u=Qn(t);c0){for(var s=0;s0&&e.every(n.properties,function(e){return!!(67108864&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var n=!!(33554432&e.flags),r=0,a=tr(e);r=5&&32768&e.flags){var r=e.symbol;if(r)for(var a=0,i=0;i=5)return!0}}return!1}function qo(e,t){return 0!==Vo(e,t,mo)}function Vo(t,n,r){if(t===n)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(t);if(a!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(a){if(ng(t)!==ng(n))return 0}else if((67108864&t.flags)!=(67108864&n.flags))return 0;return _d(t)!==_d(n)?0:r(jt(t),jt(n))}function $o(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,a=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>a||r===a&&e.parameters.length>=t.parameters.length))}function Wo(t,n,r,a,i,o){if(t===n)return-1;if(!$o(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Jr(t),n=Jr(n);var s=-1;if(!a){var c=Rr(t);if(c){var u=Rr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function Go(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),a=ru(t.parent,r),i=r,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent;}o&&(a&&(S(i).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&iu(t,r)&&(S(n.valueDeclaration).flags|=2097152),S(n.valueDeclaration).flags|=262144),a&&(S(n.valueDeclaration).flags|=131072);}}function iu(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(192===r.parent.kind||193===r.parent.kind){var i=r.parent;a=43===i.operator||44===i.operator;}return!!a&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function ou(e,t){S(e).flags|=2,149===t.kind||152===t.kind?S(t.parent).flags|=4:S(t).flags|=4;}function su(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,su)}function cu(e){var t=S(e);return void 0===t.hasSuperCall&&(t.superCall=su(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function uu(e){return en(yn(ke(e)))===wh}function lu(t,n,r){var a=n.parent;if(e.getClassExtendsHeritageClauseElement(a)&&!uu(a)){var i=cu(n);(!i||i.end>t.pos)&&d(t,r);}}function _u(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&lu(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=ah<2),n.kind){case 233:d(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:d(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:pu(t,n)&&d(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:32&e.getModifierFlags(n)&&d(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:d(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&ou(t,n),e.isFunctionLike(n)&&(!Su(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var a=ep(n.parent.left.expression.expression).symbol;if(a&&a.members&&16&a.flags)return B_(a)}var i=Ot(n)||hu(n);if(i)return i}if(e.isClassLike(n.parent)){var o=ke(n.parent);return Vc(t,s=e.hasModifier(n,32)?jt(o):yn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=du(n);if(s&&s!==Dh)return s}return lh&&d(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Th}function du(t){var n=e.getJSDocType(t);if(n&&279===n.kind){var r=n;if(r.parameters.length>0&&282===r.parameters[0].type.kind)return Mi(r.parameters[0].type)}}function pu(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function fu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),a=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),a=ah<2;var i=0;if(!function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(32&e.getModifierFlags(t)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?d(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?d(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?d(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):d(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Dh}if(n||152!==r.kind||lu(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=32&e.getModifierFlags(r)||n?512:256,S(t).flags|=i,151===r.kind&&256&e.getModifierFlags(r)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?S(r).flags|=4096:S(r).flags|=2048),a&&ou(t.parent,r),178===r.parent.kind)return ah<2?(d(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Dh):Th;var s=r.parent,c=yn(ke(s)),u=c&&tn(c)[0];return u?152===r.kind&&pu(t,r)?(d(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Dh):512===i?en(c):En(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||d(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Dh)}function gu(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function mu(e){return 4&T(e)&&e.target===tv?e.typeArguments[0]:void 0}function yu(t){return Ec(t,function(t){return 131072&t.flags?e.forEach(t.types,mu):mu(t)})}function hu(e){if(187!==e.kind){if(po(e)){var t=Vu(e);if(t){var n=t.thisParameter;if(n)return jt(n)}}if(lh){var r=gu(e);if(r){for(var a=Lu(r),i=r,o=a;o;){var s=yu(o);if(s)return so(s,Ku(r));if(261!==i.parent.kind)break;o=Lu(i=i.parent.parent);}return a?ds(a):qd(r)}if(194===e.parent.kind&&58===e.parent.operatorToken.kind){var c=e.parent.left;if(179===c.kind||180===c.kind)return qd(c.expression)}}}}function vu(t){var n=t.parent;if(po(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var a=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var i=[],o=a;o=0)return H_(R_(t),a)}function Du(e,t){if(183===e.parent.kind)return Cu(e.parent,t)}function Eu(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return Qd(n.left)}else{if(54===r){var a=Bu(n);return a||t!==n.right||(a=Qd(n.left)),a}if((53===r||26===r)&&t===n.right)return Bu(n)}}function Nu(e,t){return Ec(e,function(e){var n=229376&e.flags?gr(e,t):void 0;return n?jt(n):void 0})}function Au(e,t){return Ec(e,function(e){return vr(e,t)})}function wu(t){return!!(65536&t.flags?e.forEach(t.types,es):es(t))}function Pu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!Kg(t))return Ou(t)}function Ou(t){var n=Lu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=Nu(n,ke(t).name);if(r)return r}return Gu(t.name)&&Au(n,1)||Au(n,0)}}function Fu(t){var n=t.parent,r=Lu(n);if(r)return Nu(r,""+e.indexOf(n.elements,t))||Au(r,1)||Ff(r,void 0,!1,!1,!1)}function Iu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Bu(t):void 0}function Mu(t){var n=Bu(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!dt(n)){if(e.isJsxAttribute(t.parent))return _t(n,t.parent.name.text);if(249===t.parent.kind){var r=gl();return r&&""!==r?_t(n,r):Th}return n}}function Ru(t){var n=Bu(t.parent);if(e.isJsxAttribute(t)){if(!n||dt(n))return;return _t(n,t.name.text)}return n}function Lu(e){var t=Bu(e);return t&&_r(t)}function Bu(t){if(!Kg(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return bu(t);case 187:case 219:return xu(t);case 197:return ku(n);case 181:case 182:return Cu(n,t);case 184:case 202:return Mi(n.type);case 194:return Eu(t);case 261:case 262:return Ou(n);case 263:return Lu(n.parent);case 177:return Fu(t);case 195:return Iu(t);case 205:return e.Debug.assert(196===n.parent.kind),Du(n.parent,t);case 185:return Bu(n);case 256:return Mu(n);case 253:case 255:return Ru(n);case 251:case 250:return Sl(n)}}}function Ku(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:Hi}function ju(e,t){var n=mr(e,0);if(1===n.length){var r=n[0];if(!Ju(r,t))return r}}function Ju(t,n){for(var r=0;r0&&(s=Si(s,r()),o=[],i=e.createMap(),m=!1,y=!1,f=0),!rl(k=ep(b.expression)))return d(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Dh;s=Si(s,k),h=v+1;continue}e.Debug.assert(153===b.kind||154===b.kind),Pg(b);}e.hasDynamicName(b)?Gu(b.name)?y=!0:m=!0:i.set(x.name,x),o.push(x);}if(l)for(var C=0,D=tr(u);C0&&(s=Si(s,r())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):r()}function rl(t){return!!(16783361&t.flags||32768&t.flags&&!Xn(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!rl(e)}))}function al(e){return wl(e),Dl()||Th}function il(e){return wl(e.openingElement),sl(e.closingElement.tagName)?_l(e.closingElement):ep(e.closingElement.tagName),Dl()||Th}function ol(e){return e.indexOf("-")<0}function sl(t){return 179!==t.kind&&99!==t.kind&&e.isIntrinsicJsxName(t.text)}function cl(t,n,r){function a(e,t){var n=Fe(e,t,th,th,void 0,void 0);return n.flags|=37748736,n.objectFlags|=128,n}for(var i,o=t.attributes,s=e.createMap(),c=Jh,u=[],l=!1,_=!1,f=gl(),g=0,m=o.properties;g0&&(c=Si(c,a(o.symbol,s)),u=[],s=e.createMap()),dt(v=ep(y.expression))&&(l=!0),rl(v)?c=Si(c,v):i=i?oi([i,v]):v;}if(!l){c!==Jh&&(u.length>0&&(c=Si(c,a(o.symbol,s))),u=tr(c)),s=e.createMap();for(var x=0,k=u;x0){for(var C=[],D=0,E=T.children;D1&&d(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,t);}}function fl(){return db||(db=!0,ab=pl(gb.ElementAttributesPropertyNameContainer)),ab}function gl(){return pb||(pb=!0,ib=pl(gb.ElementChildrenAttributeNameContainer)),ib}function ml(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))d(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,fl());else if(So(r,n,t.attributes.properties.length>0?t.attributes:t)&&!dt(r)&&!dt(n))for(var a=0,i=t.attributes.properties;a30)){t=t.toLowerCase();for(var u=0,l=n;ua)continue;p<3?(c=!0,s=_):p=g&&o.length<=f))return!1;if(c>=0)return Ho(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&i>r.parameters.length)return!1;var m=i>=r.minArgumentCount;return s||m}function c_(e){if(32768&e.flags){var t=Yn(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function u_(e,t,n){var r=Cs(e,1);return Ts(t,e,function(e,t){Os(r.inferences,so(e,n||Hi),t);}),n||Os(r.inferences,Lr(t),Lr(e),4),Kr(e,Ls(r))}function l_(t,n,r,a,i){for(var o=i.inferences,s=0;s0?[t.attributes]:th:t.arguments||th;}return n}function m_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===ah?2:n.parameters.length>=3?3:2;case 146:return 3}}function y_(t){if(229===t.kind)return jt(n=ke(t));if(146===t.kind&&152===(t=t.parent).kind){var n=ke(t);return jt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?am(t):(e.Debug.fail("Unsupported decorator target."),Dh)}function h_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),Dh;if(146===t.kind&&152===(t=t.parent).kind)return Th;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:case 8:case 9:return Ai(n.name.text);case 144:var r=el(n.name);return kd(r,512)?r:Ph;default:return e.Debug.fail("Unsupported property name."),Dh}}return e.Debug.fail("Unsupported decorator target."),Dh}function v_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),Dh):146===t.kind?Oh:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),Dh):151===t.kind||153===t.kind||154===t.kind?Ma(em(t)):(e.Debug.fail("Unsupported decorator target."),Dh)}function b_(t,n){return 0===n?y_(t.parent):1===n?h_(t.parent):2===n?v_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),Dh)}function x_(e,t){return 147===e.kind?b_(e,t):0===t&&183===e.kind?ba():void 0}function k_(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function S_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function T_(t,n,r,a){function i(n,r,a){void 0===a&&(a=!1),g=void 0,m=void 0;for(var i=0,s=n;i1&&(y=i(_,mb,h)),y||(y=i(_,yb,h)),y)return y;if(g){if(l)return g;p_(t,p,g,yb,void 0,!0);}else if(m){var v=t.typeArguments;__(m,v,e.map(v,Mi),!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-1,A=E?b:b=0&&d(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var a=Bl(t.expression);if(a===Kh)return Av;if((a=_r(a))===Dh)return a_(t);var i=a.symbol&&rg(a.symbol);if(i&&128&e.getModifierFlags(i))return d(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(i))),a_(t);if(dt(a))return t.typeArguments&&d(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),r_(t);var o=yr(a,1);if(o.length)return N_(t,o[0])?T_(t,o,n):a_(t);var s=yr(a,0);if(s.length){var c=T_(t,s,n);return L_(c.declaration)||Lr(c)===Lh||d(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Rr(c)===Lh&&d(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return d(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),a_(t)}function N_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,a=e.getModifierFlags(r);if(!(24&a))return!0;var i=rg(r.parent.symbol),o=yn(r.parent.symbol);if(!$g(t,i)){var s=e.getContainingClass(t);if(s)for(var c=tn(em(s));c.length;){var u=c[0];if(16&a&&u.symbol===r.parent.symbol)return!0;c=tn(u);}return 8&a&&d(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,He(o)),16&a&&d(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,He(o)),!1}return!0}function A_(t,n){var r=ep(t.tag),a=_r(r);if(a===Dh)return a_(t);var i=yr(a,0),o=yr(a,1);return D_(r,a,i.length,o.length)?r_(t):i.length?T_(t,i,n):(d(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,He(a)),a_(t))}function w_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function P_(t,n){var r=ep(t.expression),a=_r(r);if(a===Dh)return a_(t);var i=yr(a,0),o=yr(a,1);if(D_(r,a,i.length,o.length))return r_(t);var s=w_(t);if(!i.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,He(a)),c=e.chainDiagnosticMessages(c,s),tb.add(e.createDiagnosticForNodeFromMessageChain(t,c)),a_(t)}return T_(t,i,n,s)}function O_(t,n,r){return e.Debug.assert(!(65536&n.flags)),F_(t,n,r)}function F_(e,t,n){if(65536&t.flags){for(var r=void 0,a=0,i=t.types;a0){return T_(e,s,n)}}function I_(t,n){switch(t.kind){case 181:return C_(t,n);case 182:return E_(t,n);case 183:return A_(t,n);case 147:return P_(t,n);case 251:case 250:return F_(t,ep(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function M_(e,t){var n=S(e),r=n.resolvedSignature;if(r&&r!==Nv&&!t)return r;n.resolvedSignature=Nv;var a=I_(e,t);return n.resolvedSignature=Fv===Iv?a:r,a}function R_(e){return S(e).resolvedSignature===Nv?Nv:M_(e)}function L_(t){if(e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?ke(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?ke(t.initializer):void 0;return n&&void 0!==n.members}return!1}function B_(e){var t=k(e);return t.inferredClassType||(t.inferredClassType=Fe(e,e.members||nh,th,th,void 0,void 0)),t.inferredClassType}function K_(e){return e.symbol&&16&T(e)&&k(e.symbol).inferredClassType===e}function j_(t){ny(t,t.typeArguments)||ay(t,t.arguments);var n=M_(t);if(97===t.expression.kind)return Lh;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var a=71===t.expression.kind?Bs(t.expression):ep(t.expression).symbol;return a&&e.isDeclarationOfFunctionOrClassExpression(a)&&(a=ke(a.valueDeclaration.initializer)),a&&16&a.flags&&(a.members||e.getJSDocClassTag(a.valueDeclaration))?B_(a):(uh&&d(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Th)}}return e.isInJavaScriptFile(t)&&z_(t)?Mr(t.arguments[0]):Lr(n)}function J_(t){if(ay(t,t.arguments)||qy(t),0===t.arguments.length)return td(t,Th);for(var n=t.arguments[0],r=qd(n),a=1;a0?H_(e,0):Bh}function X_(t,n,r){for(var a=t.parameters.length-(t.hasRestParameter?1:0),i=0;i=0)if(n.parameters[r.parameterIndex].dotDotDotToken)d(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var i=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);So(r.type,em(n.parameters[r.parameterIndex]),t.type,void 0,i);}else if(a){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=Ur(ke(t));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o=0)return void(n&&d(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));eb.push(t.id);var l=Rp(u,n,r);if(eb.pop(),!l)return;return a.awaitedTypeOfType=l}var _=_t(t,"then");if(!(_&&yr(_,0).length>0))return a.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),d(n,r));}function Lp(t){var n=e.getEffectiveReturnTypeNode(t),r=Mi(n);if(ah>=2){if(r===Dh)return Dh;var a=Sa(!0);if(a!==qh&&!Jt(r,a))return d(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Dh}else{if(Kp(n),r===Dh)return Dh;var i=e.getEntityNameFromTypeNode(n);if(void 0===i)return d(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,He(r)),Dh;var o=se(i,107455,!0),s=o?jt(o):Dh;if(s===Dh)return 71===i.kind&&"Promise"===i.text&&zt(r)===Sa(!1)?d(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):d(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(i)),Dh;var c=Ca(!0);if(c===Jh)return d(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(i)),Dh;if(!So(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 Dh;var u=i&&hg(i),l=D(t.locals,u.text,107455);if(l)return d(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,u.text,e.entityNameToString(i)),Dh}return Mp(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 Bp(t){var n=Lr(M_(t));if(!(1&n.flags)){var r,a,i=w_(t);switch(t.parent.kind){case 229:r=ti([jt(ke(t.parent)),Lh]);break;case 146:r=Lh,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=Lh,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=ti([Ma(em(t.parent)),Lh]);}So(n,r,t,i,a);}}function Kp(t){jp(t&&e.getEntityNameFromTypeNode(t));}function jp(e){var t=e&&hg(e),n=t&&A(t,t.text,8388608|(71===e.kind?793064:1920),void 0,void 0);n&&8388608&n.flags&&Ce(n)&&!hm(ne(n))&&ae(n);}function Jp(t){var n=zp(t);n&&e.isEntityName(n)&&jp(n);}function zp(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,a=t.types;r=e.ModuleKind.ES2015)&&(of(t,n,"require")||of(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=ut(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&d(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function pf(t,n){if(!(ah>=4)&&of(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=ut(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&d(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 ff(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=ke(t);if(1&n.flags){var r=A(t,t.name.text,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&Ml(r)){var a=e.getAncestor(r.valueDeclaration,227),i=208===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!(i&&(207===i.kind&&e.isFunctionLike(i.parent)||234===i.kind||233===i.kind||265===i.kind))){var o=$e(r);d(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function gf(t){function n(a){if(!e.isTypeNode(a)&&!e.isDeclarationName(a)){if(179===a.kind)return n(a.expression);if(71!==a.kind)return e.forEachChild(a,n);var i=A(a,a.text,8496063,void 0,void 0);if(i&&i!==kh&&i.valueDeclaration)if(i.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(i.valueDeclaration)===r){if(146===i.valueDeclaration.kind||176===i.valueDeclaration.kind){if(i.valueDeclaration.pos1)return Py(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Sf(e){jy(e),ep(e.expression);}function Tf(t){jy(t),ep(t.expression),wg(t.thenStatement),209===t.thenStatement.kind&&d(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),wg(t.elseStatement);}function Cf(e){jy(e),wg(e.statement),ep(e.expression);}function Df(e){jy(e),ep(e.expression),wg(e.statement);}function Ef(t){jy(t)||t.initializer&&227===t.initializer.kind&&Dy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,vf):ep(t.initializer)),t.condition&&ep(t.condition),t.incrementor&&ep(t.incrementor),wg(t.statement),t.locals&&Wp(t);}function Nf(t){if(fy(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&ah<5&&Bm(t,16384):rh.downlevelIteration&&ah<2&&Bm(t,256)),227===t.initializer.kind)wf(t);else{var n=t.initializer,r=Pf(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Pd(n,r||Dh);else{var a=ep(n);fd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&So(r,a,n,void 0);}}wg(t.statement),t.locals&&Wp(t);}function Af(t){fy(t);var n=Bl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&d(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),wf(t);}else{var a=t.initializer,i=ep(a);177===a.kind||178===a.kind?d(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):vo(di(n),i)?fd(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):d(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}Yu(n,17350656)||d(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),wg(t.statement),t.locals&&Wp(t);}function wf(e){var t=e.initializer;t.declarations.length>=1&&vf(t.declarations[0]);}function Pf(e,t){return Of(Bl(e),e,!0,void 0!==t)}function Of(e,t,n,r){return dt(e)?e:Ff(e,t,n,r,!0)||Th}function Ff(t,n,r,a,i){var o=ah>=2,s=!o&&rh.downlevelIteration;if(o||s||a){var c=If(t,o?n:void 0,a,!0,i);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(65536&u.flags){var p=t.types,f=e.filter(p,function(e){return!(262178&e.flags)});f!==p&&(u=ti(f,!0));}else 262178&u.flags&&(u=Bh);if((_=u!==t)&&(ah<1&&n&&(d(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return Ph}if(!Zo(u))return n&&!l&&d(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,He(u)),_?Ph:void 0;var g=xr(u,1);return _&&g?262178&g.flags?Ph:ti([g,Ph],!0):g}function If(t,n,r,a,i){function o(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Jt(t,Da(!1))||Jt(t,Na(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(a){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Jt(t,Aa(!1))||Jt(t,Pa(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&_t(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||a&&_t(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!dt(c)){var u=c&&yr(c,0);if(e.some(u)){var l=Mf(ti(e.map(u,Lr),!0),n,!!s);return i&&n&&l&&So(t,s?Ra(l):Ba(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(d(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);}}if(!dt(t))return Ec(t,o)}function Mf(t,n,r){if(!dt(t)){var a=t;if(r?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator)return r?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator;if(Jt(t,(r?Ea:wa)(!1)))return r?a.iteratedTypeOfAsyncIterator=t.typeArguments[0]:a.iteratedTypeOfIterator=t.typeArguments[0];var i=_t(t,"next");if(!dt(i)){var o=i?yr(i,0):th;if(0!==o.length){var s=ti(e.map(o,Lr),!0);if(!(dt(s)||r&&(s=Fp(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),dt(s)))){var c=s&&_t(s,"value");if(c)return r?a.iteratedTypeOfAsyncIterator=c:a.iteratedTypeOfIterator=c;n&&d(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&&d(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function Rf(e,t){if(!dt(e))return If(e,void 0,t,!t,!1)||Mf(e,void 0,t)}function Lf(e){jy(e)||by(e);}function Bf(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function Kf(t,n){var r=2==(3&e.getFunctionFlags(t))?Ip(n):n;return r&&xd(r,1025)}function jf(t){jy(t)||e.getContainingFunction(t)||Py(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Lr(Pr(n));if(ch||t.expression||8192&r.flags){var a=t.expression?qd(t.expression):Eh,i=e.getFunctionFlags(n);if(1&i)return;if(154===n.kind)t.expression&&d(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!So(a,r,t)&&d(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||Bf(n))if(2&i){var o=Ip(r),s=Mp(a,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&So(s,o,t);}else So(a,r,t);}else 152!==n.kind&&rh.noImplicitReturns&&!Kf(n,r)&&d(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function Jf(t){jy(t)||16384&t.flags&&Py(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ep(t.expression);var n=e.getSourceFileOfNode(t);if(!wy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Oy(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function zf(t){jy(t);var n,r=!1,a=ep(t.expression),i=ns(a);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,o.pos);Oy(c,u,(o.statements.length>0?o.statements[0].pos:o.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0;}if(s&&257===o.kind){var l=o,_=ep(l.expression),d=ns(_),p=a;d&&i||(_=d?rs(_):_,p=rs(a)),Id(p,_)||To(_,p,l.expression,void 0);}e.forEach(o.statements,wg);}),t.caseBlock.locals&&Wp(t.caseBlock);}function Uf(t){jy(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.text===t.label.text){var r=e.getSourceFileOfNode(t);return Fy(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),wg(t.statement);}function qf(t){jy(t)||void 0===t.expression&&zy(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&ep(t.expression);}function Vf(t){jy(t),rf(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)Py(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)Py(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)&&Fy(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}rf(n.block);}t.finallyBlock&&rf(t.finallyBlock);}function $f(t){function n(t,n,r,a,i,o){if(i){var s=t.valueDeclaration;if(1!==o||(s?Gu(e.getNameOfDeclaration(s)):Zu(t.name))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?a?c=a:2&T(r)&&(c=e.forEach(tn(r),function(e){return Zn(e,t.name)&&xr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!vo(n,i)&&d(c,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,$e(t),He(n),He(i));}}}var r=qr(t.symbol,1),a=qr(t.symbol,0),i=xr(t,0),o=xr(t,1);if((i||o)&&(e.forEach(Qn(t),function(e){var s=jt(e);n(e,s,t,a,i,0),n(e,s,t,r,o,1);}),1&T(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&d(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var a=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(a?d(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0);});}}}function fg(t){for(var n=0,r=t.declarations;n1&&!a&&r(t,rh.preserveConstEnums||rh.isolatedModules)){var c=fg(o);c&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(c)?d(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=a;s0?e.concatenate(o,i):i}return e.forEach(a.getSourceFiles(),Fg),tb.getDiagnostics()}function Lg(){return Bg(),tb.getGlobalDiagnostics()}function Bg(){if(!s)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Kg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function jg(t,n){function r(e,t){if(e.flags&t){var n=e.name;i.has(n)||i.set(n,e);}}function a(e,t){t&&e.forEach(function(e){r(e,t);});}if(Kg(t))return[];var i=e.createMap(),o=0;return function(){for(;t;){switch(t.locals&&!C(t)&&a(t.locals,n),t.kind){case 265:if(!e.isExternalOrCommonJsModule(t))break;case 233:a(ke(t).exports,8914931&n);break;case 232:a(ke(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:32&o||a(ke(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(fh,n),o=e.getModifierFlags(t),t=t.parent;}a(Ov,n);}(),Tr(i)}function Jg(e){return 71===e.kind&&zg(e.parent)&&e.parent.name===e}function zg(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function Ug(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&(159===t.parent.kind||277===t.parent.kind)}function qg(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function Vg(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function $g(e,t){return!!Vg(e,function(e){return e===t})}function Wg(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Hg(e){return void 0!==Wg(e)}function Gg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return ke(t.parent);case 4:case 2:case 5:return ke(t.parent.parent)}}function Xg(t){if(e.isDeclarationName(t))return ke(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=Gg(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return se(t,9289727);if(179!==t.kind&&Hg(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),ie(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),qg(t)){var a=0;201===t.parent.kind?(a=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(a|=107455)):a=1920;var i=se(t,a|=8388608);if(i)return i}if(287===t.parent.kind){var o=e.getParameterFromJSDoc(t.parent);return o&&o.symbol}if(145===t.parent.kind&&290===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var s=e.getTypeParameterFromJsDoc(t.parent);return s&&s.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&sl(t)?_l(t.parent):se(t,107455,!1,!0);if(179===t.kind)return(c=S(t).resolvedSymbol)||jl(t),S(t).resolvedSymbol;if(143===t.kind){var c=S(t).resolvedSymbol;return c||Jl(t),S(t).resolvedSymbol}}else{if(Ug(t))return se(t,a=159===t.parent.kind||277===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return Tl(t.parent)}return 158===t.parent.kind?se(t,1):void 0}function Yg(t){if(265===t.kind)return e.isExternalModule(t)?xe(t.symbol):void 0;if(!Kg(t)){if(i(t))return ke(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ke(t.parent.parent);if(71===t.kind){if(Hg(t))return Xg(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=em(t.parent.parent),r=n&&gr(n,t.text);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return Xg(t);case 99:var a=e.getThisContainer(t,!1);if(e.isFunctionLike(a)){var o=Pr(a);if(o.thisParameter)return o.thisParameter}case 97:return(e.isPartOfExpression(t)?Qd(t):Mi(t)).symbol;case 169:return Mi(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return ce(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var c=Qd(t.parent.expression);if(c===Dh)return;var u=_r(c);if(u===Dh)return;return gr(u,t.text)}}}}function Qg(e){if(e&&262===e.kind)return se(e.name,8496063)}function Zg(e){return e.parent.parent.moduleSpecifier?H(e.parent.parent,e):se(e.propertyName||e.name,9289727)}function em(t){if(Kg(t))return Dh;if(e.isPartOfTypeNode(t)){var n=Mi(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=En(n,(r=em(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return rm(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=yn(ke(e.getContainingClass(t))),a=tn(r)[0];return a&&En(a,r.thisType)}if(zg(t))return yn(o=ke(t));if(Jg(t))return(o=Yg(t))&&yn(o);if(e.isDeclaration(t))return jt(o=ke(t));if(i(t))return(o=Yg(t))&&jt(o);if(e.isBindingPattern(t))return xt(t.parent,!0);if(Hg(t)){var o=Yg(t),s=o&&yn(o);return s!==Dh?s:jt(o)}return Dh}function tm(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return Pd(t,(n=Pf(t.parent.expression,t.parent.awaitModifier))||Dh);if(194===t.parent.kind){var n=Qd(t.parent.right);return Pd(t,n||Dh)}if(261===t.parent.kind)return Nd(tm(t.parent.parent)||Dh,t.parent);e.Debug.assert(177===t.parent.kind);var r=tm(t.parent),a=Of(r||Dh,t.parent,!1,!1)||Dh;return wd(t.parent,r,e.indexOf(t.parent.elements,t),a||Dh)}function nm(e){var t=tm(e.parent.parent);return t&&gr(t,e.text)}function rm(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ni(Qd(t))}function am(t){var n=ke(t.parent);return 32&e.getModifierFlags(t)?jt(n):yn(n)}function im(t){var n=Sn(tr(t=_r(t)));return(yr(t,0).length||yr(t,1).length)&&e.forEach(tr(Hh),function(e){n.has(e.name)||n.set(e.name,e);}),Pe(n)}function om(t){if(6&e.getCheckFlags(t)){var n=[],r=t.name;return e.forEach(k(t).containingType.types,function(e){var t=gr(e,r);t&&n.push(t);}),n}if(134217728&t.flags){var a=t;if(a.leftSpread)return om(a.leftSpread).concat(om(a.rightSpread));if(a.syntheticOrigin)return om(a.syntheticOrigin);for(var i=void 0,o=t;o=k(o).target;)i=o;if(i)return[i]}return[t]}function sm(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(179===t.parent.kind&&t.parent.name===t)&&Fm(t)===fh)}function cm(t){function n(e){return(e=te(e))&&!!(107455&e.flags)}var r=ce(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var a=pe(r),i=k(r=_e(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=a?!!(107455&r.flags):e.forEachEntry(he(r),n)),i.exportsSomeValue}function um(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function lm(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Fm(t,um(t));if(r){if(1048576&r.flags){var a=xe(r.exportSymbol);if(!n&&944&a.flags)return;r=a;}var i=Se(r);if(i){if(512&i.flags&&265===i.valueDeclaration.kind){var o=i.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ke(t)===i})}}}}function _m(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Fm(t);if(ee(n,107455))return J(n)}}function dm(t){if(418&t.flags){var n=k(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var a=S(t.valueDeclaration);if(A(r.parent,t.name,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&a.flags){var i=262144&a.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||i&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function pm(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Fm(t);if(n&&dm(n))return n.valueDeclaration}}function fm(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=ke(t);if(n)return dm(n)}return!1}function gm(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return ym(ke(t)||kh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,gm);case 243:return!t.expression||71!==t.expression.kind||ym(ke(t)||kh)}return!1}function mm(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(ym(ke(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function ym(e){var t=ne(e);return t===kh||107455&t.flags&&(rh.preserveConstEnums||!hm(t))}function hm(e){return Td(e)||e.constEnumOnlyModule}function vm(t,n){if(e.isAliasSymbolDeclaration(t)){var r=ke(t);if(r&&k(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return vm(e,n)})}function bm(t){if(e.nodeIsPresent(t.body)){var n=Ir(ke(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function xm(t){return ch&&!Er(t)&&t.initializer&&!(92&e.getModifierFlags(t))}function km(t){return ch&&Er(t)&&!t.initializer&&!!(92&e.getModifierFlags(t))}function Sm(e){return S(e).flags}function Tm(e){return ug(e.parent),S(e).enumMemberValue}function Cm(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Dm(t){if(264===t.kind)return Tm(t);var n=S(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?Tm(n.valueDeclaration):void 0}function Em(e){return 32768&e.flags&&yr(e,0).length>0}function Nm(t,n){var r=se(t,107455,!0,!1,n),a=se(t,793064,!0,!1,n);if(r&&r===a){var i=Ta(!1);if(i&&r===i)return e.TypeReferenceSerializationKind.Promise;var o=jt(r);if(o&&Xt(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.ObjectType;var s=yn(a);return s===Dh?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:kd(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:kd(s,136)?e.TypeReferenceSerializationKind.BooleanType:kd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:kd(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:is(s)?e.TypeReferenceSerializationKind.ArrayLikeType:kd(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:Em(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Qo(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Am(e,t,n,r){var a=ke(e),i=!a||133120&a.flags?Dh:as(jt(a));8192&n&&(i=_s(i,2048)),nt().buildTypeDisplay(i,r,t,n);}function wm(e,t,n,r){var a=Pr(e);nt().buildTypeDisplay(Lr(a),r,t,n);}function Pm(e,t,n,r){var a=bs(rm(e));nt().buildTypeDisplay(a,r,t,n);}function Om(e){return Ov.has(e)}function Fm(t,n){var r=S(t).resolvedSymbol;if(r)return r;var a=t;if(n){var i=t.parent;e.isDeclaration(i)&&t===i.name&&(a=ut(i));}return A(a,t.text,9544639,void 0,void 0)}function Im(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Fm(t);if(n)return Te(n).valueDeclaration}}function Mm(t){if(e.isConst(t)){var n=jt(ke(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function Rm(e,t){var n=jt(ke(e));t.writeStringLiteral(et(n));}function Lm(t){var n=e.getExternalModuleName(t),r=ue(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function Bm(t,n){if(($y&n)!==n&&rh.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,rh)&&!e.isInAmbientContext(t)){var a=jm(r,t);if(a!==kh)for(var i=n&~$y,o=1;o<=32768;o<<=1)if(i&o){var s=Km(o);D(a.exports,e.escapeIdentifier(s),107455)||d(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}$y|=n;}}}function Km(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper");}}function jm(t,n){return Wy||(Wy=le(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||kh),Wy}function Jm(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?Py(t,e.Diagnostics.Decorators_are_not_valid_here):Py(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return Py(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function zm(t){var n=Um(t);if(void 0!==n)return n;for(var r,a,i,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function $m(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Fy(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Wm(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return Oy(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function Hm(t,n){if(Wm(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return Oy(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Gm(t){for(var n=!1,r=t.length,a=0;a".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function ny(e,t){return Wm(t)||ty(e,t)}function ry(t,n){if(n)for(var r=e.getSourceFileOfNode(t),a=0,i=n;a1)return Py(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return Py(o,e.Diagnostics.implements_clause_already_seen);r=!0;}iy(o);}}function cy(t){var n=!1;if(t.heritageClauses)for(var r=0,a=t.heritageClauses;r1){i=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Py(n.declarations[1],i)}var a=r[0];if(a.initializer){var i=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Fy(a.name,i)}if(a.type)return Fy(a,i=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function gy(t){var n=t.kind;if(ah<1)return Fy(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Fy(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(!(void 0!==t.body||128&e.getModifierFlags(t)))return Oy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&128&e.getModifierFlags(t))return Fy(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Fy(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!my(t))return Fy(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return Fy(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return Fy(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Fy(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Fy(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function my(e){return yy(e)||e.parameters.length===(153===e.kind?0:1)}function yy(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function hy(t,n){if(e.isDynamicName(t))return Fy(t,n)}function vy(t){if(kf(t)||Xm(t)||ly(t))return!0;if(178===t.parent.kind){if(_y(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Oy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return hy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return hy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return hy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return hy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function by(t){for(var n=t;n;){if(e.isFunctionLike(n))return Fy(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.text===t.label.text)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&Fy(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return Fy(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Fy(t,r)}function xy(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return Fy(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Fy(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Oy(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function ky(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function Sy(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){n="=".length;return Oy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!ky(t.initializer))return Fy(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!ky(t.initializer))){var n="=".length;return Oy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Fy(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Fy(t,e.Diagnostics.const_declarations_must_be_initialized)}return rh.module===e.ModuleKind.ES2015||rh.module===e.ModuleKind.System||rh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ty(t.name),(e.isLet(t)||e.isConst(t))&&Cy(t.name)}function Ty(t){if(71===t.kind){if("__esModule"===e.unescapeIdentifier(t.text))return Fy(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function Py(t,n,r,a,i){var o=e.getSourceFileOfNode(t);if(!wy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return tb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,a,i)),!0}}function Oy(t,n,r,a,i,o,s){if(!wy(t))return tb.add(e.createFileDiagnostic(t,n,r,a,i,o,s)),!0}function Fy(t,n,r,a,i){if(!wy(e.getSourceFileOfNode(t)))return tb.add(e.createDiagnosticForNode(t,n,r,a,i)),!0}function Iy(t){if(t.typeParameters)return Oy(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function My(t){if(t.type)return Fy(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Ry(t){if(e.isClassLike(t.parent)){if(hy(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(hy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Fy(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(hy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Fy(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return Py(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Ly(t){return!(230===t.kind||231===t.kind||238===t.kind||237===t.kind||244===t.kind||243===t.kind||236===t.kind||515&e.getModifierFlags(t))&&Py(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function By(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(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,a=(r?"-":"")+"0o"+t.text;return Fy(r?t.parent:t,n,a)}}}function zy(t,n,r,a,i){var o=e.getSourceFileOfNode(t);if(!wy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return tb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,a,i)),!0}}function Uy(){var e=[];return Ov.forEach(function(t,n){o.test(n)&&e.push(t);}),e}function qy(t){if(ih===e.ModuleKind.ES2015)return Fy(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Fy(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?Fy(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?Fy(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var Vy,$y,Wy,Hy=e.objectAllocator.getSymbolConstructor(),Gy=e.objectAllocator.getTypeConstructor(),Xy=e.objectAllocator.getSignatureConstructor(),Yy=0,Qy=0,Zy=0,eh=0,th=[],nh=e.createMap(),rh=a.getCompilerOptions(),ah=e.getEmitScriptTarget(rh),ih=e.getEmitModuleKind(rh),oh=!!rh.noUnusedLocals||!!rh.noUnusedParameters,sh=void 0!==rh.allowSyntheticDefaultImports?rh.allowSyntheticDefaultImports:ih===e.ModuleKind.System,ch=void 0===rh.strictNullChecks?rh.strict:rh.strictNullChecks,uh=void 0===rh.noImplicitAny?rh.strict:rh.noImplicitAny,lh=void 0===rh.noImplicitThis?rh.strict:rh.noImplicitThis,_h=function(){function t(e){if(i){var t=179===e.kind||71===e.kind&&Ks(e)?1156031:794600,r=se(e,t,!0);return r&&r!==kh?n(r,t):void 0}}function n(t,n){if(i&&r(t)){for(var a,o=0,s=t.declarations;o0){var k=(t.target.typeParameters||th).length;x=r(a.slice(u,k),s);}return x&&((71===v.kind?v:v.right).typeArguments=void 0),e.createTypeReferenceNode(v,x)}if(a.length>0){var S=r(a.slice(0,ea(t)),s);if(S&&S.length>0)return e.createTupleTypeNode(S)}s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple||(s.encounteredError=!0);}(t);if(16384&t.flags||3&b){x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(!m&&t.aliasSymbol&&0===Ke(t.aliasSymbol,s.enclosingDeclaration,793064,!1).accessibility){var x=p(t.aliasSymbol),k=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,k)}if(196608&t.flags){var S=r(65536&t.flags?Xe(t.types):t.types,s);return S&&S.length>0?e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,S):void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!It(n)||896&n.flags||function(){var t=!!(8192&n.flags&&e.forEach(n.declarations,function(t){return 32&e.getModifierFlags(t)})),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=Qe(t);if(r){var a=c(r,s,793064,!1);return e.createTypeReferenceNode(a,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var i=_(t);return s.symbolStack.pop(),i}return _(t)}(t);if(262144&t.flags){D=n(t.type,s);return e.createTypeOperatorNode(D)}if(524288&t.flags){var C=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(C,D)}e.Debug.fail("Should be unreachable.");}else s.encounteredError=!0;}function r(t,r){if(e.some(t)){for(var a=[],i=0;i0){var c=t[a-1],l=void 0;1&e.getCheckFlags(s)?l=Ht(c):524384&ng(c).flags&&(l=Wt(s)),i=r(l,n);}var _=u(s,n),d=e.setEmitFlags(e.createIdentifier(_,i),16777216);return a>0?e.createQualifiedName(o(t,a-1),d):d}function s(t,r,a){var i,o=Re(t,n.enclosingDeclaration,r,!1);if(!o||Le(o[0],n.enclosingDeclaration,1===o.length?r:Me(r))){var c=Se(o?o[0]:t);if(c){var u=s(c,Me(r),!1);u&&(i=c,o=u.concat(o||[t]));}}return o||(!a&&(!i&&e.forEach(t.declarations,je)||6144&t.flags)?void 0:[t])}var c;return!(262144&t.flags)&&(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,a,!0),e.Debug.assert(c&&c.length>0)):c=[t],!i||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}function u(t,n){var r=e.firstOrUndefined(t.declarations);if(r){var a=e.getNameOfDeclaration(r);if(a)return e.declarationNameToString(a);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(n.encounteredError||n.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(n.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return t.name}return{typeToTypeNode:function(e,r,a){var i=t(r,a),o=n(e,i);return i.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s}}}(),ph=p(4,"undefined");ph.declarations=[];var fh=p(4,"arguments"),gh={getNodeCount:function(){return e.sum(a.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(a.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(a.getSourceFiles(),"symbolCount")+Qy},getTypeCount:function(){return Yy},isUndefinedSymbol:function(e){return e===ph},isArgumentsSymbol:function(e){return e===fh},isUnknownSymbol:function(e){return e===kh},getMergedSymbol:xe,getDiagnostics:Mg,getGlobalDiagnostics:Lg,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?$c(t,n):Dh},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."),E(t,n)},getDeclaredTypeOfSymbol:yn,getPropertiesOfType:tr,getPropertyOfType:gr,getIndexInfoOfType:br,getSignaturesOfType:yr,getIndexTypeOfType:xr,getBaseTypes:tn,getBaseTypeOfLiteralType:rs,getWidenedType:bs,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Mi(t):Dh},getParameterType:H_,getReturnTypeOfSignature:Lr,getNonNullableType:ds,typeToTypeNode:dh.typeToTypeNode,indexInfoToIndexSignatureDeclaration:dh.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:dh.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?jg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?Yg(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?Qg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?Zg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?em(t):Dh},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?nm(t):void 0},signatureToString:function(t,n,r,a){return We(t,e.getParseTreeNode(n),r,a)},typeToString:function(t,n,r){return He(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:nt,symbolToString:function(t,n,r){return $e(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:im,getRootSymbols:om,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?Bu(t):void 0},getFullyQualifiedName:oe,getResolvedSignature:function(t,n){return t=e.getParseTreeNode(t,e.isCallLikeExpression),t?M_(t,n):void 0},getConstantValue:function(t){return t=e.getParseTreeNode(t,Cm),t?Dm(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&Gl(t,n)},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Pr(t):void 0},isImplementationOfOverload:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?bm(t):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(8388608&t.flags),"Should only get Alias here.");var n=k(t);if(!n.immediateTarget){var r=J(t);e.Debug.assert(!!r),n.immediateTarget=Z(r,!0);}return n.immediateTarget},getAliasedSymbol:ne,getEmitResolver:_,getExportsOfModule:fe,getExportsAndPropertiesOfModule:ge,getAmbientModules:Uy,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?kl(t):void 0},getJsxIntrinsicTagNames:Nl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Er(t)},tryGetMemberInModuleExports:me,tryFindAmbientModuleWithoutAugmentations:function(e){return Dr(e,!1)},getApparentType:_r,getAllPossiblePropertiesOfType:nr,getSuggestionForNonexistentProperty:ql,getSuggestionForNonexistentSymbol:Vl,getBaseConstraintOfType:or,getJsxNamespace:c,resolveNameAtLocation:function(t,n,r){return t=e.getParseTreeNode(t),A(t,n,r,void 0,n)}},mh=[],yh=e.createMap(),hh=e.createMap(),vh=e.createMap(),bh=e.createMap(),xh=[],kh=p(4,"unknown"),Sh=p(0,"__resolving__"),Th=Ne(1,"any"),Ch=Ne(1,"any"),Dh=Ne(1,"unknown"),Eh=Ne(2048,"undefined"),Nh=ch?Eh:Ne(2099200,"undefined"),Ah=Ne(4096,"null"),wh=ch?Ah:Ne(2101248,"null"),Ph=Ne(2,"string"),Oh=Ne(4,"number"),Fh=Ne(128,"true"),Ih=Ne(128,"false"),Mh=function(e){var t=ti(e);return t.flags|=8,t.intrinsicName="boolean",t}([Fh,Ih]),Rh=Ne(512,"symbol"),Lh=Ne(1024,"void"),Bh=Ne(8192,"never"),Kh=Ne(8192,"never"),jh=Ne(16777216,"object"),Jh=Fe(void 0,nh,th,th,void 0,void 0),zh=p(2048,"__type");zh.members=e.createMap();var Uh=Fe(zh,nh,th,th,void 0,void 0),qh=Fe(void 0,nh,th,th,void 0,void 0);qh.instantiations=e.createMap();var Vh=Fe(void 0,nh,th,th,void 0,void 0);Vh.flags|=8388608;var $h,Wh,Hh,Gh,Xh,Yh,Qh,Zh,ev,tv,nv,rv,av,iv,ov,sv,cv,uv,lv,_v,dv,pv,fv,gv,mv,yv,hv,vv,bv,xv,kv,Sv,Tv=Fe(void 0,nh,th,th,void 0,void 0),Cv=Fe(void 0,nh,th,th,void 0,void 0),Dv=Pn(void 0,void 0,void 0,th,Th,void 0,0,!1,!1),Ev=Pn(void 0,void 0,void 0,th,Dh,void 0,0,!1,!1),Nv=Pn(void 0,void 0,void 0,th,Th,void 0,0,!1,!1),Av=Pn(void 0,void 0,void 0,th,Kh,void 0,0,!1,!1),wv=Vr(Ph,!0),Pv=Vr(Th,!1),Ov=e.createMap(),Fv=0,Iv=0,Mv=0,Rv=Ai(""),Lv=Ai(0),Bv=[],Kv=[],jv=[],Jv=0,zv=10,Uv=[],qv=[],Vv=[],$v=[],Wv=[],Hv=[],Gv=[],Xv=[],Yv=[],Qv=[],Zv=[],eb=[],tb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts";}(Sv||(Sv={}));var nb,rb,ab,ib,ob,sb,cb=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),ub=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),lb=e.createMapFromTemplate({string:Ph,number:Oh,boolean:Mh,symbol:Rh,undefined:Eh}),_b=function(){return ti(e.convertToArray(cb.keys(),Ai))}(),db=!1,pb=!1,fb=e.createMap(),gb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},mb=e.createMap(),yb=e.createMap(),hb=e.createMap(),vb=e.createMap(),bb=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType";}(sb||(sb={}));var xb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential";}(xb||(xb={}));var kb=e.createMap();return kb.set(ph.name,ph),function(){for(var t=0,n=a.getSourceFiles();t0&&(i[c-s]=u);}s>0&&(i.length-=s);}}function Ga(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)}function Xa(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=Ya(n,e.emitNode));}return e}function Ya(t,n){var r=t.flags,a=t.leadingComments,i=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),a&&(n.leadingComments=e.addRange(a.slice(),n.leadingComments)),i&&(n.trailingComments=e.addRange(i.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=Qa(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function Qa(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var Za=0;e.createTempVariable=_,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=g,e.createSuper=m,e.createThis=y,e.createNull=h,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=k,e.createComputedPropertyName=S,e.updateComputedPropertyName=T,e.createTypeParameterDeclaration=C,e.updateTypeParameterDeclaration=D,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=P,e.updatePropertySignature=O,e.createProperty=F,e.updateProperty=I,e.createMethodSignature=M,e.updateMethodSignature=R,e.createMethod=L,e.updateMethod=B,e.createConstructor=K,e.updateConstructor=j,e.createGetAccessor=J,e.updateGetAccessor=z,e.createSetAccessor=U,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=$,e.createConstructSignature=W,e.updateConstructSignature=H,e.createIndexSignature=G,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ae,e.updateFunctionTypeNode=ie,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=_e,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=ge,e.createUnionTypeNode=me,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=he,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=ke,e.updateParenthesizedType=Se,e.createThisTypeNode=Te,e.createTypeOperatorNode=Ce,e.updateTypeOperatorNode=De,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Pe,e.updateLiteralTypeNode=Oe,e.createObjectBindingPattern=Fe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Me,e.updateArrayBindingPattern=Re,e.createBindingElement=Le,e.updateBindingElement=Be,e.createArrayLiteral=Ke,e.updateArrayLiteral=je,e.createObjectLiteral=Je,e.updateObjectLiteral=ze,e.createPropertyAccess=Ue,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=$e,e.createCall=We,e.updateCall=He,e.createNew=Ge,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=at,e.createArrowFunction=it,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=_t,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=gt,e.updatePrefix=mt,e.createPostfix=yt,e.updatePostfix=ht,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=kt,e.createTemplateExpression=St,e.updateTemplateExpression=Tt,e.createYield=Ct,e.updateYield=Dt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Pt,e.createExpressionWithTypeArguments=Ot,e.updateExpressionWithTypeArguments=Ft,e.createAsExpression=It,e.updateAsExpression=Mt,e.createNonNullExpression=Rt,e.updateNonNullExpression=Lt,e.createMetaProperty=Bt,e.updateMetaProperty=Kt,e.createTemplateSpan=jt,e.updateTemplateSpan=Jt,e.createSemicolonClassElement=zt,e.createBlock=Ut,e.updateBlock=qt,e.createVariableStatement=Vt,e.updateVariableStatement=$t,e.createEmptyStatement=Wt,e.createStatement=Ht,e.updateStatement=Gt,e.createIf=Xt,e.updateIf=Yt,e.createDo=Qt,e.updateDo=Zt,e.createWhile=en,e.updateWhile=tn,e.createFor=nn,e.updateFor=rn,e.createForIn=an,e.updateForIn=on$$1,e.createForOf=sn,e.updateForOf=cn,e.createContinue=un,e.updateContinue=ln,e.createBreak=_n,e.updateBreak=dn,e.createReturn=pn,e.updateReturn=fn,e.createWith=gn,e.updateWith=mn,e.createSwitch=yn,e.updateSwitch=hn,e.createLabel=vn,e.updateLabel=bn,e.createThrow=xn,e.updateThrow=kn,e.createTry=Sn,e.updateTry=Tn,e.createDebuggerStatement=Cn,e.createVariableDeclaration=Dn,e.updateVariableDeclaration=En,e.createVariableDeclarationList=Nn,e.updateVariableDeclarationList=An,e.createFunctionDeclaration=wn,e.updateFunctionDeclaration=Pn,e.createClassDeclaration=On,e.updateClassDeclaration=Fn,e.createInterfaceDeclaration=In,e.updateInterfaceDeclaration=Mn,e.createTypeAliasDeclaration=Rn,e.updateTypeAliasDeclaration=Ln,e.createEnumDeclaration=Bn,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=jn,e.updateModuleDeclaration=Jn,e.createModuleBlock=zn,e.updateModuleBlock=Un,e.createCaseBlock=qn,e.updateCaseBlock=Vn,e.createNamespaceExportDeclaration=$n,e.updateNamespaceExportDeclaration=Wn,e.createImportEqualsDeclaration=Hn,e.updateImportEqualsDeclaration=Gn,e.createImportDeclaration=Xn,e.updateImportDeclaration=Yn,e.createImportClause=Qn,e.updateImportClause=Zn,e.createNamespaceImport=er,e.updateNamespaceImport=tr,e.createNamedImports=nr,e.updateNamedImports=rr,e.createImportSpecifier=ar,e.updateImportSpecifier=ir,e.createExportAssignment=or,e.updateExportAssignment=sr,e.createExportDeclaration=cr,e.updateExportDeclaration=ur,e.createNamedExports=lr,e.updateNamedExports=_r,e.createExportSpecifier=dr,e.updateExportSpecifier=pr,e.createExternalModuleReference=fr,e.updateExternalModuleReference=gr,e.createJsxElement=mr,e.updateJsxElement=yr,e.createJsxSelfClosingElement=hr,e.updateJsxSelfClosingElement=vr,e.createJsxOpeningElement=br,e.updateJsxOpeningElement=xr,e.createJsxClosingElement=kr,e.updateJsxClosingElement=Sr,e.createJsxAttribute=Tr,e.updateJsxAttribute=Cr,e.createJsxAttributes=Dr,e.updateJsxAttributes=Er,e.createJsxSpreadAttribute=Nr,e.updateJsxSpreadAttribute=Ar,e.createJsxExpression=wr,e.updateJsxExpression=Pr,e.createCaseClause=Or,e.updateCaseClause=Fr,e.createDefaultClause=Ir,e.updateDefaultClause=Mr,e.createHeritageClause=Rr,e.updateHeritageClause=Lr,e.createCatchClause=Br,e.updateCatchClause=Kr,e.createPropertyAssignment=jr,e.updatePropertyAssignment=Jr,e.createShorthandPropertyAssignment=zr,e.updateShorthandPropertyAssignment=Ur,e.createSpreadAssignment=qr,e.updateSpreadAssignment=Vr,e.createEnumMember=$r,e.updateEnumMember=Wr,e.updateSourceFileNode=Hr,e.getMutableClone=Gr,e.createNotEmittedStatement=Xr,e.createEndOfDeclarationMarker=Yr,e.createMergeDeclarationMarker=Qr,e.createPartiallyEmittedExpression=Zr,e.updatePartiallyEmittedExpression=ea,e.createCommaList=na,e.updateCommaList=ra,e.createBundle=aa,e.updateBundle=ia,e.createImmediatelyInvokedFunctionExpression=oa,e.createComma=sa,e.createLessThan=ca,e.createAssignment=ua,e.createStrictEquality=la,e.createStrictInequality=_a,e.createAdd=da,e.createSubtract=pa,e.createPostfixIncrement=fa,e.createLogicalAnd=ga,e.createLogicalOr=ma,e.createLogicalNot=ya,e.createVoidZero=ha,e.createExportDefault=va,e.createExternalModuleExport=ba,e.disposeEmitNodes=Ca,e.getOrCreateEmitNode=Da,e.setTextRange=Ea,e.setEmitFlags=Na,e.getSourceMapRange=Aa,e.setSourceMapRange=wa;var ei;e.createSourceMapSource=Pa,e.getTokenSourceMapRange=Oa,e.setTokenSourceMapRange=Fa,e.getCommentRange=Ia,e.setCommentRange=Ma,e.getSyntheticLeadingComments=Ra,e.setSyntheticLeadingComments=La,e.addSyntheticLeadingComment=Ba,e.getSyntheticTrailingComments=Ka,e.setSyntheticTrailingComments=ja,e.addSyntheticTrailingComment=Ja,e.getConstantValue=za,e.setConstantValue=Ua,e.addEmitHelper=qa,e.addEmitHelpers=Va,e.removeEmitHelper=$a,e.getEmitHelpers=Wa,e.moveEmitHelpers=Ha,e.compareEmitHelpers=Ga,e.setOriginalNode=Xa;}(r||(r={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var a=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,n,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),a)}function a(t,n,r,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),a)}function i(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)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),a=e.createIdentifier(t.right.text);return a.text=t.right.text,e.createPropertyAccess(r,a)}return c(t.text,n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function _(t,n,r,a,i,o,s){var c=[r];if(a&&c.push(a),i&&i.length>0)if(a||c.push(e.createNull()),i.length>1)for(var u=0,_=i;u<_.length;u++){var d=_[u];d.startsOnNewLine=!0,c.push(d);}else c.push(i[0]);return e.setTextRange(e.createCall(l(t,n,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,n,r){return t.requestEmitHelper(Re),e.setTextRange(e.createCall(d("__values"),void 0,[n]),r)}function f(t,n,r,a){return t.requestEmitHelper(Le),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),a)}function g(t,n,r){return t.requestEmitHelper(Le),t.requestEmitHelper(Be),e.setTextRange(e.createCall(d("__spread"),void 0,n),r)}function m(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),a=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[a])),t)}var i=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(i),t)}function y(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)}function h(t,n,r){if(!n)return t;var a=e.updateLabel(n,n.label,222===n.statement.kind?h(t,n.statement):t);return r&&r(n),a}function v(e,t){var n=pe(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function b(t,n,r,a){var i,o,s=de(t,7);if(e.isSuperProperty(s))i=e.createThis(),o=s;else if(97===s.kind)i=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))i=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,a)?(i=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s);break;case 180:v(s.expression,a)?(i=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s);break;default:i=e.createVoidZero(),o=ee(t);}return{target:o,thisArg:i}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function k(t){if(e.isQualifiedName(t)){var n=k(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function S(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function T(e,t,n){switch(t.kind){case 153:case 154:return C(e.properties,t,n,e.multiLine);case 261:return D(t,n);case 262:return E(t,n);case 151:return N(t,n)}}function C(t,n,r,a){var i=e.getAllAccessorDeclarations(t,n),o=i.firstAccessor,s=i.getAccessor,c=i.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_);}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p);}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,S(n.name),e.createObjectLiteral(u,a)]),o);return e.aggregateTransformFlags(f)}}function D(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function w(t){return 0!=(32768&e.getEmitFlags(t))}function P(e,t,n){return R(e,t,n,16384)}function O(t){return 0!=(16384&e.getEmitFlags(t))}function F(e,t,n){return R(e,t,n,8192)}function I(t){return 0!=(8192&e.getEmitFlags(t))}function M(e,t,n){return R(e,t,n)}function R(t,n,r,a){var i=e.getNameOfDeclaration(t);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.getMutableClone(i);return a|=e.getEmitFlags(i),r||(a|=48),n||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(t)}function L(t,n,r,a){return t&&e.hasModifier(n,1)?B(t,R(n),r,a):F(n,r,a)}function B(t,n,r,a){var i=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(i,n);var o;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function K(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function j(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),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(e){return"use strict"===e.expression.text}function z(e,t,n,r){return q(e,t,U(e,t,n),r)}function U(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=n.length;ie.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ie(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,a=e.skipPartiallyEmittedExpressions(r).kind;if(186===a||187===a){var i=e.getMutableClone(n);return i.expression=e.setTextRange(e.createParen(r),r),me(t,i,4)}}else{var o=ue(n).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){return e.createNodeArray(e.sameMap(t,oe))}function ce(t){if(e.some(t)){for(var n=e.createNodeArray(),r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Le={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=f;var Be={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=g,e.createForOfBindingStatement=m,e.insertLeadingStatement=y,e.restoreEnclosingLabel=h,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=k,e.createExpressionForPropertyName=S,e.createExpressionForObjectLiteralElementLike=T,e.getInternalName=A,e.isInternalName=w,e.getLocalName=P,e.isLocalName=O,e.getExportName=F,e.isExportName=I,e.getDeclarationName=M,e.getExternalModuleOrNamespaceExportName=L,e.getNamespaceMemberName=B,e.convertToFunctionBody=K,e.convertFunctionDeclarationToExpression=j,e.addPrologue=z,e.addStandardPrologue=U,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=$,e.parenthesizeBinaryOperand=W,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ae,e.parenthesizeExpressionForExpressionStatement=ie,e.parenthesizeElementTypeMember=oe,e.parenthesizeElementTypeMembers=se,e.parenthesizeTypeParameters=ce,e.parenthesizeConciseBody=le;!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=_e,e.skipOuterExpressions=de,e.skipParentheses=pe,e.skipAssertions=fe,e.recreateOuterExpressions=me,e.startOnNewLine=ye,e.getExternalHelpersModuleName=he,e.getOrCreateExternalHelpersModuleNameIfNeeded=ve,e.getLocalNameForExternalImport=be,e.getExternalModuleNameLiteral=xe,e.tryGetModuleNameFromFile=Se,e.getInitializerOfBindingOrAssignmentElement=Ce,e.getTargetOfBindingOrAssignmentElement=De,e.getRestIndicatorOfBindingOrAssignmentElement=Ee,e.getPropertyNameOfBindingOrAssignmentElement=Ne,e.getElementsOfBindingOrAssignmentPattern=Ae,e.convertToArrayAssignmentElement=we,e.convertToObjectAssignmentElement=Pe,e.convertToAssignmentPattern=Oe,e.convertToObjectAssignmentPattern=Fe,e.convertToArrayAssignmentPattern=Ie,e.convertToAssignmentElementTarget=Me;}(r||(r={}));!function(e){function t(t,n,r,a){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var i=n(t);if(i===t)return t;var o;if(void 0!==i)return o=e.isArray(i)?(a||s)(i):i,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,a,i){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>s-a)&&(i=s-a),(a>0||i0&&_<=142||169===_)return o;switch(_){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),a(o.parameters,s,c,u),i(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),a(o.parameters,s,c,u),i(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 297:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 298:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=a,e.visitFunctionBody=i,e.visitEachChild=o;}(r||(r={})),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,a,i,o){if(void 0===r)return a;var s=o?n:e.reduceLeft,c=o||i,u=r.kind;if(u>0&&u<=142)return a;if(u>=158&&u<=173)return a;var l=a;switch(r.kind){case 206:case 209:case 200:case 225:case 296:break;case 143:l=t(r.left,i,l),l=t(r.right,i,l);break;case 144:l=t(r.expression,i,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 147:l=t(r.expression,i,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.questionToken,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,i,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.parameters,c,l),l=t(r.body,i,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,i,l),l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,i,l),l=t(r.name,i,l);break;case 180:l=t(r.expression,i,l),l=t(r.argumentExpression,i,l);break;case 181:case 182:l=t(r.expression,i,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,i,l),l=t(r.template,i,l);break;case 184:l=t(r.type,i,l),l=t(r.expression,i,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,i,l);break;case 192:case 193:l=t(r.operand,i,l);break;case 194:l=t(r.left,i,l),l=t(r.right,i,l);break;case 195:l=t(r.condition,i,l),l=t(r.whenTrue,i,l),l=t(r.whenFalse,i,l);break;case 196:l=t(r.head,i,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,i,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,i,l),l=t(r.type,i,l);break;case 203:l=t(r.expression,i,l);break;case 205:l=t(r.expression,i,l),l=t(r.literal,i,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,i,l);break;case 210:l=t(r.expression,i,l);break;case 211:l=t(r.expression,i,l),l=t(r.thenStatement,i,l),l=t(r.elseStatement,i,l);break;case 212:l=t(r.statement,i,l),l=t(r.expression,i,l);break;case 213:case 220:l=t(r.expression,i,l),l=t(r.statement,i,l);break;case 214:l=t(r.initializer,i,l),l=t(r.condition,i,l),l=t(r.incrementor,i,l),l=t(r.statement,i,l);break;case 215:case 216:l=t(r.initializer,i,l),l=t(r.expression,i,l),l=t(r.statement,i,l);break;case 219:case 223:l=t(r.expression,i,l);break;case 221:l=t(r.expression,i,l),l=t(r.caseBlock,i,l);break;case 222:l=t(r.label,i,l),l=t(r.statement,i,l);break;case 224:l=t(r.tryBlock,i,l),l=t(r.catchClause,i,l),l=t(r.finallyBlock,i,l);break;case 226:l=t(r.name,i,l),l=t(r.type,i,l),l=t(r.initializer,i,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,i,l),l=t(r.body,i,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.body,i,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,i,l),l=t(r.moduleReference,i,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,i,l),l=t(r.moduleSpecifier,i,l);break;case 239:l=t(r.name,i,l),l=t(r.namedBindings,i,l);break;case 240:l=t(r.name,i,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,i,l),l=t(r.name,i,l);break;case 243:l=e.reduceLeft(r.decorators,i,l),l=e.reduceLeft(r.modifiers,i,l),l=t(r.expression,i,l);break;case 244:l=e.reduceLeft(r.decorators,i,l),l=e.reduceLeft(r.modifiers,i,l),l=t(r.exportClause,i,l),l=t(r.moduleSpecifier,i,l);break;case 248:l=t(r.expression,i,l);break;case 249:l=t(r.openingElement,i,l),l=e.reduceLeft(r.children,i,l),l=t(r.closingElement,i,l);break;case 250:case 251:l=t(r.tagName,i,l),l=t(r.attributes,i,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,i,l);break;case 253:l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 255:case 256:l=t(r.expression,i,l);break;case 257:l=t(r.expression,i,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,i,l),l=t(r.block,i,l);break;case 261:l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 262:l=t(r.name,i,l),l=t(r.objectAssignmentInitializer,i,l);break;case 263:l=t(r.expression,i,l);break;case 264:l=t(r.name,i,l),l=t(r.initializer,i,l);break;case 265:l=s(r.statements,c,l);break;case 297:l=t(r.expression,i,l);break;case 298:l=s(r.elements,c,l);}return l}function a(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function i(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,a=e;r=1)||1572864&f.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(m)){_&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),i,o,a),_=void 0);var y=s(t,i,m);e.isComputedPropertyName(m)&&(d=e.append(d,y.argumentExpression)),r(t,f,y,f);}else _=e.append(_,f);}}_&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),i,o,a);}function i(t,n,a,i,o){var s=e.getElementsOfBindingOrAssignmentPattern(a),u=s.length;t.level<1&&t.downlevelIteration?i=c(t,e.createReadHelper(t.context,i,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o):1!==u&&(t.level<1||0===u)&&(i=c(t,i,!e.isDeclarationBindingElement(n)||0!==u,o));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var g=e.createArraySlice(i,d);r(t,p,g,p);}}else r(t,p,g=e.createElementAccess(i,d),p);}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),i,o,a),_)for(var m=0,y=_;m0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,x)}function x(e){return void 0!==e.decorators&&e.decorators.length>0}function k(t,n){var r=0;return e.some(n)&&(r|=1),e.getClassExtendsHeritageClauseElement(t)&&(r|=64),b(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),pt(t)?r|=8:mt(t)?r|=32:gt(t)&&(r|=16),Gt<=1&&7&r&&(r|=128),r}function S(n){var r=M(n,!0),a=k(n,r);128&a&&t.startLexicalEnvironment();var i=n.name||(5&a?e.getGeneratedNameForNode(n):void 0),o=2&a?C(n,i,a):T(n,i,a),s=[o];if(1&a&&K(s,r,128&a?e.getInternalName(n):e.getLocalName(n)),Z(s,n,!1),Z(s,n,!0),ne(s,n),128&a){var c=e.createTokenRange(e.skipTrivia(Zt.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var _=e.createReturn(l);_.pos=c.pos,e.setEmitFlags(_,1920),s.push(_),e.addRange(s,t.endLexicalEnvironment());var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,e.createImmediatelyInvokedFunctionExpression(s))]));e.setOriginalNode(d,n),e.setCommentRange(d,n),e.setSourceMapRange(d,e.moveRangePastDecorators(n)),e.startOnNewLine(d),s=[d];}return 8&a?ht(s,n):(128&a||2&a)&&(32&a?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&a&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function T(t,n,r){var a=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),i=e.createClassDeclaration(void 0,a,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(i,t),e.setOriginalNode(i,t),e.setEmitFlags(i,o),i}function C(t,n,r){var a=e.moveRangePastDecorators(t),i=Tt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,a);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,a),e.setCommentRange(_,t),_}function D(t){var n=M(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),a=E(t,e.some(r,function(e){return 85===e.token})),i=e.createClassExpression(void 0,t.name,void 0,r,a);if(e.setOriginalNode(i,t),e.setTextRange(i,t),n.length>0){var o=[],s=e.createTempVariable($t);return 8388608&Wt.getNodeCheckFlags(t)&&(Nt(),on$$1[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(i,65536|e.getEmitFlags(i)),o.push(e.startOnNewLine(e.createAssignment(s,i))),e.addRange(o,j(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return i}function E(t,n){var r=[],a=N(t,n);return a&&r.push(a),e.addRange(r,e.visitNodes(t.members,g,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function N(n,r){var a=e.forEach(n.members,L),i=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!a&&!i)return e.visitEachChild(o,u,t);var s=A(o),c=w(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function A(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function w(t,n,r){var a=[],i=0;if(qt(),n){i=P(n,a);var o=O(n);e.addRange(a,e.map(o,I));}else r&&a.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return K(a,M(t,!1),e.createThis()),n&&e.addRange(a,e.visitNodes(n.body.statements,u,e.isStatement,i)),a=e.mergeLexicalEnvironment(a,Vt()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(a),n?n.body.statements:t.members),!0),n?n.body:void 0)}function P(t,n){if(t.body){var r=t.body.statements,a=e.addPrologue(n,r,!1,u);if(a===r.length)return a;var i=r[a];return 210===i.kind&&e.isSuperCall(i.expression)?(n.push(e.visitNode(i,u,e.isStatement)),a+1):a}return 0}function O(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var a=e.getMutableClone(n);return e.setEmitFlags(a,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),a)),e.moveRangePos(t,-1)))}function M(t,n){return e.filter(t.members,n?R:L)}function R(e){return B(e,!0)}function L(e){return B(e,!1)}function B(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,n,r){for(var a=0,i=n;a0?149===a.kind?e.createVoidZero():e.createNull():void 0,u=n(t,i,o,s,c,e.moveRangePastDecorators(a));return e.setEmitFlags(u,1536),u}}function ne(t,n){var r=re(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function re(r){var a=Q(r,r,W(r));if(a){var i=on$$1&&on$$1[e.getOriginalNodeId(r)],o=e.getLocalName(r,!1,!0),s=n(t,a,o),c=e.createAssignment(o,i?e.createAssignment(i,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(r)),c}}function ae(t){return e.visitNode(t.expression,u,e.isExpression)}function ie(n,r){var i;if(n){i=[];for(var o=0,s=n;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={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 };"};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;k=n;var r=e.visitEachChild(n,a,t);return e.addEmitHelpers(r,t.readEmitHelpers()),k=void 0,r}function a(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return i(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,a,t)}}function i(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,a,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,a,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,a,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,a,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,a,e.isModifier),void 0,e.visitParameterList(n.parameters,a,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,a,t))}function l(r){C();var i=e.getOriginalNode(r,e.isFunctionLike).type,o=A<2?d(i):void 0,s=187===r.kind,c=0!=(8192&E.getNodeCheckFlags(r));if(s){var u=n(t,c,o,_(r.body)),l=D();if(e.some(l)){m=e.convertToFunctionBody(u);return e.updateBlock(m,e.setTextRange(e.createNodeArray(e.concatenate(m.statements,l)),m.statements))}return u}var f=[],g=e.addPrologue(f,r.body.statements,!1,a);f.push(e.createReturn(n(t,c,o,_(r.body,g)))),e.addRange(f,D());var m=e.createBlock(f,!0);return e.setTextRange(m,r.body),A>=2&&(4096&E.getNodeCheckFlags(r)?(p(),e.addEmitHelper(m,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(r)&&(p(),e.addEmitHelper(m,e.asyncSuperHelper))),m}function _(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,a,t,r));T();var i=e.convertToFunctionBody(e.visitNode(n,a,e.isConciseBody)),o=D();return e.updateBlock(i,e.setTextRange(e.createNodeArray(e.concatenate(i.statements,o)),i.statements))}function d(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=E.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function p(){0==(1&S)&&(S|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152));}function f(e,t,n){if(1&S&&b(t)){var r=6144&E.getNodeCheckFlags(t);if(r!==w){var a=w;return w=r,P(e,t,n),void(w=a)}}P(e,t,n);}function g(e,t){return t=O(e,t),1===e&&w?m(t):t}function m(e){switch(e.kind){case 179:return y(e);case 180:return h(e);case 181:return v(e)}return e}function y(t){return 97===t.expression.kind?x(e.createLiteral(t.name.text),t):t}function h(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?y(n):h(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var k,S,T=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,P=t.onEmitNode,O=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=g,r}function n(t,n,r,i){t.requestEmitHelper(a);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(r||(r={})),e.transformES2017=t;var a={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return d(n);case 197:return p(n);case 222:return f(n);case 178:return m(n);case 194:return v(n,r);case 226:return b(n);case 216:return S(n,void 0);case 214:return x(n);case 190:return k(n);case 152:return A(n);case 151:return O(n);case 153:return w(n);case 154:return P(n);case 228:return F(n);case 186:return M(n);case 187:return I(n);case 146:return N(n);case 210:return y(n);case 185:return h(n,r);default:return e.visitEachChild(n,c,t)}}function d(n){return 2&re&&1&re?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function p(n){if(2&re&&1&re&&n.asteriskToken){var a=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,i(t,o(t,a,a),a)))),n),n)}return e.visitEachChild(n,c,t)}function f(n){if(2&re&&1&re){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?S(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function g(t){for(var n,r=[],a=0,i=t;a=2&&(4096&Y.getNodeCheckFlags(n)?(K(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Y.getNodeCheckFlags(n)&&(K(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function L(t){H();var n=0,r=[],a=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(a)&&(n=e.addPrologue(r,a.statements,!1,c)),e.addRange(r,B(void 0,t));var i=G();if(n>0||e.some(r)||e.some(i)){var o=e.convertToFunctionBody(a,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,i),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return a}function B(n,r){for(var a=0,i=r.parameters;a=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function a(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function i(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={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 '},_={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},d={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,a,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function a(e){return 4&e.transformFlags?i(e):e}function i(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,a,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,a,i){var s,c=h(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(t,d));}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.filter(e.map(r,o),e.isDefined),n,i);return a&&e.startOnNewLine(p),p}function l(t){return e.visitNode(t.expression,a,e.isExpression)}function _(t){var n=v(t),r=d(t.initializer);return e.createPropertyAssignment(n,r)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=y(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t);}function p(t){var n=f(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function f(t){for(var n,r=0,a=-1,i=0;i=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,c=P(i,t,s,a,o);1!==c&&2!==c||o++,t&&(1===c&&(It|=4096),e.addRange(i,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&w(t.body)||i.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(i,Dt()),t&&U(i,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(i),t?t.body.statements:n.members),!0);return e.setTextRange(u,t?t.body:n),t||e.setEmitFlags(u,1536),u}function w(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return w(n.thenStatement)&&w(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&w(r))return!0}return!1}function P(t,n,r,a,i){if(!r)return n&&J(t,n),0;if(!n)return t.push(e.createReturn(F())),2;if(a)return z(t,n,F()),ft(),1;var o,s,c=n.body.statements;if(i0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,l,t,0,o))),1048576)):i&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(i,l,e.isExpression))),1048576));}function B(t,n,r,a){a=e.visitNode(a,l,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(a,48|e.getEmitFlags(a))),n))]),n),417));i.startsOnNewLine=!0,e.setTextRange(i,n),e.setEmitFlags(i,1048992),t.push(i);}function K(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function j(t,n,r){var a=e.lastOrUndefined(n.parameters);if(K(a,r)){var i=e.getMutableClone(a.name);e.setEmitFlags(i,48);var o=e.getSynthesizedClone(a.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createArrayLiteral([]))])),a),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),a),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),a),e.setTextRange(e.createPostfixIncrement(c),a),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),a))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function J(t,n){32768&n.transformFlags&&187!==n.kind&&z(t,n,e.createThis());}function z(t,n,r,a){ft();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(i,1050112),e.setTextRange(i,a),e.setSourceMapRange(i,n),t.push(i);}function U(t,n,r){if(16384&It){var a=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:a=e.createVoidZero();break;case 152:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,a)]));if(r)return[i].concat(t);t.unshift(i);}return t}function q(t,n){for(var r=0,a=n.members;r0&&(o=!0),e.isBlock(u))i=e.addCustomPrologue(c,u.statements,i,l),r=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,i)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(u,-1);var _=n.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(_,u,Ot)?s=!0:o=!0);var d=e.visitNode(u,l,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.setEmitFlags(p,1440),c.push(p),a=u;}var f=t.endLexicalEnvironment();e.addRange(c,f),U(c,n,!1),!o&&f&&f.length&&(o=!0);var g=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(g,n.body),!o&&s&&e.setEmitFlags(g,1),a&&e.setTokenSourceMapRange(g,18,a),e.setOriginalNode(g,n.body),g}function ee(n){var r=e.visitFunctionBody(n.body,_,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(U(r.statements,n,!0)),r.statements))}function te(n,r){if(r)return e.visitEachChild(n,l,t);var o=256&It?a(4032,512):a(3904,128),s=e.visitEachChild(n,l,t);return i(o,0,0),s}function ne(n){switch(n.expression.kind){case 185:return e.updateStatement(n,re(n.expression,!1));case 194:return e.updateStatement(n,ae(n.expression,!1))}return e.visitEachChild(n,l,t)}function re(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,re(n.expression,!1));case 194:return e.updateParen(n,ae(n.expression,!1))}return e.visitEachChild(n,l,t)}function ae(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,l,t,0,r):e.visitEachChild(n,l,t)}function ie(n){var r,o=a(0,e.hasModifier(n,1)?32:0);if(Mt&&0==(3&n.declarationList.flags)){for(var s=void 0,c=0,u=n.declarationList.declarations;c=t.end)return!1;for(var a=e.getEnclosingBlockScopeContainer(t);r;){if(r===a||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent;}return!1}function xt(t){return 1&Rt&&16&It?e.setTextRange(e.createIdentifier("_this"),t):t}function kt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function St(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var a=r.expression;if(!e.nodeIsSynthesized(a)||181!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||97!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.text}var Tt=t.startLexicalEnvironment,Ct=t.resumeLexicalEnvironment,Dt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,Nt=t.getCompilerOptions(),At=t.getEmitResolver(),wt=t.onSubstituteNode,Pt=t.onEmitNode;t.onEmitNode=dt,t.onSubstituteNode=gt;var Ot,Ft,It,Mt,Rt;return r}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}var r;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings";}(r||(r={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter";}(a||(a={}));var i;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return";}(i||(i={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn";}(o||(o={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask";}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var a=n.tagName;u[e.getOriginalNodeId(a)]=!0;}c(t,n,r);}function a(t,n){return n.id&&u&&u[n.id]?_(t,n):(n=_(t,n),e.isPropertyAccessExpression(n)?i(n):e.isPropertyAssignment(n)?o(n):n)}function i(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(t.text):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=a,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t;}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function a(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;Ft=t;var r=e.visitEachChild(t,i,n);return e.addEmitHelpers(r,n.readEmitHelpers()),Ft=void 0,r}function i(t){var r=t.transformFlags;return Lt?o(t):Rt?s(t):256&r?u(t):512&r?e.visitEachChild(t,i,n):t}function o(e){switch(e.kind){case 212:return j(e);case 213:return z(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return _(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return q(t);case 215:return $(t);case 218:return X(t);case 217:return H(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,i,n):t}}function c(t){switch(t.kind){case 194:return g(t);case 195:return k(t);case 197:return S(t);case 177:return T(t);case 178:return D(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,i,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return _(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,i,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,n),void 0,p(t.body)),t),t);else{var r=Rt,a=Lt;Rt=!1,Lt=!1,t=e.visitEachChild(t,i,n),Rt=r,Lt=a;}return Rt?void Et(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,n),void 0,p(t.body)),t),t);else{var r=Rt,a=Lt;Rt=!1,Lt=!1,t=e.visitEachChild(t,i,n),Rt=r,Lt=a;}return t}function d(t){var r=Rt,a=Lt;return Rt=!1,Lt=!1,t=e.visitEachChild(t,i,n),Rt=r,Lt=a,t}function p(t){var n=[],r=Rt,a=Lt,o=Bt,s=Kt,c=jt,u=Jt,l=zt,_=Ut,d=nn,p=qt,f=Vt,g=$t,m=Wt;Rt=!0,Lt=!1,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,zt=void 0,Ut=void 0,nn=1,qt=void 0,Vt=void 0,$t=void 0,Wt=e.createTempVariable(void 0),Ct();var y=e.addPrologue(n,t.statements,!1,i);w(t.statements,y);var h=it();return e.addRange(n,Dt()),n.push(e.createReturn(h)),Rt=r,Lt=a,Bt=o,Kt=s,jt=c,Jt=u,zt=l,Ut=_,nn=d,qt=p,Vt=f,$t=g,Wt=m,e.setTextRange(e.createBlock(n,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)R(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function h(t){var r=t.left,a=t.right;if(oe(a)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,_e(e.visitNode(r.expression,i,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,_e(e.visitNode(r.expression,i,e.isLeftHandSideExpression)),_e(e.visitNode(r.argumentExpression,i,e.isExpression)));break;default:o=e.visitNode(r,i,e.isExpression);}var s=t.operatorToken.kind;return m(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(a,i,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(a,i,e.isExpression))}return e.visitEachChild(t,i,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=_e(e.visitNode(t.left,i,e.isExpression)),r.right=e.visitNode(t.right,i,e.isExpression),r}return e.visitEachChild(t,i,n)}function b(t){var n=pe(),r=de();return Ge(r,e.visitNode(t.left,i,e.isExpression),t.left),53===t.operatorToken.kind?Qe(n,r,t.left):Ye(n,r,t.left),Ge(r,e.visitNode(t.right,i,e.isExpression),t.right),fe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(at(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,i,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function k(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=pe(),a=pe(),o=de();return Qe(r,e.visitNode(t.condition,i,e.isExpression),t.condition),Ge(o,e.visitNode(t.whenTrue,i,e.isExpression),t.whenTrue),Xe(a),fe(r),Ge(o,e.visitNode(t.whenFalse,i,e.isExpression),t.whenFalse),fe(a),o}return e.visitEachChild(t,i,n)}function S(t){var r=pe(),a=e.visitNode(t.expression,i,e.isExpression);return t.asteriskToken?Ze(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,a,t):a,t):et(a,t),fe(r),$e(t)}function T(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,n,r,a){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=de()),Ge(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,a)]):e.createArrayLiteral(n?[n].concat(t):t,a)),n=void 0,t=[];}return t.push(e.visitNode(r,i,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,i,e.isExpression,0,c);Ge(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0;}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,a)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,a),r)}function D(t){function n(n,r){oe(r)&&n.length>0&&(He(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,i,e.isExpression);return c&&(a&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,a=t.multiLine,o=se(r),s=de();Ge(s,e.createObjectLiteral(e.visitNodes(r,i,e.isObjectLiteralElementLike,0,o),a));var c=e.reduceLeft(r,n,[],o);return c.push(a?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=_e(e.visitNode(t.expression,i,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,i,e.isExpression),r}return e.visitEachChild(t,i,n)}function N(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Nt,wt,!0),a=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(a,i,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,i,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Nt),a=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(a,i,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,i,n)}function w(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(L(a));u.length&&(He(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function L(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,i,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=pe(),r=t.elseStatement?pe():void 0;Qe(t.elseStatement?r:n,e.visitNode(t.expression,i,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Xe(n),fe(r),P(t.elseStatement)),fe(n);}else He(e.visitNode(t,i,e.isStatement));else He(e.visitNode(t,i,e.isStatement));}function K(t){if(oe(t)){var n=pe(),r=pe();Ne(n),fe(r),P(t.statement),fe(n),Ye(r,e.visitNode(t.expression,i,e.isExpression)),Ae();}else He(e.visitNode(t,i,e.isStatement));}function j(t){return Lt?(Ee(),t=e.visitEachChild(t,i,n),Ae(),t):e.visitEachChild(t,i,n)}function J(t){if(oe(t)){var n=pe(),r=Ne(n);fe(n),Qe(r,e.visitNode(t.expression,i,e.isExpression)),P(t.statement),Xe(n),Ae();}else He(e.visitNode(t,i,e.isStatement));}function z(t){return Lt?(Ee(),t=e.visitEachChild(t,i,n),Ae(),t):e.visitEachChild(t,i,n)}function U(t){if(oe(t)){var n=pe(),r=pe(),a=Ne(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):He(e.setTextRange(e.createStatement(e.visitNode(o,i,e.isExpression)),o));}fe(n),t.condition&&Qe(a,e.visitNode(t.condition,i,e.isExpression)),P(t.statement),fe(r),t.incrementor&&He(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,i,e.isExpression)),t.incrementor)),Xe(n),Ae();}else He(e.visitNode(t,i,e.isStatement));}function q(t){Lt&&Ee();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,i,n);return Lt&&Ae(),t}function V(t){if(oe(t)){var n=de(),r=de(),a=e.createLoopVariable(),o=t.initializer;Nt(a),Ge(n,e.createArrayLiteral()),He(e.createForIn(r,e.visitNode(t.expression,i,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),Ge(a,e.createLiteral(0));var s=pe(),c=pe(),u=Ne(c);fe(s),Qe(u,e.createLessThan(a,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0,"Expected continue statment to point to a valid Label."),Xe(n,t);}function H(t){if(Lt){var r=Je(t.label&&t.label.text);if(r>0)return qe(r,t)}return e.visitEachChild(t,i,n)}function G(t){var n=je(t.label?t.label.text:void 0);e.Debug.assert(n>0,"Expected break statment to point to a valid Label."),Xe(n,t);}function X(t){if(Lt){var r=je(t.label&&t.label.text);if(r>0)return qe(r,t)}return e.visitEachChild(t,i,n)}function Y(t){tt(e.visitNode(t.expression,i,e.isExpression),t);}function Q(t){return Ve(e.visitNode(t.expression,i,e.isExpression),t)}function Z(t){oe(t)?(ve(_e(e.visitNode(t.expression,i,e.isExpression))),P(t.statement),be()):He(e.visitNode(t,i,e.isStatement));}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,a=Pe(),o=_e(e.visitNode(t.expression,i,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,i,e.isExpression),[qe(s[u],f.expression)]));}else p++;d.length&&(He(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}Xe(c>=0?s[c]:a);for(u=0;u=0;n--){var r=Jt[n];if(!Le(r))break;if(r.labelText===e)return!0}return!1}function je(t){if(e.Debug.assert(void 0!==Bt),t)for(n=Jt.length-1;n>=0;n--){if(Le(r=Jt[n])&&r.labelText===t)return r.breakLabel;if(Re(r)&&Ke(t,n-1))return r.breakLabel}else for(var n=Jt.length-1;n>=0;n--){var r=Jt[n];if(Re(r))return r.breakLabel}return 0}function Je(t){if(e.Debug.assert(void 0!==Bt),t){for(n=Jt.length-1;n>=0;n--)if(Be(r=Jt[n])&&Ke(t,n-1))return r.continueLabel}else for(var n=Jt.length-1;n>=0;n--){var r=Jt[n];if(Be(r))return r.continueLabel}return 0}function ze(t){if(t>0){void 0===Ut&&(Ut=[]);var n=e.createLiteral(-1);return void 0===Ut[t]?Ut[t]=[n]:Ut[t].push(n),n}return e.createOmittedExpression()}function Ue(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function qe(t,n){return e.Debug.assert(t>0,"Invalid label: "+t),e.setTextRange(e.createReturn(e.createArrayLiteral([Ue(3),ze(t)])),n)}function Ve(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ue(2),t]:[Ue(2)])),n)}function $e(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Wt,"sent"),void 0,[]),t)}function We(){at(0);}function He(e){e?at(1,[e]):We();}function Ge(e,t,n){at(2,[e,t],n);}function Xe(e,t){at(3,[e],t);}function Ye(e,t,n){at(4,[e,t],n);}function Qe(e,t,n){at(5,[e,t],n);}function Ze(e,t){at(7,[e],t);}function et(e,t){at(6,[e],t);}function tt(e,t){at(8,[e],t);}function nt(e,t){at(9,[e],t);}function rt(){at(10);}function at(e,t,n){void 0===qt&&(qt=[],Vt=[],$t=[]),void 0===zt&&fe(pe());var r=qt.length;qt[r]=e,Vt[r]=t,$t[r]=n;}function it(){rn=0,an=0,Ht=void 0,Gt=!1,Xt=!1,Yt=void 0,Qt=void 0,Zt=void 0,en=void 0,tn=void 0;var t=ot();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Wt)],void 0,e.createBlock(t,t.length>0)),524288))}function ot(){if(qt){for(var t=0;t=0;n--){var r=tn[n];Qt=[e.createWith(r.expression,e.createBlock(Qt))];}if(en){var a=en.startLabel,i=en.catchLabel,o=en.finallyLabel,s=en.endLabel;Qt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Wt,"trys"),"push"),void 0,[e.createArrayLiteral([ze(a),ze(i),ze(o),ze(s)])]))),en=void 0;}t&&Qt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Wt,"label"),e.createLiteral(an+1))));}Yt.push(e.createCaseClause(e.createLiteral(an),Qt||[])),Qt=void 0;}function _t(e){if(zt)for(var t=0;t 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 };'};}(r||(r={}));!function(e){function t(t){function i(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||Z.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,Z),le[e.getOriginalNodeId(t)]=se;var n=i(re)(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(n){Y();var a=[],i=Z.alwaysStrict||!Z.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(a,n.statements,i,f);s()&&e.append(a,K()),e.append(a,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(a,e.visitNodes(n.statements,f,e.isStatement,o)),p(a,!1),e.addRange(a,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(a),n.statements));return se.hasExportStarsToExportValues&&!Z.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,te,Z),a=_(t,!0),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,s=a.importAliasNames;return 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(i,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,d(t))])))]),t.statements))}function l(t){var n=_(t,!1),r=n.aliasedModuleNames,a=n.unaliasedModuleNames,i=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,a)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(i),void 0,d(t))]))]),t.statements))}function _(t,n){for(var r=[],a=[],i=[],o=0,s=t.amdDependencies;o=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)],ne>=2?2:0))));if(w(t)){var i=e.getOriginalNodeId(t);_e[i]=O(_e[i],t);}else n=O(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,oe,te,ee,Z),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function k(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(re!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],ne>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var r=e.getOriginalNodeId(t);_e[r]=F(_e[r],t);}else n=F(n,t);return e.singleOrMany(n)}function S(r){if(r.moduleSpecifier){var a=e.getGeneratedNameForNode(r);if(r.exportClause){var i=[];re!==e.ModuleKind.AMD&&i.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);S?S.push(n):S=[n];}function g(t){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),T?T.push(t):T=[t];}function m(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=S,N[A]=T,A++,S=void 0,T=void 0;}function y(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0;}function h(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1;}function v(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((S||T)&&(T&&(t=T.slice()),S)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(S));t?t.push(n):t=[n];}return A--,S=E[A],T=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t);}function x(){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function k(){if(F<3){for(var t=0,n=a;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),k.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,k.sourceMapDecodedMappings.push(b);}}function u(t){if(!C&&!e.positionIsSynthesized(t)){T&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(g,t);r.line++,r.character++;var a=n.getLine(),i=n.getColumn();!v||v.emittedLine!==a||v.emittedColumn!==i||v.sourceIndex===h&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:a,emittedColumn:i,sourceLine:r.line,sourceColumn:r.character,sourceIndex:h}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=h),T&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function l(e,t,n){if(C)return n(e,t);if(t){var r=t.emitNode,a=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,_=o&&o.source,p=g;_===p&&(_=void 0),_&&d(_),296!==t.kind&&0==(16&a)&&c>=0&&u(i(c)),_&&d(p),64&a?(C=!0,n(e,t),C=!1):n(e,t),_&&d(_),296!==t.kind&&0==(32&a)&&l>=0&&u(l),_&&d(p);}}function _(e,t,n,r){if(C)return r(t,n);var a=e&&e.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return n=i(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function d(n){if(!C){m=(g=n).text;var r=S.sourceRoot?t.getCommonSourceDirectory():y,a=e.getRelativePathToDirectoryOrUrl(r,g.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(h=e.indexOf(k.sourceMapSources,a))&&(h=k.sourceMapSources.length,k.sourceMapSources.push(a),k.inputSourceFileNames.push(g.fileName),S.inlineSources&&k.sourceMapSourcesContent.push(g.text));}}function p(){if(!C)return c(),JSON.stringify({version:3,file:k.sourceMapFile,sourceRoot:k.sourceMapSourceRoot,sources:k.sourceMapSources,names:k.sourceMapNames,mappings:k.sourceMapMappings,sourcesContent:k.sourceMapSourcesContent})}function f(){if(!C){if(S.inlineSourceMap){var t=e.convertToBase64(p());return k.jsSourceMappingURL="data:application/json;base64,"+t}return k.jsSourceMappingURL}}var g,m,y,h,v,b,x,k,S=t.getCompilerOptions(),T=S.extendedDiagnostics,C=!(S.sourceMap||S.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return k},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:_,getText:p,getSourceMappingURL:f}}function n(e){if(e<64)return i.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r);}while(e>0);return t}var a={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){function t(t,n){function r(t,n,r){if(j)r(t,n);else if(n){K=!1;var i=n.emitNode,o=i&&i.flags,s=i&&i.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)a(t,n,i,o,r);else{I&&e.performance.mark("preEmitNodeWithComment");var l=296!==n.kind,d=c<0||0!=(512&o)||10===n.kind,p=u<0||0!=(1024&o)||10===n.kind;d||_(c,l);var f=R,m=L,y=B;d||(R=c),p||(L=u,227===n.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),a(t,n,i,o,r),I&&e.performance.mark("postEmitNodeWithComment"),R=f,L=m,B=y,!p&&l&&g(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment");}}}function a(t,n,r,a,s){var c=r&&r.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,i),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,a,s);var l=r&&r.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function i(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ");}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine();}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,M);}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(j=!0,r(e,t),j=!1):r(e,t);}function l(t,n,r){I&&e.performance.mark("preEmitBodyWithDetachedComments");var a=n.pos,i=n.end,o=e.getEmitFlags(t),s=a<0||0!=(512&o),c=j||i<0||0!=(1024&o);s||D(n),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,r(t),j=!1):r(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(n.end,!0),K&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");}function _(e,t){K=!1,t?v(e,p):0===e&&v(e,d);}function d(e,t,n,r,a){N(e,t)&&p(e,t,n,r,a);}function p(t,r,a,i,o){K||(e.emitNewLineBeforeLeadingCommentOfPosition(O,A,o,t),K=!0),n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),i?A.writeLine():A.write(" ");}function f(e){j||-1===e||_(e,!0);}function g(e){b(e,m);}function m(t,r,a,i){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),i&&A.writeLine();}function y(t){j||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,h),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));}function h(t,r,a,i){n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),i?A.writeLine():A.write(" ");}function v(t,n){-1!==R&&t===R||(T(t)?C(n):e.forEachLeadingCommentRange(P,t,n,t));}function b(t,n){(-1===L||t!==L&&t!==B)&&e.forEachTrailingCommentRange(P,t,n);}function x(){w=void 0,P=void 0,O=void 0,F=void 0;}function k(e){A=e;}function S(t){P=(w=t).text,O=e.getLineStarts(w),F=void 0;}function T(t){return void 0!==F&&e.lastOrUndefined(F).nodePos===t}function C(t){var n=e.lastOrUndefined(F).detachedCommentEndPos;F.length-1?F.pop():F=void 0,e.forEachLeadingCommentRange(P,n,t,n);}function D(t){var n=e.emitDetachedComments(P,O,A,E,t,M,j);n&&(F?F.push(n):F=[n]);}function E(t,r,a,i,o,s){n&&n(i),e.writeCommentRange(t,r,a,i,o,s),n&&n(o);}function N(t,n){if(47===P.charCodeAt(t+1)&&t+2=0}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t);}}function u(){var t=e.createTextWriter(me);t.trackSymbol=f,t.reportInaccessibleThisError=m,t.reportPrivateInBaseOfClassExpression=g,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t);}function l(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,_e=e.decreaseIndent;}function _(t){var n=pe;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Pe,function(e){return e.node===n?e:void 0});if(!r&&Ce&&(r=e.forEach(Ce,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var a=r.indent;a;a--)le();233===n.kind&&(e.Debug.assert(void 0===Ce),Ce=[]),P(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ce,Ce=void 0),r.asynchronousOutput=pe.getText();}}),l(n);}function d(t){if(t){De||(De=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){a(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,T),ce(">"));}(t);case 162:return function(e){ce("typeof "),a(e.exprName);}(t);case 164:return function(e){T(e.elementType),ce("[]");}(t);case 165:return function(e){ce("["),x(e.elementTypes,T),ce("]");}(t);case 166:return function(e){b(e.types," | ",T);}(t);case 167:return function(e){b(e.types," & ",T);}(t);case 168:return function(e){ce("("),T(e.type),ce(")");}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),T(t.type);}(t);case 171:return function(e){T(e.objectType),ce("["),T(e.indexType),ce("]");}(t);case 172:return function(e){var t=he;he=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),T(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),T(e.type),ce(";"),ue(),_e(),ce("}"),he=t;}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),_e()),ce("}");}(t);case 71:case 143:return a(t);case 158:return function(e){de(be,e.parameterName),ce(" is "),T(e.type);}(t)}}function C(t){be=t.text,xe=e.getLineStarts(t),ke=t.identifiers,Se=e.isExternalModule(t),he=t,e.emitDetachedComments(be,xe,pe,e.writeCommentRange,t,me,!0),v(t.statements);}function D(e){if(!ke.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!ke.has(n))return n}}function E(e,t,r,a){var i=D(t);return a&&ce("declare "),ce("const "),ce(i),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,he,18436,pe),ce(";"),ue(),i}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(r);}ce(";"),ue(),71===t.expression.kind&&_(n.collectLinkedAliases(t.expression));}function A(e){return n.isDeclarationVisible(e)}function w(e,t){if(t)P(e);else if(237===e.kind||265===e.parent.kind&&Se){var r=void 0;if(Ce&&265!==e.parent.kind)Ce.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});else{if(238===e.kind){var a=e;a.importClause&&(r=a.importClause.name&&n.isDeclarationVisible(a.importClause)||M(a.importClause.namedBindings));}Pe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});}}}function P(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return G(t);case 229:return H(t);case 231:return z(t);case 232:return U(t);case 233:return J(t);case 237:return I(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind");}}function O(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&we&&ce("declare ");}}function F(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ");}function I(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(S(t.moduleReference,n),ce(";")):(ce("require("),L(t),ce(");")),pe.writeLine();}function M(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=pe.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&M(t.importClause.namedBindings)&&(r!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ");}L(t),ce(";"),pe.writeLine();}function L(r){ve=ve||233!==r.kind;var a;if(237===r.kind){var i=r;a=e.getExternalModuleImportEqualsDeclarationExpression(i);}else a=233===r.kind?r.name:(i=r).moduleSpecifier;if(9===a.kind&&ge&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}de(be,a);}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name);}function K(e){B(e),_(n.collectLinkedAliases(e.propertyName||e.name));}function j(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,K),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),L(e)),ce(";"),pe.writeLine();}function J(t){for(Ne(t),O(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var n=he;t.body?(he=t,ce(" {"),ue(),le(),v(t.body.statements),_e(),ce("}"),ue(),he=n):ce(";");}function z(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=he;he=t,Ne(t),O(t),ce("type "),de(be,t.name),$(t.typeParameters),ce(" = "),S(t.type,n),ce(";"),ue(),he=r;}function U(t){Ne(t),O(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue();}function q(t){Ne(t),de(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue();}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function $(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150: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:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231: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}}le(),Ne(t),_e(),de(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.constraint)):S(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.default)):S(t.default,n));}t&&(ce("<"),x(t,n),ce(">"));}function W(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?S(t,r):n||95!==t.expression.kind||ce("null");}t&&(ce(n?" implements ":" extends "),x(t,r));}function H(t){var n=he;he=t;var r,a=e.getClassExtendsHeritageClauseElement(t);a&&!e.isEntityNameExpression(a.expression)&&(r=95===a.expression.kind?"null":E(a.expression,t.name.text+"_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 233===e.kind}))),Ne(t),O(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),$(t.typeParameters),a&&(e.isEntityNameExpression(a.expression)?W([a],!1):(ce(" extends "),ce(r),a.typeArguments&&(ce("<"),x(a.typeArguments,T),ce(">")))),W(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t);});}(e.getFirstConstructorWithBody(t)),v(t.members),_e(),ce("}"),ue(),he=n;}function G(t){Ne(t),O(t),ce("interface "),de(be,t.name);var n=he;he=t,$(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&W(r,!1),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue(),he=n;}function X(t){e.hasDynamicName(t)||(Ne(t),F(e.getModifierFlags(t)),Y(t),ce(";"),ue());}function Y(t){function r(n){return 226===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:149===t.kind||148===t.kind||146===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:229===t.parent.kind||146===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 a(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===a.kind?(n=e.hasModifier(a.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:a.parameters[0],typeName:a.name}):(n=e.hasModifier(a,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:a.name,typeName:void 0})}if(!e.hasDynamicName(t)){var a,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(Ne(i.getAccessor),Ne(i.setAccessor),F(e.getModifierFlags(t)|(i.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){a=t;var o=n(t);if(!o){var s=153===t.kind?i.setAccessor:i.getAccessor;(o=n(s))&&(a=s);}y(t,o,r);}ce(";"),ue();}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(Ne(t),228===t.kind?O(t):151!==t.kind&&152!==t.kind||F(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ae(t));}function re(e){Ne(e),ae(e);}function ae(t){function n(n){var r;switch(t.kind){case 156: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 155: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 157: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 151:case 150: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:229===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 228: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}}var r=he;he=t;var a=!1;if(157===t.kind)F(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var i=pe.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(a=!0,ce("("));}$(t.typeParameters),ce("(");}x(t.parameters,ie),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),T(t.type)):152===t.kind||e.hasModifier(t,8)||h(t,n),he=r,o?a&&ce(")"):(ce(";"),ue());}function ie(t){function r(e){var n=a(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(n){switch(t.parent.kind){case 152: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 156: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 155: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 157: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 151:case 150: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:229===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 228: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);}}function i(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]");}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?i(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))));}le(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?i(t.name):de(be,t.name),n.isOptionalParameter(t)&&ce("?"),_e(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||y(t,t.type,r);}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,Z(e));case 238:return w(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return N(e);case 265:return C(e)}}function se(n,r,i){function o(t,a){var i=266===a.kind;i&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=i);}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,i),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(a)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Oe+='/// '+me),c}var ce,ue,le,_e,de,pe,fe=266===i.kind?i.sourceFiles:[i],ge=266===i.kind,me=t.getNewLine(),ye=t.getCompilerOptions();u();var he,ve,be,xe,ke,Se,Te,Ce,De,Ee=!1,Ne=ye.removeComments?e.noop:k,Ae=ye.stripInternal?c:oe,we=!0,Pe=[],Oe="",Fe=[],Ie=!1,Me=[];return e.forEach(fe,function(n){if(!e.isSourceFileJavaScript(n)){if(ye.noResolve||e.forEach(n.referencedFiles,function(r){var a=e.tryResolveScriptReference(t,n,r);a&&!e.contains(Fe,a)&&(se(a,!ge&&!Ie,o)&&(Ie=!0),Fe.push(a));}),ve=!1,ge&&e.isExternalModule(n)?e.isExternalModule(n)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),C(n),_e(),ce("}"),ue()):(we=!0,C(n)),Pe.length){var r=pe;e.forEach(Pe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&ge);for(n=0;n'+me;}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Me,synchronousDeclarationOutput:pe.getText(),referencesOutput:Oe}}function r(t,r,a,i,o,s){function c(t,n){var r=0,a="";return e.forEach(n,function(e){e.asynchronousOutput&&(a+=t.substring(r,e.outputPos),a+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),a+=t.substring(r)}var u=n(a,i,o,t,r,s),l=u.reportedDeclarationError||a.isEmitBlocked(t)||a.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(a,o,t,d,a.getCompilerOptions().emitBOM,_);}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r;}(r||(r={}));!function(e){function t(t,a,i,o){var s=e.isArray(i)?i:e.getSourceFilesToEmit(t,i),c=t.getCompilerOptions();if(c.outFile||c.out)s.length&&a({jsFilePath:d=c.outFile||c.out,sourceMapFilePath:p=n(d,c),declarationFilePath:f=c.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o);else for(var u=0,l=s;u "),h(e.type);}function Z(e){Rn("new "),Nn(e,e.typeParameters),An(e,e.parameters),Rn(" => "),h(e.type);}function ee(e){Rn("typeof "),h(e.exprName);}function te(t){Rn("{"),t.members.length>0&&Fn(t,t.members,1&e.getEmitFlags(t)?448:65),Rn("}");}function ne(e){h(e.elementType),Rn("[]");}function re(e){Rn("["),Fn(e,e.elementTypes,336),Rn("]");}function ae(e){Fn(e,e.types,260);}function ie(e){Fn(e,e.types,264);}function oe(e){Rn("("),h(e.type),Rn(")");}function se(){Rn("this");}function ce(e){qn(e.operator),Rn(" "),h(e.type);}function ue(e){h(e.objectType),Rn("["),h(e.indexType),Rn("]");}function le(t){var n=e.getEmitFlags(t);Rn("{"),1&n?Rn(" "):(Ln(),Bn()),Jn(t.readonlyToken,"readonly "),Rn("["),h(t.typeParameter.name),Rn(" in "),h(t.typeParameter.constraint),Rn("]"),Jn(t.questionToken,"?"),Rn(": "),h(t.type),Rn(";"),1&n?Rn(" "):(Ln(),Kn()),Rn("}");}function _e(e){b(e.literal);}function de(e){var t=e.elements;0===t.length?Rn("{}"):(Rn("{"),Fn(e,t,432),Rn("}"));}function pe(e){0===e.elements.length?Rn("[]"):(Rn("["),Fn(e,e.elements,304),Rn("]"));}function fe(e){Tn(e.propertyName,": "),Jn(e.dotDotDotToken,"..."),h(e.name),kn(" = ",e.initializer);}function ge(e){var t=e.elements;0===t.length?Rn("[]"):In(e,t,4466|(e.multiLine?32768:0));}function me(t){var n=t.properties;if(0===n.length)Rn("{}");else{var r=65536&e.getEmitFlags(t);r&&Bn();var a=t.multiLine?32768:0;Fn(t,n,978|(kr.languageVersion>=1?32:0)|a),r&&Kn();}}function ye(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var a={kind:23,pos:t.expression.end,end:e.skipTrivia(kr.text,t.expression.end)+1};n=er(t,t.expression,a),r=er(t,a,t.name);}b(t.expression),Hn(n),Rn(!n&&he(t.expression)?"..":"."),Hn(r),h(t.name),Gn(n,r);}function he(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=ir(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var a=e.getConstantValue(n);return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a&&t.removeComments}}function ve(e){b(e.expression),Rn("["),b(e.argumentExpression),Rn("]");}function be(e){b(e.expression),En(e,e.typeArguments),In(e,e.arguments,1296);}function xe(e){Rn("new "),b(e.expression),En(e,e.typeArguments),In(e,e.arguments,9488);}function ke(e){b(e.tag),Rn(" "),b(e.template);}function Se(e){Rn("<"),h(e.type),Rn(">"),b(e.expression);}function Te(e){Rn("("),b(e.expression),Rn(")");}function Ce(e){mt(e);}function De(e){Dn(e,e.decorators),bn(e,e.modifiers),ht(e,Ee);}function Ee(e){Nn(e,e.typeParameters),Pn(e,e.parameters),xn(": ",e.type),Rn(" =>");}function Ne(e){Rn("delete "),b(e.expression);}function Ae(e){Rn("typeof "),b(e.expression);}function we(e){Rn("void "),b(e.expression);}function Pe(e){Rn("await "),b(e.expression);}function Oe(e){qn(e.operator),Fe(e)&&Rn(" "),b(e.operand);}function Fe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),qn(e.operator);}function Me(e){var t=26!==e.operatorToken.kind,n=er(e,e.left,e.operatorToken),r=er(e,e.operatorToken,e.right);b(e.left),Hn(n,t?" ":void 0),Un(e.operatorToken),Hn(r," "),b(e.right),Gn(n,r);}function Re(e){var t=er(e,e.condition,e.questionToken),n=er(e,e.questionToken,e.whenTrue),r=er(e,e.whenTrue,e.colonToken),a=er(e,e.colonToken,e.whenFalse);b(e.condition),Hn(t," "),Rn("?"),Hn(n," "),b(e.whenTrue),Gn(t,n),Hn(r," "),Rn(":"),Hn(a," "),b(e.whenFalse),Gn(r,a);}function Le(e){h(e.head),Fn(e,e.templateSpans,131072);}function Be(e){Rn(e.asteriskToken?"yield*":"yield"),kn(" ",e.expression);}function Ke(e){Rn("..."),b(e.expression);}function je(e){Ct(e);}function Je(e){b(e.expression),En(e,e.typeArguments);}function ze(e){b(e.expression),e.type&&(Rn(" as "),h(e.type));}function Ue(e){b(e.expression),Rn("!");}function qe(e){zn(e.keywordToken,e.pos),Rn("."),h(e.name);}function Ve(e){b(e.expression),h(e.literal);}function $e(e){tr(e)?(zn(17,e.pos,e),Rn(" "),zn(18,e.statements.end,e)):(zn(17,e.pos,e),We(e),Bn(),Wr(e.statements.end),Kn(),zn(18,e.statements.end,e));}function We(t){1&e.getEmitFlags(t)?Fn(t,t.statements,384):Fn(t,t.statements,65);}function He(e){bn(e,e.modifiers),h(e.declarationList),Rn(";");}function Ge(){Rn(";");}function Xe(e){b(e.expression),Rn(";");}function Ye(e){var t=zn(90,e.pos,e);Rn(" "),zn(19,t,e),b(e.expression),zn(20,e.expression.end,e),Cn(e,e.thenStatement),e.elseStatement&&(Vn(e),zn(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Rn(" "),h(e.elseStatement)):Cn(e,e.elseStatement));}function Qe(t){Rn("do"),Cn(t,t.statement),e.isBlock(t.statement)?Rn(" "):Vn(t),Rn("while ("),b(t.expression),Rn(");");}function Ze(e){Rn("while ("),b(e.expression),Rn(")"),Cn(e,e.statement);}function et(e){var t=zn(88,e.pos);Rn(" "),zn(19,t,e),rt(e.initializer),Rn(";"),kn(" ",e.condition),Rn(";"),kn(" ",e.incrementor),Rn(")"),Cn(e,e.statement);}function tt(e){var t=zn(88,e.pos);Rn(" "),zn(19,t),rt(e.initializer),Rn(" in "),b(e.expression),zn(20,e.expression.end),Cn(e,e.statement);}function nt(e){var t=zn(88,e.pos);Rn(" "),Tn(e.awaitModifier," "),zn(19,t),rt(e.initializer),Rn(" of "),b(e.expression),zn(20,e.expression.end),Cn(e,e.statement);}function rt(e){void 0!==e&&(227===e.kind?h(e):b(e));}function at(e){zn(77,e.pos),xn(" ",e.label),Rn(";");}function it(e){zn(72,e.pos),xn(" ",e.label),Rn(";");}function ot(e){zn(96,e.pos,e),kn(" ",e.expression),Rn(";");}function st(e){Rn("with ("),b(e.expression),Rn(")"),Cn(e,e.statement);}function ct(e){var t=zn(98,e.pos);Rn(" "),zn(19,t),b(e.expression),zn(20,e.expression.end),Rn(" "),h(e.caseBlock);}function ut(e){h(e.label),Rn(": "),h(e.statement);}function lt(e){Rn("throw"),kn(" ",e.expression),Rn(";");}function _t(e){Rn("try "),h(e.tryBlock),e.catchClause&&(Vn(e),h(e.catchClause)),e.finallyBlock&&(Vn(e),Rn("finally "),h(e.finallyBlock));}function dt(e){zn(78,e.pos),Rn(";");}function pt(e){h(e.name),xn(": ",e.type),kn(" = ",e.initializer);}function ft(t){Rn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Fn(t,t.declarations,272);}function gt(e){mt(e);}function mt(e){Dn(e,e.decorators),bn(e,e.modifiers),Rn(e.asteriskToken?"function* ":"function "),v(e.name),ht(e,vt);}function yt(e,t){xt(t);}function ht(t,n){var r=t.body;if(r)if(e.isBlock(r)){var a=65536&e.getEmitFlags(t);a&&Bn(),524288&e.getEmitFlags(t)?(n(t),Ir?Ir(3,r,yt):xt(r)):(or(),n(t),Ir?Ir(3,r,yt):xt(r),sr()),a&&Kn();}else n(t),Rn(" "),b(r);else n(t),Rn(";");}function vt(e){Nn(e,e.typeParameters),An(e,e.parameters),xn(": ",e.type);}function bt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,kr))return!1;if(Xn(t,t.statements,2)||Qn(t,t.statements,2))return!1;for(var n,r=0,a=t.statements;r0&&h(e.attributes),Rn("/>");}function Gt(e){Rn("<"),nn(e.tagName),jn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&h(e.attributes),Rn(">");}function Xt(e){Nr.writeLiteral(ar(e,!0));}function Yt(e){Rn("");}function Qt(e){Fn(e,e.properties,131328);}function Zt(e){h(e.name),xn("=",e.initializer);}function en(e){Rn("{..."),b(e.expression),Rn("}");}function tn(e){e.expression&&(Rn("{"),e.dotDotDotToken&&Rn("..."),b(e.expression),Rn("}"));}function nn(e){71===e.kind?b(e):h(e);}function rn(e){Rn("case "),b(e.expression),Rn(":"),on$$1(e,e.statements);}function an(e){Rn("default:"),on$$1(e,e.statements);}function on$$1(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],kr));n.length>0&&$r(n.pos),r?(Rn(" "),h(n[0])):Fn(t,n,81985);}function sn(e){Rn(" "),qn(e.token),Rn(" "),Fn(e,e.types,272);}function cn(e){var t=zn(74,e.pos);Rn(" "),zn(19,t),h(e.variableDeclaration),zn(20,e.variableDeclaration?e.variableDeclaration.end:t),Rn(" "),h(e.block);}function un(t){h(t.name),Rn(": ");var n=t.initializer;if($r&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);$r(r.pos);}b(n);}function ln(e){h(e.name),e.objectAssignmentInitializer&&(Rn(" = "),b(e.objectAssignmentInitializer));}function _n(e){e.expression&&(Rn("..."),b(e.expression));}function dn(e){h(e.name),kn(" = ",e.initializer);}function pn(t){Ln();var n=t.statements;!Vr||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?fn(t):Vr(t,n,fn);}function fn(t){var n=t.statements;or(),w(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Fn(t,n,1,-1===r?n.length:r),sr();}function gn(e){b(e.expression);}function mn(e){In(e,e.elements,272);}function yn(t,n,r){for(var a=0;a0)&&Ln(),h(i),r&&r.set(i.expression.text,i.expression.text));}return t.length}function hn(t){if(e.isSourceFile(t))g(t),yn(t.statements);else for(var n=e.createMap(),r=0,a=t.sourceFiles;r=r.length||0===o;if(!(_&&16384&a)){if(7680&a&&Rn(c(a)),Br&&Br(r),_)1&a?Ln():128&a&&Rn(" ");else{var d=0==(131072&a),p=d;Xn(n,r,a)?(Ln(),p=!1):128&a&&Rn(" "),64&a&&Bn();for(var f=void 0,g=void 0,m=s(a),y=0;y"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=i,e.createPrinter=o;var d;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i";}(d||(d={}));var p;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters";}(p||(p={}));}(r||(r={}));!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var a=e.combinePaths(t,r);if(n(a))return a;var i=e.getDirectoryPath(t);if(i===t)break;t=i;}}function n(t,n){var r=e.getDirectoryPath(n),a=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(a)}function r(t,n,r){var a;return e.forEach(t,function(t){var i=e.getNormalizedPathComponents(t,n);if(i.pop(),a){for(var o=Math.min(a.length,i.length),s=0;se.getRootLength(t)&&!i(t)&&(o(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function s(t,n,r){l||(l=e.createMap());var a=e.sys.createHash(n),i=e.sys.getModifiedTime(t);if(i){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===a&&o.mtime.getTime()===i.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:a,byteOrderMark:r,mtime:s});}function c(n,r,a,i){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,a):e.sys.writeFile(n,r,a),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){i&&i(e.message);}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:a,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p}}function i(t,n,r){var a=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&(a=a.concat(t.getDeclarationDiagnostics(n,r))),e.sortAndDeduplicateDiagnostics(a)}function o(t,n){for(var r="",a=0,i=t;a=4,N=(v+1+"").length;E&&(N=Math.max(S.length,N)),r+=e.sys.newLine;for(var A=g;A<=v;A++){E&&g+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=y().getEmitResolver(i.outFile||i.out?void 0:n);e.performance.mark("beforeEmit");var d=o?[]:e.getTransformers(i,s),p=e.emitFiles(l,_(r),n,o,d);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),p}function S(t){return T(e.toPath(t,Ie,te))}function T(e){return je.get(e)}function C(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(fe.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function D(e,t){return C(e,A,t)}function E(e,t){return C(e,P,t)}function N(e,t){var n=fe.getCompilerOptions();return!e||n.out||n.outFile?M(e,t):C(e,B,t)}function A(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=I(t),e.isCheckJsEnabledForFile(t,i)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function w(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(ye=void 0,me=void 0),t}}function P(e,t){return L(e,t,xe,O)}function O(t,n){return w(function(){if(i.skipLibCheck&&t.isDeclarationFile||i.skipDefaultLibCheck&&t.hasNoDefaultLib)return g;var r=y();e.Debug.assert(!!t.bindDiagnostics);var a=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,i),o=a?t.bindDiagnostics:g,s=a?r.getDiagnostics(t,n):g,c=Te.getDiagnostics(t.fileName),u=Fe.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,F):l})}function F(t){var n=t.file,r=t.start;if(n)for(var a=e.getLineStarts(n),i=e.computeLineAndCharacterOfPosition(a,r).line;i>0;){var o=n.text.slice(a[i-1],a[i]),s=m.exec(o);if(!s)return!0;if(s[3])return!1;i--;}return!0}function I(t){return w(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 184:var a=t;return void c.push(s(a.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file))}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||i.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return a(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),l.path=n,o.useCaseSensitiveFileNames()){var _=Je.get(n);_?G(t,_.fileName,a,s,c):Je.set(n,l);}Oe=Oe||l.hasNoDefaultLib,i.noResolve||(Y(l,r),Q(l)),ne(l),r?be.unshift(l):be.push(l);}return l}function Y(t,r){e.forEach(t.referencedFiles,function(e){H(n(e.fileName,t.fileName),r,t,e.pos,e.end);});}function Q(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=Be(n,t.fileName),a=0;aCe,m=p&&!f(i,u)&&!i.noResolve&&cn&&(Fe.add(e.createDiagnosticForNodeInSourceFile(i.configFile,f.initializer.elements[n],r,a,o,s)),c=!1);}}c&&Fe.add(e.createCompilerDiagnostic(r,a,o,s));}function oe(t,n,r,a){for(var i=!0,o=0,s=se();o1})&&ce(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir");}if(!i.noEmit&&i.allowJs&&i.declaration&&ce(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),i.checkJs&&!i.allowJs&&Fe.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),i.emitDecoratorMetadata&&!i.experimentalDecorators&&ce(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),i.jsxFactory?(i.reactNamespace&&ce(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(i.jsxFactory,l)||ue("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,i.jsxFactory)):i.reactNamespace&&!e.isIdentifierText(i.reactNamespace,l)&&ue("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,i.reactNamespace),!i.noEmit&&!i.suppressOutputPathCheck){var v=_(),b=e.createFileMap(o.useCaseSensitiveFileNames()?void 0:function(e){return e.toLocaleLowerCase()});e.forEachEmittedFile(v,function(e){t(e.jsFilePath,b),t(e.declarationFilePath,b);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),fe}function f(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function a(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||a();case".js":return a()}}var g=[],m=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=r,e.createCompilerHost=a,e.getPreEmitDiagnostics=i,e.formatDiagnostics=o;var y="",h="",v="",b="",x=" ",k="",S="...";e.formatDiagnosticsWithColorAndContext=l,e.flattenDiagnosticMessageText=_,e.createProgram=p,e.getResolutionDiagnostic=f;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(Z)return Z;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),Z={optionNameMap:t,shortOptionNames:n}}function r(t){return a(t,e.createCompilerDiagnostic)}function a(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 i(e,t,n){return j(e,z(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=z(n),!e.startsWith(n,"-")){if(""===n)return[];var a=n.split(",");switch(t.element.type){case"number":return e.map(a,parseInt);case"string":return e.map(a,function(e){return e||""});default:return e.filter(e.map(a,function(e){return i(t.element,e,r)}),function(e){return!!e})}}}function s(t,n){function r(t){for(var n=0;n=a.length)break;var s=o;if(34===a.charCodeAt(s)){for(o++;o32;)o++;i.push(a.substring(s,o));}}r(i);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var s={},u=[],l=[];return r(t),{options:s,fileNames:u,errors:l}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),a=r.optionNameMap,i=r.shortOptionNames;if(t){var o=i.get(e);void 0!==o&&(e=o);}return a.get(e)}function u(t,n){var r="";try{r=n(t);}catch(n){return{config:{},error:e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}}return l(t,r)}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="";try{r=n(t);}catch(n){return{parseDiagnostics:[e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)]}}return e.parseJsonText(t,r)}function d(t){return e.arrayToMap(t,function(e){return e.name})}function p(){return void 0===ee&&(ee=d([{name:"compilerOptions",type:"object",elementOptions:d(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:d(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:d(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])),ee}function f(e,t){return g(e,t,void 0,void 0)}function g(t,n,r,i){function o(a,o,s,l){for(var _={},d=0,p=a.properties;d=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([u]).join(" -> "))),{raw:t||f(n,s)};var l=t?C(t,r,a,c,i,s):D(n,r,a,c,i,s);if(l.extendedConfigPath){o=o.concat([u]);var _=N(n,l.extendedConfigPath,r,a,c,o,s);if(_&&S(_)){var d=_.raw,p=l.raw,g=function(e){var t=p[e]||d[e];t&&(p[e]=t);};g("include"),g("exclude"),g("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options);}}return l}function C(t,n,r,a,i,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=F(t.compilerOptions,r,o,i),c=M(t.typeAcquisition||t.typingOptions,r,o,i);t.compileOnSave=A(t,r,o);var u;return t.extends&&("string"!=typeof t.extends?o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")):u=E(t.extends,n,r,a,o,e.createCompilerDiagnostic)),{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function D(t,n,r,a,i,o){var s,c,u,l=O(i),_={onSetValidOptionKeyValueInParent:function(t,n,a){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=I(i)):c||(c=I(i)))[n.name]=B(n,r,a);},onSetValidOptionKeyValueInRoot:function(s,c,l,_){switch(s){case"extends":return void(u=E(l,n,r,a,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,_,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,_,e.Diagnostics.The_files_list_in_config_file_0_is_empty,i||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,a,i){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));}},d=g(t,o,p(),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:I(i)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}function E(t,n,r,a,i,o){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.toPath(t,r,a);if(n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s)))return s;i.push(o(e.Diagnostics.File_0_does_not_exist,t));}else i.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));}function N(t,n,r,a,i,o,s){var c=_(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)s.push.apply(s,c.parseDiagnostics);else{var u=e.getDirectoryPath(n),l=T(void 0,c,r,u,e.getBaseFileName(n),o,s);if(t&&(m=t.extendedSourceFiles).push.apply(m,c.extendedSourceFiles),S(l)){var d=e.convertToRelativePath(u,a,i),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){g[t]&&(g[t]=e.map(g[t],p));},g=l.raw;f("include"),f("exclude"),f("files");}return l;var m;}}function A(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var a=L(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof a||!a)&&a}}function w(e,t,n){var r=[];return{options:F(e,t,r,n),errors:r}}function P(e,t,n){var r=[];return{options:M(e,t,r,n),errors:r}}function O(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function F(t,n,r,a){var i=O(a);return R(e.optionDeclarations,t,n,i,e.Diagnostics.Unknown_compiler_option_0,r),i}function I(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function M(n,r,a,i){var o=I(i),s=t(n);return R(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,a),o}function R(t,n,r,a,i,o){if(n){var s=d(t);for(var c in n){var u=s.get(c);u?a[u.name]=L(u,n[c],r,o):o.push(e.createCompilerDiagnostic(i,c));}}}function L(t,n,r,a){if(y(t,n)){var i=t.type;return"list"===i&&e.isArray(n)?J(t,n,r,a):"string"!=typeof i?j(t,n,a):K(t,r,n)}a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,m(t)));}function B(t,n,r){if("list"===t.type){var a=t;return a.element.isFilePath||"string"!=typeof a.element.type?e.filter(e.map(r,function(e){return B(a.element,n,e)}),function(e){return!!e}):r}return"string"!=typeof t.type?t.type.get(r):K(t,n,r)}function K(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function j(e,t,n){var a=t.toLowerCase(),i=e.type.get(a);if(void 0!==i)return i;n.push(r(e));}function J(t,n,r,a){return e.filter(e.map(n,function(e){return L(t.element,e,r,a)}),function(e){return!!e})}function z(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function U(t,n,r,a,i,o,s,c,u){a=e.normalizePath(a);var l=o.useCaseSensitiveFileNames?G:X,_=e.createMap(),d=e.createMap();n&&(n=q(n,s,!1,u,"include")),r&&(r=q(r,s,!0,u,"exclude"));var p=V(n,r,a,o.useCaseSensitiveFileNames),f=e.getSupportedExtensions(i,c);if(t)for(var g=0,m=t;g0)for(var v=0,b=o.readDirectory(a,f,r,n);v=n.end}function A(e,t,n){return e.pos<=t&&e.end>=n}function w(e,t,n){return P(e.pos,e.end,t,n)}function P(e,t,n,r){return Math.max(e,n)t||!F(e,n)}function F(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return I(t,18,n);case 260:return F(t.block,n);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,n);case 160:case 161:return F(t.type,n);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?F(t.body,n):t.type?F(t.type,n):R(t,20,n);case 233:return t.body&&F(t.body,n);case 211:return t.elseStatement?F(t.elseStatement,n):F(t.thenStatement,n);case 210:return F(t.expression,n)||R(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,n);case 157:return t.type?F(t.type,n):R(t,22,n);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return F(t.statement,n);case 212:return L(t,106,n)?I(t,20,n):F(t.statement,n);case 162:return F(t.exprName,n);case 189:case 188:case 190:case 197:case 198:return F(t.expression,n);case 183:return F(t.template,n);case 196:return F(e.lastOrUndefined(t.templateSpans),n);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return F(t.operand,n);case 194:return F(t.right,n);case 195:return F(t.whenFalse,n);default:return!0}}function I(t,n,r){var a=t.getChildren(r);if(a.length){var i=e.lastOrUndefined(a);if(i.kind===n)return!0;if(25===i.kind&&1!==a.length)return a[a.length-2].kind===n}return!1}function M(t){var n=B(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}}function R(e,t,n){return!!L(e,t,n)}function L(t,n,r){return e.forEach(t.getChildren(r),function(e){return e.kind===n&&e})}function B(t){var n=e.forEach(t.parent.getChildren(),function(e){if(295===e.kind&&e.pos<=t.pos&&e.end>=t.end)return e});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function K(e,t,n){return J(e,t,n,function(e){return ne(e.kind)})}function j(e,t,n){return J(e,t,n,function(e){return re(e.kind)})}function J(e,t,n,r){return U(e,t,!1,r,!1,n)}function z(e,t,n,r){return U(e,t,!0,void 0,r,n)}function U(t,n,r,a,i,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)){var _=l.getEnd();if(n<_||n===_&&(1===l.kind||i)){s=l;continue e}if(a&&_===n){var d=$(n,t,l);if(d&&a(d))return d}}}return s}}function q(t,n){var r=z(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&nt.end||o.pos===t.end)&&Z(o))return r(o)}}return r(n)}function $(t,n,r,a){function i(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&i(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||10===_.kind&&d===_.end?(p=s(u,l))&&i(p):o(_)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var p=s(u,u.length);return p&&i(p)}}function s(e,t){for(var n=t-1;n>=0;n--)if(Z(e[n]))return e[n]}return o(r||n)}function W(e,t){var n=$(t,e);if(n&&9===n.kind){var r=n.getStart(),a=n.getEnd();if(rr.getStart(t)}function X(t,n,r,a){function i(r){return e.forEach(r,function(e){return Y(e,n,t.text)&&(!a||a(e))})}return void 0===r&&(r=z(t,n,!1)),n<=r.getStart(t)&&(i(e.getLeadingCommentRanges(t.text,r.pos))||i(e.getTrailingCommentRanges(t.text,r.pos)))}function Y(e,t,n){var r=e.pos,a=e.end,i=e.kind;return r=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var a=z(t,n,!1),i=e.getLeadingCommentRanges(t.text,a.pos);return e.forEach(i,r)}function Z(e){return 0!==e.getWidth()}function ee(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"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""}function te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ne(t){return 71===t||e.isKeyword(t)}function re(e){return 9===e||8===e||ne(e)}function ae(e){return 2===e||3===e}function ie(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,a){return r(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:8388608&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(a))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function a(){return r(" ",e.SymbolDisplayPartKind.space)}function i(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):i(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():C}function _(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function d(e){e(T);var t=T.displayParts();return T.clear(),t}function p(e,t,n,r){return d(function(a){e.getSymbolDisplayBuilder().buildTypeDisplay(t,a,n,r);})}function f(e,t,n,r,a){return d(function(i){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,i,n,r,a);})}function g(e,t,n,r){return d(function(a){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,a,n,r);})}function m(t,n,r){if(y(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return r.text;var a=e.getLocalSymbolForExportDefault(n);return t.symbolToString(a||n)}function y(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,n){for(var r=[],a=2;a=0){var _=c-o;_>0&&a.push({length:_,classification:e.TokenClass.Whitespace});}a.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&a.push({length:d,classification:e.TokenClass.Whitespace}),{entries:a,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function a(e,t,r){return n(i(e,t,r),e)}function i(n,r,a){function i(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,s=0,p=0;d.length>0;)d.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:d.push(14);}l.setText(n);var f={endOfLineState:0,spans:[]},g=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||_[p]){if(23===p&&c(s))s=71;else if(c(p)&&c(s)&&!t(p,s))s=71;else if(71===p&&27===s)g++;else if(29===s&&g>0)g--;else if(119===s||136===s||133===s||122===s||137===s)g>0&&!a&&(s=71);else if(14===s)d.push(s);else if(17===s)d.length>0&&d.push(s);else if(18===s&&d.length>0){var m=e.lastOrUndefined(d);14===m?16===(s=l.reScanTemplateToken())?d.pop():e.Debug.assert(15===s,"Should have been a template middle. Was "+s):(e.Debug.assert(17===m,"Should have been an open brace. Was: "+s),d.pop());}}else 12===l.reScanSlashToken()&&(s=12);p=s;}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(i(t,r,u(s)),r>=n.length)if(9===s){var a=l.getTokenText();if(l.isUnterminated()){for(var o=a.length-1,c=0;92===a.charCodeAt(o-c);)c++;if(1&c){var _=a.charCodeAt(0);f.endOfLineState=34===_?3:2;}}}else 3===s?l.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?f.endOfLineState=5:13===s?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):d.length>0&&14===e.lastOrUndefined(d)&&(f.endOfLineState=6);}();}while(1!==s);return f}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),_=[];_[71]=!0,_[9]=!0,_[8]=!0,_[12]=!0,_[99]=!0,_[43]=!0,_[44]=!0,_[20]=!0,_[22]=!0,_[18]=!0,_[101]=!0,_[86]=!0;var d=[];return{getClassificationsForLine:a,getEncodedLexicalClassifications:i}}function n(e,t,n,r,i){return o(a(e,t,n,r,i))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested();}}function a(t,n,a,i,o){function s(e,t,n){l.push(e),l.push(t),l.push(n);}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(a){if(a&&e.textSpanIntersectsWith(o,a.getFullStart(),a.getFullWidth())){var l=a.kind;if(r(n,l),71===l&&!e.nodeIsMissing(a)){var _=a;if(i.get(_.text)){var d=t.getSymbolAtLocation(a);if(d){var p=c(d,e.getMeaningFromLocation(a));p&&s(a.getStart(),a.getWidth(),p);}}}e.forEachChild(a,u);}}var l=[];return u(a),{spans:l,endOfLineState:0}}function i(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 o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],a=0;a=0),a>0){var s=n||g(t.kind,t);s&&i(r,a,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function g(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&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===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 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function m(a){if(a&&e.decodedTextSpanIntersectsWith(y,h,a.pos,a.getFullWidth())){r(t,a.kind);for(var i=0,o=a.getChildren(n);i=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(c.pos,n-c.pos),d=T.exec(_);if(d){var p=d[1],f=d[2],m=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var h=g(m,c.pos+p.length);u.entries=i(m,y,e.getSupportedExtensions(r),!0,h,a,t.path);}else{var v={start:c.pos+p.length,length:d[0].length-p.length};u.entries=l(a,r,y,v);}}return u}}}}function l(t,n,r,a,i){if(void 0===i&&(i=[]),n.types)for(var o=0,s=n.types;o=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}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function h(e,t){return S(e,e.getDirectories)}function v(e,t,n,r,a){return S(e,e.readDirectory)}function b(e,t){return S(e,e.readFile)}function x(e,t){return S(e,e.fileExists)}function k(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function S(e,t){for(var n=[],r=2;r0&&(se=M(r,a)),!0}function m(n){var r=241===n.kind?238:244,a=e.getAncestor(n,r).moduleSpecifier;if(!a)return!1;ne=!0,re=!1;var i=t.getSymbolAtLocation(a);if(!i)return se=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(i);return se=I(o,n.elements),!0}function y(n){ne=!0,re=!0,oe=1;var r=e.getClassExtendsHeritageClauseElement(n),a=e.getClassImplementsHeritageClauseElements(n);if(r||a){var i=H.parent,o=e.isClassElement(i)&&e.getModifierFlags(i);if(71===H.kind&&!B(H))switch(H.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?void 0:e.flatMap(a,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});se=R(s?t.getPropertiesOfType(s):void 0,c,n.members,o);}}}function k(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function S(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function C(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function D(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function E(t){return t.parent&&D(t.parent)&&(b(t.kind)||e.isDeclarationName(t))}function N(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(ee))return ee;break;default:if(C(t)&&(h(t.kind)||v(t.getText())))return t.parent.parent}if(ee&&295===ee.kind&&e.isClassLike(ee.parent))return ee.parent}function A(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(E(t))return t.parent.parent}}function w(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function P(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||O(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||O(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(C(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(v(t.getText())&&C(t))return!1;if(E(t)&&(!e.isIdentifier(t)||x(t.getText())||B(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)}function O(t){return e.isFunctionLikeKind(t)&&152!==t}function F(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function I(t,n){for(var r=e.createMap(),a=0,i=n;as))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function C(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}var D;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords";}(D||(D={})),t.getCompletionsAtPosition=n,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;var E=[];}(e.Completions||(e.Completions={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i,s,c){var u=e.getTouchingWord(i,s,!0);if(u){if(e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,_=[l.openingElement,l.closingElement].map(function(e){return r(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:_}]}return a(u,t,n,c)||o(u,i)}}function r(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function a(t,n,r,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,a,r);return o&&i(o)}function i(t){for(var n=e.createMap(),r=0,a=t;r=0&&!m(n,r[a],106);a--);var i=d(t.statement);return e.forEach(i,function(e){p(t,e)&&m(n,e.getFirstToken(),72,77);}),n}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return x(t)}}function x(t){var n=[];return m(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){m(n,r.getFirstToken(),73,79);var a=d(r);e.forEach(a,function(e){p(t,e)&&m(n,e.getFirstToken(),72);});}),n}function k(t,n){var r=[];return m(r,t.getFirstToken(),102),t.catchClause&&m(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&m(r,e.findChildOfKind(t,87,n),87),r}function S(t){var n=_(t);if(n){var r=[];return e.forEach(l(n),function(e){m(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){m(r,e.getFirstToken(),96);}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){m(r,e.getFirstToken(),96);}),e.forEach(l(n.body),function(e){m(r,e.getFirstToken(),100);}),r}}function C(t,n){for(var a=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var i=t.getChildren();m(a,i[0],90);for(c=i.length-1;c>=0&&!m(a,i[c],82);c--);if(!s(t.elseStatement,211))break;t=t.elseStatement;}for(var o=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),c++;continue}}o.push(r(a[c],n));}return o}function D(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.text===t)return!0;return!1}t.getDocumentHighlights=n;}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function a(t,n){var r=p.get(t);return!r&&n&&p.set(t,r=e.createFileMap()),r}function i(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return p.get(e).forEachValue(function(e,n){t.push({name:e,refCount:n.languageServiceRefCount,references:n.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)}function o(t,a,i,o,c){return s(t,e.toPath(t,n,f),a,r(a),i,o,c)}function s(e,t,n,r,a,i,o){return l(e,t,n,r,a,i,!0,o)}function c(t,a,i,o,s){return u(t,e.toPath(t,n,f),a,r(a),i,o,s)}function u(e,t,n,r,a,i,o){return l(e,t,n,r,a,i,!1,o)}function l(t,n,r,i,o,s,c,u){var l=a(i,!0),_=l.get(n);return _?_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))):(e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?"),_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:0,owners:[]},l.set(n,_)),c&&_.languageServiceRefCount++,_.sourceFile}function _(t,a){return d(e.toPath(t,n,f),r(a))}function d(t,n){var r=a(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.remove(t);}void 0===n&&(n="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:_,releaseDocumentWithKey:d,reportStats:i,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t;}(r||(r={}));!function(e){!function(n){function r(e,n,r){var o=c(e,n,r);return function(s,c,u){var l=a(e,o,c,n,r),_=l.directImports,d=l.indirectUsers;return t({indirectUsers:d},i(_,s,c.exportKind,n,u))}}function a(t,n,r,a,i){function s(t){var n=_(t);if(n)for(var r=0,o=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(i.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(i.charCodeAt(u),5)||a.push(c),c=i.indexOf(n,c+s+1);}return a}function y(n,r){for(var a=[],i=n.getSourceFile(),o=r.text,s=0,c=m(i,o,n);s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,a=t;r0)return r}switch(t.kind){case 265:var a=t;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 291:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(a.push(e),e.children))for(var t=0,i=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?i(t.parent.left).replace(M,""):261===t.parent.kind&&t.parent.name?i(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function P(e){return 186===e.kind||187===e.kind||199===e.kind}var O,F,I,M=/\s+/g,R=[],L=[];t.getNavigationBarItems=n,t.getNavigationTree=r;}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r,a,i){if(n&&r&&a){var o={textSpan:e.createTextSpanFromBounds(r.pos,a.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:i};u.push(o);}}function a(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function i(r){var i=e.getLeadingCommentRangesOfNode(r,t);if(i){for(var s=-1,c=-1,u=!0,l=0,_=0,d=i;_1&&a({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(a){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(a)&&i(a),a.kind){case 207:if(!e.isFunctionBlock(a)){var o=a.parent,p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(a));break}if(224===o.kind){var g=o;if(g.tryBlock===a){r(o,p,f,s(a));break}if(g.finallyBlock===a){var m=e.findChildOfKind(g,87,t);if(m){r(m,p,f,s(a));break}}}var y=e.createTextSpanFromNode(a);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(a)});break}case 234:var p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);r(a.parent,p,f,s(a));break;case 229:case 230:case 232:case 178:case 235:r(a,p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t),s(a));break;case 177:r(a,e.findChildOfKind(a,21,t),e.findChildOfKind(a,22,t),s(a));}_++,e.forEachChild(a,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u}t.collectElements=n;}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(n){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(v))}function l(t,n){if(!o(n)){var r=f(n,e.lastOrUndefined(v));if(r&&(t=t||[],!(v.length-1>t.length))){for(var a=r,i=v.length-2,s=t.length-1;i>=0;i-=1,s-=1){var c=v[i],u=f(t[s],c);if(!u)return;e.addRange(a,u);}return a}}}function _(e){var t=h.get(e);return t||h.set(e,t=g(e)),t}function d(n,r,a){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,a,n===r.text):t(x.prefix,a,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=0,l=_(n);u0)return t(x.substring,a,!0);if(!c&&r.characterSpans.length>0){var p=_(n),f=y(n,p,r,!1);if(void 0!==f)return t(x.camelCase,a,!0,f);if(void 0!==(f=y(n,p,r,!0)))return t(x.camelCase,a,!1,f)}return c&&r.text.length0&&i(n.charCodeAt(o))?t(x.substring,a,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(r)for(l=0;l1}}function r(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function a(e){return 0===e.subWordTextChunks.length}function i(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function _(e){return i(e)||o(e)||l(e)||95===e||36===e}function d(e){for(var t=[],n=0,r=0,a=0;a0&&(t.push(p(e.substr(n,r))),r=0);return r>0&&t.push(p(e.substr(n,r))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return m(e,!1)}function g(e){return m(e,!0)}function m(t,n){for(var r=[],a=0,i=1;i0){if(e.some(c,o))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?a(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind)return o(t)?i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):a(u=e.stripQuotes(t.text),u,"var","",t,r)}function a(e,t,n,r,a,i){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(a,i)}}function i(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),a=t.getWidth(n);return 9===t.kind&&(r+=1,a-=2),e.createTextSpan(r,a)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=n;}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(t,n,a,i){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,a);if(s){var c=_(s,a,n);if(i.throwIfCancellationRequested(),c){var u=c.invocation,l=[],d=o.getResolvedSignature(u,l);if(i.throwIfCancellationRequested(),l.length)return f(l,d,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.text)for(var a=t.getTypeChecker(),i=0,o=t.getSourceFiles();i0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(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}function c(t,n,r){var a=13===t.template.kind?1:t.template.templateSpans.length+1;return e.Debug.assert(0===n||ni.parent.end)&&e.Debug.fail("Node of kind "+i.kind+" is not a subspan of its parent of kind "+i.parent.kind);var o=a(i,n,r);if(o)return o}}function d(t,n,r){var a=t.getChildren(r),i=a.indexOf(n);return e.Debug.assert(i>=0&&a.length>i+1),a[i+1]}function p(e,t){for(var n=-1,r=-1,a=0;a=t)return a;i.parameters.length>r&&(r=i.parameters.length,n=a);}return n}function f(t,n,r,a){function i(t){var n=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:a.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:g,displayParts:n,isOptional:!1}}var s=r.argumentsSpan,c=0===r.kind,u=r.invocation,l=e.getInvokedExpression(u),_=a.getSymbolAtLocation(l),d=_&&e.symbolToDisplayParts(a,_,void 0,void 0),f=e.map(t,function(t){var n,r=[],s=[];d&&e.addRange(r,d);var l;if(c){l=!1,r.push(e.punctuationPart(27));var _=t.typeParameters;n=_&&_.length>0?e.map(_,o):g,s.push(e.punctuationPart(29));var p=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,p);}else{l=t.hasRestParameter;var f=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,f),r.push(e.punctuationPart(19));var m=t.parameters;n=m.length>0?e.map(m,i):g,s.push(e.punctuationPart(20));}var y=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,y),{isVariadic:l,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}}),m=r.argumentIndex,y=r.argumentCount,h=t.indexOf(n);return h<0&&(h=p(t,y)),e.Debug.assert(0===m||m0?e.getNodeModifiers(t.declarations[0]):""}function i(t,a,i,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var a=e.symbolToDisplayParts(t,n,r||i,void 0,3);e.addRange(b,a);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,a){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|a)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),m=n.getDocumentationComment(),y=n.getJsDocTags();}function g(n,r){var a=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,a);}void 0===c&&(c=e.getMeaningFromLocation(s));var m,y,h,v,b=[],x=a.flags,k=r(t,a,s),S=99===s.kind&&e.isExpression(s);if(""!==k||32&x||8388608&x){"getter"!==k&&"setter"!==k||(k="property");O=void 0;if(v=S?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(a,s)){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(e.isCallOrNewExpression(s)?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(a.valueDeclaration)&&(C=s.parent),C){var D=[];!(O=t.getResolvedSignature(C,D))&&D.length&&(O=D[0]);var E=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=E?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,O.target)||e.contains(N,O)||(O=N.length?N[0]:void 0),O){switch(E&&32&x?(k="constructor",d(v.symbol,k)):8388608&x?(p(k="alias"),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(a)):d(a,k),k){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(O,N,16);break;default:f(O,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&a.flags)||123===s.kind&&152===s.parent.kind){var A=s.parent;if(e.findDeclaration(a,function(e){return e===(123===s.kind?A.parent:A)})){N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();O=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(k="constructor",d(v.symbol,k)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?a:v.symbol,k),f(O,N),h=!0;}}}}if(32&x&&!h&&!S&&(e.getDeclarationOfKind(a,199)?p("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(a),g(a,i)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(a),g(a,i)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(a),g(a,i),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(a),o,1024))),384&x&&(u(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(a)),1536&x){u();var w=(L=e.getDeclarationOfKind(a,233))&&L.name&&71===L.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(a);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(a),a.parent)l(),_(a.parent,o),g(a.parent,o);else{var P=e.getDeclarationOfKind(a,145);if(e.Debug.assert(void 0!==P),L=P.parent)if(e.isFunctionLikeKind(L.kind)){l();var O=t.getSignatureFromDeclaration(L);156===L.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==L.kind&&L.name&&_(L.symbol),e.addRange(b,e.signatureToDisplayParts(t,O,i,64));}else 231===L.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(L.symbol),g(L.symbol,i));}if(8&x&&(k="enum member",d(a,"enum member"),264===(L=a.declarations[0]).kind)){var F=t.getConstantValue(L);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)));}if(8388608&x&&(u(),236===a.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(a),e.forEach(a.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var a=t.getSymbolAtLocation(r.moduleReference);a&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(a,o));}return!0}})),!h)if(""!==k){if(v)if(S?(u(),b.push(e.keywordPart(99))):d(a,k),"property"===k||"JSX attribute"===k||3&x||"local var"===k||S)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===k)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else k=n(t,a,s);if(!m&&(m=a.getDocumentationComment(),y=a.getJsDocTags(),0===m.length&&4&a.flags&&a.parent&&e.forEach(a.parent.declarations,function(e){return 265===e.kind})))for(var M=0,R=a.declarations;M0))break}}return{displayParts:b,documentation:m,symbolKind:k,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=a,t.getSymbolDisplayPartsDocumentationAndSymbolKind=i;}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,n){var a=[],i=n.compilerOptions?r(n.compilerOptions,a):e.getDefaultCompilerOptions();i.isolatedModules=!0,i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,i.noLib=!0,i.lib=void 0,i.types=void 0,i.noEmit=void 0,i.noEmitOnError=void 0,i.paths=void 0,i.rootDirs=void 0,i.declaration=void 0,i.declarationDir=void 0,i.out=void 0,i.outFile=void 0,i.noResolve=!0;var o=n.fileName||(i.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,i.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(i),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assert(void 0===u,"Unexpected multiple source map outputs for the file '"+t+"'"),u=n):(e.Debug.assert(void 0===c,"Unexpected multiple outputs for the 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[]}},d=e.createProgram([o],i,_);return n.reportDiagnostics&&(e.addRange(a,d.getSyntacticDiagnostics(s)),e.addRange(a,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:a,sourceMapText:u}}function n(n,r,a,i,o){var s=t(n,{compilerOptions:r,fileName:a,reportDiagnostics:!!i,moduleName:o});return e.addRange(i,s.diagnostics),s.outputText}function r(t,n){a=a||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var r=0,i=a;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),i=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e;}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function r(e){return new i(e)}function c(e){return new a(e)}function u(t,n,r){void 0===r&&(r=[]);for(var i=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&i.push(o);return new a(i)}function l(e){return new s(e)}t.FromToken=r,t.FromTokens=c,t.FromRange=u,t.AnyExcept=l,t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119]);}(t.TokenRange||(t.TokenRange={}));}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r,a){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var o=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,g({pos:e.getStartPositionOfLine(i-1,n),end:o+1},n,a,r,2)}function r(e,t,n,r){return s(e,25,t,r,n,3)}function a(e,t,n,r){return s(e,18,t,r,n,4)}function i(e,t,n){return g({pos:0,end:e.text.length},e,n,t,0)}function o(t,n,r,a,i){return g({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,a,1)}function s(t,n,r,a,i,o){var s=c(t,n,r);return s?g({pos:e.getLineStartPositionForPosition(s.getStart(r),r),end:s.end},r,a,i,o):[]}function c(t,n,r){var a=e.findPrecedingToken(t,r);if(a&&a.kind===n&&t===a.getEnd()){for(var i=a;i&&i.parent&&i.parent.end===a.end&&!u(i.parent,i);)i=i.parent;return i}}function u(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function l(t,n){function r(a){var i=e.forEachChild(a,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(i){var o=r(i);if(o)return o}return a}return r(n)}function _(t,n){function r(){return!1}if(!t.length)return r;var a=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!a.length)return r;var i=0;return function(t){for(;;){if(i>=a.length)return!1;var n=a[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 d(t,n,r){var a=t.getStart(r);if(a===n.pos&&t.end===n.end)return a;var i=e.findPrecedingToken(n.pos,r);return i?i.end>=n.pos?t.pos:i.end:t.pos}function p(e,n,r){for(var a,i=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&o!==i)break;if(t.SmartIndenter.shouldIndentChildNode(e,a))return n.indentSize;i=o,a=e,e=e.parent;}return 0}function f(e,n,r,a,i,o){var s={pos:0,end:n.text.length};return m(s,e,a,i,t.getFormattingScanner(n.text,r,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},n)}function g(e,n,r,a,i){var o=l(e,n);return m(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),p(o,r,n),t.getFormattingScanner(n.text,n.languageVariant,d(o,e,n),e.end),r,a,i,_(n.parseDiagnostics,e),n)}function m(n,r,a,i,o,s,c,u,l,_){function d(n,r,a,i,o){if(e.rangeOverlapsWithStartEnd(i,n,r)||e.rangeContainsStartEnd(i,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==a||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function p(e,n,r,a,i,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===L?B:i.getIndentation(),u=Math.min(s.indentSize,i.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,n,_)?i.getIndentation():i.getIndentation()+i.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function g(e,n,r,a){function i(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+i(a,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===f(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+i(a,s):r},getIndentation:function(){return r},getDelta:function(e){return i(a,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,a=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function m(t,r,a,i,s,c){function u(r,a,i,s,c,u,l,f){var g=r.getStart(_),y=_.getLineAndCharacterOfPosition(g).line,h=y;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var b=-1;if(l&&-1!==(b=d(g,r.end,c,n,a))&&(a=b),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endg);)v(x,t,s,t);if(!o.isOnToken())return a;if(e.isToken(r)&&10!==r.kind){var x=o.readTokenInfo(r);return e.Debug.assert(x.token.end===r.end,"Token end is child end"),v(x,t,s,r),a}var k=147===r.kind?y:u,S=p(r,y,b,t,s,k);return m(r,T,y,h,S.indentation,S.delta),T=t,f&&177===i.kind&&-1===a&&(a=S.indentation),a}function f(n,r,a,i){var s=y(r,n),c=h(s),l=i,d=a;if(0!==s)for(;o.isOnToken()&&!((x=o.readTokenInfo(r)).token.end>n.pos);)if(x.token.kind===s){d=_.getLineAndCharacterOfPosition(x.token.pos).line;var f=p(x.token,d,-1,r,i,a);v(x,r,l=g(r,a,f.indentation,f.delta),r);}else v(x,r,i,r);for(var m=-1,b=0;bt.end)break;v(C,t,k,t);}}}function b(t,r,a,i){for(var o=0,s=t;o0){var k=v(x,s);P(h,b.character,k);}else w(h,b.character);}}}else a||S(n.pos,r,!1);}function E(t,n,r){for(var a=t;ao)){var s=N(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function P(e,t,n){(t||n)&&j.push(A(e,t,n));}function O(e,t,n,r,a){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==a)return;1!==a-n&&P(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==a)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||P(t.end,r.pos-t.end," ");}}var F,I,M,R,L,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),m(r,r,J,z,a,i);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(b(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function y(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function h(e){switch(e){case 19:return 20;case 27:return 29}return 0}function v(e,t){function n(e,t){for(var n="",r=0;rr.text.length)return a(o);if(o.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,r);if(!_)return a(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(r)<=n&&_.end>n)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(o.indentStyle===e.IndentStyle.Block){for(var p=n;p>0;){var m=r.text.charCodeAt(p);if(!e.isWhiteSpaceLike(m))break;p--;}var y=e.getLineStartPositionForPosition(p,r);return t.findFirstNonWhitespaceColumn(y,p,r,o)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=s(_,r,o)))return T;for(var h,v,b,x=_;x;){if(e.positionBelongsToNode(x,n,r)&&k(x,h)){v=l(x,r);var S=u(_,x,d,r);b=0!==S?c&&2===S?o.indentSize:0:d!==v.line?o.indentSize:0;break}var T=f(x,r,o);if(-1!==T)return T;if(-1!==(T=g(x,r,o)))return T+o.indentSize;h=x,x=x.parent;}return x?i(x,v,void 0,b,r,o):a(o)}function r(e,t,n,r){return i(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function a(e){return e.baseIndentSize||0}function i(e,t,n,r,i,s){for(var u,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(i);d=pn.end;}if(d&&-1!==(y=f(e,i,s)))return y+r;var m=(u=o(l,e,i)).line===t.line||_(l,e,t.line,i);if(d){var y=c(e,l,t,m,i,s);if(-1!==y)return y+r;if(-1!==(y=g(e,i,s)))return y+r}k(l,e)&&!m&&(r+=s.indentSize),t=u,l=(e=l).parent;}return r+a(s)}function o(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function s(t,n,r){var a=e.findListItemInfo(t);return a&&a.listItemIndex>0?m(a.list.getChildren(),a.listItemIndex-1,n,r):-1}function c(t,n,r,a,i,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!a)?y(r,i,o):-1}function u(t,n,r,a){var i=e.findNextToken(t,n);return i?17===i.kind?1:18===i.kind&&r===l(i,a).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,a){if(211===t.kind&&t.elseStatement===n){var i=e.findChildOfKind(t,82,a);return e.Debug.assert(void 0!==i),l(i,a).line===r}return!1}function d(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return d(e.parent.typeParameters,n,e.getEnd())||d(e.parent.parameters,n,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return d(e.parent.typeArguments,n,e.getEnd())||d(e.parent.arguments,n,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,n,r){var a=p(t,n);return a?function(a){var i=e.indexOf(a,t);return-1!==i?m(a,i,n,r):-1}(a):-1}function g(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var a=t.parent.expression,i=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(a);if(a===i)return-1;var o=n.getLineAndCharacterOfPosition(a.end),s=n.getLineAndCharacterOfPosition(i.end);return o.line===s.line?-1:y(o,n,r)}return-1}function m(t,n,r,a){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==i.line)return y(i,r,a);i=l(t[o],r);}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return v(r,r+e.character,t,n)}function h(t,n,r,a){for(var i=0,o=0,s=t;s=0;r--){var a=n[r];t=""+t.substring(0,a.span.start)+a.newText+t.substring(e.textSpanEnd(a.span));}return t}function m(t){return e.skipTrivia(t,0)===t.length}function y(t){function r(){}var i=e.visitEachChild(t,y,e.nullTransformationContext,h,y),o=e.nodeIsSynthesized(i)?i:(r.prototype=i,new r);return o.pos=n(t),o.end=a(t),o}function h(t,r,i,o,s){var c=e.visitNodes(t,r,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=a(t),u}var v;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(v=t.Position||(t.Position={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var b=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t("\n"===e.newLineCharacter?1:0,e.rulesProvider)},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,v.FullStart),a=l(e,t,n);return this.changes.push({sourceFile:e,options:n,range:{pos:r,end:a}}),this},t.prototype.deleteRange=function(e,t){return this.changes.push({sourceFile:e,range:t}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var a=u(e,t,r,v.FullStart),i=l(e,n,r);return this.changes.push({sourceFile:e,options:r,range:{pos:a,end:i}}),this},t.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 a=r.indexOf(n);if(a<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(a!==r.length-1){var i=e.getTokenAtPosition(t,n.end,!1);if(i&&_(n,i)){var o=e.skipTrivia(t.text,u(t,n,{},v.FullStart),!1,!0),s=r[a+1],c=e.skipTrivia(t.text,u(t,s,{},v.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c});}}else{var l=e.getTokenAtPosition(t,r[a-1].end,!1);l&&_(n,l)&&this.deleteNodeRange(t,l,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var a=u(e,t,r,v.Start),i=l(e,t,r);return this.changes.push({sourceFile:e,options:r,useIndentationFromFile:!0,node:n,range:{pos:a,end:i}}),this},t.prototype.replaceNodeRange=function(e,t,n,r,a){void 0===a&&(a={});var i=u(e,t,a,v.Start),o=l(e,n,a);return this.changes.push({sourceFile:e,options:a,useIndentationFromFile:!0,node:r,range:{pos:i,end:o}}),this},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var a=u(e,t,r,v.Start);return this.changes.push({sourceFile:e,options:r,useIndentationFromFile:!0,node:n,range:{pos:a,end:a}}),this},t.prototype.insertNodeAfter=function(t,n,r,a){void 0===a&&(a={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var i=l(t,n,a);return this.changes.push({sourceFile:t,options:a,useIndentationFromFile:!0,node:r,range:{pos:i,end:i}}),this},t.prototype.insertNodeInListAfter=function(t,n,r){var a=e.formatting.SmartIndenter.getContainingList(n,t);if(!a)return e.Debug.fail("node is not a list element"),this;var i=a.indexOf(n);if(i<0)return this;var c=n.getEnd();if(i!==a.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,a[i+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,g=void 0;p.line===l.line?(g=u.end,f=d(l.character-p.character)):g=e.getStartPositionOfLine(l.line,t),this.changes.push({sourceFile:t,range:{pos:g,end:a[i+1].getStart(t)},node:r,useIndentationFromFile:!0,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,a[i+1].getStart(t))}});}}else{var m=n.getStart(t),y=e.getLineStartPositionForPosition(m,t),h=void 0,v=!1;if(1===a.length)h=26;else{var b=e.findPrecedingToken(n.pos,t);h=_(n,b)?b.kind:26,v=e.getLineStartPositionForPosition(a[i-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var x=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,m,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:x,prefix:this.newLineCharacter}});}else this.changes.push({sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createFileMap(),a=0,i=this.changes;a0&&(r=r.concat(n));}),r}var i=[];t.registerCodeFix=n,t.getSupportedErrorCodes=r,t.getFixes=a;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(e){i.set(e.name,e);}function r(e){var t,n=[];i.forEach(function(e){n.push(e);});for(var r=0,a=n;r0&&function(e,r,a){var i={description:a,changes:t.newNodesToChanges(r,u,n)};e.push(i);}(f,b,x);}return f}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(r){if(181===o.parent.parent.kind){var a=o.parent.parent,i=t.createMethodFromCallExpression(a,c,r,u),s=e.textChanges.ChangeTracker.fromCodeFixContext(n);return s.insertNodeAfter(g,m,i,{suffix:n.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(u?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[c]),changes:s.getChanges()}}}var a=n.sourceFile,i=n.span.start,o=e.getTokenAtPosition(a,i,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(a),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32);}else{var _=n.program.getTypeChecker(),d=o.parent.expression,p=_.getTypeAtLocation(d);if(32768&p.flags){var f=p.symbol;32&f.flags&&(s=f.declarations&&f.declarations[0],p!==_.getDeclaredTypeOfSymbol(f)&&(u=!0));}}if(s&&e.isClassLike(s)){var g=e.getSourceFileOfNode(s),m=e.getOpenBraceOfClassLike(s,g);return e.isInJavaScriptFile(g)?function(t,a){var i,o=r(!1);if(o&&(i=[o]),a){if(199===t.kind)return i;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromCodeFixContext(n);l.insertNodeAfter(g,t,u,{suffix:n.newLineCharacter});var _={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(i||(i=[])).push(_),i}var d=e.getFirstConstructorWithBody(t);if(!d)return i;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(n);f.insertNodeAt(g,d.body.getEnd()-1,p,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var m={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:f.getChanges()};return(i||(i=[])).push(m),i}(s,u):function(t,a){var i,s=r(!0);s&&(i=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,_=o.parent===l.left?l.right:l.left,d=n.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(_)));u=d.typeToTypeNode(p,t);}u=u||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,a?[e.createToken(115)]:void 0,c,void 0,u,void 0),y=e.textChanges.ChangeTracker.fromCodeFixContext(n);if(y.insertNodeAfter(g,m,f,{suffix:n.newLineCharacter}),(i||(i=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[c]),changes:y.getChanges()}),!a){var h=e.createKeywordTypeNode(136),v=e.createParameter(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.createIndexSignature(void 0,void 0,[v],u),x=e.textChanges.ChangeTracker.fromCodeFixContext(n);x.insertNodeAfter(g,m,b,{suffix:n.newLineCharacter}),i.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:x.getChanges()});}return i}(s,u)}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n,a=t.sourceFile,i=e.getTokenAtPosition(a,t.span.start,!1),o=t.program.getTypeChecker();if(71===i.kind&&e.isPropertyAccessExpression(i.parent)){var s=o.getTypeAtLocation(i.parent.expression);n=o.getSuggestionForNonexistentProperty(i,s);}else{var c=e.getMeaningFromLocation(i);n=o.getSuggestionForNonexistentSymbol(i,e.getTextOfNode(i),r(c));}if(n)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[n]),changes:[{fileName:a.fileName,textChanges:[{span:{start:i.getStart(),length:i.getWidth()},newText:n}]}]}]}function r(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var a=n.sourceFile,i=n.span.start,o=e.getTokenAtPosition(a,i,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,a),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,a=e.getTokenAtPosition(r,t.span.start,!1);if(99===a.kind){var i=e.getContainingFunction(a),o=n(i.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;m--){var y=l.statements[m];if(237===y.kind||238===y.kind){u=y;break}}var h=e.createGetCanonicalFileName(p),v=e.stripQuotes(n||function(){var n=l.fileName,a=r.valueDeclaration.getSourceFile().fileName,i=e.getDirectoryPath(n),o=t.program.getCompilerOptions();return function(){var t=r.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}()||function(){var n=e.getEffectiveTypeRoots(o,t.host);if(n)for(var r=0,i=e.map(n,function(t){return e.toPath(t,void 0,h)});r=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var p=t.substr(l.length,t.length-_.length);return r.replace("*",p)}}else if(c===t||c===n)return r}return t}}}()||function(){if(o.rootDirs){var t=_(a,o.rootDirs),n=_(i,o.rootDirs);if(void 0!==t){var r=void 0!==n?g(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(g(a,i))}()),b=s(),x=i?e.createImportClause(e.createIdentifier(a),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(a))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(a))])),k=e.createImportDeclaration(void 0,void 0,x,e.createLiteral(v));return u?b.insertNodeAfter(l,u,k,{suffix:t.newLineCharacter}):b.insertNodeAt(l,l.getStart(),k,{suffix:""+t.newLineCharacter+t.newLineCharacter}),c(e.Diagnostics.Import_0_from_1,[a,'"'+v+'"'],b.getChanges(),"NewImport",v)}var d=n(r);return d.length>0?function(t){for(var n,r,a,i=[],u=0,d=t;u=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,a=t.program,i=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,a.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,i)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+i}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){for(var a=r.sourceFile,i=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;om.length){var v=r.getSignatureFromDeclaration(i[i.length-1]),b=a(v,n,u());b&&y.push(b);}else{e.Debug.assert(i.length===m.length);var x=s(m,c,f,d);y.push(x);}return y;default:return}}}function i(t,n,r,a){var i,s=o(t.arguments.length,void 0,void 0,r);if(r)for(var c=e.length(t.typeArguments),l=0;l=r?e.createToken(55):void 0,a?e.createKeywordTypeNode(119):void 0,void 0);i.push(s);}return i}function s(t,n,r,a){for(var i=t[0],s=t[0].minArgumentCount,u=!1,l=0;l=i.parameters.length&&(!_.hasRestParameter||i.hasRestParameter)&&(i=_);}var d=i.parameters.length-(i.hasRestParameter?1:0),p=i.parameters.map(function(e){return e.getName()}),f=o(d,p,s,!0);if(u){var g=e.createArrayTypeNode(e.createKeywordTypeNode(119)),m=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=s?e.createToken(55):void 0,g,void 0);f.push(m);}return c(a,n,r,void 0,f,void 0)}function c(t,n,r,a,i,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,a,i,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createMethodFromCallExpression=i,t.createStubbedMethod=c;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n=t.startPosition,r=e.getTokenAtPosition(t.file,n,!1),o=t.program.getTypeChecker().getSymbolAtLocation(r);if(o&&e.isDeclarationOfFunctionOrClassExpression(o)&&(o=o.valueDeclaration.initializer.symbol),o&&16&o.flags&&o.members&&o.members.size>0)return[{name:i.name,description:i.description,actions:[{description:i.description,name:a}]}]}function r(t,n){function r(t,n){void 0===n&&(n=!1),d.some(function(n){return e.isNodeDescendantOf(t,n)})||(d.push(t),n?p.push(function(){return y.deleteNodeInList(s,t)}):p.push(function(){return y.deleteNode(s,t)}));}function i(t){function n(t,n){return e.isFunctionLike(n)}function a(t,a){if(4&t.flags){var i=t.valueDeclaration,o=i.parent;if(n(i,o.right)){if(r(o.parent&&210===o.parent.kind?o.parent:o),!o.right)return e.createProperty([],a,t.name,void 0,void 0,void 0);switch(o.right.kind){case 186:var c=o.right;return e.createMethod(void 0,a,void 0,i.name,void 0,void 0,c.parameters,void 0,c.body);case 187:var u=o.right,l=u.body,_=void 0;if(207===l.kind)_=l;else{var d=l;_=e.createBlock([e.createReturn(d)]);}return e.createMethod(void 0,a,void 0,i.name,void 0,void 0,u.parameters,void 0,_);default:if(e.isSourceFileJavaScript(s))return;return e.createProperty(void 0,a,i.name,void 0,void 0,o.right)}}}}var i=[];return t.members&&t.members.forEach(function(e){var t=a(e,void 0);t&&i.push(t);}),t.exports&&t.exports.forEach(function(t){var n=a(t,[e.createToken(115)]);n&&i.push(n);}),i}if(a===n){var o=t.startPosition,s=t.file,c=t.program.getTypeChecker(),u=e.getTokenAtPosition(s,o,!1),l=c.getSymbolAtLocation(u),_=t.rulesProvider.getFormatOptions().newLineCharacter,d=[],p=[];if(19&l.flags){var f,g,m=l.valueDeclaration,y=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(m.kind){case 228:f=m,r(m),g=function(t){var n=i(l);return t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}(m);break;case 226:f=m.parent.parent,1===m.parent.declarations.length?r(f):r(m,!0),g=function(t){var n=t.initializer;if(n&&186===n.kind&&71===t.name.kind){var r=i(n.symbol);return n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}}(m);}if(g){y.insertNodeAfter(s,f,g,{suffix:_});for(var h=0,v=p;h0)for(var u=function(){var t=/(?:\/\/+\s*)/.source,a=/(?:\/\*+\s*)/.source,i="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+a+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=i+("("+o+/(?:.*?)/.source+")")+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){_e.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(a,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+p.text.length))){var g=l[2];c.push({descriptor:p,message:g,position:d});}}}return c}function ne(n,r){s();var a=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(se.getTypeChecker(),a,pe,i(n),r)}function re(e,n,r){var a="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:a[0],endPosition:a[1],program:c(),newLineCharacter:t.getNewLine(),rulesProvider:o(r),cancellationToken:_e}}function ae(t,n){s();var r=i(t);return e.refactor.getApplicableRefactors(re(r,n))}function ie(t,n,r,a,o){s();var c=i(t);return e.refactor.getEditsForRefactor(re(c,r,n),a,o)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var oe=new w(t);v=v||new e.formatting.RulesProvider;var se,ce,ue=0,le=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),_e=new P(t.getCancellationToken&&t.getCancellationToken()),de=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var pe=e.createGetCanonicalFileName(le);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:_,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:q,getSemanticClassifications:z,getEncodedSyntacticClassifications:V,getEncodedSemanticClassifications:U,getCompletionsAtPosition:f,getCompletionEntryDetails:g,getCompletionEntrySymbol:m,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:h,getImplementationAtPosition:x,getTypeDefinitionAtPosition:b,getReferencesAtPosition:D,findReferences:N,getOccurrencesAtPosition:k,getDocumentHighlights:S,getNameOrDottedNameSpan:L,getBreakpointStatementAtPosition:B,getNavigateToItems:O,getRenameInfo:ne,findRenameLocations:C,getNavigationBarItems:K,getNavigationTree:j,getOutliningSpans:$,getTodoComments:te,getBraceMatchingAtPosition:W,getIndentationAtPosition:H,getFormattingEditsForRange:G,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Q,getEmitOutput:F,getNonBoundSourceFile:M,getSourceFile:R,getProgram:c,getApplicableRefactors:ae,getEditsForRefactor:ie}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){function n(t){switch(t.kind){case 71:r(t.text,t);break;case 9:case 8:(e.isDeclarationName(t)||248===t.parent.kind||y(t)||e.isLiteralComputedPropertyDeclarationName(t))&&r(t.text,t);break;default:if(e.forEachChild(t,n),t.jsDoc)for(var a=0,i=t.jsDoc;a294});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),x=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||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),k=function(){function t(e,t){this.flags=e,this.name=t;}return t.prototype.getFlags=function(){return this.flags},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),S=function(e){function t(t,n,r){var a=e.call(this,n,r)||this;return a.kind=t,a}return n(t,e),t}(x),T=function(e){function t(t,n,r){return e.call(this,n,r)||this}return n(t,e),t}(x);T.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 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),D=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),E=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.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 a=this.getFullText();return"\n"===a[t]&&"\r"===a[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&o.add(t,e);}function n(e){var t=o.get(e);return t||o.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=a(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:a(i)}}}function a(e){if(e&&(71===e.kind||9===e.kind||8===e.kind))return e.text}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=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 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 237:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var o=e.createMultiMap();return e.forEachChild(this,i),o},r}(b),N=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n;}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=r,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var A=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createFileMap();for(var r=0,a=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=O,e.createLanguageService=_,e.getNameTable=d,e.getContainingObjectLiteralElement=g,e.getPropertySymbolsFromContextualType=m,e.getDefaultLibFilePath=h,e.objectAllocator=function(){return{getNodeConstructor:function(){return b},getTokenConstructor:function(){return S},getIdentifierConstructor:function(){return T},getSourceFileConstructor:function(){return E},getSymbolConstructor:function(){return k},getTypeConstructor:function(){return C},getSignatureConstructor:function(){return D},getSourceMapSourceConstructor:function(){return N}}}();}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r){var a=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(a,(r||n).getEnd())}function a(t,n){return r(t,e.findNextToken(n,n.parent))}function i(e,n){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return y(t.name);if(d(t))return r(t);var n=t.parent,a=e.indexOf(n.parameters,t);return a?p(n.parameters[a-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function g(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return i(n.parent,n.statements[0]);case 214:case 216:return i(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function m(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,a=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return a?u(a):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?i(e.parent,t):u(t)}(n);case 234:return g(n);case 260:return g(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return a(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return a(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?m(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return a(n,n.expression);case 216:return m(n);case 221:return a(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return g(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return i(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return i(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var a=n.parent;return i(e.findPrecedingToken(n.pos,t,n.parent),a.members.length?a.members[0]:a.getLastToken(t));case 235:return i(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,a=e.lastOrUndefined(n.clauses);if(a)return u(e.lastOrUndefined(a.statements));return;case 174:var i=t.parent;return u(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return r(e.lastOrUndefined(a.elements)||a)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?a(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){b=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n;}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){function t(t,n,r){var a=[];r=e.fixupCompilerOptions(r,a);var i=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,i,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}e.transform=t;}(r||(r={}));var r,a=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function i(e,n,r,a){var i;a&&(e.log(n),i=t.timestamp());var o=r();if(a){var s=t.timestamp();if(e.log(n+" completed in "+(s-i)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,a,o,s){try{var c=i(e,n,o,s);return a?JSON.stringify({result:c}):c}catch(a){return a instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,a),a.description=n,JSON.stringify({error:a}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var a=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(a.span.start,a.span.length),a.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var a=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(a,e);return n?{resolvedFileName:n,extension:t.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(e,r){var a=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(a,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.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},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.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}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,a,i){var o=t.getFileMatcherPatterns(e,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(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 e.prototype.readDirectory=function(e,n,r,a,i){try{var o=t.getFileMatcherPatterns(e,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}catch(a){for(var s=[],c=0,u=n;c",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findChildOfKind:findChildOfKind,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer,isWithinTypeAnnotation:isWithinTypeAnnotation};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:l,ast:d,additionalOptions:p})}function r(e){const t=n(e);return{type:AST_NODE_TYPES.TypeAnnotation,loc:t.loc,range:t.range,typeAnnotation:t}}function a(e){const t=e[0],r=e[e.length-1],i=nodeUtils$1.findNextToken(r,d);return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,i.end],loc:nodeUtils$1.getLocFor(t.pos-1,i.end,d),params:e.map(e=>({type:AST_NODE_TYPES.GenericTypeAnnotation,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,d),id:n(e.typeName||e),typeParameters:e.typeArguments?a(e.typeArguments):null}))}}function i(t){const n=t[0],r=t[t.length-1],a=nodeUtils$1.findNextToken(r,d);return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,a.end],loc:nodeUtils$1.getLocFor(n.pos-1,a.end,d),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text);const r=t.constraint?e({node:t.constraint,parent:t,ast:d,additionalOptions:p}):null;const a=t.default?e({node:t.default,parent:t,ast:d,additionalOptions:p}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,d),name:n,constraint:r,default:a}})}}function o(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=a(e.typeArguments)),r}function s(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=a(e.typeArguments)),r}function c(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,d),expression:t}}):[]}function u(e){const t=nodeUtils$1.convertToken(e,d);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const e=l.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(l.tagName.expression),t.property=n(l.tagName.name),t.object.type=e?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier;}else t.type=AST_NODE_TYPES.JSXIdentifier,t.name=t.value;return delete t.value,t}const l=t.node,_=t.parent,d=t.ast,p=t.additionalOptions||{};if(!l)return null;let f={type:"",range:[l.getStart(),l.end],loc:nodeUtils$1.getLoc(l,d)};switch(l.kind){case SyntaxKind.SourceFile:Object.assign(f,{type:AST_NODE_TYPES.Program,body:[],sourceType:l.externalModuleIndicator?"module":"script"}),l.statements.forEach(e=>{const t=n(e);t&&f.body.push(t);}),f.range[1]=l.endOfFileToken.pos,f.loc=nodeUtils$1.getLocFor(l.getStart(),f.range[1],d);break;case SyntaxKind.Block:Object.assign(f,{type:AST_NODE_TYPES.BlockStatement,body:l.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(f,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(l.text)});break;case SyntaxKind.WithStatement:Object.assign(f,{type:AST_NODE_TYPES.WithStatement,object:n(l.expression),body:n(l.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(f,{type:AST_NODE_TYPES.ReturnStatement,argument:n(l.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(f,{type:AST_NODE_TYPES.LabeledStatement,label:n(l.label),body:n(l.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(f,{type:SyntaxKind[l.kind],label:n(l.label)});break;case SyntaxKind.IfStatement:Object.assign(f,{type:AST_NODE_TYPES.IfStatement,test:n(l.expression),consequent:n(l.thenStatement),alternate:n(l.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(f,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(l.expression),cases:l.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(f,{type:AST_NODE_TYPES.SwitchCase,test:n(l.expression),consequent:l.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(f,{type:AST_NODE_TYPES.ThrowStatement,argument:n(l.expression)});break;case SyntaxKind.TryStatement:Object.assign(f,{type:AST_NODE_TYPES.TryStatement,block:e({node:l.tryBlock,parent:null,ast:d,additionalOptions:p}),handler:n(l.catchClause),finalizer:n(l.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(f,{type:AST_NODE_TYPES.CatchClause,param:n(l.variableDeclaration.name),body:n(l.block)});break;case SyntaxKind.WhileStatement:Object.assign(f,{type:AST_NODE_TYPES.WhileStatement,test:n(l.expression),body:n(l.statement)});break;case SyntaxKind.DoStatement:Object.assign(f,{type:AST_NODE_TYPES.DoWhileStatement,test:n(l.expression),body:n(l.statement)});break;case SyntaxKind.ForStatement:Object.assign(f,{type:AST_NODE_TYPES.ForStatement,init:n(l.initializer),test:n(l.condition),update:n(l.incrementor),body:n(l.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=l.awaitModifier&&l.awaitModifier.kind===SyntaxKind.AwaitKeyword;Object.assign(f,{type:SyntaxKind[l.kind],left:n(l.initializer),right:n(l.expression),body:n(l.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;if(l.modifiers&&l.modifiers.length){const t=nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,l);t&&(e=AST_NODE_TYPES.DeclareFunction);}l.parent&&l.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(f,{type:e,id:n(l.name),generator:!!l.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),params:l.parameters.map(n),body:n(l.body)}),l.type&&(f.returnType=r(l.type)),l.typeParameters&&l.typeParameters.length&&(f.typeParameters=i(l.typeParameters)),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.VariableDeclaration:Object.assign(f,{type:AST_NODE_TYPES.VariableDeclarator,id:n(l.name),init:n(l.initializer)}),l.type&&(f.id.typeAnnotation=r(l.type));break;case SyntaxKind.VariableStatement:Object.assign(f,{type:AST_NODE_TYPES.VariableDeclaration,declarations:l.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(l.declarationList)}),f=nodeUtils$1.fixExports(l,f,d);break;case SyntaxKind.VariableDeclarationList:Object.assign(f,{type:AST_NODE_TYPES.VariableDeclaration,declarations:l.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(l)});break;case SyntaxKind.ExpressionStatement:Object.assign(f,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(l.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(f,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(l,SyntaxKind.BinaryExpression),t=l.parent&&l.parent.kind===SyntaxKind.ForOfStatement,r=l.parent&&l.parent.kind===SyntaxKind.ForInStatement;let a;e&&(a=e.left===l||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,d)===l),a||t||r?Object.assign(f,{type:AST_NODE_TYPES.ArrayPattern,elements:l.elements.map(n)}):Object.assign(f,{type:AST_NODE_TYPES.ArrayExpression,elements:l.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(l,SyntaxKind.BinaryExpression);let t;e&&(t=e.left===l||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ObjectLiteralExpression,d)===l),t?Object.assign(f,{type:AST_NODE_TYPES.ObjectPattern,properties:l.properties.map(n)}):Object.assign(f,{type:AST_NODE_TYPES.ObjectExpression,properties:l.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:n(l.initializer),computed:nodeUtils$1.isComputedProperty(l.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:n(l.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(_.kind!==SyntaxKind.ObjectLiteralExpression)return n(l.expression);Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:n(l.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l);Object.assign(f,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(l.name),value:n(l.initializer),computed:nodeUtils$1.isComputedProperty(l.name),static:nodeUtils$1.hasStaticModifierFlag(l),accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),decorators:c(l.decorators),typeAnnotation:l.type?r(l.type):null}),l.name.kind===SyntaxKind.Identifier&&l.questionToken&&(f.key.optional=!0),f.key.type===AST_NODE_TYPES.Literal&&l.questionToken&&(f.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=d.getLineAndCharacterOfPosition(l.name.end+1),t=l.kind===SyntaxKind.MethodDeclaration,a={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!l.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),body:n(l.body),range:[l.parameters.pos-1,f.range[1]],loc:{start:{line:e.line+1,column:e.character-1},end:f.loc.end}};if(l.type&&(a.returnType=r(l.type)),_.kind===SyntaxKind.ObjectLiteralExpression)a.params=l.parameters.map(n),Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.name),value:a,computed:nodeUtils$1.isComputedProperty(l.name),method:t,shorthand:!1,kind:"init"});else{a.params=l.parameters.map(e=>{const t=n(e);t.decorators=c(e.decorators);return t});const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(f,{type:e,key:n(l.name),value:a,computed:nodeUtils$1.isComputedProperty(l.name),static:nodeUtils$1.hasStaticModifierFlag(l),kind:"method",accessibility:nodeUtils$1.getTSNodeAccessibility(l),decorators:c(l.decorators)});}f.key.type===AST_NODE_TYPES.Identifier&&l.questionToken&&(f.key.optional=!0),l.kind===SyntaxKind.GetAccessor?f.kind="get":l.kind===SyntaxKind.SetAccessor?f.kind="set":f.static||l.name.kind!==SyntaxKind.StringLiteral||"constructor"!==l.name.text||(f.kind="constructor"),l.typeParameters&&l.typeParameters.length&&(a.typeParameters=i(l.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(l),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l),r=e?nodeUtils$1.findNextToken(l.getFirstToken(),d):l.getFirstToken(),a=d.getLineAndCharacterOfPosition(l.parameters.pos-1),i={type:AST_NODE_TYPES.FunctionExpression,id:null,params:l.parameters.map(e=>{const t=n(e);const r=c(e.decorators);return Object.assign(t,{decorators:r})}),generator:!1,expression:!1,async:!1,body:n(l.body),range:[l.parameters.pos-1,f.range[1]],loc:{start:{line:a.line+1,column:a.character},end:f.loc.end}},o=d.getLineAndCharacterOfPosition(r.getStart()),s=!!l.name&&nodeUtils$1.isComputedProperty(l.name);let u;u=s?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:l.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:i.loc.start.line,column:i.loc.start.column}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:i.loc.start.line,column:i.loc.start.column}}},Object.assign(f,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:u,value:i,computed:s,accessibility:nodeUtils$1.getTSNodeAccessibility(l),static:e,kind:e||s?"method":"constructor"});break}case SyntaxKind.FunctionExpression:Object.assign(f,{type:AST_NODE_TYPES.FunctionExpression,id:n(l.name),generator:!!l.asteriskToken,params:l.parameters.map(n),body:n(l.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),expression:!1}),l.type&&(f.returnType=r(l.type)),l.typeParameters&&l.typeParameters.length&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(f,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(f,{type:AST_NODE_TYPES.ArrayPattern,elements:l.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(f,{type:AST_NODE_TYPES.ObjectPattern,properties:l.elements.map(n)});break;case SyntaxKind.BindingElement:if(_.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:l.name,parent:_,ast:d,additionalOptions:p});if(l.initializer)Object.assign(f,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(l.initializer)});else{if(!l.dotDotDotToken)return t;Object.assign(f,{type:AST_NODE_TYPES.RestElement,argument:t});}}else _.kind===SyntaxKind.ObjectBindingPattern&&(l.dotDotDotToken?Object.assign(f,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(l.propertyName||l.name),computed:Boolean(l.propertyName&&l.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!l.propertyName}):Object.assign(f,{type:AST_NODE_TYPES.Property,key:n(l.propertyName||l.name),value:n(l.name),computed:Boolean(l.propertyName&&l.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!l.propertyName,kind:"init"}),l.initializer&&(f.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(l.name),right:n(l.initializer),range:[l.name.getStart(),l.initializer.end],loc:nodeUtils$1.getLocFor(l.name.getStart(),l.initializer.end,d)}));break;case SyntaxKind.ArrowFunction:Object.assign(f,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:l.parameters.map(n),body:n(l.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,l),expression:l.body.kind!==SyntaxKind.Block}),l.type&&(f.returnType=r(l.type)),l.typeParameters&&l.typeParameters.length&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(f,{type:AST_NODE_TYPES.YieldExpression,delegate:!!l.asteriskToken,argument:n(l.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(f,{type:AST_NODE_TYPES.AwaitExpression,argument:n(l.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(f,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:d.text.slice(l.getStart()+1,l.end-1),cooked:l.text},tail:!0,range:f.range,loc:f.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(f,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(l.head)],expressions:[]}),l.templateSpans.forEach(e=>{f.expressions.push(n(e.expression));f.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(f,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(l.tag),quasi:n(l.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=l.kind===SyntaxKind.TemplateTail;Object.assign(f,{type:AST_NODE_TYPES.TemplateElement,value:{raw:d.text.slice(l.getStart()+1,l.end-(e?1:2)),cooked:l.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;l.parent&&l.parent.parent&&l.parent.parent.kind===SyntaxKind.BinaryExpression&&(l.parent.parent.left===l.parent?e=AST_NODE_TYPES.RestElement:l.parent.parent.right===l.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(f,{type:e,argument:n(l.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;l.parent&&l.parent.parent&&l.parent.parent.kind===SyntaxKind.BinaryExpression&&(l.parent.parent.right===l.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:l.parent.parent.left===l.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(f,{type:e,argument:n(l.expression)});break}case SyntaxKind.Parameter:{let t;if(l.dotDotDotToken?(t=n(l.name),Object.assign(f,{type:AST_NODE_TYPES.RestElement,argument:t})):l.initializer?(t=n(l.name),Object.assign(f,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(l.initializer)})):(t=e({node:l.name,parent:_,ast:d,additionalOptions:p}),f=t),l.type&&Object.assign(t,{typeAnnotation:r(l.type)}),l.questionToken&&(t.optional=!0),l.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[l.getStart(),l.end],loc:nodeUtils$1.getLoc(l,d),accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l),parameter:f};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=l.heritageClauses||[];let t=SyntaxKind[l.kind],r=e.length?e[e.length-1]:l.name;if(l.typeParameters&&l.typeParameters.length){const e=l.typeParameters[l.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,d)),f.typeParameters=i(l.typeParameters);}if(l.modifiers&&l.modifiers.length){l.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l)&&(t=`TSAbstract${t}`);const e=l.modifiers[l.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,d));}else r||(r=l.getFirstToken());const s=nodeUtils$1.findNextToken(r,d),u=e.length&&l.heritageClauses[0].token===SyntaxKind.ExtendsKeyword;let _,p=!1;u&&e[0].types.length>0&&(_=e.shift()).types[0]&&_.types[0].typeArguments&&(f.superTypeParameters=a(_.types[0].typeArguments)),p=e.length>0,Object.assign(f,{type:t,id:n(l.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),f.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),l.end,d)},superClass:_?n(_.types[0].expression):null,implements:p?e[0].types.map(o):[],decorators:c(l.decorators)});const g=l.members.filter(nodeUtils$1.isESTreeClassMember);g.length&&(f.body.body=g.map(n)),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.ModuleBlock:Object.assign(f,{type:AST_NODE_TYPES.TSModuleBlock,body:l.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(f,{type:AST_NODE_TYPES.ImportDeclaration,source:n(l.moduleSpecifier),specifiers:[]}),l.importClause&&(l.importClause.name&&f.specifiers.push(n(l.importClause)),l.importClause.namedBindings&&(l.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?f.specifiers.push(n(l.importClause.namedBindings)):f.specifiers=f.specifiers.concat(l.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(f,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(l.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(f,{type:AST_NODE_TYPES.ImportSpecifier,local:n(l.name),imported:n(l.propertyName||l.name)});break;case SyntaxKind.ImportClause:Object.assign(f,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(l.name)}),f.range[1]=l.name.end,f.loc=nodeUtils$1.getLocFor(f.range[0],f.range[1],d);break;case SyntaxKind.NamedImports:Object.assign(f,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(l.name)});break;case SyntaxKind.ExportDeclaration:l.exportClause?Object.assign(f,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(l.moduleSpecifier),specifiers:l.exportClause.elements.map(n),declaration:null}):Object.assign(f,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(l.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(f,{type:AST_NODE_TYPES.ExportSpecifier,local:n(l.propertyName||l.name),exported:n(l.name)});break;case SyntaxKind.ExportAssignment:l.isExportEquals?Object.assign(f,{type:AST_NODE_TYPES.TSExportAssignment,expression:n(l.expression)}):Object.assign(f,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(l.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(l.operator);Object.assign(f,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:l.kind===SyntaxKind.PrefixUnaryExpression,argument:n(l.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(f,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(l.expression)});break;case SyntaxKind.VoidExpression:Object.assign(f,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(l.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(f,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(l.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(l.operatorToken)){Object.assign(f,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(l.left),t=n(l.right);e.type===AST_NODE_TYPES.SequenceExpression?f.expressions=f.expressions.concat(e.expressions):f.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?f.expressions=f.expressions.concat(t.expressions):f.expressions.push(t);}else if(Object.assign(f,{type:nodeUtils$1.getBinaryExpressionType(l.operatorToken),operator:nodeUtils$1.getTextForTokenKind(l.operatorToken.kind),left:n(l.left),right:n(l.right)}),f.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(l,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,d)===e),n&&(delete f.operator,f.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(_)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(l.expression),property:n(l.name)},t=l.expression.kind===SyntaxKind.PropertyAccessExpression;l.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(f,e);}else Object.assign(f,{type:AST_NODE_TYPES.MemberExpression,object:n(l.expression),property:n(l.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(f,{type:AST_NODE_TYPES.MemberExpression,object:n(l.expression),property:n(l.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(f,{type:AST_NODE_TYPES.ConditionalExpression,test:n(l.condition),consequent:n(l.whenTrue),alternate:n(l.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(f,{type:AST_NODE_TYPES.CallExpression,callee:n(l.expression),arguments:l.arguments.map(n)}),l.typeArguments&&l.typeArguments.length&&(f.typeParameters=a(l.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(f,{type:AST_NODE_TYPES.NewExpression,callee:n(l.expression),arguments:l.arguments?l.arguments.map(n):[]}),l.typeArguments&&l.typeArguments.length&&(f.typeParameters=a(l.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(l.getFirstToken(),d);Object.assign(f,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(l.name)});break}case SyntaxKind.StringLiteral:Object.assign(f,{type:AST_NODE_TYPES.Literal,raw:d.text.slice(f.range[0],f.range[1])}),_.name&&_.name===l?f.value=nodeUtils$1.unescapeIdentifier(l.text):f.value=nodeUtils$1.unescapeStringLiteralText(l.text);break;case SyntaxKind.NumericLiteral:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:Number(l.text),raw:d.text.slice(f.range[0],f.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=l.text.slice(1,l.text.lastIndexOf("/")),t=l.text.slice(l.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(f,{type:AST_NODE_TYPES.Literal,value:n,raw:l.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(f,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils$1.isWithinTypeAnnotation(l)?Object.assign(f,{type:AST_NODE_TYPES.TSNullKeyword}):Object.assign(f,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(f,{type:AST_NODE_TYPES.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:!function(){Object.assign(f,{type:SyntaxKind[l.kind]});}();break;case SyntaxKind.JsxElement:Object.assign(f,{type:AST_NODE_TYPES.JSXElement,openingElement:n(l.openingElement),closingElement:n(l.closingElement),children:l.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{l.kind=SyntaxKind.JsxOpeningElement;const e=n(l);e.selfClosing=!0,Object.assign(f,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(f,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:u(l.tagName),attributes:l.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(f,{type:AST_NODE_TYPES.JSXClosingElement,name:u(l.tagName)});break;case SyntaxKind.JsxExpression:{const e=d.getLineAndCharacterOfPosition(f.range[0]+1),t=l.expression?n(l.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:f.loc.end.line,column:f.loc.end.column-1}},range:[f.range[0]+1,f.range[1]-1]};Object.assign(f,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(l.name,d);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(f,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(l.initializer)});break}case SyntaxKind.JsxText:{const e=l.getFullStart(),t=l.getEnd(),n=p.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(f,{type:n,value:d.text.slice(e,t),raw:d.text.slice(e,t)}),f.loc=nodeUtils$1.getLocFor(e,t,d),f.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(f,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(l.expression)});break;case SyntaxKind.FirstNode:Object.assign(f,{type:AST_NODE_TYPES.TSQualifiedName,left:n(l.left),right:n(l.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:l.expression,parent:_,ast:d,additionalOptions:p});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(l.name),init:n(l.type),range:[l.name.getStart(),l.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],d),l.typeParameters&&l.typeParameters.length&&(e.typeParameters=i(l.typeParameters)),Object.assign(f,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(l),declarations:[e]}),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.MethodSignature:Object.assign(f,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(l),computed:nodeUtils$1.isComputedProperty(l.name),key:n(l.name),params:l.parameters.map(e=>n(e)),typeAnnotation:l.type?r(l.type):null,accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l)}),l.typeParameters&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.PropertySignature:Object.assign(f,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(l),computed:nodeUtils$1.isComputedProperty(l.name),key:n(l.name),typeAnnotation:l.type?r(l.type):null,initializer:n(l.initializer),accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l)});break;case SyntaxKind.IndexSignature:Object.assign(f,{type:AST_NODE_TYPES.TSIndexSignature,index:n(l.parameters[0]),typeAnnotation:l.type?r(l.type):null,accessibility:nodeUtils$1.getTSNodeAccessibility(l),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,l),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,l),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,l)});break;case SyntaxKind.ConstructSignature:Object.assign(f,{type:AST_NODE_TYPES.TSConstructSignature,params:l.parameters.map(e=>n(e)),typeAnnotation:l.type?r(l.type):null}),l.typeParameters&&(f.typeParameters=i(l.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=l.heritageClauses||[];let t=e.length?e[e.length-1]:l.name;if(l.typeParameters&&l.typeParameters.length){const e=l.typeParameters[l.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,d)),f.typeParameters=i(l.typeParameters);}const r=e.length>0,a=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,l),o=nodeUtils$1.findNextToken(t,d),c={type:AST_NODE_TYPES.TSInterfaceBody,body:l.members.map(e=>n(e)),range:[o.getStart(),f.range[1]],loc:nodeUtils$1.getLocFor(o.getStart(),l.end,d)};Object.assign(f,{abstract:a,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(l.name),heritage:r?e[0].types.map(s):[]}),f=nodeUtils$1.fixExports(l,f,d);break}case SyntaxKind.FirstTypeNode:Object.assign(f,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(l.parameterName),typeAnnotation:r(l.type)});break;default:!function(){const e=`TS${SyntaxKind[l.kind]}`;if(p.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);f.type=e,Object.keys(l).filter(e=>!/^(?:kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)f.typeAnnotation=l.type?r(l.type):null;else if("typeArguments"===e)f.typeParameters=l.typeArguments?a(l.typeArguments):null;else if("typeParameters"===e)f.typeParameters=l.typeParameters?i(l.typeParameters):null;else if("decorators"===e){const e=c(l.decorators);e&&e.length&&(f.decorators=e);}else Array.isArray(l[e])?f[e]=l[e].map(n):l[e]&&"object"==typeof l[e]?f[e]=n(l[e]):f[e]=l[e];});}();}return f};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});t.tokens&&(n.tokens=nodeUtils.convertTokens(e));t.comment&&(n.comments=convertComments(e,t.code));return n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>H)return null;if(!(t?X[pe]:X[le]).test(e))return null;try{return new i(e,t)}catch(e){return null}}function r(e,t){var r=n(e,t);return r?r.version:null}function a(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}function i(e,t){if(e instanceof i){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>H)throw new TypeError("version is longer than "+H+" characters");if(!(this instanceof i))return new i(e,t);W("SemVer",e,t),this.loose=t;var n=e.trim().match(t?X[pe]:X[le]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>G||this.major<0)throw new TypeError("Invalid major version");if(this.minor>G||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>G||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function u(e,t){return c(t,e)}function l(e,t){return new i(e,t).major}function _(e,t){return new i(e,t).minor}function d(e,t){return new i(e,t).patch}function p(e,t,n){return new i(e,n).compare(t)}function f(e,t){return p(e,t,!0)}function g(e,t,n){return p(t,e,n)}function m(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function y(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function h(e,t,n){return p(e,t,n)>0}function v(e,t,n){return p(e,t,n)<0}function b(e,t,n){return 0===p(e,t,n)}function x(e,t,n){return 0!==p(e,t,n)}function k(e,t,n){return p(e,t,n)>=0}function S(e,t,n){return p(e,t,n)<=0}function T(e,t,n,r){var a;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),a=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),a=e!==n;break;case"":case"=":case"==":a=b(e,n,r);break;case"!=":a=x(e,n,r);break;case">":a=h(e,n,r);break;case">=":a=k(e,n,r);break;case"<":a=v(e,n,r);break;case"<=":a=S(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return a}function C(e,t){if(e instanceof C){if(e.loose===t)return e;e=e.value;}if(!(this instanceof C))return new C(e,t);W("comparator",e,t),this.loose=t,this.parse(e),this.semver===Le?this.value="":this.value=this.operator+this.semver.version,W("comp",this);}function D(e,t){if(e instanceof D&&e.loose===t)return e;if(!(this instanceof D))return new D(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function E(e,t){return new D(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function N(e,t){return W("comp",e),e=O(e,t),W("caret",e),e=w(e,t),W("tildes",e),e=I(e,t),W("xrange",e),e=R(e,t),W("stars",e),e}function A(e){return!e||"x"===e.toLowerCase()||"*"===e}function w(e,t){return e.trim().split(/\s+/).map(function(e){return P(e,t)}).join(" ")}function P(e,t){var n=t?X[Te]:X[Se];return e.replace(n,function(t,n,r,a,i){W("tilde",e,t,n,r,a,i);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(a)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(W("replaceTilde pr",i),"-"!==i.charAt(0)&&(i="-"+i),o=">="+n+"."+r+"."+a+i+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+a+" <"+n+"."+(+r+1)+".0",W("tilde return",o),o})}function O(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){W("caret",e,t);var n=t?X[Ne]:X[Ee];return e.replace(n,function(t,n,r,a,i){W("caret",e,t,n,r,a,i);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(a)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(W("replaceCaret pr",i),"-"!==i.charAt(0)&&(i="-"+i),o="0"===n?"0"===r?">="+n+"."+r+"."+a+i+" <"+n+"."+r+"."+(+a+1):">="+n+"."+r+"."+a+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+a+i+" <"+(+n+1)+".0.0"):(W("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+a+" <"+n+"."+r+"."+(+a+1):">="+n+"."+r+"."+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+a+" <"+(+n+1)+".0.0"),W("caret return",o),o})}function I(e,t){return W("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return M(e,t)}).join(" ")}function M(e,t){e=e.trim();var n=t?X[be]:X[ve];return e.replace(n,function(t,n,r,a,i,o){W("xRange",e,t,n,r,a,i,o);var s=A(r),c=s||A(a),u=c||A(i),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(a=0),u&&(i=0),">"===n?(n=">=",c?(r=+r+1,a=0,i=0):u&&(a=+a+1,i=0)):"<="===n&&(n="<",c?r=+r+1:a=+a+1),t=n+r+"."+a+"."+i):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0"),W("xRange return",t),t})}function R(e,t){return W("replaceStars",e,t),e.trim().replace(X[Ie],"")}function L(e,t,n,r,a,i,o,s,c,u,l,_,d){return t=A(n)?"":A(r)?">="+n+".0.0":A(a)?">="+n+"."+r+".0":">="+t,s=A(c)?"":A(u)?"<"+(+c+1)+".0.0":A(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function B(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function K(e,t,n){try{t=new D(t,n);}catch(e){return!1}return t.test(e)}function j(e,t,n){return e.filter(function(e){return K(e,t,n)}).sort(function(e,t){return g(e,t,n)})[0]||null}function J(e,t,n){return e.filter(function(e){return K(e,t,n)}).sort(function(e,t){return p(e,t,n)})[0]||null}function z(e,t){try{return new D(e,t).range||"*"}catch(e){return null}}function U(e,t,n){return V(e,t,"<",n)}function q(e,t,n){return V(e,t,">",n)}function V(e,t,n,r){e=new i(e,r),t=new D(t,r);var a,o,s,c,u;switch(n){case">":a=h,o=S,s=v,c=">",u=">=";break;case"<":a=v,o=k,s=h,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K(e,t,r))return!1;for(var l=0;l=0.0.0")),_=_||e,d=d||e,a(e.semver,_.semver,r)?_=e:s(e.semver,d.semver,r)&&(d=e);}),_.operator===c||_.operator===u)return!1;if((!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function $(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}t=e.exports=i;var W;W="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var H=256,G=Number.MAX_SAFE_INTEGER||9007199254740991,X=t.re=[],Y=t.src=[],Q=0,Z=Q++;Y[Z]="0|[1-9]\\d*";var ee=Q++;Y[ee]="[0-9]+";var te=Q++;Y[te]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var ne=Q++;Y[ne]="("+Y[Z]+")\\.("+Y[Z]+")\\.("+Y[Z]+")";var re=Q++;Y[re]="("+Y[ee]+")\\.("+Y[ee]+")\\.("+Y[ee]+")";var ae=Q++;Y[ae]="(?:"+Y[Z]+"|"+Y[te]+")";var ie=Q++;Y[ie]="(?:"+Y[ee]+"|"+Y[te]+")";var oe=Q++;Y[oe]="(?:-("+Y[ae]+"(?:\\."+Y[ae]+")*))";var se=Q++;Y[se]="(?:-?("+Y[ie]+"(?:\\."+Y[ie]+")*))";var ce=Q++;Y[ce]="[0-9A-Za-z-]+";var ue=Q++;Y[ue]="(?:\\+("+Y[ce]+"(?:\\."+Y[ce]+")*))";var le=Q++,_e="v?"+Y[ne]+Y[oe]+"?"+Y[ue]+"?";Y[le]="^"+_e+"$";var de="[v=\\s]*"+Y[re]+Y[se]+"?"+Y[ue]+"?",pe=Q++;Y[pe]="^"+de+"$";var fe=Q++;Y[fe]="((?:<|>)?=?)";var ge=Q++;Y[ge]=Y[ee]+"|x|X|\\*";var me=Q++;Y[me]=Y[Z]+"|x|X|\\*";var ye=Q++;Y[ye]="[v=\\s]*("+Y[me]+")(?:\\.("+Y[me]+")(?:\\.("+Y[me]+")(?:"+Y[oe]+")?"+Y[ue]+"?)?)?";var he=Q++;Y[he]="[v=\\s]*("+Y[ge]+")(?:\\.("+Y[ge]+")(?:\\.("+Y[ge]+")(?:"+Y[se]+")?"+Y[ue]+"?)?)?";var ve=Q++;Y[ve]="^"+Y[fe]+"\\s*"+Y[ye]+"$";var be=Q++;Y[be]="^"+Y[fe]+"\\s*"+Y[he]+"$";var xe=Q++;Y[xe]="(?:~>?)";var ke=Q++;Y[ke]="(\\s*)"+Y[xe]+"\\s+",X[ke]=new RegExp(Y[ke],"g");var Se=Q++;Y[Se]="^"+Y[xe]+Y[ye]+"$";var Te=Q++;Y[Te]="^"+Y[xe]+Y[he]+"$";var Ce=Q++;Y[Ce]="(?:\\^)";var De=Q++;Y[De]="(\\s*)"+Y[Ce]+"\\s+",X[De]=new RegExp(Y[De],"g");var Ee=Q++;Y[Ee]="^"+Y[Ce]+Y[ye]+"$";var Ne=Q++;Y[Ne]="^"+Y[Ce]+Y[he]+"$";var Ae=Q++;Y[Ae]="^"+Y[fe]+"\\s*("+de+")$|^$";var we=Q++;Y[we]="^"+Y[fe]+"\\s*("+_e+")$|^$";var Pe=Q++;Y[Pe]="(\\s*)"+Y[fe]+"\\s*("+de+"|"+Y[ye]+")",X[Pe]=new RegExp(Y[Pe],"g");var Oe=Q++;Y[Oe]="^\\s*("+Y[ye]+")\\s+-\\s+("+Y[ye]+")\\s*$";var Fe=Q++;Y[Fe]="^\\s*("+Y[he]+")\\s+-\\s+("+Y[he]+")\\s*$";var Ie=Q++;Y[Ie]="(<|>)?=?\\s*\\*";for(var Me=0;Me=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=o,t.diff=s,t.compareIdentifiers=c;var Re=/^[0-9]+$/;t.rcompareIdentifiers=u,t.major=l,t.minor=_,t.patch=d,t.compare=p,t.compareLoose=f,t.rcompare=g,t.sort=m,t.rsort=y,t.gt=h,t.lt=v,t.eq=b,t.neq=x,t.gte=k,t.lte=S,t.cmp=T,t.Comparator=C;var Le={};C.prototype.parse=function(e){var t=this.loose?X[Ae]:X[we],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new i(n[2],this.loose):this.semver=Le;},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){return W("Comparator.test",e,this.loose),this.semver===Le||("string"==typeof e&&(e=new i(e,this.loose)),T(e,this.operator,this.semver,this.loose))},t.Range=D,D.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},D.prototype.toString=function(){return this.range},D.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),W("range",e,t);var n=t?X[Fe]:X[Oe];e=e.replace(n,L),W("hyphen replace",e),e=e.replace(X[Pe],"$1$2$3"),W("comparator trim",e,X[Pe]),e=(e=(e=e.replace(X[ke],"$1~")).replace(X[De],"$1^")).split(/\s+/).join(" ");var r=t?X[Ae]:X[we],a=e.split(" ").map(function(e){return N(e,t)}).join(" ").split(/\s+/);return this.loose&&(a=a.filter(function(e){return!!e.match(r)})),a=a.map(function(e){return new C(e,t)})},t.toComparators=E,D.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new i(e,this.loose));for(var t=0;t=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={eslint:"3.19.0","eslint-config-eslint":"4.0.0","eslint-plugin-node":"4.2.2","eslint-release":"0.10.3",jest:"20.0.4","npm-license":"0.3.3",shelljs:"0.7.7","shelljs-nodecli":"0.1.1",typescript:"~2.4.0"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test",jest:"jest",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.3.0"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package$1.default||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; }); var parserTypescript = unwrapExports(parserTypescript_1); diff --git a/docs/lib/prettier-version.js b/docs/lib/prettier-version.js index e52ae0ab..056bfd07 100644 --- a/docs/lib/prettier-version.js +++ b/docs/lib/prettier-version.js @@ -1 +1 @@ -prettierVersion = "1.4.4"; +prettierVersion = "1.5.0"; diff --git a/docs/service-worker.js b/docs/service-worker.js index da15b557..8d0932c0 100644 --- a/docs/service-worker.js +++ b/docs/service-worker.js @@ -12,6 +12,8 @@ toolbox.precache([ "lib/parser-babylon.js", "lib/parser-typescript.js", "lib/parser-flow.js", + "lib/parser-graphql.js", + "lib/parser-json.js", "playground.js", "lib/sw-toolbox.js", "lib/sw-toolbox-companion.js", diff --git a/package.json b/package.json index d82d2c86..c146db2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "1.4.4", + "version": "1.5.0", "description": "Prettier is an opinionated JavaScript formatter", "bin": { "prettier": "./bin/prettier.js"