From 878a9a29e77bcaedd4242618ccf57d1be7dfd7d8 Mon Sep 17 00:00:00 2001 From: Axetroy Date: Thu, 12 Sep 2019 11:31:23 +0800 Subject: [PATCH] bump prettier to 1.18.2 (denoland/deno_std#592) Original: https://github.com/denoland/deno_std/commit/06958a4ada960665a48ac34f919423e0d8d16951 --- archive/tar.ts | 62 ++- bundle/utils.ts | 24 +- encoding/csv.ts | 72 ++- encoding/toml.ts | 28 +- flags/mod.ts | 16 +- fmt/sprintf_test.ts | 22 +- fs/copy_test.ts | 156 +++---- fs/empty_dir_test.ts | 16 +- fs/ensure_dir_test.ts | 26 +- fs/ensure_file_test.ts | 36 +- fs/ensure_link_test.ts | 8 +- fs/ensure_symlink_test.ts | 26 +- fs/move_test.ts | 16 +- fs/read_json_test.ts | 24 +- fs/walk.ts | 12 +- http/file_server.ts | 13 +- http/server_test.ts | 8 +- log/handlers.ts | 19 +- log/logger.ts | 8 +- log/mod.ts | 18 +- mime/multipart.ts | 22 +- prettier/vendor/parser_babylon.js | 4 +- prettier/vendor/parser_markdown.js | 2 +- prettier/vendor/parser_typescript.js | 4 +- prettier/vendor/standalone.js | 643 +++++++++++++++++---------- testing/README.md | 16 +- testing/asserts.ts | 10 +- testing/format.ts | 10 +- testing/mod.ts | 38 +- testing/runner.ts | 20 +- testing/test.ts | 20 +- textproto/reader_test.ts | 8 +- util/async.ts | 17 +- util/deep_assign.ts | 36 +- uuid/v4.ts | 10 +- ws/README.md | 8 +- ws/example_server.ts | 8 +- 37 files changed, 775 insertions(+), 711 deletions(-) diff --git a/archive/tar.ts b/archive/tar.ts index 05b666b242..df24a291c4 100644 --- a/archive/tar.ts +++ b/archive/tar.ts @@ -384,27 +384,25 @@ export class Tar { */ getReader(): Deno.Reader { const readers: Deno.Reader[] = []; - this.data.forEach( - (tarData): void => { - let { filePath, reader } = tarData, - headerArr = formatHeader(tarData); - readers.push(new Deno.Buffer(headerArr)); - if (!reader) { - reader = new FileReader(filePath!); - } - readers.push(reader); - - // to the nearest multiple of recordSize - readers.push( - new Deno.Buffer( - clean( - recordSize - - (parseInt(tarData.fileSize!, 8) % recordSize || recordSize) - ) - ) - ); + this.data.forEach((tarData): void => { + let { filePath, reader } = tarData, + headerArr = formatHeader(tarData); + readers.push(new Deno.Buffer(headerArr)); + if (!reader) { + reader = new FileReader(filePath!); } - ); + readers.push(reader); + + // to the nearest multiple of recordSize + readers.push( + new Deno.Buffer( + clean( + recordSize - + (parseInt(tarData.fileSize!, 8) % recordSize || recordSize) + ) + ) + ); + }); // append 2 empty records readers.push(new Deno.Buffer(clean(recordSize * 2))); @@ -461,22 +459,18 @@ export class Untar { "mtime", "uid", "gid" - ]).forEach( - (key): void => { - const arr = trim(header[key]); - if (arr.byteLength > 0) { - meta[key] = parseInt(decoder.decode(arr), 8); - } + ]).forEach((key): void => { + const arr = trim(header[key]); + if (arr.byteLength > 0) { + meta[key] = parseInt(decoder.decode(arr), 8); } - ); - (["owner", "group"] as ["owner", "group"]).forEach( - (key): void => { - const arr = trim(header[key]); - if (arr.byteLength > 0) { - meta[key] = decoder.decode(arr); - } + }); + (["owner", "group"] as ["owner", "group"]).forEach((key): void => { + const arr = trim(header[key]); + if (arr.byteLength > 0) { + meta[key] = decoder.decode(arr); } - ); + }); // read the file content const len = parseInt(decoder.decode(header.fileSize), 8); diff --git a/bundle/utils.ts b/bundle/utils.ts index 80b00b6fa3..1df78b1f52 100644 --- a/bundle/utils.ts +++ b/bundle/utils.ts @@ -69,20 +69,18 @@ export function instantiate( assert(module != null); assert(module.factory != null); - const dependencies = module.dependencies.map( - (id): object => { - if (id === "require") { - // TODO(kitsonk) support dynamic import by passing a `require()` that - // can return a local module or dynamically import one. - return (): void => {}; - } else if (id === "exports") { - return module.exports; - } - const dep = modules.get(id)!; - assert(dep != null); - return dep.exports; + const dependencies = module.dependencies.map((id): object => { + if (id === "require") { + // TODO(kitsonk) support dynamic import by passing a `require()` that + // can return a local module or dynamically import one. + return (): void => {}; + } else if (id === "exports") { + return module.exports; } - ); + const dep = modules.get(id)!; + assert(dep != null); + return dep.exports; + }); if (typeof module.factory === "function") { module.factory!(...dependencies); diff --git a/encoding/csv.ts b/encoding/csv.ts index afd011f514..ccbfcba9ef 100644 --- a/encoding/csv.ts +++ b/encoding/csv.ts @@ -84,25 +84,23 @@ async function read( result = line.split(opt.comma!); let quoteError = false; - result = result.map( - (r): string => { - if (opt.trimLeadingSpace) { - r = r.trimLeft(); - } - if (r[0] === '"' && r[r.length - 1] === '"') { - r = r.substring(1, r.length - 1); - } else if (r[0] === '"') { - r = r.substring(1, r.length); - } - - if (!opt.lazyQuotes) { - if (r[0] !== '"' && r.indexOf('"') !== -1) { - quoteError = true; - } - } - return r; + result = result.map((r): string => { + if (opt.trimLeadingSpace) { + r = r.trimLeft(); } - ); + if (r[0] === '"' && r[r.length - 1] === '"') { + r = r.substring(1, r.length - 1); + } else if (r[0] === '"') { + r = r.substring(1, r.length); + } + + if (!opt.lazyQuotes) { + if (r[0] !== '"' && r.indexOf('"') !== -1) { + quoteError = true; + } + } + return r; + }); if (quoteError) { throw new ParseError(Startline, lineIndex, 'bare " in non-quoted-field'); } @@ -226,27 +224,25 @@ export async function parse( ); i++; } - return r.map( - (e): unknown => { - if (e.length !== headers.length) { - throw `Error number of fields line:${i}`; - } - i++; - let out: Record = {}; - for (let j = 0; j < e.length; j++) { - const h = headers[j]; - if (h.parse) { - out[h.name] = h.parse(e[j]); - } else { - out[h.name] = e[j]; - } - } - if (opt.parse) { - return opt.parse(out); - } - return out; + return r.map((e): unknown => { + if (e.length !== headers.length) { + throw `Error number of fields line:${i}`; } - ); + i++; + let out: Record = {}; + for (let j = 0; j < e.length; j++) { + const h = headers[j]; + if (h.parse) { + out[h.name] = h.parse(e[j]); + } else { + out[h.name] = e[j]; + } + } + if (opt.parse) { + return opt.parse(out); + } + return out; + }); } if (opt.parse) { return r.map((e: string[]): unknown => opt.parse!(e)); diff --git a/encoding/toml.ts b/encoding/toml.ts index 8a53a8300d..228c1180b4 100644 --- a/encoding/toml.ts +++ b/encoding/toml.ts @@ -403,24 +403,20 @@ class Dumper { _parse(obj: Record, path: string = ""): string[] { const out = []; const props = Object.keys(obj); - const propObj = props.filter( - (e: string): boolean => { - if (obj[e] instanceof Array) { - const d: unknown[] = obj[e] as unknown[]; - return !this._isSimplySerializable(d[0]); - } - return !this._isSimplySerializable(obj[e]); + const propObj = props.filter((e: string): boolean => { + if (obj[e] instanceof Array) { + const d: unknown[] = obj[e] as unknown[]; + return !this._isSimplySerializable(d[0]); } - ); - const propPrim = props.filter( - (e: string): boolean => { - if (obj[e] instanceof Array) { - const d: unknown[] = obj[e] as unknown[]; - return this._isSimplySerializable(d[0]); - } - return this._isSimplySerializable(obj[e]); + return !this._isSimplySerializable(obj[e]); + }); + const propPrim = props.filter((e: string): boolean => { + if (obj[e] instanceof Array) { + const d: unknown[] = obj[e] as unknown[]; + return this._isSimplySerializable(d[0]); } - ); + return this._isSimplySerializable(obj[e]); + }); const k = propPrim.concat(propObj); for (let i = 0; i < k.length; i++) { const prop = k[i]; diff --git a/flags/mod.ts b/flags/mod.ts index 1333b96d59..28332ae75b 100644 --- a/flags/mod.ts +++ b/flags/mod.ts @@ -79,11 +79,9 @@ export function parse( ? [options.boolean] : options.boolean; - booleanArgs.filter(Boolean).forEach( - (key: string): void => { - flags.bools[key] = true; - } - ); + booleanArgs.filter(Boolean).forEach((key: string): void => { + flags.bools[key] = true; + }); } } @@ -114,11 +112,9 @@ export function parse( flags.strings[key] = true; const alias = get(aliases, key); if (alias) { - alias.forEach( - (alias: string): void => { - flags.strings[alias] = true; - } - ); + alias.forEach((alias: string): void => { + flags.strings[alias] = true; + }); } }); } diff --git a/fmt/sprintf_test.ts b/fmt/sprintf_test.ts index dbbdbb306e..7cfe0d0a48 100644 --- a/fmt/sprintf_test.ts +++ b/fmt/sprintf_test.ts @@ -587,18 +587,16 @@ const tests: Array<[string, any, string]> = [ ]; test(function testThorough(): void { - tests.forEach( - (t, i): void => { - // p(t) - let is = S(t[0], t[1]); - let should = t[2]; - assertEquals( - is, - should, - `failed case[${i}] : is >${is}< should >${should}<` - ); - } - ); + tests.forEach((t, i): void => { + // p(t) + let is = S(t[0], t[1]); + let should = t[2]; + assertEquals( + is, + should, + `failed case[${i}] : is >${is}< should >${should}<` + ); + }); }); test(function testWeirdos(): void { diff --git a/fs/copy_test.ts b/fs/copy_test.ts index a11838c4bd..347d2532c2 100644 --- a/fs/copy_test.ts +++ b/fs/copy_test.ts @@ -317,11 +317,9 @@ testCopySync( (tempDir: string): void => { const srcFile = path.join(testdataDir, "copy_file_not_exists_sync.txt"); const destFile = path.join(tempDir, "copy_file_not_exists_1_sync.txt"); - assertThrows( - (): void => { - copySync(srcFile, destFile); - } - ); + assertThrows((): void => { + copySync(srcFile, destFile); + }); } ); @@ -367,50 +365,47 @@ testCopySync( } ); -testCopySync( - "[fs] copy file synchronously", - (tempDir: string): void => { - const srcFile = path.join(testdataDir, "copy_file.txt"); - const destFile = path.join(tempDir, "copy_file_copy_sync.txt"); +testCopySync("[fs] copy file synchronously", (tempDir: string): void => { + const srcFile = path.join(testdataDir, "copy_file.txt"); + const destFile = path.join(tempDir, "copy_file_copy_sync.txt"); - const srcContent = new TextDecoder().decode(Deno.readFileSync(srcFile)); + const srcContent = new TextDecoder().decode(Deno.readFileSync(srcFile)); - assertEquals(existsSync(srcFile), true); - assertEquals(existsSync(destFile), false); + assertEquals(existsSync(srcFile), true); + assertEquals(existsSync(destFile), false); - copySync(srcFile, destFile); + copySync(srcFile, destFile); - assertEquals(existsSync(srcFile), true); - assertEquals(existsSync(destFile), true); + assertEquals(existsSync(srcFile), true); + assertEquals(existsSync(destFile), true); - const destContent = new TextDecoder().decode(Deno.readFileSync(destFile)); + const destContent = new TextDecoder().decode(Deno.readFileSync(destFile)); - assertEquals(srcContent, destContent); + assertEquals(srcContent, destContent); - // Copy again without overwrite option and it should throw an error. - assertThrows( - (): void => { - copySync(srcFile, destFile); - }, - Error, - `'${destFile}' already exists.` - ); + // Copy again without overwrite option and it should throw an error. + assertThrows( + (): void => { + copySync(srcFile, destFile); + }, + Error, + `'${destFile}' already exists.` + ); - // Modify destination file. - Deno.writeFileSync(destFile, new TextEncoder().encode("txt copy")); + // Modify destination file. + Deno.writeFileSync(destFile, new TextEncoder().encode("txt copy")); - assertEquals( - new TextDecoder().decode(Deno.readFileSync(destFile)), - "txt copy" - ); + assertEquals( + new TextDecoder().decode(Deno.readFileSync(destFile)), + "txt copy" + ); - // Copy again with overwrite option. - copySync(srcFile, destFile, { overwrite: true }); + // Copy again with overwrite option. + copySync(srcFile, destFile, { overwrite: true }); - // Make sure the file has been overwritten. - assertEquals(new TextDecoder().decode(Deno.readFileSync(destFile)), "txt"); - } -); + // Make sure the file has been overwritten. + assertEquals(new TextDecoder().decode(Deno.readFileSync(destFile)), "txt"); +}); testCopySync( "[fs] copy directory synchronously to its subdirectory", @@ -450,57 +445,54 @@ testCopySync( } ); -testCopySync( - "[fs] copy directory synchronously", - (tempDir: string): void => { - const srcDir = path.join(testdataDir, "copy_dir"); - const destDir = path.join(tempDir, "copy_dir_copy_sync"); - const srcFile = path.join(srcDir, "0.txt"); - const destFile = path.join(destDir, "0.txt"); - const srcNestFile = path.join(srcDir, "nest", "0.txt"); - const destNestFile = path.join(destDir, "nest", "0.txt"); +testCopySync("[fs] copy directory synchronously", (tempDir: string): void => { + const srcDir = path.join(testdataDir, "copy_dir"); + const destDir = path.join(tempDir, "copy_dir_copy_sync"); + const srcFile = path.join(srcDir, "0.txt"); + const destFile = path.join(destDir, "0.txt"); + const srcNestFile = path.join(srcDir, "nest", "0.txt"); + const destNestFile = path.join(destDir, "nest", "0.txt"); - copySync(srcDir, destDir); + copySync(srcDir, destDir); - assertEquals(existsSync(destFile), true); - assertEquals(existsSync(destNestFile), true); + assertEquals(existsSync(destFile), true); + assertEquals(existsSync(destNestFile), true); - // After copy. The source and destination should have the same content. - assertEquals( - new TextDecoder().decode(Deno.readFileSync(srcFile)), - new TextDecoder().decode(Deno.readFileSync(destFile)) - ); - assertEquals( - new TextDecoder().decode(Deno.readFileSync(srcNestFile)), - new TextDecoder().decode(Deno.readFileSync(destNestFile)) - ); + // After copy. The source and destination should have the same content. + assertEquals( + new TextDecoder().decode(Deno.readFileSync(srcFile)), + new TextDecoder().decode(Deno.readFileSync(destFile)) + ); + assertEquals( + new TextDecoder().decode(Deno.readFileSync(srcNestFile)), + new TextDecoder().decode(Deno.readFileSync(destNestFile)) + ); - // Copy again without overwrite option and it should throw an error. - assertThrows( - (): void => { - copySync(srcDir, destDir); - }, - Error, - `'${destDir}' already exists.` - ); + // Copy again without overwrite option and it should throw an error. + assertThrows( + (): void => { + copySync(srcDir, destDir); + }, + Error, + `'${destDir}' already exists.` + ); - // Modify the file in the destination directory. - Deno.writeFileSync(destNestFile, new TextEncoder().encode("nest copy")); - assertEquals( - new TextDecoder().decode(Deno.readFileSync(destNestFile)), - "nest copy" - ); + // Modify the file in the destination directory. + Deno.writeFileSync(destNestFile, new TextEncoder().encode("nest copy")); + assertEquals( + new TextDecoder().decode(Deno.readFileSync(destNestFile)), + "nest copy" + ); - // Copy again with overwrite option. - copySync(srcDir, destDir, { overwrite: true }); + // Copy again with overwrite option. + copySync(srcDir, destDir, { overwrite: true }); - // Make sure the file has been overwritten. - assertEquals( - new TextDecoder().decode(Deno.readFileSync(destNestFile)), - "nest" - ); - } -); + // Make sure the file has been overwritten. + assertEquals( + new TextDecoder().decode(Deno.readFileSync(destNestFile)), + "nest" + ); +}); testCopySync( "[fs] copy symlink file synchronously", diff --git a/fs/empty_dir_test.ts b/fs/empty_dir_test.ts index b44e600d74..80d3a17892 100644 --- a/fs/empty_dir_test.ts +++ b/fs/empty_dir_test.ts @@ -110,18 +110,14 @@ test(function emptyDirSyncIfItExist(): void { assertEquals(stat.isDirectory(), true); // nest directory have been remove - assertThrows( - (): void => { - Deno.statSync(testNestDir); - } - ); + assertThrows((): void => { + Deno.statSync(testNestDir); + }); // test file have been remove - assertThrows( - (): void => { - Deno.statSync(testDirFile); - } - ); + assertThrows((): void => { + Deno.statSync(testDirFile); + }); } finally { // remote test dir Deno.removeSync(testDir, { recursive: true }); diff --git a/fs/ensure_dir_test.ts b/fs/ensure_dir_test.ts index ad34336dca..affffdbe64 100644 --- a/fs/ensure_dir_test.ts +++ b/fs/ensure_dir_test.ts @@ -15,11 +15,9 @@ test(async function ensureDirIfItNotExist(): Promise { await assertThrowsAsync( async (): Promise => { - await Deno.stat(testDir).then( - (): void => { - throw new Error("test dir should exists."); - } - ); + await Deno.stat(testDir).then((): void => { + throw new Error("test dir should exists."); + }); } ); @@ -48,11 +46,9 @@ test(async function ensureDirIfItExist(): Promise { await assertThrowsAsync( async (): Promise => { - await Deno.stat(testDir).then( - (): void => { - throw new Error("test dir should still exists."); - } - ); + await Deno.stat(testDir).then((): void => { + throw new Error("test dir should still exists."); + }); } ); @@ -68,12 +64,10 @@ test(function ensureDirSyncIfItExist(): void { ensureDirSync(testDir); - assertThrows( - (): void => { - Deno.statSync(testDir); - throw new Error("test dir should still exists."); - } - ); + assertThrows((): void => { + Deno.statSync(testDir); + throw new Error("test dir should still exists."); + }); Deno.removeSync(baseDir, { recursive: true }); }); diff --git a/fs/ensure_file_test.ts b/fs/ensure_file_test.ts index fa27133ab4..56f180786e 100644 --- a/fs/ensure_file_test.ts +++ b/fs/ensure_file_test.ts @@ -14,11 +14,9 @@ test(async function ensureFileIfItNotExist(): Promise { await assertThrowsAsync( async (): Promise => { - await Deno.stat(testFile).then( - (): void => { - throw new Error("test file should exists."); - } - ); + await Deno.stat(testFile).then((): void => { + throw new Error("test file should exists."); + }); } ); @@ -31,12 +29,10 @@ test(function ensureFileSyncIfItNotExist(): void { ensureFileSync(testFile); - assertThrows( - (): void => { - Deno.statSync(testFile); - throw new Error("test file should exists."); - } - ); + assertThrows((): void => { + Deno.statSync(testFile); + throw new Error("test file should exists."); + }); Deno.removeSync(testDir, { recursive: true }); }); @@ -52,11 +48,9 @@ test(async function ensureFileIfItExist(): Promise { await assertThrowsAsync( async (): Promise => { - await Deno.stat(testFile).then( - (): void => { - throw new Error("test file should exists."); - } - ); + await Deno.stat(testFile).then((): void => { + throw new Error("test file should exists."); + }); } ); @@ -72,12 +66,10 @@ test(function ensureFileSyncIfItExist(): void { ensureFileSync(testFile); - assertThrows( - (): void => { - Deno.statSync(testFile); - throw new Error("test file should exists."); - } - ); + assertThrows((): void => { + Deno.statSync(testFile); + throw new Error("test file should exists."); + }); Deno.removeSync(testDir, { recursive: true }); }); diff --git a/fs/ensure_link_test.ts b/fs/ensure_link_test.ts index 593df5702b..6d5758268c 100644 --- a/fs/ensure_link_test.ts +++ b/fs/ensure_link_test.ts @@ -31,11 +31,9 @@ test(function ensureLinkSyncIfItNotExist(): void { const testFile = path.join(testDir, "test.txt"); const linkFile = path.join(testDir, "link.txt"); - assertThrows( - (): void => { - ensureLinkSync(testFile, linkFile); - } - ); + assertThrows((): void => { + ensureLinkSync(testFile, linkFile); + }); Deno.removeSync(testDir, { recursive: true }); }); diff --git a/fs/ensure_symlink_test.ts b/fs/ensure_symlink_test.ts index 4dee56788f..82312b7582 100644 --- a/fs/ensure_symlink_test.ts +++ b/fs/ensure_symlink_test.ts @@ -24,11 +24,9 @@ test(async function ensureSymlinkIfItNotExist(): Promise { assertThrowsAsync( async (): Promise => { - await Deno.stat(testFile).then( - (): void => { - throw new Error("test file should exists."); - } - ); + await Deno.stat(testFile).then((): void => { + throw new Error("test file should exists."); + }); } ); }); @@ -37,18 +35,14 @@ test(function ensureSymlinkSyncIfItNotExist(): void { const testDir = path.join(testdataDir, "link_file_2"); const testFile = path.join(testDir, "test.txt"); - assertThrows( - (): void => { - ensureSymlinkSync(testFile, path.join(testDir, "test1.txt")); - } - ); + assertThrows((): void => { + ensureSymlinkSync(testFile, path.join(testDir, "test1.txt")); + }); - assertThrows( - (): void => { - Deno.statSync(testFile); - throw new Error("test file should exists."); - } - ); + assertThrows((): void => { + Deno.statSync(testFile); + throw new Error("test file should exists."); + }); }); test(async function ensureSymlinkIfItExist(): Promise { diff --git a/fs/move_test.ts b/fs/move_test.ts index fae951e1fa..bc73784b25 100644 --- a/fs/move_test.ts +++ b/fs/move_test.ts @@ -182,11 +182,9 @@ test(function moveSyncDirectoryIfSrcNotExists(): void { const srcDir = path.join(testdataDir, "move_sync_test_src_1"); const destDir = path.join(testdataDir, "move_sync_test_dest_1"); // if src directory not exist - assertThrows( - (): void => { - moveSync(srcDir, destDir); - } - ); + assertThrows((): void => { + moveSync(srcDir, destDir); + }); }); test(function moveSyncDirectoryIfDestNotExists(): void { @@ -213,11 +211,9 @@ test(function moveSyncFileIfSrcNotExists(): void { const destFile = path.join(testdataDir, "move_sync_test_dest_3", "test.txt"); // if src directory not exist - assertThrows( - (): void => { - moveSync(srcFile, destFile); - } - ); + assertThrows((): void => { + moveSync(srcFile, destFile); + }); }); test(function moveSyncFileIfDestExists(): void { diff --git a/fs/read_json_test.ts b/fs/read_json_test.ts index c8aa6dcf1d..28f733055a 100644 --- a/fs/read_json_test.ts +++ b/fs/read_json_test.ts @@ -65,31 +65,25 @@ test(async function readValidObjJsonFileWithRelativePath(): Promise { test(function readJsonFileNotExistsSync(): void { const emptyJsonFile = path.join(testdataDir, "json_not_exists.json"); - assertThrows( - (): void => { - readJsonSync(emptyJsonFile); - } - ); + assertThrows((): void => { + readJsonSync(emptyJsonFile); + }); }); test(function readEmptyJsonFileSync(): void { const emptyJsonFile = path.join(testdataDir, "json_empty.json"); - assertThrows( - (): void => { - readJsonSync(emptyJsonFile); - } - ); + assertThrows((): void => { + readJsonSync(emptyJsonFile); + }); }); test(function readInvalidJsonFile(): void { const invalidJsonFile = path.join(testdataDir, "json_invalid.json"); - assertThrows( - (): void => { - readJsonSync(invalidJsonFile); - } - ); + assertThrows((): void => { + readJsonSync(invalidJsonFile); + }); }); test(function readValidArrayJsonFileSync(): void { diff --git a/fs/walk.ts b/fs/walk.ts index 4520fe1746..cce3bad64d 100644 --- a/fs/walk.ts +++ b/fs/walk.ts @@ -19,13 +19,11 @@ function patternTest(patterns: RegExp[], path: string): boolean { // Forced to reset last index on regex while iterating for have // consistent results. // See: https://stackoverflow.com/a/1520853 - return patterns.some( - (pattern): boolean => { - let r = pattern.test(path); - pattern.lastIndex = 0; - return r; - } - ); + return patterns.some((pattern): boolean => { + let r = pattern.test(path); + pattern.lastIndex = 0; + return r; + }); } function include(filename: string, options: WalkOptions): boolean { diff --git a/http/file_server.ts b/http/file_server.ts index 6fc2d15a7f..dfcd40cddd 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -75,11 +75,9 @@ function modeToString(isDir: boolean, maybeMode: number | null): string { .split("") .reverse() .slice(0, 3) - .forEach( - (v): void => { - output = modeMap[+v] + output; - } - ); + .forEach((v): void => { + output = modeMap[+v] + output; + }); output = `(${isDir ? "d" : "-"}${output})`; return output; } @@ -179,9 +177,8 @@ async function serveDir( dirViewerTemplate.replace("<%DIRNAME%>", formattedDirUrl).replace( "<%CONTENTS%>", listEntry - .sort( - (a, b): number => - a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1 + .sort((a, b): number => + a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1 ) .map((v): string => v.template) .join("") diff --git a/http/server_test.ts b/http/server_test.ts index 4a904a6f79..692293e802 100644 --- a/http/server_test.ts +++ b/http/server_test.ts @@ -504,11 +504,9 @@ test({ let serverIsRunning = true; p.status() - .then( - (): void => { - serverIsRunning = false; - } - ) + .then((): void => { + serverIsRunning = false; + }) .catch((_): void => {}); // Ignores the error when closing the process. await delay(100); diff --git a/log/handlers.ts b/log/handlers.ts index 5dfd0caa40..93bdd3edd7 100644 --- a/log/handlers.ts +++ b/log/handlers.ts @@ -37,19 +37,16 @@ export class BaseHandler { return this.formatter(logRecord); } - return this.formatter.replace( - /{(\S+)}/g, - (match, p1): string => { - const value = logRecord[p1 as keyof LogRecord]; + return this.formatter.replace(/{(\S+)}/g, (match, p1): string => { + const value = logRecord[p1 as keyof LogRecord]; - // do not interpolate missing values - if (!value) { - return match; - } - - return String(value); + // do not interpolate missing values + if (!value) { + return match; } - ); + + return String(value); + }); } log(_msg: string): void {} diff --git a/log/logger.ts b/log/logger.ts index 7ef96e15ab..482743b235 100644 --- a/log/logger.ts +++ b/log/logger.ts @@ -36,11 +36,9 @@ export class Logger { level: level, levelName: getLevelName(level) }; - this.handlers.forEach( - (handler): void => { - handler.handle(record); - } - ); + this.handlers.forEach((handler): void => { + handler.handle(record); + }); } debug(msg: string, ...args: unknown[]): void { diff --git a/log/mod.ts b/log/mod.ts index cb166376ed..3f34d7f1da 100644 --- a/log/mod.ts +++ b/log/mod.ts @@ -80,11 +80,9 @@ export async function setup(config: LogConfig): Promise { }; // tear down existing handlers - state.handlers.forEach( - (handler): void => { - handler.destroy(); - } - ); + state.handlers.forEach((handler): void => { + handler.destroy(); + }); state.handlers.clear(); // setup handlers @@ -106,13 +104,11 @@ export async function setup(config: LogConfig): Promise { const handlerNames = loggerConfig.handlers || []; const handlers: BaseHandler[] = []; - handlerNames.forEach( - (handlerName): void => { - if (state.handlers.has(handlerName)) { - handlers.push(state.handlers.get(handlerName)!); - } + handlerNames.forEach((handlerName): void => { + if (state.handlers.has(handlerName)) { + handlers.push(state.handlers.get(handlerName)!); } - ); + }); const levelName = loggerConfig.level || DEFAULT_LEVEL; const logger = new Logger(levelName, handlers); diff --git a/mime/multipart.ts b/mime/multipart.ts index ba3474deee..62a25a0b97 100644 --- a/mime/multipart.ts +++ b/mime/multipart.ts @@ -188,20 +188,18 @@ class PartReader implements Reader, Closer { comps .slice(1) .map((v: string): string => v.trim()) - .map( - (kv: string): void => { - const [k, v] = kv.split("="); - if (v) { - const s = v.charAt(0); - const e = v.charAt(v.length - 1); - if ((s === e && s === '"') || s === "'") { - params[k] = v.substr(1, v.length - 2); - } else { - params[k] = v; - } + .map((kv: string): void => { + const [k, v] = kv.split("="); + if (v) { + const s = v.charAt(0); + const e = v.charAt(v.length - 1); + if ((s === e && s === '"') || s === "'") { + params[k] = v.substr(1, v.length - 2); + } else { + params[k] = v; } } - ); + }); return (this.contentDispositionParams = params); } diff --git a/prettier/vendor/parser_babylon.js b/prettier/vendor/parser_babylon.js index 13b655e7c1..b6139dc07a 100644 --- a/prettier/vendor/parser_babylon.js +++ b/prettier/vendor/parser_babylon.js @@ -1,4 +1,4 @@ -// This file is copied from prettier@1.17.1 +// This file is copied from prettier@1.18.2 /** * Copyright © James Long and contributors * @@ -8,4 +8,4 @@ * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babylon=e())}(globalThis,function(){"use strict";var t=function(t,e){var s=new SyntaxError(t+" ("+e.start.line+":"+e.start.column+")");return s.loc=e,s};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t,e){return t(e={exports:{}},e.exports),e.exports}var i=s(function(t){t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");var e=t.match(/(?:\r?\n)/g)||[];if(0===e.length)return null;var s=e.filter(function(t){return"\r\n"===t}).length;return s>e.length-s?"\r\n":"\n"},t.exports.graceful=function(e){return t.exports(e)||"\n"}}),r={EOL:"\n"},a=Object.freeze({default:r}),n=a&&r||a,o=s(function(t,e){var s,r;function a(){return s=(t=i)&&t.__esModule?t:{default:t};var t}function o(){return r=n}Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(t){var e=t.match(p);return e?e[0].trimLeft():""},e.strip=function(t){var e=t.match(p);return e&&e[0]?t.substring(e[0].length):t},e.parse=function(t){return y(t).pragmas},e.parseWithComments=y,e.print=function(t){var e=t.comments,i=void 0===e?"":e,n=t.pragmas,h=void 0===n?{}:n,u=(0,(s||a()).default)(i)||(r||o()).EOL,p=Object.keys(h),c=p.map(function(t){return D(t,h[t])}).reduce(function(t,e){return t.concat(e)},[]).map(function(t){return" * "+t+u}).join("");if(!i){if(0===p.length)return"";if(1===p.length&&!Array.isArray(h[p[0]])){var l=h[p[0]];return"".concat("/**"," ").concat(D(p[0],l)[0]).concat(" */")}}var d=i.split(u).map(function(t){return"".concat(" *"," ").concat(t)}).join(u)+u;return"/**"+u+(i?d:"")+(i&&p.length?" *"+u:"")+c+" */"};var h=/\*\/$/,u=/^\/\*\*/,p=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,d=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function y(t){var e=(0,(s||a()).default)(t)||(r||o()).EOL;t=t.replace(u,"").replace(h,"").replace(m,"$1");for(var i="";i!==t;)i=t,t=t.replace(d,"".concat(e,"$1 $2").concat(e));t=t.replace(l,"").trimRight();for(var n,p=Object.create(null),y=t.replace(f,"").replace(l,"").trimRight();n=f.exec(t);){var D=n[2].replace(c,"");"string"==typeof p[n[1]]||Array.isArray(p[n[1]])?p[n[1]]=[].concat(p[n[1]],D):p[n[1]]=D}return{comments:y,pragmas:p}}function D(t,e){return[].concat(e).map(function(e){return"@".concat(t," ").concat(e).trim()})}});e(o);var h=function(t){var e=Object.keys(o.parse(o.extract(t)));return-1!==e.indexOf("prettier")||-1!==e.indexOf("format")},u=function(t){return t.length>0?t[t.length-1]:null};var p={locStart:function t(e,s){return!(s=s||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?t(e.declaration.decorators[0]):!s.ignoreDecorators&&e.decorators&&e.decorators.length>0?t(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null},locEnd:function t(e){var s=e.nodes&&u(e.nodes);if(s&&e.source&&!e.source.end&&(e=s),e.__location)return e.__location.endOffset;var i=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(i,t(e.typeAnnotation)):e.loc&&!i?e.loc.end:i}};function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=s(function(t){t.exports=function(t){t=Object.assign({onlyFirst:!1},t);var e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}}),d=s(function(t){t.exports=function(t){return!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141))}}),f=s(function(t){var e=/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;t.exports=function(t){if("string"!=typeof(t=t.replace(e," "))||0===t.length)return 0;t=function(t){return"string"==typeof t?t.replace(l(),""):t}(t);for(var s=0,i=0;i=127&&r<=159||(r>=768&&r<=879||(r>65535&&i++,s+=d(r)?2:1))}return s}}),m=/[|\\{}()[\]^$+*?.]/g,y=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(m,"\\$&")},D=/[^\x20-\x7F]/;function x(t){if(t)switch(t.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function v(t){return function(e,s,i){var r=i&&i.backwards;if(!1===s)return!1;for(var a=e.length,n=s;n>=0&&n"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(t,e){t.forEach(function(t){S[t]=e})});var L={"==":!0,"!=":!0,"===":!0,"!==":!0},O={"*":!0,"/":!0,"%":!0},M={">>":!0,">>>":!0,"<<":!0};function R(t,e,s){for(var i=0,r=s=s||0;r(s.match(n.regex)||[]).length?n.quote:a.quote);return o}function _(t,e,s){var i='"'===e?"'":'"',r=t.replace(/\\([\s\S])|(['"])/g,function(t,r,a){return r===i?r:a===e?"\\"+a:a||(s&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(r)?r:"\\"+r)});return e+r+e}function j(t){return t&&t.comments&&t.comments.length>0&&t.comments.some(function(t){return"prettier-ignore"===t.value.trim()})}function q(t,e){(t.comments||(t.comments=[])).push(e),e.printed=!1,"JSXText"===t.type&&(e.printed=!0)}var U={replaceEndOfLineWith:function(t,e){var s=[],i=!0,r=!1,a=void 0;try{for(var n,o=t.split("\n")[Symbol.iterator]();!(i=(n=o.next()).done);i=!0){var h=n.value;0!==s.length&&s.push(e),s.push(h)}}catch(t){r=!0,a=t}finally{try{i||null==o.return||o.return()}finally{if(r)throw a}}return s},getStringWidth:function(t){return t?D.test(t)?f(t):t.length:0},getMaxContinuousCount:function(t,e){var s=t.match(new RegExp("(".concat(y(e),")+"),"g"));return null===s?0:s.reduce(function(t,s){return Math.max(t,s.length/e.length)},0)},getPrecedence:I,shouldFlatten:function(t,e){return!(I(e)!==I(t)||"**"===t||L[t]&&L[e]||"%"===e&&O[t]||"%"===t&&O[e]||e!==t&&O[e]&&O[t]||M[t]&&M[e])},isBitwiseOperator:function(t){return!!M[t]||"|"===t||"^"===t||"&"===t},isExportDeclaration:x,getParentExportDeclaration:function(t){var e=t.getParentNode();return"declaration"===t.getName()&&x(e)?e:null},getPenultimate:function(t){return t.length>1?t[t.length-2]:null},getLast:u,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:k,getNextNonSpaceNonCommentCharacterIndex:F,getNextNonSpaceNonCommentCharacter:function(t,e,s){return t.charAt(F(t,e,s))},skip:v,skipWhitespace:P,skipSpaces:g,skipToLineEnd:b,skipEverythingButNewLine:C,skipInlineComment:w,skipTrailingComment:E,skipNewline:A,isNextLineEmptyAfterIndex:N,isNextLineEmpty:function(t,e,s){return N(t,s(e))},isPreviousLineEmpty:function(t,e,s){var i=s(e)-1;return i=A(t,i=g(t,i,{backwards:!0}),{backwards:!0}),(i=g(t,i,{backwards:!0}))!==A(t,i,{backwards:!0})},hasNewline:T,hasNewlineInRange:function(t,e,s){for(var i=e;i",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:!0}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:!0}),at:new a("@"),hash:new a("#"),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:!0}),assign:new a("_=",{beforeExpr:r,isAssign:!0}),incDec:new a("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new a("!",{beforeExpr:r,prefix:!0,startsExpr:!0}),tilde:new a("~",{beforeExpr:r,prefix:!0,startsExpr:!0}),pipeline:new o("|>",0),nullishCoalescing:new o("??",1),logicalOR:new o("||",1),logicalAND:new o("&&",2),bitwiseOR:new o("|",3),bitwiseXOR:new o("^",4),bitwiseAND:new o("&",5),equality:new o("==/!=",6),relational:new o("",7),bitShift:new o("<>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:!0,startsExpr:!0}),modulo:new o("%",10),star:new o("*",10),slash:new o("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0})},u={break:new n("break"),case:new n("case",{beforeExpr:r}),catch:new n("catch"),continue:new n("continue"),debugger:new n("debugger"),default:new n("default",{beforeExpr:r}),do:new n("do",{isLoop:!0,beforeExpr:r}),else:new n("else",{beforeExpr:r}),finally:new n("finally"),for:new n("for",{isLoop:!0}),function:new n("function",{startsExpr:!0}),if:new n("if"),return:new n("return",{beforeExpr:r}),switch:new n("switch"),throw:new n("throw",{beforeExpr:r,prefix:!0,startsExpr:!0}),try:new n("try"),var:new n("var"),let:new n("let"),const:new n("const"),while:new n("while",{isLoop:!0}),with:new n("with"),new:new n("new",{beforeExpr:r,startsExpr:!0}),this:new n("this",{startsExpr:!0}),super:new n("super",{startsExpr:!0}),class:new n("class",{startsExpr:!0}),extends:new n("extends",{beforeExpr:r}),export:new n("export"),import:new n("import",{startsExpr:!0}),yield:new n("yield",{beforeExpr:r,startsExpr:!0}),null:new n("null",{startsExpr:!0}),true:new n("true",{startsExpr:!0}),false:new n("false",{startsExpr:!0}),in:new n("in",{beforeExpr:r,binop:7}),instanceof:new n("instanceof",{beforeExpr:r,binop:7}),typeof:new n("typeof",{beforeExpr:r,prefix:!0,startsExpr:!0}),void:new n("void",{beforeExpr:r,prefix:!0,startsExpr:!0}),delete:new n("delete",{beforeExpr:r,prefix:!0,startsExpr:!0})};function p(t){return null!=t&&"Property"===t.type&&"init"===t.kind&&!1===t.method}Object.keys(u).forEach(function(t){h["_"+t]=u[t]});var c=/\r\n?|\n|\u2028|\u2029/,l=new RegExp(c.source,"g");function d(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var f=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function m(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var y=function(t,e,s,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=i},D={braceStatement:new y("{",!1),braceExpression:new y("{",!0),templateQuasi:new y("${",!1),parenStatement:new y("(",!1),parenExpression:new y("(",!0),template:new y("`",!0,!0,function(t){return t.readTmplToken()}),functionExpression:new y("function",!0),functionStatement:new y("function",!1)};function x(t){var e=t.split(" ");return function(t){return e.indexOf(t)>=0}}h.parenR.updateContext=h.braceR.updateContext=function(){if(1!==this.state.context.length){var t=this.state.context.pop();t===D.braceStatement&&"function"===this.curContext().token&&(t=this.state.context.pop()),this.state.exprAllowed=!t.isExpr}else this.state.exprAllowed=!0},h.name.updateContext=function(t){var e=!1;t!==h.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.state.inGenerator)&&(e=!0),this.state.exprAllowed=e,this.state.isIterator&&(this.state.isIterator=!1)},h.braceL.updateContext=function(t){this.state.context.push(this.braceIsBlock(t)?D.braceStatement:D.braceExpression),this.state.exprAllowed=!0},h.dollarBraceL.updateContext=function(){this.state.context.push(D.templateQuasi),this.state.exprAllowed=!0},h.parenL.updateContext=function(t){var e=t===h._if||t===h._for||t===h._with||t===h._while;this.state.context.push(e?D.parenStatement:D.parenExpression),this.state.exprAllowed=!0},h.incDec.updateContext=function(){},h._function.updateContext=h._class.updateContext=function(t){!t.beforeExpr||t===h.semi||t===h._else||t===h._return&&c.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(t===h.colon||t===h.braceL)&&this.curContext()===D.b_stat?this.state.context.push(D.functionStatement):this.state.context.push(D.functionExpression),this.state.exprAllowed=!1},h.backQuote.updateContext=function(){this.curContext()===D.template?this.state.context.pop():this.state.context.push(D.template),this.state.exprAllowed=!1};var v={6:x("enum await"),strict:x("implements interface let package private protected public static yield"),strictBind:x("eval arguments")},P=x("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),g="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",b="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",C=new RegExp("["+g+"]"),w=new RegExp("["+g+b+"]");g=b=null;var E=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],A=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function T(t,e){for(var s=65536,i=0;it)return!1;if((s+=e[i+1])>=t)return!0}return!1}function N(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&C.test(String.fromCharCode(t)):T(t,E)))}function k(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&w.test(String.fromCharCode(t)):T(t,E)||T(t,A))))}var F=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function S(t){return"type"===t.importKind||"typeof"===t.importKind}function I(t){return(t.type===h.name||!!t.type.keyword)&&"from"!==t.value}var L={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var O=/\*?\s*@((?:no)?flow)\b/,M={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:"♦"},R=/^[\da-fA-F]+$/,B=/^\d+$/;function _(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function j(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return j(t.object)+"."+j(t.property);throw new Error("Node had unexpected type: "+t.type)}D.j_oTag=new y("...",!0,!0),h.jsxName=new a("jsxName"),h.jsxText=new a("jsxText",{beforeExpr:!0}),h.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),h.jsxTagEnd=new a("jsxTagEnd"),h.jsxTagStart.updateContext=function(){this.state.context.push(D.j_expr),this.state.context.push(D.j_oTag),this.state.exprAllowed=!1},h.jsxTagEnd.updateContext=function(t){var e=this.state.context.pop();e===D.j_oTag&&t===h.slash||e===D.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===D.j_expr):this.state.exprAllowed=!0};var q={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1};var U=function(t,e){this.line=t,this.column=e},V=function(t,e){this.start=t,this.end=e};function W(t){return t[t.length-1]}var K=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.raise=function(t,e,s){var i=void 0===s?{}:s,r=i.missingPluginNames,a=i.code,n=function(t,e){var s,i=1,r=0;for(l.lastIndex=0;(s=l.exec(t))&&s.index0)){var e,s,i,r,a,n=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=t.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(n.length>0){var o=W(n);o.trailingComments&&o.trailingComments[0].start>=t.end&&(i=o.trailingComments,delete o.trailingComments)}for(n.length>0&&W(n).start>=t.start&&(e=n.pop());n.length>0&&W(n).start>=t.start;)s=n.pop();if(!s&&e&&(s=e),e&&this.state.leadingComments.length>0){var h=W(this.state.leadingComments);if("ObjectProperty"===e.type){if(h.start>=t.start&&this.state.commentPreviousNode){for(a=0;a0&&(e.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===t.type&&t.arguments&&t.arguments.length){var u=W(t.arguments);if(u&&h.start>=u.start&&h.end<=t.end&&this.state.commentPreviousNode){for(a=0;a0&&(u.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}}if(s){if(s.leadingComments)if(s!==t&&s.leadingComments.length>0&&W(s.leadingComments).end<=t.start)t.leadingComments=s.leadingComments,delete s.leadingComments;else for(r=s.leadingComments.length-2;r>=0;--r)if(s.leadingComments[r].end<=t.start){t.leadingComments=s.leadingComments.splice(0,r+1);break}}else if(this.state.leadingComments.length>0)if(W(this.state.leadingComments).end<=t.start){if(this.state.commentPreviousNode)for(a=0;a0&&(t.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(r=0;rt.start);r++);var p=this.state.leadingComments.slice(0,r);p.length&&(t.leadingComments=p),0===(i=this.state.leadingComments.slice(r)).length&&(i=null)}this.state.commentPreviousNode=t,i&&(i.length&&i[0].start>=t.start&&W(i).end<=t.end?t.innerComments=i:t.trailingComments=i),n.push(t)}},e}(function(){function t(){this.sawUnambiguousESM=!1}var e=t.prototype;return e.isReservedWord=function(t){return"await"===t?this.inModule:v[6](t)},e.hasPlugin=function(t){return Object.hasOwnProperty.call(this.plugins,t)},e.getPluginOption=function(t,e){if(this.hasPlugin(t))return this.plugins[t][e]},t}())),G=function(){function t(){}var e=t.prototype;return e.init=function(t,e){this.strict=!1!==t.strictMode&&"module"===t.sourceType,this.input=e,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=!1,this.inFunction=!1,this.inParameters=!1,this.maybeInArrowParameters=!1,this.inGenerator=!1,this.inAsync=!1,this.inPipeline=!1,this.inPropertyName=!1,this.inType=!1,this.inClassProperty=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isIterator=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldOrAwaitInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=t.startLine,this.type=h.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=[D.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},e.curPosition=function(){return new U(this.curLine,this.pos-this.lineStart)},e.clone=function(e){var s=this,i=new t;return Object.keys(this).forEach(function(t){var r=s[t];e&&"context"!==t||!Array.isArray(r)||(r=r.slice()),i[t]=r}),i},t}(),X=function(t){return t>=48&&t<=57},J={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},H={bin:[48,49]};H.oct=H.bin.concat([50,51,52,53,54,55]),H.dec=H.oct.concat([56,57]),H.hex=H.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);var z=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.addExtra=function(t,e,s){t&&((t.extra=t.extra||{})[e]=s)},s.isRelational=function(t){return this.match(h.relational)&&this.state.value===t},s.isLookaheadRelational=function(t){var e=this.lookahead();return e.type==h.relational&&e.value==t},s.expectRelational=function(t){this.isRelational(t)?this.next():this.unexpected(null,h.relational)},s.eatRelational=function(t){return!!this.isRelational(t)&&(this.next(),!0)},s.isContextual=function(t){return this.match(h.name)&&this.state.value===t&&!this.state.containsEsc},s.isLookaheadContextual=function(t){var e=this.lookahead();return e.type===h.name&&e.value===t},s.eatContextual=function(t){return this.isContextual(t)&&this.eat(h.name)},s.expectContextual=function(t,e){this.eatContextual(t)||this.unexpected(null,e)},s.canInsertSemicolon=function(){return this.match(h.eof)||this.match(h.braceR)||this.hasPrecedingLineBreak()},s.hasPrecedingLineBreak=function(){return c.test(this.input.slice(this.state.lastTokEnd,this.state.start))},s.isLineTerminator=function(){return this.eat(h.semi)||this.canInsertSemicolon()},s.semicolon=function(){this.isLineTerminator()||this.unexpected(null,h.semi)},s.expect=function(t,e){this.eat(t)||this.unexpected(e,t)},s.unexpected=function(t,e){throw void 0===e&&(e="Unexpected token"),"string"!=typeof e&&(e='Unexpected token, expected "'+e.label+'"'),this.raise(null!=t?t:this.state.start,e)},s.expectPlugin=function(t,e){if(!this.hasPlugin(t))throw this.raise(null!=e?e:this.state.start,"This experimental syntax requires enabling the parser plugin: '"+t+"'",{missingPluginNames:[t]});return!0},s.expectOnePlugin=function(t,e){var s=this;if(!t.some(function(t){return s.hasPlugin(t)}))throw this.raise(null!=e?e:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '"+t.join(", ")+"'",{missingPluginNames:t})},e}(function(t){function e(e,s){var i;return(i=t.call(this)||this).state=new G,i.state.init(e,s),i.isLookahead=!1,i}i(e,t);var s=e.prototype;return s.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new V(t.startLoc,t.endLoc)}(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()},s.eat=function(t){return!!this.match(t)&&(this.next(),!0)},s.match=function(t){return this.state.type===t},s.isKeyword=function(t){return P(t)},s.lookahead=function(){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},s.setStrict=function(t){if(this.state.strict=t,this.match(h.num)||this.match(h.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(h.eof):t.override?t.override(this):this.readToken(this.input.codePointAt(this.state.pos))},s.readToken=function(t){N(t)||92===t?this.readWord():this.getTokenFromCode(t)},s.pushComment=function(t,e,s,i,r,a){var n={type:t?"CommentBlock":"CommentLine",value:e,start:s,end:i,loc:new V(r,a)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(n),this.state.comments.push(n),this.addComment(n))},s.skipBlockComment=function(){var t,e=this.state.curPosition(),s=this.state.pos,i=this.input.indexOf("*/",this.state.pos+=2);for(-1===i&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=i+2,l.lastIndex=s;(t=l.exec(this.input))&&t.index=48&&e<=57&&this.raise(this.state.pos,"Unexpected digit after hash token"),(this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(h.hash);"smart"===this.getPluginOption("pipelineOperator","proposal")?this.finishOp(h.hash,1):this.raise(this.state.pos,"Unexpected character '#'")}},s.readToken_dot=function(){var t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57)this.readNumber(!0);else{var e=this.input.charCodeAt(this.state.pos+2);46===t&&46===e?(this.state.pos+=3,this.finishToken(h.ellipsis)):(++this.state.pos,this.finishToken(h.dot))}},s.readToken_slash=function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.assign,2):this.finishOp(h.slash,1)},s.readToken_interpreter=function(){if(0!==this.state.pos||this.state.input.length<2)return!1;var t=this.state.pos;this.state.pos+=1;var e=this.input.charCodeAt(this.state.pos);if(33!==e)return!1;for(;10!==e&&13!==e&&8232!==e&&8233!==e&&++this.state.pos=48&&e<=57?(++this.state.pos,this.finishToken(h.question)):(this.state.pos+=2,this.finishToken(h.questionDot)):61===e?this.finishOp(h.assign,3):this.finishOp(h.nullishCoalescing,2)},s.getTokenFromCode=function(t){switch(t){case 35:return void this.readToken_numberSign();case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(h.parenL);case 41:return++this.state.pos,void this.finishToken(h.parenR);case 59:return++this.state.pos,void this.finishToken(h.semi);case 44:return++this.state.pos,void this.finishToken(h.comma);case 91:return++this.state.pos,void this.finishToken(h.bracketL);case 93:return++this.state.pos,void this.finishToken(h.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.braceBarL,2):(++this.state.pos,this.finishToken(h.braceL)));case 125:return++this.state.pos,void this.finishToken(h.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.doubleColon,2):(++this.state.pos,this.finishToken(h.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(h.at);case 96:return++this.state.pos,void this.finishToken(h.backQuote);case 48:var e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:case 62:return void this.readToken_lt_gt(t);case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(h.tilde,1)}this.raise(this.state.pos,"Unexpected character '"+String.fromCodePoint(t)+"'")},s.finishOp=function(t,e){var s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)},s.readRegexp=function(){for(var t,e,s=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.state.pos);if(c.test(i)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.state.pos}var r=this.input.slice(s,this.state.pos);++this.state.pos;for(var a="";this.state.pos-1)a.indexOf(n)>-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,a+=n;else{if(!k(o)&&92!==o)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(h.regexp,{pattern:r,flags:a})},s.readInt=function(t,e){for(var s=this.state.pos,i=16===t?J.hex:J.decBinOct,r=16===t?H.hex:10===t?H.dec:8===t?H.oct:H.bin,a=0,n=0,o=null==e?1/0:e;n-1||i.indexOf(c)>-1||Number.isNaN(c))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((u=h>=97?h-97+10:h>=65?h-65+10:X(h)?h-48:1/0)>=t)break;++this.state.pos,a=a*t+u}return this.state.pos===s||null!=e&&this.state.pos-s!==e?null:a},s.readRadixNumber=function(t){var e=this.state.pos,s=!1;this.state.pos+=2;var i=this.readInt(t);if(null==i&&this.raise(this.state.start+2,"Expected number in radix "+t),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,s=!0),N(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number"),s){var r=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(h.bigint,r)}else this.finishToken(h.num,i)},s.readNumber=function(t){var e=this.state.pos,s=!1,i=!1;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var r=this.state.pos-e>=2&&48===this.input.charCodeAt(e);r&&(this.state.strict&&this.raise(e,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(e,this.state.pos))&&(r=!1));var a=this.input.charCodeAt(this.state.pos);46!==a||r||(++this.state.pos,this.readInt(10),s=!0,a=this.input.charCodeAt(this.state.pos)),69!==a&&101!==a||r||(43!==(a=this.input.charCodeAt(++this.state.pos))&&45!==a||++this.state.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),s=!0,a=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===a&&((s||r)&&this.raise(e,"Invalid BigIntLiteral"),++this.state.pos,i=!0),N(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number");var n=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");if(i)this.finishToken(h.bigint,n);else{var o=r?parseInt(n,8):parseFloat(n);this.finishToken(h.num,o)}},s.readCodePoint=function(t){var e;if(123===this.input.charCodeAt(this.state.pos)){var s=++this.state.pos;if(e=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,t),++this.state.pos,null===e)--this.state.invalidTemplateEscapePosition;else if(e>1114111){if(!t)return this.state.invalidTemplateEscapePosition=s-2,null;this.raise(s,"Code point out of bounds")}}else e=this.readHexChar(4,t);return e},s.readString=function(t){for(var e="",s=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===t)break;92===i?(e+=this.input.slice(s,this.state.pos),e+=this.readEscapedChar(!1),s=this.state.pos):8232===i||8233===i?(++this.state.pos,++this.state.curLine):d(i)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)},s.readTmplToken=function(){for(var t="",e=this.state.pos,s=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(h.template)?36===i?(this.state.pos+=2,void this.finishToken(h.dollarBraceL)):(++this.state.pos,void this.finishToken(h.backQuote)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(h.template,s?null:t));if(92===i){t+=this.input.slice(e,this.state.pos);var r=this.readEscapedChar(!0);null===r?s=!0:t+=r,e=this.state.pos}else if(d(i)){switch(t+=this.input.slice(e,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}},s.readEscapedChar=function(t){var e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return"\n";case 114:return"\r";case 120:var i=this.readHexChar(2,e);return null===i?null:String.fromCharCode(i);case 117:var r=this.readCodePoint(e);return null===r?null:String.fromCodePoint(r);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(s>=48&&s<=55){var a=this.state.pos-1,n=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(n,8);if(o>255&&(n=n.slice(0,-1),o=parseInt(n,8)),o>0){if(t)return this.state.invalidTemplateEscapePosition=a,null;this.state.strict?this.raise(a,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=a)}return this.state.pos+=n.length-1,String.fromCharCode(o)}return String.fromCharCode(s)}},s.readHexChar=function(t,e){var s=this.state.pos,i=this.readInt(16,t);return null===i&&(e?this.raise(s,"Bad character escape sequence"):(this.state.pos=s-1,this.state.invalidTemplateEscapePosition=s-1)),i},s.readWord1=function(){this.state.containsEsc=!1;for(var t="",e=!0,s=this.state.pos;this.state.pos=0;n--){var o=this.state.labels[n];if(o.statementStart!==t.start)break;o.statementStart=this.state.start,o.kind=a}return this.state.labels.push({name:e,kind:a,statementStart:this.state.start}),t.body=this.parseStatement(!0),("ClassDeclaration"==t.body.type||"VariableDeclaration"==t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"==t.body.type&&(this.state.strict||t.body.generator||t.body.async))&&this.raise(t.body.start,"Invalid labeled declaration"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")},s.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},s.parseBlock=function(t){var e=this.startNode();return this.expect(h.braceL),this.parseBlockBody(e,t,!1,h.braceR),this.finishNode(e,"BlockStatement")},s.isValidDirective=function(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized},s.parseBlockBody=function(t,e,s,i){var r=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(r,e?a:void 0,s,i)},s.parseBlockOrModuleBlockBody=function(t,e,s,i){for(var r,a,n=!1;!this.eat(i);){n||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,s);if(e&&!n&&this.isValidDirective(o)){var h=this.stmtToDirective(o);e.push(h),void 0===r&&"use strict"===h.value.value&&(r=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else n=!0,t.push(o)}!1===r&&this.setStrict(!1)},s.parseFor=function(t,e){var s=this;return t.init=e,this.expect(h.semi),t.test=this.match(h.semi)?null:this.parseExpression(),this.expect(h.semi),t.update=this.match(h.parenR)?null:this.parseExpression(),this.expect(h.parenR),t.body=this.withTopicForbiddingContext(function(){return s.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(t,"ForStatement")},s.parseForIn=function(t,e,s){var i=this,r=this.match(h._in)?"ForInStatement":"ForOfStatement";return s?this.eatContextual("of"):this.next(),"ForOfStatement"===r&&(t.await=!!s),t.left=e,t.right=this.parseExpression(),this.expect(h.parenR),t.body=this.withTopicForbiddingContext(function(){return i.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(t,r)},s.parseVar=function(t,e,s){var i=t.declarations=[];for(t.kind=s.keyword;;){var r=this.startNode();if(this.parseVarHead(r),this.eat(h.eq)?r.init=this.parseMaybeAssign(e):(s!==h._const||this.match(h._in)||this.isContextual("of")?"Identifier"===r.id.type||e&&(this.match(h._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.hasPlugin("typescript")||this.unexpected(),r.init=null),i.push(this.finishNode(r,"VariableDeclarator")),!this.eat(h.comma))break}return t},s.parseVarHead=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0,void 0,"variable declaration")},s.parseFunction=function(t,e,s,i,r){var a=this,n=this.state.inFunction,o=this.state.inMethod,u=this.state.inAsync,p=this.state.inGenerator,c=this.state.inClassProperty;return this.state.inFunction=!0,this.state.inMethod=!1,this.state.inClassProperty=!1,this.initFunction(t,i),this.match(h.star)&&(t.generator=!0,this.next()),!e||r||this.match(h.name)||this.match(h._yield)||this.unexpected(),e||(this.state.inAsync=i,this.state.inGenerator=t.generator),(this.match(h.name)||this.match(h._yield))&&(t.id=this.parseBindingIdentifier()),e&&(this.state.inAsync=i,this.state.inGenerator=t.generator),this.parseFunctionParams(t),this.withTopicForbiddingContext(function(){a.parseFunctionBodyAndFinish(t,e?"FunctionDeclaration":"FunctionExpression",s)}),this.state.inFunction=n,this.state.inMethod=o,this.state.inAsync=u,this.state.inGenerator=p,this.state.inClassProperty=c,t},s.parseFunctionParams=function(t,e){var s=this.state.inParameters;this.state.inParameters=!0,this.expect(h.parenL),t.params=this.parseBindingList(h.parenR,!1,e),this.state.inParameters=s},s.parseClass=function(t,e,s){return this.next(),this.takeDecorators(t),this.parseClassId(t,e,s),this.parseClassSuper(t),this.parseClassBody(t),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},s.isClassProperty=function(){return this.match(h.eq)||this.match(h.semi)||this.match(h.braceR)},s.isClassMethod=function(){return this.match(h.parenL)},s.isNonstaticConstructor=function(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)},s.parseClassBody=function(t){var e=this,s=this.state.strict;this.state.strict=!0,this.state.classLevel++;var i={hadConstructor:!1},r=[],a=this.startNode();a.body=[],this.expect(h.braceL),this.withTopicForbiddingContext(function(){for(;!e.eat(h.braceR);)if(e.eat(h.semi))r.length>0&&e.raise(e.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(e.match(h.at))r.push(e.parseDecorator());else{var t=e.startNode();r.length&&(t.decorators=r,e.resetStartLocationFromNode(t,r[0]),r=[]),e.parseClassMember(a,t,i),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&e.raise(t.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}}),r.length&&this.raise(this.state.start,"You have trailing decorators with no method"),t.body=this.finishNode(a,"ClassBody"),this.state.classLevel--,this.state.strict=s},s.parseClassMember=function(t,e,s){var i=!1,r=this.state.containsEsc;if(this.match(h.name)&&"static"===this.state.value){var a=this.parseIdentifier(!0);if(this.isClassMethod()){var n=e;return n.kind="method",n.computed=!1,n.key=a,n.static=!1,void this.pushClassMethod(t,n,!1,!1,!1)}if(this.isClassProperty()){var o=e;return o.computed=!1,o.key=a,o.static=!1,void t.body.push(this.parseClassProperty(o))}if(r)throw this.unexpected();i=!0}this.parseClassMemberWithIsStatic(t,e,s,i)},s.parseClassMemberWithIsStatic=function(t,e,s,i){var r=e,a=e,n=e,o=e,u=r,p=r;if(e.static=i,this.eat(h.star))return u.kind="method",this.parseClassPropertyName(u),"PrivateName"===u.key.type?void this.pushClassPrivateMethod(t,a,!0,!1):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't be a generator"),void this.pushClassMethod(t,r,!0,!1,!1));var c=this.parseClassPropertyName(e),l="PrivateName"===c.type,d="Identifier"===c.type;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(u.kind="method",l)return void this.pushClassPrivateMethod(t,a,!1,!1);var f=this.isNonstaticConstructor(r);f&&(r.kind="constructor",r.decorators&&this.raise(r.start,"You can't attach decorators to a class constructor"),s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(c.start,"Duplicate constructor in the same class"),s.hadConstructor=!0),this.pushClassMethod(t,r,!1,!1,f)}else if(this.isClassProperty())l?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n);else if(d&&"async"===c.name&&!this.isLineTerminator()){var m=this.eat(h.star);u.kind="method",this.parseClassPropertyName(u),"PrivateName"===u.key.type?this.pushClassPrivateMethod(t,a,m,!0):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't be an async function"),this.pushClassMethod(t,r,m,!0,!1))}else!d||"get"!==c.name&&"set"!==c.name||this.isLineTerminator()&&this.match(h.star)?this.isLineTerminator()?l?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n):this.unexpected():(u.kind=c.name,this.parseClassPropertyName(r),"PrivateName"===u.key.type?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(t,r,!1,!1,!1)),this.checkGetterSetterParams(r))},s.parseClassPropertyName=function(t){var e=this.parsePropertyName(t);return t.computed||!t.static||"prototype"!==e.name&&"prototype"!==e.value||this.raise(e.start,"Classes may not have static property named prototype"),"PrivateName"===e.type&&"constructor"===e.id.name&&this.raise(e.start,"Classes may not have a private field named '#constructor'"),e},s.pushClassProperty=function(t,e){this.isNonstaticConstructor(e)&&this.raise(e.key.start,"Classes may not have a non-static field named 'constructor'"),t.body.push(this.parseClassProperty(e))},s.pushClassPrivateProperty=function(t,e){this.expectPlugin("classPrivateProperties",e.key.start),t.body.push(this.parseClassPrivateProperty(e))},s.pushClassMethod=function(t,e,s,i,r){t.body.push(this.parseMethod(e,s,i,r,"ClassMethod"))},s.pushClassPrivateMethod=function(t,e,s,i){this.expectPlugin("classPrivateMethods",e.key.start),t.body.push(this.parseMethod(e,s,i,!1,"ClassPrivateMethod"))},s.parsePostMemberNameModifiers=function(t){},s.parseAccessModifier=function(){},s.parseClassPrivateProperty=function(t){var e=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,t.value=this.eat(h.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=e,this.finishNode(t,"ClassPrivateProperty")},s.parseClassProperty=function(t){t.typeAnnotation||this.expectPlugin("classProperties");var e=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,this.match(h.eq)?(this.expectPlugin("classProperties"),this.next(),t.value=this.parseMaybeAssign()):t.value=null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=e,this.finishNode(t,"ClassProperty")},s.parseClassId=function(t,e,s){this.match(h.name)?t.id=this.parseIdentifier():s||!e?t.id=null:this.unexpected(null,"A class name is required")},s.parseClassSuper=function(t){t.superClass=this.eat(h._extends)?this.parseExprSubscripts():null},s.parseExport=function(t){if(this.shouldParseExportStar()){if(this.parseExportStar(t),"ExportAllDeclaration"===t.type)return t}else if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var e=this.startNode();e.exported=this.parseIdentifier(!0);var s=[this.finishNode(e,"ExportDefaultSpecifier")];if(t.specifiers=s,this.match(h.comma)&&this.lookahead().type===h.star){this.expect(h.comma);var i=this.startNode();this.expect(h.star),this.expectContextual("as"),i.exported=this.parseIdentifier(),s.push(this.finishNode(i,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(t);this.parseExportFrom(t,!0)}else{if(this.eat(h._default))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var r=this.lookahead();r.type!==h._function&&this.unexpected(r.start,'Unexpected token, expected "function"')}t.specifiers=[],t.source=null,t.declaration=this.parseExportDeclaration(t)}else t.declaration=null,t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t)}return this.checkExport(t,!0),this.finishNode(t,"ExportNamedDeclaration")},s.isAsyncFunction=function(){if(!this.isContextual("async"))return!1;var t=this.state,e=t.input,s=t.pos;f.lastIndex=s;var i=f.exec(e);if(!i||!i.length)return!1;var r=s+i[0].length;return!(c.test(e.slice(s,r))||"function"!==e.slice(r,r+8)||r+8!==e.length&&k(e.charAt(r+8)))},s.parseExportDefaultExpression=function(){var t=this.startNode(),e=this.isAsyncFunction();if(this.eat(h._function)||e)return e&&(this.eatContextual("async"),this.expect(h._function)),this.parseFunction(t,!0,!1,e,!0);if(this.match(h._class))return this.parseClass(t,!0,!0);if(this.match(h.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(h._let)||this.match(h._const)||this.match(h._var))return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var s=this.parseMaybeAssign();return this.semicolon(),s},s.parseExportDeclaration=function(t){return this.parseStatement(!0)},s.isExportDefaultSpecifier=function(){if(this.match(h.name))return"async"!==this.state.value;if(!this.match(h._default))return!1;var t=this.lookahead();return t.type===h.comma||t.type===h.name&&"from"===t.value},s.parseExportSpecifiersMaybe=function(t){this.eat(h.comma)&&(t.specifiers=t.specifiers.concat(this.parseExportSpecifiers()))},s.parseExportFrom=function(t,e){this.eatContextual("from")?(t.source=this.match(h.string)?this.parseExprAtom():this.unexpected(),this.checkExport(t)):e?this.unexpected():t.source=null,this.semicolon()},s.shouldParseExportStar=function(){return this.match(h.star)},s.parseExportStar=function(t){this.expect(h.star),this.isContextual("as")?this.parseExportNamespace(t):(this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration"))},s.parseExportNamespace=function(t){this.expectPlugin("exportNamespaceFrom");var e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next(),e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(t),this.parseExportFrom(t,!0)},s.shouldParseExportDeclaration=function(){if(this.match(h.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isAsyncFunction()},s.checkExport=function(t,e,s){if(e)if(s)this.checkDuplicateExports(t,"default");else if(t.specifiers&&t.specifiers.length)for(var i=0,r=t.specifiers;i-1&&this.raiseDuplicateExportError(t,e),this.state.exportedIdentifiers.push(e)},s.raiseDuplicateExportError=function(t,e){throw this.raise(t.start,"default"===e?"Only one default export allowed per module.":"`"+e+"` has already been exported. Exported identifiers must be unique.")},s.parseExportSpecifiers=function(){var t,e=[],s=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(s)s=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;var i=this.match(h._default);i&&!t&&(t=!0);var r=this.startNode();r.local=this.parseIdentifier(i),r.exported=this.eatContextual("as")?this.parseIdentifier(!0):r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return t&&!this.isContextual("from")&&this.unexpected(),e},s.parseImport=function(t){return this.match(h.string)?(t.specifiers=[],t.source=this.parseExprAtom()):(t.specifiers=[],this.parseImportSpecifiers(t),this.expectContextual("from"),t.source=this.match(h.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},s.shouldParseDefaultImport=function(t){return this.match(h.name)},s.parseImportSpecifierLocal=function(t,e,s,i){e.local=this.parseIdentifier(),this.checkLVal(e.local,!0,void 0,i),t.specifiers.push(this.finishNode(e,s))},s.parseImportSpecifiers=function(t){var e=!0;if(!this.shouldParseDefaultImport(t)||(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier","default import specifier"),this.eat(h.comma))){if(this.match(h.star)){var s=this.startNode();return this.next(),this.expectContextual("as"),void this.parseImportSpecifierLocal(t,s,"ImportNamespaceSpecifier","import namespace specifier")}for(this.expect(h.braceL);!this.eat(h.braceR);){if(e)e=!1;else if(this.eat(h.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(h.comma),this.eat(h.braceR))break;this.parseImportSpecifier(t)}}},s.parseImportSpecifier=function(t){var e=this.startNode();e.imported=this.parseIdentifier(!0),this.eatContextual("as")?e.local=this.parseIdentifier():(this.checkReservedWord(e.imported.name,e.start,!0,!0),e.local=e.imported.__clone()),this.checkLVal(e.local,!0,void 0,"import specifier"),t.specifiers.push(this.finishNode(e,"ImportSpecifier"))},e}(function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.checkPropClash=function(t,e){if(!t.computed&&!t.kind){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)}},s.getExpression=function(){this.nextToken();var t=this.parseExpression();return this.match(h.eof)||this.unexpected(),t.comments=this.state.comments,t},s.parseExpression=function(t,e){var s=this.state.start,i=this.state.startLoc,r=this.parseMaybeAssign(t,e);if(this.match(h.comma)){var a=this.startNodeAt(s,i);for(a.expressions=[r];this.eat(h.comma);)a.expressions.push(this.parseMaybeAssign(t,e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return r},s.parseMaybeAssign=function(t,e,s,i){var r,a=this.state.start,n=this.state.startLoc;if(this.match(h._yield)&&this.state.inGenerator){var o=this.parseYield();return s&&(o=s.call(this,o,a,n)),o}e?r=!1:(e={start:0},r=!0),(this.match(h.parenL)||this.match(h.name)||this.match(h._yield))&&(this.state.potentialArrowAt=this.state.start);var u=this.parseMaybeConditional(t,e,i);if(s&&(u=s.call(this,u,a,n)),this.state.type.isAssign){var p,c=this.startNodeAt(a,n),l=this.state.value;if(c.operator=l,"??="===l&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==l&&"&&="!==l||this.expectPlugin("logicalAssignment"),c.left=this.match(h.eq)?this.toAssignable(u,void 0,"assignment expression"):u,e.start=0,this.checkLVal(u,void 0,void 0,"assignment expression"),u.extra&&u.extra.parenthesized)"ObjectPattern"===u.type?p="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===u.type&&(p="`([a]) = 0` use `([a] = 0)`"),p&&this.raise(u.start,"You're trying to assign to a parenthesized expression, eg. instead of "+p);return this.next(),c.right=this.parseMaybeAssign(t),this.finishNode(c,"AssignmentExpression")}return r&&e.start&&this.unexpected(e.start),u},s.parseMaybeConditional=function(t,e,s){var i=this.state.start,r=this.state.startLoc,a=this.state.potentialArrowAt,n=this.parseExprOps(t,e);return"ArrowFunctionExpression"===n.type&&n.start===a?n:e&&e.start?n:this.parseConditional(n,t,i,r,s)},s.parseConditional=function(t,e,s,i,r){if(this.eat(h.question)){var a=this.startNodeAt(s,i);return a.test=t,a.consequent=this.parseMaybeAssign(),this.expect(h.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return t},s.parseExprOps=function(t,e){var s=this.state.start,i=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnary(e);return"ArrowFunctionExpression"===a.type&&a.start===r?a:e&&e.start?a:this.parseExprOp(a,s,i,-1,t)},s.parseExprOp=function(t,e,s,i,r){var a=this.state.type.binop;if(!(null==a||r&&this.match(h._in))&&a>i){var n=this.startNodeAt(e,s),o=this.state.value;n.left=t,n.operator=o,"**"!==o||"UnaryExpression"!==t.type||t.extra&&t.extra.parenthesized||this.raise(t.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var u=this.state.type;if(u===h.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(t,e)):u===h.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),u===h.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(h.name)&&"await"===this.state.value&&this.state.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return n.right=this.parseExprOpRightExpr(u,a,r),this.finishNode(n,u===h.logicalOR||u===h.logicalAND||u===h.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(n,e,s,i,r)}return t},s.parseExprOpRightExpr=function(t,e,s){var i=this;switch(t){case h.pipeline:if("smart"===this.getPluginOption("pipelineOperator","proposal")){var r=this.state.start,a=this.state.startLoc;return this.withTopicPermittingContext(function(){return i.parseSmartPipelineBody(i.parseExprOpBaseRightExpr(t,e,s),r,a)})}default:return this.parseExprOpBaseRightExpr(t,e,s)}},s.parseExprOpBaseRightExpr=function(t,e,s){var i=this.state.start,r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),i,r,t.rightAssociative?e-1:e,s)},s.parseMaybeUnary=function(t){if(this.state.type.prefix){var e=this.startNode(),s=this.match(h.incDec);if(e.operator=this.state.value,e.prefix=!0,"throw"===e.operator&&this.expectPlugin("throwExpressions"),this.next(),e.argument=this.parseMaybeUnary(),t&&t.start&&this.unexpected(t.start),s)this.checkLVal(e.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===e.operator){var i=e.argument;"Identifier"===i.type?this.raise(e.start,"Deleting local variable in strict mode"):"MemberExpression"===i.type&&"PrivateName"===i.property.type&&this.raise(e.start,"Deleting a private field is not allowed")}return this.finishNode(e,s?"UpdateExpression":"UnaryExpression")}var r=this.state.start,a=this.state.startLoc,n=this.parseExprSubscripts(t);if(t&&t.start)return n;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,a);o.operator=this.state.value,o.prefix=!1,o.argument=n,this.checkLVal(n,void 0,void 0,"postfix operation"),this.next(),n=this.finishNode(o,"UpdateExpression")}return n},s.parseExprSubscripts=function(t){var e=this.state.start,s=this.state.startLoc,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)},s.parseSubscripts=function(t,e,s,i){var r={optionalChainMember:!1,stop:!1};do{t=this.parseSubscript(t,e,s,i,r)}while(!r.stop);return t},s.parseSubscript=function(t,e,s,i,r){if(!i&&this.eat(h.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(h.questionDot)){if(this.expectPlugin("optionalChaining"),r.optionalChainMember=!0,i&&this.lookahead().type==h.parenL)return r.stop=!0,t;this.next();var n=this.startNodeAt(e,s);if(this.eat(h.bracketL))return n.object=t,n.property=this.parseExpression(),n.computed=!0,n.optional=!0,this.expect(h.bracketR),this.finishNode(n,"OptionalMemberExpression");if(this.eat(h.parenL)){var o=this.atPossibleAsync(t);return n.callee=t,n.arguments=this.parseCallExpressionArguments(h.parenR,o),n.optional=!0,this.finishNode(n,"OptionalCallExpression")}return n.object=t,n.property=this.parseIdentifier(!0),n.computed=!1,n.optional=!0,this.finishNode(n,"OptionalMemberExpression")}if(this.eat(h.dot)){var u=this.startNodeAt(e,s);return u.object=t,u.property=this.parseMaybePrivateName(),u.computed=!1,r.optionalChainMember?(u.optional=!1,this.finishNode(u,"OptionalMemberExpression")):this.finishNode(u,"MemberExpression")}if(this.eat(h.bracketL)){var p=this.startNodeAt(e,s);return p.object=t,p.property=this.parseExpression(),p.computed=!0,this.expect(h.bracketR),r.optionalChainMember?(p.optional=!1,this.finishNode(p,"OptionalMemberExpression")):this.finishNode(p,"MemberExpression")}if(!i&&this.match(h.parenL)){var c=this.state.maybeInArrowParameters,l=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;var d=this.atPossibleAsync(t);this.next();var f=this.startNodeAt(e,s);f.callee=t;var m={start:-1};return f.arguments=this.parseCallExpressionArguments(h.parenR,d,m),r.optionalChainMember?this.finishOptionalCallExpression(f):this.finishCallExpression(f),d&&this.shouldParseAsyncArrow()?(r.stop=!0,m.start>-1&&this.raise(m.start,"A trailing comma is not permitted after the rest element"),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e,s),f),this.state.yieldOrAwaitInPossibleArrowParameters=l):(this.toReferencedListDeep(f.arguments),this.state.yieldOrAwaitInPossibleArrowParameters=this.state.yieldOrAwaitInPossibleArrowParameters||l),this.state.maybeInArrowParameters=c,f}return this.match(h.backQuote)?this.parseTaggedTemplateExpression(e,s,t,r):(r.stop=!0,t)},s.parseTaggedTemplateExpression=function(t,e,s,i,r){var a=this.startNodeAt(t,e);return a.tag=s,a.quasi=this.parseTemplate(!0),r&&(a.typeParameters=r),i.optionalChainMember&&this.raise(t,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(a,"TaggedTemplateExpression")},s.atPossibleAsync=function(t){return!this.state.containsEsc&&this.state.potentialArrowAt===t.start&&"Identifier"===t.type&&"async"===t.name&&!this.canInsertSemicolon()},s.finishCallExpression=function(t){if("Import"===t.callee.type){1!==t.arguments.length&&this.raise(t.start,"import() requires exactly one argument");var e=t.arguments[0];e&&"SpreadElement"===e.type&&this.raise(e.start,"... is not allowed in import()")}return this.finishNode(t,"CallExpression")},s.finishOptionalCallExpression=function(t){if("Import"===t.callee.type){1!==t.arguments.length&&this.raise(t.start,"import() requires exactly one argument");var e=t.arguments[0];e&&"SpreadElement"===e.type&&this.raise(e.start,"... is not allowed in import()")}return this.finishNode(t,"OptionalCallExpression")},s.parseCallExpressionArguments=function(t,e,s){for(var i,r=[],a=!0;!this.eat(t);){if(a)a=!1;else if(this.expect(h.comma),this.eat(t))break;this.match(h.parenL)&&!i&&(i=this.state.start),r.push(this.parseExprListItem(!1,e?{start:0}:void 0,e?{start:0}:void 0,e?s:void 0))}return e&&i&&this.shouldParseAsyncArrow()&&this.unexpected(),r},s.shouldParseAsyncArrow=function(){return this.match(h.arrow)},s.parseAsyncArrowFromCallExpression=function(t,e){return this.expect(h.arrow),this.parseArrowExpression(t,e.arguments,!0),t},s.parseNoCallExpr=function(){var t=this.state.start,e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,e,!0)},s.parseExprAtom=function(t){this.state.type===h.slash&&this.readRegexp();var e,s=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case h._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),e=this.startNode(),this.next(),this.match(h.parenL)||this.match(h.bracketL)||this.match(h.dot)||this.unexpected(),this.match(h.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(e.start,"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."),this.finishNode(e,"Super");case h._import:return this.lookahead().type===h.dot?this.parseImportMetaProperty():(this.expectPlugin("dynamicImport"),e=this.startNode(),this.next(),this.match(h.parenL)||this.unexpected(null,h.parenL),this.finishNode(e,"Import"));case h._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case h._yield:this.state.inGenerator&&this.unexpected();case h.name:e=this.startNode();var i="await"===this.state.value&&(this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction),r=this.state.containsEsc,a=this.shouldAllowYieldIdentifier(),n=this.parseIdentifier(i||a);if("await"===n.name){if(this.state.inAsync||this.inModule||!this.state.inFunction&&this.options.allowAwaitOutsideFunction)return this.parseAwait(e)}else{if(!r&&"async"===n.name&&this.match(h._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(e,!1,!1,!0);if(s&&!this.canInsertSemicolon()&&"async"===n.name&&this.match(h.name)){var o=this.state.yieldOrAwaitInPossibleArrowParameters,u=this.state.inAsync;this.state.yieldOrAwaitInPossibleArrowParameters=null,this.state.inAsync=!0;var p=[this.parseIdentifier()];return this.expect(h.arrow),this.parseArrowExpression(e,p,!0),this.state.yieldOrAwaitInPossibleArrowParameters=o,this.state.inAsync=u,e}}if(s&&!this.canInsertSemicolon()&&this.eat(h.arrow)){var c=this.state.yieldOrAwaitInPossibleArrowParameters;return this.state.yieldOrAwaitInPossibleArrowParameters=null,this.parseArrowExpression(e,[n]),this.state.yieldOrAwaitInPossibleArrowParameters=c,e}return n;case h._do:this.expectPlugin("doExpressions");var l=this.startNode();this.next();var d=this.state.inFunction,f=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,l.body=this.parseBlock(!1),this.state.inFunction=d,this.state.labels=f,this.finishNode(l,"DoExpression");case h.regexp:var m=this.state.value;return(e=this.parseLiteral(m.value,"RegExpLiteral")).pattern=m.pattern,e.flags=m.flags,e;case h.num:return this.parseLiteral(this.state.value,"NumericLiteral");case h.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case h.string:return this.parseLiteral(this.state.value,"StringLiteral");case h._null:return e=this.startNode(),this.next(),this.finishNode(e,"NullLiteral");case h._true:case h._false:return this.parseBooleanLiteral();case h.parenL:return this.parseParenAndDistinguishExpression(s);case h.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(h.bracketR,!0,t),this.state.maybeInArrowParameters||this.toReferencedList(e.elements),this.finishNode(e,"ArrayExpression");case h.braceL:return this.parseObj(!1,t);case h._function:return this.parseFunctionExpression();case h.at:this.parseDecorators();case h._class:return e=this.startNode(),this.takeDecorators(e),this.parseClass(e,!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate(!1);case h.doubleColon:e=this.startNode(),this.next(),e.object=null;var y=e.callee=this.parseNoCallExpr();if("MemberExpression"===y.type)return this.finishNode(e,"BindExpression");throw this.raise(y.start,"Binding should be performed on object property.");case h.hash:if(this.state.inPipeline){if(e=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(e.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext())return this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference");throw this.raise(e.start,"Topic reference was used in a lexical context without topic binding")}default:throw this.unexpected()}},s.parseBooleanLiteral=function(){var t=this.startNode();return t.value=this.match(h._true),this.next(),this.finishNode(t,"BooleanLiteral")},s.parseMaybePrivateName=function(){if(this.match(h.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var t=this.startNode(),e=this.state.end;this.next();var s=this.state.start;return 0!=s-e&&this.raise(s,"Unexpected space between # and identifier"),t.id=this.parseIdentifier(!0),this.finishNode(t,"PrivateName")}return this.parseIdentifier(!0)},s.parseFunctionExpression=function(){var t=this.startNode(),e=this.startNode();return this.next(),e=this.createIdentifier(e,"function"),this.state.inGenerator&&this.eat(h.dot)?this.parseMetaProperty(t,e,"sent"):this.parseFunction(t,!1)},s.parseMetaProperty=function(t,e,s){t.meta=e,"function"===e.name&&"sent"===s&&(this.isContextual(s)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(t.property.start,"The only valid meta property for "+e.name+" is "+e.name+"."+s),this.finishNode(t,"MetaProperty")},s.parseImportMetaProperty=function(){var t=this.startNode(),e=this.parseIdentifier(!0);return this.expect(h.dot),"import"===e.name&&(this.isContextual("meta")?this.expectPlugin("importMeta"):this.hasPlugin("importMeta")||this.raise(e.start,"Dynamic imports require a parameter: import('a.js')")),this.inModule||this.raise(e.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(t,e,"meta")},s.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)},s.parseParenExpression=function(){this.expect(h.parenL);var t=this.parseExpression();return this.expect(h.parenR),t},s.parseParenAndDistinguishExpression=function(t){var e,s=this.state.start,i=this.state.startLoc;this.expect(h.parenL);var r=this.state.maybeInArrowParameters,a=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;for(var n,o,u=this.state.start,p=this.state.startLoc,c=[],l={start:0},d={start:0},f=!0;!this.match(h.parenR);){if(f)f=!1;else if(this.expect(h.comma,d.start||null),this.match(h.parenR)){o=this.state.start;break}if(this.match(h.ellipsis)){var m=this.state.start,y=this.state.startLoc;if(n=this.state.start,c.push(this.parseParenItem(this.parseRest(),m,y)),this.match(h.comma)){var D=this.lookahead().type===h.parenR?"A trailing comma is not permitted after the rest element":"Rest parameter must be last formal parameter";this.raise(this.state.start,D)}break}c.push(this.parseMaybeAssign(!1,l,this.parseParenItem,d))}var x=this.state.start,v=this.state.startLoc;this.expect(h.parenR),this.state.maybeInArrowParameters=r;var P=this.startNodeAt(s,i);if(t&&this.shouldParseArrow()&&(P=this.parseArrow(P))){for(var g=0;g1?((e=this.startNodeAt(u,p)).expressions=c,this.finishNodeAt(e,"SequenceExpression",x,v)):e=c[0],this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",s),e},s.shouldParseArrow=function(){return!this.canInsertSemicolon()},s.parseArrow=function(t){if(this.eat(h.arrow))return t},s.parseParenItem=function(t,e,s){return t},s.parseNew=function(){var t=this.startNode(),e=this.parseIdentifier(!0);if(this.eat(h.dot)){var s=this.parseMetaProperty(t,e,"target");if(!this.state.inFunction&&!this.state.inClassProperty){var i="new.target can only be used in functions";this.hasPlugin("classProperties")&&(i+=" or class properties"),this.raise(s.start,i)}return s}return t.callee=this.parseNoCallExpr(),"OptionalMemberExpression"!==t.callee.type&&"OptionalCallExpression"!==t.callee.type||this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"),this.eat(h.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(t),this.finishNode(t,"NewExpression")},s.parseNewArguments=function(t){if(this.eat(h.parenL)){var e=this.parseExprList(h.parenR);this.toReferencedList(e),t.arguments=e}else t.arguments=[]},s.parseTemplateElement=function(t){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(h.backQuote),this.finishNode(e,"TemplateElement")},s.parseTemplate=function(t){var e=this.startNode();this.next(),e.expressions=[];var s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)this.expect(h.dollarBraceL),e.expressions.push(this.parseExpression()),this.expect(h.braceR),e.quasis.push(s=this.parseTemplateElement(t));return this.next(),this.finishNode(e,"TemplateLiteral")},s.parseObj=function(t,e){var s=[],i=Object.create(null),r=!0,a=this.startNode();a.properties=[],this.next();for(var n=null;!this.eat(h.braceR);){if(r)r=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;if(this.match(h.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(h.at);)s.push(this.parseDecorator());var o=this.startNode(),u=!1,p=!1,c=void 0,l=void 0;if(s.length&&(o.decorators=s,s=[]),this.match(h.ellipsis)){if(o=this.parseSpread(t?{start:0}:void 0),t&&this.toAssignable(o,!0,"object pattern"),a.properties.push(o),!t)continue;var d=this.state.start;if(null!==n)this.unexpected(n,"Cannot have multiple rest elements when destructuring");else{if(this.eat(h.braceR))break;if(!this.match(h.comma)||this.lookahead().type!==h.braceR){n=d;continue}this.unexpected(d,"A trailing comma is not permitted after the rest element")}}o.method=!1,(t||e)&&(c=this.state.start,l=this.state.startLoc),t||(u=this.eat(h.star));var f=this.state.containsEsc;if(!t&&this.isContextual("async")){u&&this.unexpected();var m=this.parseIdentifier();this.match(h.colon)||this.match(h.parenL)||this.match(h.braceR)||this.match(h.eq)||this.match(h.comma)?(o.key=m,o.computed=!1):(p=!0,u=this.eat(h.star),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,c,l,u,p,t,e,f),this.checkPropClash(o,i),o.shorthand&&this.addExtra(o,"shorthand",!0),a.properties.push(o)}return null!==n&&this.unexpected(n,"The rest element has to be the last element when destructuring"),s.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(a,t?"ObjectPattern":"ObjectExpression")},s.isGetterOrSetterMethod=function(t,e){return!e&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&(this.match(h.string)||this.match(h.num)||this.match(h.bracketL)||this.match(h.name)||!!this.state.type.keyword)},s.checkGetterSetterParams=function(t){var e="get"===t.kind?0:1,s=t.start;t.params.length!==e&&("get"===t.kind?this.raise(s,"getter must not have any formal parameters"):this.raise(s,"setter must have exactly one formal parameter")),"set"===t.kind&&"RestElement"===t.params[0].type&&this.raise(s,"setter function argument must not be a rest parameter")},s.parseObjectMethod=function(t,e,s,i,r){return s||e||this.match(h.parenL)?(i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,"ObjectMethod")):!r&&this.isGetterOrSetterMethod(t,i)?((e||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),this.parseMethod(t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t):void 0},s.parseObjectProperty=function(t,e,s,i,r){return t.shorthand=!1,this.eat(h.colon)?(t.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,r),this.finishNode(t,"ObjectProperty")):t.computed||"Identifier"!==t.key.type?void 0:(this.checkReservedWord(t.key.name,t.key.start,!0,!0),i?t.value=this.parseMaybeDefault(e,s,t.key.__clone()):this.match(h.eq)&&r?(r.start||(r.start=this.state.start),t.value=this.parseMaybeDefault(e,s,t.key.__clone())):t.value=t.key.__clone(),t.shorthand=!0,this.finishNode(t,"ObjectProperty"))},s.parseObjPropValue=function(t,e,s,i,r,a,n,o){var h=this.parseObjectMethod(t,i,r,a,o)||this.parseObjectProperty(t,e,s,a,n);return h||this.unexpected(),h},s.parsePropertyName=function(t){if(this.eat(h.bracketL))t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(h.bracketR);else{var e=this.state.inPropertyName;this.state.inPropertyName=!0,t.key=this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==t.key.type&&(t.computed=!1),this.state.inPropertyName=e}return t.key},s.initFunction=function(t,e){t.id=null,t.generator=!1,t.async=!!e},s.parseMethod=function(t,e,s,i,r){var a=this.state.inFunction,n=this.state.inMethod,o=this.state.inAsync,h=this.state.inGenerator;this.state.inFunction=!0,this.state.inMethod=t.kind||!0,this.state.inAsync=s,this.state.inGenerator=e,this.initFunction(t,s),t.generator=!!e;var u=i;return this.parseFunctionParams(t,u),this.parseFunctionBodyAndFinish(t,r),this.state.inFunction=a,this.state.inMethod=n,this.state.inAsync=o,this.state.inGenerator=h,t},s.parseArrowExpression=function(t,e,s){var i=this.state.yieldOrAwaitInPossibleArrowParameters;i&&("YieldExpression"===i.type?this.raise(i.start,"yield is not allowed in the parameters of an arrow function inside a generator"):this.raise(i.start,"await is not allowed in the parameters of an arrow function inside an async function"));var r=this.state.inFunction;this.state.inFunction=!0,this.initFunction(t,s),e&&this.setArrowFunctionParameters(t,e);var a=this.state.inAsync,n=this.state.inGenerator,o=this.state.maybeInArrowParameters;return this.state.inAsync=s,this.state.inGenerator=!1,this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.state.inAsync=a,this.state.inGenerator=n,this.state.inFunction=r,this.state.maybeInArrowParameters=o,this.finishNode(t,"ArrowFunctionExpression")},s.setArrowFunctionParameters=function(t,e){t.params=this.toAssignableList(e,!0,"arrow function parameters")},s.isStrictBody=function(t){if("BlockStatement"===t.body.type&&t.body.directives.length)for(var e=0,s=t.body.directives;e" after pipeline body; arrow function in pipeline body must be parenthesized');if("PipelineTopicExpression"===e&&"SequenceExpression"===t.type)throw this.raise(s,"Pipeline body may not be a comma-separated sequence expression")},s.parseSmartPipelineBodyInStyle=function(t,e,s,i){var r=this.startNodeAt(s,i);switch(e){case"PipelineBareFunction":r.callee=t;break;case"PipelineBareConstructor":r.callee=t.callee;break;case"PipelineBareAwaitedFunction":r.callee=t.argument;break;case"PipelineTopicExpression":if(!this.topicReferenceWasUsedInCurrentTopicContext())throw this.raise(s,"Pipeline is in topic style but does not use topic reference");r.expression=t;break;default:throw this.raise(s,"Unknown pipeline style "+e)}return this.finishNode(r,e)},s.checkSmartPipelineBodyStyle=function(t){return t.type,this.isSimpleReference(t)?"PipelineBareFunction":"PipelineTopicExpression"},s.isSimpleReference=function(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}},s.withTopicPermittingContext=function(t){var e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}},s.withTopicForbiddingContext=function(t){var e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}},s.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},s.primaryTopicReferenceIsAllowedInCurrentTopicContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},s.topicReferenceWasUsedInCurrentTopicContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},e}(function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.toAssignable=function(t,e,s){if(t)switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var i=0;i0)for(var e=0,s=t.body.body;e=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?60===s&&this.state.exprAllowed?(++this.state.pos,this.finishToken(h.jsxTagStart)):this.getTokenFromCode(s):(t+=this.input.slice(e,this.state.pos),this.finishToken(h.jsxText,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:d(s)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}},s.jsxReadNewLine=function(t){var e,s=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===s&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,e},s.jsxReadString=function(t){for(var e="",s=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===t)break;38===i?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos):d(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}return e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)},s.jsxReadEntity=function(){for(var t,e="",s=0,i=this.input[this.state.pos],r=++this.state.pos;this.state.pos"):!_(r)&&_(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <"+j(r.name)+">"):_(r)||_(a)||j(a.name)!==j(r.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+j(r.name)+">")}return _(r)?(s.openingFragment=r,s.closingFragment=a):(s.openingElement=r,s.closingElement=a),s.children=i,this.match(h.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"),_(r)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")},s.jsxParseElement=function(){var t=this.state.start,e=this.state.startLoc;return this.next(),this.jsxParseElementAt(t,e)},s.parseExprAtom=function(e){return this.match(h.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(h.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.state.input.charCodeAt(this.state.pos)?(this.finishToken(h.jsxTagStart),this.jsxParseElement()):t.prototype.parseExprAtom.call(this,e)},s.readToken=function(e){if(this.state.inPropertyName)return t.prototype.readToken.call(this,e);var s=this.curContext();if(s===D.j_expr)return this.jsxReadToken();if(s===D.j_oTag||s===D.j_cTag){if(N(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(h.jsxTagEnd);if((34===e||39===e)&&s===D.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.state.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(h.jsxTagStart)):t.prototype.readToken.call(this,e)},s.updateContext=function(e){if(this.match(h.braceL)){var s=this.curContext();s===D.j_oTag?this.state.context.push(D.braceExpression):s===D.j_expr?this.state.context.push(D.templateQuasi):t.prototype.updateContext.call(this,e),this.state.exprAllowed=!0}else{if(!this.match(h.slash)||e!==h.jsxTagStart)return t.prototype.updateContext.call(this,e);this.state.context.length-=2,this.state.context.push(D.j_cTag),this.state.exprAllowed=!1}},e}(t)},flow:function(t){return function(t){function e(e,s){var i;return(i=t.call(this,e,s)||this).flowPragma=void 0,i}i(e,t);var s=e.prototype;return s.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},s.addComment=function(e){if(void 0===this.flowPragma){var s=O.exec(e.value);if(s)if("flow"===s[1])this.flowPragma="flow";else{if("noflow"!==s[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else this.flowPragma=null}return t.prototype.addComment.call(this,e)},s.flowParseTypeInitialiser=function(t){var e=this.state.inType;this.state.inType=!0,this.expect(t||h.colon);var s=this.flowParseType();return this.state.inType=e,s},s.flowParsePredicate=function(){var t=this.startNode(),e=this.state.startLoc,s=this.state.start;this.expect(h.modulo);var i=this.state.startLoc;return this.expectContextual("checks"),e.line===i.line&&e.column===i.column-1||this.raise(s,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(h.parenL)?(t.value=this.parseExpression(),this.expect(h.parenR),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},s.flowParseTypeAndPredicateInitialiser=function(){var t=this.state.inType;this.state.inType=!0,this.expect(h.colon);var e=null,s=null;return this.match(h.modulo)?(this.state.inType=t,s=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(h.modulo)&&(s=this.flowParsePredicate())),[e,s]},s.flowParseDeclareClass=function(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")},s.flowParseDeclareFunction=function(t){this.next();var e=t.id=this.parseIdentifier(),s=this.startNode(),i=this.startNode();this.isRelational("<")?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(h.parenL);var r=this.flowParseFunctionTypeParams();s.params=r.params,s.rest=r.rest,this.expect(h.parenR);var a=this.flowParseTypeAndPredicateInitialiser();return s.returnType=a[0],t.predicate=a[1],i.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.finishNode(e,e.type),this.semicolon(),this.finishNode(t,"DeclareFunction")},s.flowParseDeclare=function(t,e){if(this.match(h._class))return this.flowParseDeclareClass(t);if(this.match(h._function))return this.flowParseDeclareFunction(t);if(this.match(h._var))return this.flowParseDeclareVariable(t);if(this.isContextual("module"))return this.lookahead().type===h.dot?this.flowParseDeclareModuleExports(t):(e&&this.unexpected(null,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(t));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(t);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(t);if(this.isContextual("interface"))return this.flowParseDeclareInterface(t);if(this.match(h._export))return this.flowParseDeclareExportDeclaration(t,e);throw this.unexpected()},s.flowParseDeclareVariable=function(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(t,"DeclareVariable")},s.flowParseDeclareModule=function(t){var e=this;this.next(),this.match(h.string)?t.id=this.parseExprAtom():t.id=this.parseIdentifier();var s=t.body=this.startNode(),i=s.body=[];for(this.expect(h.braceL);!this.match(h.braceR);){var r=this.startNode();if(this.match(h._import)){var a=this.lookahead();"type"!==a.value&&"typeof"!==a.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.next(),this.parseImport(r)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),r=this.flowParseDeclare(r,!0);i.push(r)}this.expect(h.braceR),this.finishNode(s,"BlockStatement");var n=null,o=!1,u="Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return i.forEach(function(t){!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(o&&e.unexpected(t.start,"Duplicate `declare module.exports` statement"),"ES"===n&&e.unexpected(t.start,u),n="CommonJS",o=!0):("CommonJS"===n&&e.unexpected(t.start,u),n="ES")}),t.kind=n||"CommonJS",this.finishNode(t,"DeclareModule")},s.flowParseDeclareExportDeclaration=function(t,e){if(this.expect(h._export),this.eat(h._default))return this.match(h._function)||this.match(h._class)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h._const)||this.match(h._let)||(this.isContextual("type")||this.isContextual("interface"))&&!e){var s=this.state.value,i=L[s];this.unexpected(this.state.start,"`declare export "+s+"` is not supported. Use `"+i+"` instead")}if(this.match(h._var)||this.match(h._function)||this.match(h._class)||this.isContextual("opaque"))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h.star)||this.match(h.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))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()},s.flowParseDeclareModuleExports=function(t){return this.expectContextual("module"),this.expect(h.dot),this.expectContextual("exports"),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")},s.flowParseDeclareTypeAlias=function(t){return this.next(),this.flowParseTypeAlias(t),this.finishNode(t,"DeclareTypeAlias")},s.flowParseDeclareOpaqueType=function(t){return this.next(),this.flowParseOpaqueType(t,!0),this.finishNode(t,"DeclareOpaqueType")},s.flowParseDeclareInterface=function(t){return this.next(),this.flowParseInterfaceish(t),this.finishNode(t,"DeclareInterface")},s.flowParseInterfaceish=function(t,e){if(void 0===e&&(e=!1),t.id=this.flowParseRestrictedIdentifier(!e),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],t.implements=[],t.mixins=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(h.comma));if(this.isContextual("mixins")){this.next();do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}if(this.isContextual("implements")){this.next();do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})},s.flowParseInterfaceExtends=function(){var t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")},s.flowParseInterface=function(t){return this.flowParseInterfaceish(t),this.finishNode(t,"InterfaceDeclaration")},s.checkNotUnderscore=function(t){if("_"===t)throw this.unexpected(null,"`_` is only allowed as a type argument to call or new")},s.checkReservedType=function(t,e){F.indexOf(t)>-1&&this.raise(e,"Cannot overwrite reserved type "+t)},s.flowParseRestrictedIdentifier=function(t){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(t)},s.flowParseTypeAlias=function(t){return t.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(h.eq),this.semicolon(),this.finishNode(t,"TypeAlias")},s.flowParseOpaqueType=function(t,e){return this.expectContextual("type"),t.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(h.colon)&&(t.supertype=this.flowParseTypeInitialiser(h.colon)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(h.eq)),this.semicolon(),this.finishNode(t,"OpaqueType")},s.flowParseTypeParameter=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!1),!t&&e)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");var s=this.state.start,i=this.startNode(),r=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=r,i.bound=a.typeAnnotation,this.match(h.eq)?t?(this.eat(h.eq),i.default=this.flowParseType()):this.unexpected():e&&this.unexpected(s,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(i,"TypeParameter")},s.flowParseTypeParameterDeclaration=function(t){void 0===t&&(t=!0);var e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected();var i=!1;do{var r=this.flowParseTypeParameter(t,i);s.params.push(r),r.default&&(i=!0),this.isRelational(">")||this.expect(h.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")},s.flowParseTypeParameterInstantiation=function(){var t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expectRelational("<");var s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)t.params.push(this.flowParseType()),this.isRelational(">")||this.expect(h.comma);return this.state.noAnonFunctionType=s,this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")},s.flowParseTypeParameterInstantiationCallOrNew=function(){var t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(h.comma);return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")},s.flowParseInterfaceType=function(){var t=this.startNode();if(this.expectContextual("interface"),t.extends=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")},s.flowParseObjectPropertyKey=function(){return this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0)},s.flowParseObjectTypeIndexer=function(t,e,s){return t.static=e,this.lookahead().type===h.colon?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(h.bracketR),t.value=this.flowParseTypeInitialiser(),t.variance=s,this.finishNode(t,"ObjectTypeIndexer")},s.flowParseObjectTypeInternalSlot=function(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(h.bracketR),this.expect(h.bracketR),this.isRelational("<")||this.match(h.parenL)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start))):(t.method=!1,this.eat(h.question)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")},s.flowParseObjectTypeMethodish=function(t){for(t.params=[],t.rest=null,t.typeParameters=null,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(h.parenL);!this.match(h.parenR)&&!this.match(h.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(h.parenR)||this.expect(h.comma);return this.eat(h.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),this.expect(h.parenR),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")},s.flowParseObjectTypeCallProperty=function(t,e){var s=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(s),this.finishNode(t,"ObjectTypeCallProperty")},s.flowParseObjectType=function(t){var e=t.allowStatic,s=t.allowExact,i=t.allowSpread,r=t.allowProto,a=t.allowInexact,n=this.state.inType;this.state.inType=!0;var o,u,p=this.startNode();p.callProperties=[],p.properties=[],p.indexers=[],p.internalSlots=[];var c=!1;for(s&&this.match(h.braceBarL)?(this.expect(h.braceBarL),o=h.braceBarR,u=!0):(this.expect(h.braceL),o=h.braceR,u=!1),p.exact=u;!this.match(o);){var l=!1,d=null,f=this.startNode();if(r&&this.isContextual("proto")){var m=this.lookahead();m.type!==h.colon&&m.type!==h.question&&(this.next(),d=this.state.start,e=!1)}if(e&&this.isContextual("static")){var y=this.lookahead();y.type!==h.colon&&y.type!==h.question&&(this.next(),l=!0)}var D=this.flowParseVariance();if(this.eat(h.bracketL))null!=d&&this.unexpected(d),this.eat(h.bracketL)?(D&&this.unexpected(D.start),p.internalSlots.push(this.flowParseObjectTypeInternalSlot(f,l))):p.indexers.push(this.flowParseObjectTypeIndexer(f,l,D));else if(this.match(h.parenL)||this.isRelational("<"))null!=d&&this.unexpected(d),D&&this.unexpected(D.start),p.callProperties.push(this.flowParseObjectTypeCallProperty(f,l));else{var x="init";if(this.isContextual("get")||this.isContextual("set")){var v=this.lookahead();v.type!==h.name&&v.type!==h.string&&v.type!==h.num||(x=this.state.value,this.next())}var P=this.flowParseObjectTypeProperty(f,l,d,D,x,i,a);null===P?c=!0:p.properties.push(P)}this.flowObjectTypeSemicolon()}this.expect(o),i&&(p.inexact=c);var g=this.finishNode(p,"ObjectTypeAnnotation");return this.state.inType=n,g},s.flowParseObjectTypeProperty=function(t,e,s,i,r,a,n){if(this.match(h.ellipsis)){a||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),null!=s&&this.unexpected(s),i&&this.unexpected(i.start,"Spread properties cannot have variance"),this.expect(h.ellipsis);var o=this.eat(h.comma)||this.eat(h.semi);if(this.match(h.braceR)){if(n)return null;this.unexpected(null,"Explicit inexact syntax is only allowed inside inexact objects")}return this.match(h.braceBarR)&&this.unexpected(null,"Explicit inexact syntax cannot appear inside an explicit exact object type"),o&&this.unexpected(null,"Explicit inexact syntax must appear at the end of an inexact object"),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty")}t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=s,t.kind=r;var u=!1;return this.isRelational("<")||this.match(h.parenL)?(t.method=!0,null!=s&&this.unexpected(s),i&&this.unexpected(i.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start)),"get"!==r&&"set"!==r||this.flowCheckGetterSetterParams(t)):("init"!==r&&this.unexpected(),t.method=!1,this.eat(h.question)&&(u=!0),t.value=this.flowParseTypeInitialiser(),t.variance=i),t.optional=u,this.finishNode(t,"ObjectTypeProperty")},s.flowCheckGetterSetterParams=function(t){var e="get"===t.kind?0:1,s=t.start;t.value.params.length+(t.value.rest?1:0)!==e&&("get"===t.kind?this.raise(s,"getter must not have any formal parameters"):this.raise(s,"setter must have exactly one formal parameter")),"set"===t.kind&&t.value.rest&&this.raise(s,"setter function argument must not be a rest parameter")},s.flowObjectTypeSemicolon=function(){this.eat(h.semi)||this.eat(h.comma)||this.match(h.braceR)||this.match(h.braceBarR)||this.unexpected()},s.flowParseQualifiedTypeIdentifier=function(t,e,s){t=t||this.state.start,e=e||this.state.startLoc;for(var i=s||this.parseIdentifier();this.eat(h.dot);){var r=this.startNodeAt(t,e);r.qualification=i,r.id=this.parseIdentifier(),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i},s.flowParseGenericType=function(t,e,s){var i=this.startNodeAt(t,e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(t,e,s),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")},s.flowParseTypeofType=function(){var t=this.startNode();return this.expect(h._typeof),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")},s.flowParseTupleType=function(){var t=this.startNode();for(t.types=[],this.expect(h.bracketL);this.state.pos0){var x=p.concat();if(D.length>0){this.state=u,this.state.noArrowAt=x;for(var v=0;v1&&this.raise(u.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),f&&1===y.length){this.state=u,this.state.noArrowAt=x.concat(y[0].start);var b=this.tryParseConditionalConsequent();d=b.consequent,f=b.failed}this.getArrowLikeExpressions(d,!0)}return this.state.noArrowAt=p,this.expect(h.colon),c.test=e,c.consequent=d,c.alternate=this.forwardNoArrowParamsConversionAt(c,function(){return n.parseMaybeAssign(s,void 0,void 0,void 0)}),this.finishNode(c,"ConditionalExpression")},s.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var t=this.parseMaybeAssign(),e=!this.match(h.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}},s.getArrowLikeExpressions=function(e,s){for(var i=this,r=[e],a=[];0!==r.length;){var n=r.pop();"ArrowFunctionExpression"===n.type?(n.typeParameters||!n.returnType?(this.toAssignableList(n.params,!0,"arrow function parameters"),t.prototype.checkFunctionNameAndParams.call(this,n,!0)):a.push(n),r.push(n.body)):"ConditionalExpression"===n.type&&(r.push(n.consequent),r.push(n.alternate))}if(s){for(var o=0;o1)&&e||this.raise(i.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return t},s.checkLVal=function(e,s,i,r){if("TypeCastExpression"!==e.type)return t.prototype.checkLVal.call(this,e,s,i,r)},s.parseClassProperty=function(e){return this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),t.prototype.parseClassProperty.call(this,e)},s.parseClassPrivateProperty=function(e){return this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),t.prototype.parseClassPrivateProperty.call(this,e)},s.isClassMethod=function(){return this.isRelational("<")||t.prototype.isClassMethod.call(this)},s.isClassProperty=function(){return this.match(h.colon)||t.prototype.isClassProperty.call(this)},s.isNonstaticConstructor=function(e){return!this.match(h.colon)&&t.prototype.isNonstaticConstructor.call(this,e)},s.pushClassMethod=function(e,s,i,r,a){s.variance&&this.unexpected(s.variance.start),delete s.variance,this.isRelational("<")&&(s.typeParameters=this.flowParseTypeParameterDeclaration(!1)),t.prototype.pushClassMethod.call(this,e,s,i,r,a)},s.pushClassPrivateMethod=function(e,s,i,r){s.variance&&this.unexpected(s.variance.start),delete s.variance,this.isRelational("<")&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),t.prototype.pushClassPrivateMethod.call(this,e,s,i,r)},s.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.flowParseRestrictedIdentifier(!0),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(h.comma))}},s.parsePropertyName=function(e){var s=this.flowParseVariance(),i=t.prototype.parsePropertyName.call(this,e);return e.variance=s,i},s.parseObjPropValue=function(e,s,i,r,a,n,o,u){var p;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(p=this.flowParseTypeParameterDeclaration(!1),this.match(h.parenL)||this.unexpected()),t.prototype.parseObjPropValue.call(this,e,s,i,r,a,n,o,u),p&&((e.value||e).typeParameters=p)},s.parseAssignableListItemTypes=function(t){if(this.eat(h.question)){if("Identifier"!==t.type)throw this.raise(t.start,"A binding pattern parameter cannot be optional in an implementation signature.");t.optional=!0}return this.match(h.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),this.finishNode(t,t.type),t},s.parseMaybeDefault=function(e,s,i){var r=t.prototype.parseMaybeDefault.call(this,e,s,i);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start")}throw new Error("Unreachable")},s.tsParseList=function(t,e){for(var s=[];!this.tsIsListTerminator(t);)s.push(e());return s},s.tsParseDelimitedList=function(t,e){return st(this.tsParseDelimitedListWorker(t,e,!0))},s.tsTryParseDelimitedList=function(t,e){return this.tsParseDelimitedListWorker(t,e,!1)},s.tsParseDelimitedListWorker=function(t,e,s){for(var i=[];!this.tsIsListTerminator(t);){var r=e();if(null==r)return;if(i.push(r),!this.eat(h.comma)){if(this.tsIsListTerminator(t))break;return void(s&&this.expect(h.comma))}}return i},s.tsParseBracketedList=function(t,e,s,i){i||(s?this.expect(h.bracketL):this.expectRelational("<"));var r=this.tsParseDelimitedList(t,e);return s?this.expect(h.bracketR):this.expectRelational(">"),r},s.tsParseEntityName=function(t){for(var e=this.parseIdentifier();this.eat(h.dot);){var s=this.startNodeAtNode(e);s.left=e,s.right=this.parseIdentifier(t),e=this.finishNode(s,"TSQualifiedName")}return e},s.tsParseTypeReference=function(){var t=this.startNode();return t.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")},s.tsParseThisTypePredicate=function(t){this.next();var e=this.startNode();return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(e,"TSTypePredicate")},s.tsParseThisTypeNode=function(){var t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")},s.tsParseTypeQuery=function(){var t=this.startNode();return this.expect(h._typeof),t.exprName=this.tsParseEntityName(!0),this.finishNode(t,"TSTypeQuery")},s.tsParseTypeParameter=function(){var t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsEatThenParseType(h._extends),t.default=this.tsEatThenParseType(h.eq),this.finishNode(t,"TSTypeParameter")},s.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},s.tsParseTypeParameters=function(){var t=this.startNode();return this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected(),t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(t,"TSTypeParameterDeclaration")},s.tsFillSignature=function(t,e){var s=t===h.arrow;e.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),e.parameters=this.tsParseBindingListForSignature(),s?e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))},s.tsParseBindingListForSignature=function(){var t=this;return this.parseBindingList(h.parenR).map(function(e){if("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type)throw t.unexpected(e.start,"Name in a signature must be an Identifier or ObjectPattern, instead got "+e.type);return e})},s.tsParseTypeMemberSemicolon=function(){this.eat(h.comma)||this.semicolon()},s.tsParseSignatureMember=function(t){var e=this.startNode();return"TSConstructSignatureDeclaration"===t&&this.expect(h._new),this.tsFillSignature(h.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)},s.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(h.name)&&this.match(h.colon)},s.tsTryParseIndexSignature=function(t){if(this.match(h.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(h.bracketL);var e=this.parseIdentifier();this.expect(h.colon),e.typeAnnotation=this.tsParseTypeAnnotation(!1),this.expect(h.bracketR),t.parameters=[e];var s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}},s.tsParsePropertyOrMethodSignature=function(t,e){this.parsePropertyName(t),this.eat(h.question)&&(t.optional=!0);var s=t;if(e||!this.match(h.parenL)&&!this.isRelational("<")){var i=s;e&&(i.readonly=!0);var r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}var a=s;return this.tsFillSignature(h.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSMethodSignature")},s.tsParseTypeMember=function(){if(this.match(h.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration");if(this.match(h._new)&&this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this)))return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var t=this.startNode(),e=!!this.tsParseModifier(["readonly"]),s=this.tsTryParseIndexSignature(t);return s?(e&&(t.readonly=!0),s):this.tsParsePropertyOrMethodSignature(t,e)},s.tsIsStartOfConstructSignature=function(){return this.next(),this.match(h.parenL)||this.isRelational("<")},s.tsParseTypeLiteral=function(){var t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")},s.tsParseObjectTypeMembers=function(){this.expect(h.braceL);var t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),t},s.tsIsStartOfMappedType=function(){return this.next(),this.eat(h.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(h.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(h._in))))},s.tsParseMappedTypeParameter=function(){var t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsExpectThenParseType(h._in),this.finishNode(t,"TSTypeParameter")},s.tsParseMappedType=function(){var t=this.startNode();return this.expect(h.braceL),this.match(h.plusMin)?(t.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(t.readonly=!0),this.expect(h.bracketL),t.typeParameter=this.tsParseMappedTypeParameter(),this.expect(h.bracketR),this.match(h.plusMin)?(t.optional=this.state.value,this.next(),this.expect(h.question)):this.eat(h.question)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(t,"TSMappedType")},s.tsParseTupleType=function(){var t=this,e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var s=!1;return e.elementTypes.forEach(function(i,r){"TSRestType"===i.type?r!==e.elementTypes.length-1&&t.raise(i.start,"A rest element must be last in a tuple type."):"TSOptionalType"===i.type?s=!0:s&&t.raise(i.start,"A required element cannot follow an optional element.")}),this.finishNode(e,"TSTupleType")},s.tsParseTupleElementType=function(){if(this.match(h.ellipsis)){var t=this.startNode();return this.next(),t.typeAnnotation=this.tsParseType(),this.finishNode(t,"TSRestType")}var e=this.tsParseType();if(this.eat(h.question)){var s=this.startNodeAtNode(e);return s.typeAnnotation=e,this.finishNode(s,"TSOptionalType")}return e},s.tsParseParenthesizedType=function(){var t=this.startNode();return this.expect(h.parenL),t.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(t,"TSParenthesizedType")},s.tsParseFunctionOrConstructorType=function(t){var e=this.startNode();return"TSConstructorType"===t&&this.expect(h._new),this.tsFillSignature(h.arrow,e),this.finishNode(e,t)},s.tsParseLiteralTypeNode=function(){var t=this,e=this.startNode();return e.literal=function(){switch(t.state.type){case h.num:return t.parseLiteral(t.state.value,"NumericLiteral");case h.string:return t.parseLiteral(t.state.value,"StringLiteral");case h._true:case h._false:return t.parseBooleanLiteral();default:throw t.unexpected()}}(),this.finishNode(e,"TSLiteralType")},s.tsParseNonArrayType=function(){switch(this.state.type){case h.name:case h._void:case h._null:var t=this.match(h._void)?"TSVoidKeyword":this.match(h._null)?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&this.lookahead().type!==h.dot){var e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference();case h.string:case h.num:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if("-"===this.state.value){var s=this.startNode();if(this.next(),!this.match(h.num))throw this.unexpected();return s.literal=this.parseLiteral(-this.state.value,"NumericLiteral",s.start,s.loc.start),this.finishNode(s,"TSLiteralType")}break;case h._this:var i=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i;case h._typeof:return this.tsParseTypeQuery();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType()}throw this.unexpected()},s.tsParseArrayTypeOrHigher=function(){for(var t=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(h.bracketL);)if(this.match(h.bracketR)){var e=this.startNodeAtNode(t);e.elementType=t,this.expect(h.bracketR),t=this.finishNode(e,"TSArrayType")}else{var s=this.startNodeAtNode(t);s.objectType=t,s.indexType=this.tsParseType(),this.expect(h.bracketR),t=this.finishNode(s,"TSIndexedAccessType")}return t},s.tsParseTypeOperator=function(t){var e=this.startNode();return this.expectContextual(t),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),this.finishNode(e,"TSTypeOperator")},s.tsParseInferType=function(){var t=this.startNode();this.expectContextual("infer");var e=this.startNode();return e.name=this.parseIdentifierName(e.start),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")},s.tsParseTypeOperatorOrHigher=function(){var t=this,e=["keyof","unique"].find(function(e){return t.isContextual(e)});return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},s.tsParseUnionOrIntersectionType=function(t,e,s){this.eat(s);var i=e();if(this.match(s)){for(var r=[i];this.eat(s);)r.push(e());var a=this.startNodeAtNode(i);a.types=r,i=this.finishNode(a,t)}return i},s.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)},s.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)},s.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},s.tsSkipParameterStart=function(){if(this.match(h.name)||this.match(h._this))return this.next(),!0;if(this.match(h.braceL)){var t=1;for(this.next();t>0;)this.match(h.braceL)?++t:this.match(h.braceR)&&--t,this.next();return!0}return!1},s.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)&&(this.next(),this.match(h.arrow)))return!0}return!1},s.tsParseTypeOrTypePredicateAnnotation=function(t){var e=this;return this.tsInType(function(){var s=e.startNode();e.expect(t);var i=e.tsIsIdentifier()&&e.tsTryParse(e.tsParseTypePredicatePrefix.bind(e));if(!i)return e.tsParseTypeAnnotation(!1,s);var r=e.tsParseTypeAnnotation(!1),a=e.startNodeAtNode(i);return a.parameterName=i,a.typeAnnotation=r,s.typeAnnotation=e.finishNode(a,"TSTypePredicate"),e.finishNode(s,"TSTypeAnnotation")})},s.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0},s.tsTryParseTypeAnnotation=function(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0},s.tsTryParseType=function(){return this.tsEatThenParseType(h.colon)},s.tsParseTypePredicatePrefix=function(){var t=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),t},s.tsParseTypeAnnotation=function(t,e){var s=this;return void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),this.tsInType(function(){t&&s.expect(h.colon),e.typeAnnotation=s.tsParseType()}),this.finishNode(e,"TSTypeAnnotation")},s.tsParseType=function(){it(this.state.inType);var t=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(h._extends))return t;var e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsParseNonConditionalType(),this.expect(h.question),e.trueType=this.tsParseType(),this.expect(h.colon),e.falseType=this.tsParseType(),this.finishNode(e,"TSConditionalType")},s.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(h._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()},s.tsParseTypeAssertion=function(){var t=this,e=this.startNode();return e.typeAnnotation=this.tsInType(function(){return t.tsParseType()}),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")},s.tsParseHeritageClause=function(){return this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this))},s.tsParseExpressionWithTypeArguments=function(){var t=this.startNode();return t.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")},s.tsParseInterfaceDeclaration=function(t){t.id=this.parseIdentifier(),t.typeParameters=this.tsTryParseTypeParameters(),this.eat(h._extends)&&(t.extends=this.tsParseHeritageClause());var e=this.startNode();return e.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(e,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")},s.tsParseTypeAliasDeclaration=function(t){return t.id=this.parseIdentifier(),t.typeParameters=this.tsTryParseTypeParameters(),t.typeAnnotation=this.tsExpectThenParseType(h.eq),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")},s.tsInNoContext=function(t){var e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}},s.tsInType=function(t){var e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}},s.tsEatThenParseType=function(t){return this.match(t)?this.tsNextThenParseType():void 0},s.tsExpectThenParseType=function(t){var e=this;return this.tsDoThenParseType(function(){return e.expect(t)})},s.tsNextThenParseType=function(){var t=this;return this.tsDoThenParseType(function(){return t.next()})},s.tsDoThenParseType=function(t){var e=this;return this.tsInType(function(){return t(),e.tsParseType()})},s.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(h.string)?this.parseLiteral(this.state.value,"StringLiteral"):this.parseIdentifier(!0),this.eat(h.eq)&&(t.initializer=this.parseMaybeAssign()),this.finishNode(t,"TSEnumMember")},s.tsParseEnumDeclaration=function(t,e){return e&&(t.const=!0),t.id=this.parseIdentifier(),this.expect(h.braceL),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(t,"TSEnumDeclaration")},s.tsParseModuleBlock=function(){var t=this.startNode();return this.expect(h.braceL),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,h.braceR),this.finishNode(t,"TSModuleBlock")},s.tsParseModuleOrNamespaceDeclaration=function(t){if(t.id=this.parseIdentifier(),this.eat(h.dot)){var e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e),t.body=e}else t.body=this.tsParseModuleBlock();return this.finishNode(t,"TSModuleDeclaration")},s.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual("global")?(t.global=!0,t.id=this.parseIdentifier()):this.match(h.string)?t.id=this.parseExprAtom():this.unexpected(),this.match(h.braceL)?t.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},s.tsParseImportEqualsDeclaration=function(t,e){return t.isExport=e||!1,t.id=this.parseIdentifier(),this.expect(h.eq),t.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")},s.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookahead().type===h.parenL},s.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},s.tsParseExternalModuleReference=function(){var t=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))throw this.unexpected();return t.expression=this.parseLiteral(this.state.value,"StringLiteral"),this.expect(h.parenR),this.finishNode(t,"TSExternalModuleReference")},s.tsLookAhead=function(t){var e=this.state.clone(),s=t();return this.state=e,s},s.tsTryParseAndCatch=function(t){var e=this.state.clone();try{return t()}catch(t){if(t instanceof SyntaxError)return void(this.state=e);throw t}},s.tsTryParse=function(t){var e=this.state.clone(),s=t();return void 0!==s&&!1!==s?s:void(this.state=e)},s.nodeWithSamePosition=function(t,e){var s=this.startNodeAtNode(t);return s.type=e,s.end=t.end,s.loc.end=t.loc.end,t.leadingComments&&(s.leadingComments=t.leadingComments),t.trailingComments&&(s.trailingComments=t.trailingComments),t.innerComments&&(s.innerComments=t.innerComments),s},s.tsTryParseDeclare=function(t){switch(this.state.type){case h._function:return this.next(),this.parseFunction(t,!0);case h._class:return this.parseClass(t,!0,!1);case h._const:if(this.match(h._const)&&this.isLookaheadContextual("enum"))return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0);case h._var:case h._let:return this.parseVarStatement(t,this.state.type);case h.name:var e=this.state.value;return"global"===e?this.tsParseAmbientExternalModuleDeclaration(t):this.tsParseDeclaration(t,e,!0)}},s.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},s.tsParseExpressionStatement=function(t,e){switch(e.name){case"declare":var s=this.tsTryParseDeclare(t);if(s)return s.declare=!0,s;break;case"global":if(this.match(h.braceL)){var i=t;return i.global=!0,i.id=e,i.body=this.tsParseModuleBlock(),this.finishNode(i,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1)}},s.tsParseDeclaration=function(t,e,s){switch(e){case"abstract":if(s||this.match(h._class)){var i=t;return i.abstract=!0,s&&this.next(),this.parseClass(i,!0,!1)}break;case"enum":if(s||this.match(h.name))return s&&this.next(),this.tsParseEnumDeclaration(t,!1);break;case"interface":if(s||this.match(h.name))return s&&this.next(),this.tsParseInterfaceDeclaration(t);break;case"module":if(s&&this.next(),this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(t);if(s||this.match(h.name))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"namespace":if(s||this.match(h.name))return s&&this.next(),this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(s||this.match(h.name))return s&&this.next(),this.tsParseTypeAliasDeclaration(t)}},s.tsTryParseGenericAsyncArrowFunction=function(e,s){var i=this,r=this.tsTryParseAndCatch(function(){var r=i.startNodeAt(e,s);return r.typeParameters=i.tsParseTypeParameters(),t.prototype.parseFunctionParams.call(i,r),r.returnType=i.tsTryParseTypeOrTypePredicateAnnotation(),i.expect(h.arrow),r});if(r){var a=this.state.inAsync,n=this.state.inGenerator;return this.state.inAsync=!0,this.state.inGenerator=!1,r.id=null,r.generator=!1,r.expression=!0,r.async=!0,this.parseFunctionBody(r,!0),this.state.inAsync=a,this.state.inGenerator=n,this.finishNode(r,"ArrowFunctionExpression")}},s.tsParseTypeArguments=function(){var t=this,e=this.startNode();return e.params=this.tsInType(function(){return t.tsInNoContext(function(){return t.expectRelational("<"),t.tsParseDelimitedList("TypeParametersOrArguments",t.tsParseType.bind(t))})}),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")},s.tsIsDeclarationStart=function(){if(this.match(h.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},s.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&t.prototype.isExportDefaultSpecifier.call(this)},s.parseAssignableListItem=function(t,e){var s,i=!1;t&&(s=this.parseAccessModifier(),i=!!this.tsParseModifier(["readonly"]));var r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);var a=this.parseMaybeDefault(r.start,r.loc.start,r);if(s||i){var n=this.startNodeAtNode(a);if(e.length&&(n.decorators=e),s&&(n.accessibility=s),i&&(n.readonly=i),"Identifier"!==a.type&&"AssignmentPattern"!==a.type)throw this.raise(n.start,"A parameter property may not be declared using a binding pattern.");return n.parameter=a,this.finishNode(n,"TSParameterProperty")}return e.length&&(r.decorators=e),a},s.parseFunctionBodyAndFinish=function(e,s,i){!i&&this.match(h.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon));var r="FunctionDeclaration"===s?"TSDeclareFunction":"ClassMethod"===s?"TSDeclareMethod":void 0;r&&!this.match(h.braceL)&&this.isLineTerminator()?this.finishNode(e,r):t.prototype.parseFunctionBodyAndFinish.call(this,e,s,i)},s.parseSubscript=function(e,s,i,r,a){var n=this;if(!this.hasPrecedingLineBreak()&&this.match(h.bang)){this.state.exprAllowed=!1,this.next();var o=this.startNodeAt(s,i);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}if(this.isRelational("<")){var u=this.tsTryParseAndCatch(function(){if(!r&&n.atPossibleAsync(e)){var t=n.tsTryParseGenericAsyncArrowFunction(s,i);if(t)return t}var o=n.startNodeAt(s,i);o.callee=e;var u=n.tsParseTypeArguments();if(u){if(!r&&n.eat(h.parenL))return o.arguments=n.parseCallExpressionArguments(h.parenR,!1),o.typeParameters=u,n.finishCallExpression(o);if(n.match(h.backQuote))return n.parseTaggedTemplateExpression(s,i,e,a,u)}n.unexpected()});if(u)return u}return t.prototype.parseSubscript.call(this,e,s,i,r,a)},s.parseNewArguments=function(e){var s=this;if(this.isRelational("<")){var i=this.tsTryParseAndCatch(function(){var t=s.tsParseTypeArguments();return s.match(h.parenL)||s.unexpected(),t});i&&(e.typeParameters=i)}t.prototype.parseNewArguments.call(this,e)},s.parseExprOp=function(e,s,i,r,a){if(st(h._in.binop)>r&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var n=this.startNodeAt(s,i);return n.expression=e,n.typeAnnotation=this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.parseExprOp(n,s,i,r,a)}return t.prototype.parseExprOp.call(this,e,s,i,r,a)},s.checkReservedWord=function(t,e,s,i){},s.checkDuplicateExports=function(){},s.parseImport=function(e){return this.match(h.name)&&this.lookahead().type===h.eq?this.tsParseImportEqualsDeclaration(e):t.prototype.parseImport.call(this,e)},s.parseExport=function(e){if(this.match(h._import))return this.expect(h._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(h.eq)){var s=e;return s.expression=this.parseExpression(),this.semicolon(),this.finishNode(s,"TSExportAssignment")}if(this.eatContextual("as")){var i=e;return this.expectContextual("namespace"),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}return t.prototype.parseExport.call(this,e)},s.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===h._class},s.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){var s=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(s)return s}return t.prototype.parseExportDefaultExpression.call(this)},s.parseStatementContent=function(e,s){if(this.state.type===h._const){var i=this.lookahead();if(i.type===h.name&&"enum"===i.value){var r=this.startNode();return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(r,!0)}}return t.prototype.parseStatementContent.call(this,e,s)},s.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},s.parseClassMember=function(e,s,i){var r=this.parseAccessModifier();r&&(s.accessibility=r),t.prototype.parseClassMember.call(this,e,s,i)},s.parseClassMemberWithIsStatic=function(e,s,i,r){var a=s,n=s,o=s,h=!1,u=!1;switch(this.tsParseModifier(["abstract","readonly"])){case"readonly":u=!0,h=!!this.tsParseModifier(["abstract"]);break;case"abstract":h=!0,u=!!this.tsParseModifier(["readonly"])}if(h&&(a.abstract=!0),u&&(o.readonly=!0),!h&&!r&&!a.accessibility){var p=this.tsTryParseIndexSignature(s);if(p)return void e.body.push(p)}if(u)return a.static=r,this.parseClassPropertyName(n),this.parsePostMemberNameModifiers(a),void this.pushClassProperty(e,n);t.prototype.parseClassMemberWithIsStatic.call(this,e,s,i,r)},s.parsePostMemberNameModifiers=function(t){this.eat(h.question)&&(t.optional=!0)},s.parseExpressionStatement=function(e,s){return("Identifier"===s.type?this.tsParseExpressionStatement(e,s):void 0)||t.prototype.parseExpressionStatement.call(this,e,s)},s.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||t.prototype.shouldParseExportDeclaration.call(this)},s.parseConditional=function(e,s,i,r,a){if(!a||!this.match(h.question))return t.prototype.parseConditional.call(this,e,s,i,r,a);var n=this.state.clone();try{return t.prototype.parseConditional.call(this,e,s,i,r)}catch(t){if(!(t instanceof SyntaxError))throw t;return this.state=n,a.start=t.pos||this.state.start,e}},s.parseParenItem=function(e,s,i){if(e=t.prototype.parseParenItem.call(this,e,s,i),this.eat(h.question)&&(e.optional=!0),this.match(h.colon)){var r=this.startNodeAt(s,i);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e},s.parseExportDeclaration=function(e){var s,i=this.eatContextual("declare");return this.match(h.name)&&(s=this.tsTryParseExportDeclaration()),s||(s=t.prototype.parseExportDeclaration.call(this,e)),s&&i&&(s.declare=!0),s},s.parseClassId=function(e,s,i){if(s&&!i||!this.isContextual("implements")){t.prototype.parseClassId.apply(this,arguments);var r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r)}},s.parseClassProperty=function(e){!e.optional&&this.eat(h.bang)&&(e.definite=!0);var s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),t.prototype.parseClassProperty.call(this,e)},s.pushClassMethod=function(e,s,i,r,a){var n=this.tsTryParseTypeParameters();n&&(s.typeParameters=n),t.prototype.pushClassMethod.call(this,e,s,i,r,a)},s.pushClassPrivateMethod=function(e,s,i,r){var a=this.tsTryParseTypeParameters();a&&(s.typeParameters=a),t.prototype.pushClassPrivateMethod.call(this,e,s,i,r)},s.parseClassSuper=function(e){t.prototype.parseClassSuper.call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause())},s.parseObjPropValue=function(e){var s,i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i);for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;ne.length-s?"\r\n":"\n"},t.exports.graceful=function(e){return t.exports(e)||"\n"}}),r={EOL:"\n"},a=Object.freeze({default:r}),n=a&&r||a,o=s(function(t,e){var s,r;function a(){return s=(t=i)&&t.__esModule?t:{default:t};var t}function o(){return r=n}Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(t){var e=t.match(p);return e?e[0].trimLeft():""},e.strip=function(t){var e=t.match(p);return e&&e[0]?t.substring(e[0].length):t},e.parse=function(t){return y(t).pragmas},e.parseWithComments=y,e.print=function(t){var e=t.comments,i=void 0===e?"":e,n=t.pragmas,h=void 0===n?{}:n,u=(0,(s||a()).default)(i)||(r||o()).EOL,p=Object.keys(h),c=p.map(function(t){return D(t,h[t])}).reduce(function(t,e){return t.concat(e)},[]).map(function(t){return" * "+t+u}).join("");if(!i){if(0===p.length)return"";if(1===p.length&&!Array.isArray(h[p[0]])){var l=h[p[0]];return"".concat("/**"," ").concat(D(p[0],l)[0]).concat(" */")}}var d=i.split(u).map(function(t){return"".concat(" *"," ").concat(t)}).join(u)+u;return"/**"+u+(i?d:"")+(i&&p.length?" *"+u:"")+c+" */"};var h=/\*\/$/,u=/^\/\*\*/,p=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,d=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function y(t){var e=(0,(s||a()).default)(t)||(r||o()).EOL;t=t.replace(u,"").replace(h,"").replace(m,"$1");for(var i="";i!==t;)i=t,t=t.replace(d,"".concat(e,"$1 $2").concat(e));t=t.replace(l,"").trimRight();for(var n,p=Object.create(null),y=t.replace(f,"").replace(l,"").trimRight();n=f.exec(t);){var D=n[2].replace(c,"");"string"==typeof p[n[1]]||Array.isArray(p[n[1]])?p[n[1]]=[].concat(p[n[1]],D):p[n[1]]=D}return{comments:y,pragmas:p}}function D(t,e){return[].concat(e).map(function(e){return"@".concat(t," ").concat(e).trim()})}});e(o);var h=function(t){var e=Object.keys(o.parse(o.extract(t)));return-1!==e.indexOf("prettier")||-1!==e.indexOf("format")},u=function(t){return t.length>0?t[t.length-1]:null};var p={locStart:function t(e,s){return!(s=s||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?t(e.declaration.decorators[0]):!s.ignoreDecorators&&e.decorators&&e.decorators.length>0?t(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null},locEnd:function t(e){var s=e.nodes&&u(e.nodes);if(s&&e.source&&!e.source.end&&(e=s),e.__location)return e.__location.endOffset;var i=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(i,t(e.typeAnnotation)):e.loc&&!i?e.loc.end:i}};function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=s(function(t){t.exports=function(t){t=Object.assign({onlyFirst:!1},t);var e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}}),d=s(function(t){t.exports=function(t){return!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141))}}),f=s(function(t){var e=/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;t.exports=function(t){if("string"!=typeof(t=t.replace(e," "))||0===t.length)return 0;t=function(t){return"string"==typeof t?t.replace(l(),""):t}(t);for(var s=0,i=0;i=127&&r<=159||(r>=768&&r<=879||(r>65535&&i++,s+=d(r)?2:1))}return s}}),m=/[|\\{}()[\]^$+*?.]/g,y=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(m,"\\$&")},D=/[^\x20-\x7F]/;function x(t){if(t)switch(t.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function v(t){return function(e,s,i){var r=i&&i.backwards;if(!1===s)return!1;for(var a=e.length,n=s;n>=0&&n"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(t,e){t.forEach(function(t){S[t]=e})});var L={"==":!0,"!=":!0,"===":!0,"!==":!0},O={"*":!0,"/":!0,"%":!0},M={">>":!0,">>>":!0,"<<":!0};function R(t,e,s){for(var i=0,r=s=s||0;r(s.match(n.regex)||[]).length?n.quote:a.quote);return o}function _(t,e,s){var i='"'===e?"'":'"',r=t.replace(/\\([\s\S])|(['"])/g,function(t,r,a){return r===i?r:a===e?"\\"+a:a||(s&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(r)?r:"\\"+r)});return e+r+e}function j(t){return t&&t.comments&&t.comments.length>0&&t.comments.some(function(t){return"prettier-ignore"===t.value.trim()})}function q(t,e){(t.comments||(t.comments=[])).push(e),e.printed=!1,"JSXText"===t.type&&(e.printed=!0)}var U={replaceEndOfLineWith:function(t,e){var s=[],i=!0,r=!1,a=void 0;try{for(var n,o=t.split("\n")[Symbol.iterator]();!(i=(n=o.next()).done);i=!0){var h=n.value;0!==s.length&&s.push(e),s.push(h)}}catch(t){r=!0,a=t}finally{try{i||null==o.return||o.return()}finally{if(r)throw a}}return s},getStringWidth:function(t){return t?D.test(t)?f(t):t.length:0},getMaxContinuousCount:function(t,e){var s=t.match(new RegExp("(".concat(y(e),")+"),"g"));return null===s?0:s.reduce(function(t,s){return Math.max(t,s.length/e.length)},0)},getMinNotPresentContinuousCount:function(t,e){var s=t.match(new RegExp("(".concat(y(e),")+"),"g"));if(null===s)return 0;var i=new Map,r=0,a=!0,n=!1,o=void 0;try{for(var h,u=s[Symbol.iterator]();!(a=(h=u.next()).done);a=!0){var p=h.value.length/e.length;i.set(p,!0),p>r&&(r=p)}}catch(t){n=!0,o=t}finally{try{a||null==u.return||u.return()}finally{if(n)throw o}}for(var c=1;c1?t[t.length-2]:null},getLast:u,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:k,getNextNonSpaceNonCommentCharacterIndex:F,getNextNonSpaceNonCommentCharacter:function(t,e,s){return t.charAt(F(t,e,s))},skip:v,skipWhitespace:P,skipSpaces:g,skipToLineEnd:b,skipEverythingButNewLine:C,skipInlineComment:w,skipTrailingComment:E,skipNewline:A,isNextLineEmptyAfterIndex:N,isNextLineEmpty:function(t,e,s){return N(t,s(e))},isPreviousLineEmpty:function(t,e,s){var i=s(e)-1;return i=A(t,i=g(t,i,{backwards:!0}),{backwards:!0}),(i=g(t,i,{backwards:!0}))!==A(t,i,{backwards:!0})},hasNewline:T,hasNewlineInRange:function(t,e,s){for(var i=e;i",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:!0}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:!0}),at:new a("@"),hash:new a("#"),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:!0}),assign:new a("_=",{beforeExpr:r,isAssign:!0}),incDec:new a("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new a("!",{beforeExpr:r,prefix:!0,startsExpr:!0}),tilde:new a("~",{beforeExpr:r,prefix:!0,startsExpr:!0}),pipeline:new o("|>",0),nullishCoalescing:new o("??",1),logicalOR:new o("||",1),logicalAND:new o("&&",2),bitwiseOR:new o("|",3),bitwiseXOR:new o("^",4),bitwiseAND:new o("&",5),equality:new o("==/!=",6),relational:new o("",7),bitShift:new o("<>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:!0,startsExpr:!0}),modulo:new o("%",10),star:new o("*",10),slash:new o("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0})},u={break:new n("break"),case:new n("case",{beforeExpr:r}),catch:new n("catch"),continue:new n("continue"),debugger:new n("debugger"),default:new n("default",{beforeExpr:r}),do:new n("do",{isLoop:!0,beforeExpr:r}),else:new n("else",{beforeExpr:r}),finally:new n("finally"),for:new n("for",{isLoop:!0}),function:new n("function",{startsExpr:!0}),if:new n("if"),return:new n("return",{beforeExpr:r}),switch:new n("switch"),throw:new n("throw",{beforeExpr:r,prefix:!0,startsExpr:!0}),try:new n("try"),var:new n("var"),let:new n("let"),const:new n("const"),while:new n("while",{isLoop:!0}),with:new n("with"),new:new n("new",{beforeExpr:r,startsExpr:!0}),this:new n("this",{startsExpr:!0}),super:new n("super",{startsExpr:!0}),class:new n("class",{startsExpr:!0}),extends:new n("extends",{beforeExpr:r}),export:new n("export"),import:new n("import",{startsExpr:!0}),yield:new n("yield",{beforeExpr:r,startsExpr:!0}),null:new n("null",{startsExpr:!0}),true:new n("true",{startsExpr:!0}),false:new n("false",{startsExpr:!0}),in:new n("in",{beforeExpr:r,binop:7}),instanceof:new n("instanceof",{beforeExpr:r,binop:7}),typeof:new n("typeof",{beforeExpr:r,prefix:!0,startsExpr:!0}),void:new n("void",{beforeExpr:r,prefix:!0,startsExpr:!0}),delete:new n("delete",{beforeExpr:r,prefix:!0,startsExpr:!0})};function p(t){return null!=t&&"Property"===t.type&&"init"===t.kind&&!1===t.method}Object.keys(u).forEach(function(t){h["_"+t]=u[t]});var c=/\r\n?|\n|\u2028|\u2029/,l=new RegExp(c.source,"g");function d(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var f=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function m(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var y=function(t,e,s,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=i},D={braceStatement:new y("{",!1),braceExpression:new y("{",!0),templateQuasi:new y("${",!1),parenStatement:new y("(",!1),parenExpression:new y("(",!0),template:new y("`",!0,!0,function(t){return t.readTmplToken()}),functionExpression:new y("function",!0),functionStatement:new y("function",!1)};function x(t){var e=t.split(" ");return function(t){return e.indexOf(t)>=0}}h.parenR.updateContext=h.braceR.updateContext=function(){if(1!==this.state.context.length){var t=this.state.context.pop();t===D.braceStatement&&"function"===this.curContext().token&&(t=this.state.context.pop()),this.state.exprAllowed=!t.isExpr}else this.state.exprAllowed=!0},h.name.updateContext=function(t){var e=!1;t!==h.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.state.inGenerator)&&(e=!0),this.state.exprAllowed=e,this.state.isIterator&&(this.state.isIterator=!1)},h.braceL.updateContext=function(t){this.state.context.push(this.braceIsBlock(t)?D.braceStatement:D.braceExpression),this.state.exprAllowed=!0},h.dollarBraceL.updateContext=function(){this.state.context.push(D.templateQuasi),this.state.exprAllowed=!0},h.parenL.updateContext=function(t){var e=t===h._if||t===h._for||t===h._with||t===h._while;this.state.context.push(e?D.parenStatement:D.parenExpression),this.state.exprAllowed=!0},h.incDec.updateContext=function(){},h._function.updateContext=h._class.updateContext=function(t){!t.beforeExpr||t===h.semi||t===h._else||t===h._return&&c.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(t===h.colon||t===h.braceL)&&this.curContext()===D.b_stat?this.state.context.push(D.functionStatement):this.state.context.push(D.functionExpression),this.state.exprAllowed=!1},h.backQuote.updateContext=function(){this.curContext()===D.template?this.state.context.pop():this.state.context.push(D.template),this.state.exprAllowed=!1};var v={6:x("enum await"),strict:x("implements interface let package private protected public static yield"),strictBind:x("eval arguments")},P=x("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),g="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",b="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",C=new RegExp("["+g+"]"),w=new RegExp("["+g+b+"]");g=b=null;var E=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],A=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function T(t,e){for(var s=65536,i=0;it)return!1;if((s+=e[i+1])>=t)return!0}return!1}function N(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&C.test(String.fromCharCode(t)):T(t,E)))}function k(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&w.test(String.fromCharCode(t)):T(t,E)||T(t,A))))}var F=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function S(t){return"type"===t.importKind||"typeof"===t.importKind}function I(t){return(t.type===h.name||!!t.type.keyword)&&"from"!==t.value}var L={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var O=/\*?\s*@((?:no)?flow)\b/,M={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:"♦"},R=/^[\da-fA-F]+$/,B=/^\d+$/;function _(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function j(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return j(t.object)+"."+j(t.property);throw new Error("Node had unexpected type: "+t.type)}D.j_oTag=new y("...",!0,!0),h.jsxName=new a("jsxName"),h.jsxText=new a("jsxText",{beforeExpr:!0}),h.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),h.jsxTagEnd=new a("jsxTagEnd"),h.jsxTagStart.updateContext=function(){this.state.context.push(D.j_expr),this.state.context.push(D.j_oTag),this.state.exprAllowed=!1},h.jsxTagEnd.updateContext=function(t){var e=this.state.context.pop();e===D.j_oTag&&t===h.slash||e===D.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===D.j_expr):this.state.exprAllowed=!0};var q={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1};var U=function(t,e){this.line=t,this.column=e},V=function(t,e){this.start=t,this.end=e};function W(t){return t[t.length-1]}var K=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.raise=function(t,e,s){var i=void 0===s?{}:s,r=i.missingPluginNames,a=i.code,n=function(t,e){var s,i=1,r=0;for(l.lastIndex=0;(s=l.exec(t))&&s.index0)){var e,s,i,r,a,n=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=t.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(n.length>0){var o=W(n);o.trailingComments&&o.trailingComments[0].start>=t.end&&(i=o.trailingComments,delete o.trailingComments)}for(n.length>0&&W(n).start>=t.start&&(e=n.pop());n.length>0&&W(n).start>=t.start;)s=n.pop();if(!s&&e&&(s=e),e&&this.state.leadingComments.length>0){var h=W(this.state.leadingComments);if("ObjectProperty"===e.type){if(h.start>=t.start&&this.state.commentPreviousNode){for(a=0;a0&&(e.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===t.type&&t.arguments&&t.arguments.length){var u=W(t.arguments);if(u&&h.start>=u.start&&h.end<=t.end&&this.state.commentPreviousNode){for(a=0;a0&&(u.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}}if(s){if(s.leadingComments)if(s!==t&&s.leadingComments.length>0&&W(s.leadingComments).end<=t.start)t.leadingComments=s.leadingComments,delete s.leadingComments;else for(r=s.leadingComments.length-2;r>=0;--r)if(s.leadingComments[r].end<=t.start){t.leadingComments=s.leadingComments.splice(0,r+1);break}}else if(this.state.leadingComments.length>0)if(W(this.state.leadingComments).end<=t.start){if(this.state.commentPreviousNode)for(a=0;a0&&(t.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(r=0;rt.start);r++);var p=this.state.leadingComments.slice(0,r);p.length&&(t.leadingComments=p),0===(i=this.state.leadingComments.slice(r)).length&&(i=null)}this.state.commentPreviousNode=t,i&&(i.length&&i[0].start>=t.start&&W(i).end<=t.end?t.innerComments=i:t.trailingComments=i),n.push(t)}},e}(function(){function t(){this.sawUnambiguousESM=!1}var e=t.prototype;return e.isReservedWord=function(t){return"await"===t?this.inModule:v[6](t)},e.hasPlugin=function(t){return Object.hasOwnProperty.call(this.plugins,t)},e.getPluginOption=function(t,e){if(this.hasPlugin(t))return this.plugins[t][e]},t}())),G=function(){function t(){}var e=t.prototype;return e.init=function(t,e){this.strict=!1!==t.strictMode&&"module"===t.sourceType,this.input=e,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=!1,this.inFunction=!1,this.inParameters=!1,this.maybeInArrowParameters=!1,this.inGenerator=!1,this.inAsync=!1,this.inPipeline=!1,this.inPropertyName=!1,this.inType=!1,this.inClassProperty=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isIterator=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldOrAwaitInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=t.startLine,this.type=h.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=[D.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},e.curPosition=function(){return new U(this.curLine,this.pos-this.lineStart)},e.clone=function(e){var s=this,i=new t;return Object.keys(this).forEach(function(t){var r=s[t];e&&"context"!==t||!Array.isArray(r)||(r=r.slice()),i[t]=r}),i},t}(),X=function(t){return t>=48&&t<=57},J={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},H={bin:[48,49]};H.oct=H.bin.concat([50,51,52,53,54,55]),H.dec=H.oct.concat([56,57]),H.hex=H.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);var z=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.addExtra=function(t,e,s){t&&((t.extra=t.extra||{})[e]=s)},s.isRelational=function(t){return this.match(h.relational)&&this.state.value===t},s.isLookaheadRelational=function(t){var e=this.lookahead();return e.type==h.relational&&e.value==t},s.expectRelational=function(t){this.isRelational(t)?this.next():this.unexpected(null,h.relational)},s.eatRelational=function(t){return!!this.isRelational(t)&&(this.next(),!0)},s.isContextual=function(t){return this.match(h.name)&&this.state.value===t&&!this.state.containsEsc},s.isLookaheadContextual=function(t){var e=this.lookahead();return e.type===h.name&&e.value===t},s.eatContextual=function(t){return this.isContextual(t)&&this.eat(h.name)},s.expectContextual=function(t,e){this.eatContextual(t)||this.unexpected(null,e)},s.canInsertSemicolon=function(){return this.match(h.eof)||this.match(h.braceR)||this.hasPrecedingLineBreak()},s.hasPrecedingLineBreak=function(){return c.test(this.input.slice(this.state.lastTokEnd,this.state.start))},s.isLineTerminator=function(){return this.eat(h.semi)||this.canInsertSemicolon()},s.semicolon=function(){this.isLineTerminator()||this.unexpected(null,h.semi)},s.expect=function(t,e){this.eat(t)||this.unexpected(e,t)},s.unexpected=function(t,e){throw void 0===e&&(e="Unexpected token"),"string"!=typeof e&&(e='Unexpected token, expected "'+e.label+'"'),this.raise(null!=t?t:this.state.start,e)},s.expectPlugin=function(t,e){if(!this.hasPlugin(t))throw this.raise(null!=e?e:this.state.start,"This experimental syntax requires enabling the parser plugin: '"+t+"'",{missingPluginNames:[t]});return!0},s.expectOnePlugin=function(t,e){var s=this;if(!t.some(function(t){return s.hasPlugin(t)}))throw this.raise(null!=e?e:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '"+t.join(", ")+"'",{missingPluginNames:t})},e}(function(t){function e(e,s){var i;return(i=t.call(this)||this).state=new G,i.state.init(e,s),i.isLookahead=!1,i}i(e,t);var s=e.prototype;return s.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new V(t.startLoc,t.endLoc)}(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()},s.eat=function(t){return!!this.match(t)&&(this.next(),!0)},s.match=function(t){return this.state.type===t},s.isKeyword=function(t){return P(t)},s.lookahead=function(){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},s.setStrict=function(t){if(this.state.strict=t,this.match(h.num)||this.match(h.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(h.eof):t.override?t.override(this):this.readToken(this.input.codePointAt(this.state.pos))},s.readToken=function(t){N(t)||92===t?this.readWord():this.getTokenFromCode(t)},s.pushComment=function(t,e,s,i,r,a){var n={type:t?"CommentBlock":"CommentLine",value:e,start:s,end:i,loc:new V(r,a)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(n),this.state.comments.push(n),this.addComment(n))},s.skipBlockComment=function(){var t,e=this.state.curPosition(),s=this.state.pos,i=this.input.indexOf("*/",this.state.pos+=2);for(-1===i&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=i+2,l.lastIndex=s;(t=l.exec(this.input))&&t.index=48&&e<=57&&this.raise(this.state.pos,"Unexpected digit after hash token"),(this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(h.hash);"smart"===this.getPluginOption("pipelineOperator","proposal")?this.finishOp(h.hash,1):this.raise(this.state.pos,"Unexpected character '#'")}},s.readToken_dot=function(){var t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57)this.readNumber(!0);else{var e=this.input.charCodeAt(this.state.pos+2);46===t&&46===e?(this.state.pos+=3,this.finishToken(h.ellipsis)):(++this.state.pos,this.finishToken(h.dot))}},s.readToken_slash=function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.assign,2):this.finishOp(h.slash,1)},s.readToken_interpreter=function(){if(0!==this.state.pos||this.state.input.length<2)return!1;var t=this.state.pos;this.state.pos+=1;var e=this.input.charCodeAt(this.state.pos);if(33!==e)return!1;for(;10!==e&&13!==e&&8232!==e&&8233!==e&&++this.state.pos=48&&e<=57?(++this.state.pos,this.finishToken(h.question)):(this.state.pos+=2,this.finishToken(h.questionDot)):61===e?this.finishOp(h.assign,3):this.finishOp(h.nullishCoalescing,2)},s.getTokenFromCode=function(t){switch(t){case 35:return void this.readToken_numberSign();case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(h.parenL);case 41:return++this.state.pos,void this.finishToken(h.parenR);case 59:return++this.state.pos,void this.finishToken(h.semi);case 44:return++this.state.pos,void this.finishToken(h.comma);case 91:return++this.state.pos,void this.finishToken(h.bracketL);case 93:return++this.state.pos,void this.finishToken(h.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.braceBarL,2):(++this.state.pos,this.finishToken(h.braceL)));case 125:return++this.state.pos,void this.finishToken(h.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.doubleColon,2):(++this.state.pos,this.finishToken(h.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(h.at);case 96:return++this.state.pos,void this.finishToken(h.backQuote);case 48:var e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:case 62:return void this.readToken_lt_gt(t);case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(h.tilde,1)}this.raise(this.state.pos,"Unexpected character '"+String.fromCodePoint(t)+"'")},s.finishOp=function(t,e){var s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)},s.readRegexp=function(){for(var t,e,s=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.state.pos);if(c.test(i)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.state.pos}var r=this.input.slice(s,this.state.pos);++this.state.pos;for(var a="";this.state.pos-1)a.indexOf(n)>-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,a+=n;else{if(!k(o)&&92!==o)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(h.regexp,{pattern:r,flags:a})},s.readInt=function(t,e){for(var s=this.state.pos,i=16===t?J.hex:J.decBinOct,r=16===t?H.hex:10===t?H.dec:8===t?H.oct:H.bin,a=0,n=0,o=null==e?1/0:e;n-1||i.indexOf(c)>-1||Number.isNaN(c))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((u=h>=97?h-97+10:h>=65?h-65+10:X(h)?h-48:1/0)>=t)break;++this.state.pos,a=a*t+u}return this.state.pos===s||null!=e&&this.state.pos-s!==e?null:a},s.readRadixNumber=function(t){var e=this.state.pos,s=!1;this.state.pos+=2;var i=this.readInt(t);if(null==i&&this.raise(this.state.start+2,"Expected number in radix "+t),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,s=!0),N(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number"),s){var r=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(h.bigint,r)}else this.finishToken(h.num,i)},s.readNumber=function(t){var e=this.state.pos,s=!1,i=!1;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var r=this.state.pos-e>=2&&48===this.input.charCodeAt(e);r&&(this.state.strict&&this.raise(e,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(e,this.state.pos))&&(r=!1));var a=this.input.charCodeAt(this.state.pos);46!==a||r||(++this.state.pos,this.readInt(10),s=!0,a=this.input.charCodeAt(this.state.pos)),69!==a&&101!==a||r||(43!==(a=this.input.charCodeAt(++this.state.pos))&&45!==a||++this.state.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),s=!0,a=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===a&&((s||r)&&this.raise(e,"Invalid BigIntLiteral"),++this.state.pos,i=!0),N(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number");var n=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");if(i)this.finishToken(h.bigint,n);else{var o=r?parseInt(n,8):parseFloat(n);this.finishToken(h.num,o)}},s.readCodePoint=function(t){var e;if(123===this.input.charCodeAt(this.state.pos)){var s=++this.state.pos;if(e=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,t),++this.state.pos,null===e)--this.state.invalidTemplateEscapePosition;else if(e>1114111){if(!t)return this.state.invalidTemplateEscapePosition=s-2,null;this.raise(s,"Code point out of bounds")}}else e=this.readHexChar(4,t);return e},s.readString=function(t){for(var e="",s=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===t)break;92===i?(e+=this.input.slice(s,this.state.pos),e+=this.readEscapedChar(!1),s=this.state.pos):8232===i||8233===i?(++this.state.pos,++this.state.curLine):d(i)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)},s.readTmplToken=function(){for(var t="",e=this.state.pos,s=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(h.template)?36===i?(this.state.pos+=2,void this.finishToken(h.dollarBraceL)):(++this.state.pos,void this.finishToken(h.backQuote)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(h.template,s?null:t));if(92===i){t+=this.input.slice(e,this.state.pos);var r=this.readEscapedChar(!0);null===r?s=!0:t+=r,e=this.state.pos}else if(d(i)){switch(t+=this.input.slice(e,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}},s.readEscapedChar=function(t){var e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return"\n";case 114:return"\r";case 120:var i=this.readHexChar(2,e);return null===i?null:String.fromCharCode(i);case 117:var r=this.readCodePoint(e);return null===r?null:String.fromCodePoint(r);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(s>=48&&s<=55){var a=this.state.pos-1,n=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(n,8);if(o>255&&(n=n.slice(0,-1),o=parseInt(n,8)),o>0){if(t)return this.state.invalidTemplateEscapePosition=a,null;this.state.strict?this.raise(a,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=a)}return this.state.pos+=n.length-1,String.fromCharCode(o)}return String.fromCharCode(s)}},s.readHexChar=function(t,e){var s=this.state.pos,i=this.readInt(16,t);return null===i&&(e?this.raise(s,"Bad character escape sequence"):(this.state.pos=s-1,this.state.invalidTemplateEscapePosition=s-1)),i},s.readWord1=function(){this.state.containsEsc=!1;for(var t="",e=!0,s=this.state.pos;this.state.pos=0;n--){var o=this.state.labels[n];if(o.statementStart!==t.start)break;o.statementStart=this.state.start,o.kind=a}return this.state.labels.push({name:e,kind:a,statementStart:this.state.start}),t.body=this.parseStatement(!0),("ClassDeclaration"==t.body.type||"VariableDeclaration"==t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"==t.body.type&&(this.state.strict||t.body.generator||t.body.async))&&this.raise(t.body.start,"Invalid labeled declaration"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")},s.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},s.parseBlock=function(t){var e=this.startNode();return this.expect(h.braceL),this.parseBlockBody(e,t,!1,h.braceR),this.finishNode(e,"BlockStatement")},s.isValidDirective=function(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized},s.parseBlockBody=function(t,e,s,i){var r=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(r,e?a:void 0,s,i)},s.parseBlockOrModuleBlockBody=function(t,e,s,i){for(var r,a,n=!1;!this.eat(i);){n||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,s);if(e&&!n&&this.isValidDirective(o)){var h=this.stmtToDirective(o);e.push(h),void 0===r&&"use strict"===h.value.value&&(r=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else n=!0,t.push(o)}!1===r&&this.setStrict(!1)},s.parseFor=function(t,e){var s=this;return t.init=e,this.expect(h.semi),t.test=this.match(h.semi)?null:this.parseExpression(),this.expect(h.semi),t.update=this.match(h.parenR)?null:this.parseExpression(),this.expect(h.parenR),t.body=this.withTopicForbiddingContext(function(){return s.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(t,"ForStatement")},s.parseForIn=function(t,e,s){var i=this,r=this.match(h._in)?"ForInStatement":"ForOfStatement";return s?this.eatContextual("of"):this.next(),"ForOfStatement"===r&&(t.await=!!s),t.left=e,t.right=this.parseExpression(),this.expect(h.parenR),t.body=this.withTopicForbiddingContext(function(){return i.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(t,r)},s.parseVar=function(t,e,s){var i=t.declarations=[];for(t.kind=s.keyword;;){var r=this.startNode();if(this.parseVarHead(r),this.eat(h.eq)?r.init=this.parseMaybeAssign(e):(s!==h._const||this.match(h._in)||this.isContextual("of")?"Identifier"===r.id.type||e&&(this.match(h._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.hasPlugin("typescript")||this.unexpected(),r.init=null),i.push(this.finishNode(r,"VariableDeclarator")),!this.eat(h.comma))break}return t},s.parseVarHead=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0,void 0,"variable declaration")},s.parseFunction=function(t,e,s,i,r){var a=this,n=this.state.inFunction,o=this.state.inMethod,u=this.state.inAsync,p=this.state.inGenerator,c=this.state.inClassProperty;return this.state.inFunction=!0,this.state.inMethod=!1,this.state.inClassProperty=!1,this.initFunction(t,i),this.match(h.star)&&(t.generator=!0,this.next()),!e||r||this.match(h.name)||this.match(h._yield)||this.unexpected(),e||(this.state.inAsync=i,this.state.inGenerator=t.generator),(this.match(h.name)||this.match(h._yield))&&(t.id=this.parseBindingIdentifier()),e&&(this.state.inAsync=i,this.state.inGenerator=t.generator),this.parseFunctionParams(t),this.withTopicForbiddingContext(function(){a.parseFunctionBodyAndFinish(t,e?"FunctionDeclaration":"FunctionExpression",s)}),this.state.inFunction=n,this.state.inMethod=o,this.state.inAsync=u,this.state.inGenerator=p,this.state.inClassProperty=c,t},s.parseFunctionParams=function(t,e){var s=this.state.inParameters;this.state.inParameters=!0,this.expect(h.parenL),t.params=this.parseBindingList(h.parenR,!1,e),this.state.inParameters=s},s.parseClass=function(t,e,s){return this.next(),this.takeDecorators(t),this.parseClassId(t,e,s),this.parseClassSuper(t),this.parseClassBody(t),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},s.isClassProperty=function(){return this.match(h.eq)||this.match(h.semi)||this.match(h.braceR)},s.isClassMethod=function(){return this.match(h.parenL)},s.isNonstaticConstructor=function(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)},s.parseClassBody=function(t){var e=this,s=this.state.strict;this.state.strict=!0,this.state.classLevel++;var i={hadConstructor:!1},r=[],a=this.startNode();a.body=[],this.expect(h.braceL),this.withTopicForbiddingContext(function(){for(;!e.eat(h.braceR);)if(e.eat(h.semi))r.length>0&&e.raise(e.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(e.match(h.at))r.push(e.parseDecorator());else{var t=e.startNode();r.length&&(t.decorators=r,e.resetStartLocationFromNode(t,r[0]),r=[]),e.parseClassMember(a,t,i),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&e.raise(t.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}}),r.length&&this.raise(this.state.start,"You have trailing decorators with no method"),t.body=this.finishNode(a,"ClassBody"),this.state.classLevel--,this.state.strict=s},s.parseClassMember=function(t,e,s){var i=!1,r=this.state.containsEsc;if(this.match(h.name)&&"static"===this.state.value){var a=this.parseIdentifier(!0);if(this.isClassMethod()){var n=e;return n.kind="method",n.computed=!1,n.key=a,n.static=!1,void this.pushClassMethod(t,n,!1,!1,!1)}if(this.isClassProperty()){var o=e;return o.computed=!1,o.key=a,o.static=!1,void t.body.push(this.parseClassProperty(o))}if(r)throw this.unexpected();i=!0}this.parseClassMemberWithIsStatic(t,e,s,i)},s.parseClassMemberWithIsStatic=function(t,e,s,i){var r=e,a=e,n=e,o=e,u=r,p=r;if(e.static=i,this.eat(h.star))return u.kind="method",this.parseClassPropertyName(u),"PrivateName"===u.key.type?void this.pushClassPrivateMethod(t,a,!0,!1):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't be a generator"),void this.pushClassMethod(t,r,!0,!1,!1));var c=this.parseClassPropertyName(e),l="PrivateName"===c.type,d="Identifier"===c.type;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(u.kind="method",l)return void this.pushClassPrivateMethod(t,a,!1,!1);var f=this.isNonstaticConstructor(r);f&&(r.kind="constructor",r.decorators&&this.raise(r.start,"You can't attach decorators to a class constructor"),s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(c.start,"Duplicate constructor in the same class"),s.hadConstructor=!0),this.pushClassMethod(t,r,!1,!1,f)}else if(this.isClassProperty())l?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n);else if(d&&"async"===c.name&&!this.isLineTerminator()){var m=this.eat(h.star);u.kind="method",this.parseClassPropertyName(u),"PrivateName"===u.key.type?this.pushClassPrivateMethod(t,a,m,!0):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't be an async function"),this.pushClassMethod(t,r,m,!0,!1))}else!d||"get"!==c.name&&"set"!==c.name||this.isLineTerminator()&&this.match(h.star)?this.isLineTerminator()?l?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n):this.unexpected():(u.kind=c.name,this.parseClassPropertyName(r),"PrivateName"===u.key.type?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(t,r,!1,!1,!1)),this.checkGetterSetterParams(r))},s.parseClassPropertyName=function(t){var e=this.parsePropertyName(t);return t.computed||!t.static||"prototype"!==e.name&&"prototype"!==e.value||this.raise(e.start,"Classes may not have static property named prototype"),"PrivateName"===e.type&&"constructor"===e.id.name&&this.raise(e.start,"Classes may not have a private field named '#constructor'"),e},s.pushClassProperty=function(t,e){this.isNonstaticConstructor(e)&&this.raise(e.key.start,"Classes may not have a non-static field named 'constructor'"),t.body.push(this.parseClassProperty(e))},s.pushClassPrivateProperty=function(t,e){this.expectPlugin("classPrivateProperties",e.key.start),t.body.push(this.parseClassPrivateProperty(e))},s.pushClassMethod=function(t,e,s,i,r){t.body.push(this.parseMethod(e,s,i,r,"ClassMethod"))},s.pushClassPrivateMethod=function(t,e,s,i){this.expectPlugin("classPrivateMethods",e.key.start),t.body.push(this.parseMethod(e,s,i,!1,"ClassPrivateMethod"))},s.parsePostMemberNameModifiers=function(t){},s.parseAccessModifier=function(){},s.parseClassPrivateProperty=function(t){var e=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,t.value=this.eat(h.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=e,this.finishNode(t,"ClassPrivateProperty")},s.parseClassProperty=function(t){t.typeAnnotation||this.expectPlugin("classProperties");var e=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,this.match(h.eq)?(this.expectPlugin("classProperties"),this.next(),t.value=this.parseMaybeAssign()):t.value=null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=e,this.finishNode(t,"ClassProperty")},s.parseClassId=function(t,e,s){this.match(h.name)?t.id=this.parseIdentifier():s||!e?t.id=null:this.unexpected(null,"A class name is required")},s.parseClassSuper=function(t){t.superClass=this.eat(h._extends)?this.parseExprSubscripts():null},s.parseExport=function(t){if(this.shouldParseExportStar()){if(this.parseExportStar(t),"ExportAllDeclaration"===t.type)return t}else if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var e=this.startNode();e.exported=this.parseIdentifier(!0);var s=[this.finishNode(e,"ExportDefaultSpecifier")];if(t.specifiers=s,this.match(h.comma)&&this.lookahead().type===h.star){this.expect(h.comma);var i=this.startNode();this.expect(h.star),this.expectContextual("as"),i.exported=this.parseIdentifier(),s.push(this.finishNode(i,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(t);this.parseExportFrom(t,!0)}else{if(this.eat(h._default))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var r=this.lookahead();r.type!==h._function&&this.unexpected(r.start,'Unexpected token, expected "function"')}t.specifiers=[],t.source=null,t.declaration=this.parseExportDeclaration(t)}else t.declaration=null,t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t)}return this.checkExport(t,!0),this.finishNode(t,"ExportNamedDeclaration")},s.isAsyncFunction=function(){if(!this.isContextual("async"))return!1;var t=this.state,e=t.input,s=t.pos;f.lastIndex=s;var i=f.exec(e);if(!i||!i.length)return!1;var r=s+i[0].length;return!(c.test(e.slice(s,r))||"function"!==e.slice(r,r+8)||r+8!==e.length&&k(e.charAt(r+8)))},s.parseExportDefaultExpression=function(){var t=this.startNode(),e=this.isAsyncFunction();if(this.eat(h._function)||e)return e&&(this.eatContextual("async"),this.expect(h._function)),this.parseFunction(t,!0,!1,e,!0);if(this.match(h._class))return this.parseClass(t,!0,!0);if(this.match(h.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(h._let)||this.match(h._const)||this.match(h._var))return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var s=this.parseMaybeAssign();return this.semicolon(),s},s.parseExportDeclaration=function(t){return this.parseStatement(!0)},s.isExportDefaultSpecifier=function(){if(this.match(h.name))return"async"!==this.state.value;if(!this.match(h._default))return!1;var t=this.lookahead();return t.type===h.comma||t.type===h.name&&"from"===t.value},s.parseExportSpecifiersMaybe=function(t){this.eat(h.comma)&&(t.specifiers=t.specifiers.concat(this.parseExportSpecifiers()))},s.parseExportFrom=function(t,e){this.eatContextual("from")?(t.source=this.match(h.string)?this.parseExprAtom():this.unexpected(),this.checkExport(t)):e?this.unexpected():t.source=null,this.semicolon()},s.shouldParseExportStar=function(){return this.match(h.star)},s.parseExportStar=function(t){this.expect(h.star),this.isContextual("as")?this.parseExportNamespace(t):(this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration"))},s.parseExportNamespace=function(t){this.expectPlugin("exportNamespaceFrom");var e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next(),e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(t),this.parseExportFrom(t,!0)},s.shouldParseExportDeclaration=function(){if(this.match(h.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isAsyncFunction()},s.checkExport=function(t,e,s){if(e)if(s)this.checkDuplicateExports(t,"default");else if(t.specifiers&&t.specifiers.length)for(var i=0,r=t.specifiers;i-1&&this.raiseDuplicateExportError(t,e),this.state.exportedIdentifiers.push(e)},s.raiseDuplicateExportError=function(t,e){throw this.raise(t.start,"default"===e?"Only one default export allowed per module.":"`"+e+"` has already been exported. Exported identifiers must be unique.")},s.parseExportSpecifiers=function(){var t,e=[],s=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(s)s=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;var i=this.match(h._default);i&&!t&&(t=!0);var r=this.startNode();r.local=this.parseIdentifier(i),r.exported=this.eatContextual("as")?this.parseIdentifier(!0):r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return t&&!this.isContextual("from")&&this.unexpected(),e},s.parseImport=function(t){return this.match(h.string)?(t.specifiers=[],t.source=this.parseExprAtom()):(t.specifiers=[],this.parseImportSpecifiers(t),this.expectContextual("from"),t.source=this.match(h.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},s.shouldParseDefaultImport=function(t){return this.match(h.name)},s.parseImportSpecifierLocal=function(t,e,s,i){e.local=this.parseIdentifier(),this.checkLVal(e.local,!0,void 0,i),t.specifiers.push(this.finishNode(e,s))},s.parseImportSpecifiers=function(t){var e=!0;if(!this.shouldParseDefaultImport(t)||(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier","default import specifier"),this.eat(h.comma))){if(this.match(h.star)){var s=this.startNode();return this.next(),this.expectContextual("as"),void this.parseImportSpecifierLocal(t,s,"ImportNamespaceSpecifier","import namespace specifier")}for(this.expect(h.braceL);!this.eat(h.braceR);){if(e)e=!1;else if(this.eat(h.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(h.comma),this.eat(h.braceR))break;this.parseImportSpecifier(t)}}},s.parseImportSpecifier=function(t){var e=this.startNode();e.imported=this.parseIdentifier(!0),this.eatContextual("as")?e.local=this.parseIdentifier():(this.checkReservedWord(e.imported.name,e.start,!0,!0),e.local=e.imported.__clone()),this.checkLVal(e.local,!0,void 0,"import specifier"),t.specifiers.push(this.finishNode(e,"ImportSpecifier"))},e}(function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.checkPropClash=function(t,e){if(!t.computed&&!t.kind){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)}},s.getExpression=function(){this.nextToken();var t=this.parseExpression();return this.match(h.eof)||this.unexpected(),t.comments=this.state.comments,t},s.parseExpression=function(t,e){var s=this.state.start,i=this.state.startLoc,r=this.parseMaybeAssign(t,e);if(this.match(h.comma)){var a=this.startNodeAt(s,i);for(a.expressions=[r];this.eat(h.comma);)a.expressions.push(this.parseMaybeAssign(t,e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return r},s.parseMaybeAssign=function(t,e,s,i){var r,a=this.state.start,n=this.state.startLoc;if(this.match(h._yield)&&this.state.inGenerator){var o=this.parseYield();return s&&(o=s.call(this,o,a,n)),o}e?r=!1:(e={start:0},r=!0),(this.match(h.parenL)||this.match(h.name)||this.match(h._yield))&&(this.state.potentialArrowAt=this.state.start);var u=this.parseMaybeConditional(t,e,i);if(s&&(u=s.call(this,u,a,n)),this.state.type.isAssign){var p,c=this.startNodeAt(a,n),l=this.state.value;if(c.operator=l,"??="===l&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==l&&"&&="!==l||this.expectPlugin("logicalAssignment"),c.left=this.match(h.eq)?this.toAssignable(u,void 0,"assignment expression"):u,e.start=0,this.checkLVal(u,void 0,void 0,"assignment expression"),u.extra&&u.extra.parenthesized)"ObjectPattern"===u.type?p="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===u.type&&(p="`([a]) = 0` use `([a] = 0)`"),p&&this.raise(u.start,"You're trying to assign to a parenthesized expression, eg. instead of "+p);return this.next(),c.right=this.parseMaybeAssign(t),this.finishNode(c,"AssignmentExpression")}return r&&e.start&&this.unexpected(e.start),u},s.parseMaybeConditional=function(t,e,s){var i=this.state.start,r=this.state.startLoc,a=this.state.potentialArrowAt,n=this.parseExprOps(t,e);return"ArrowFunctionExpression"===n.type&&n.start===a?n:e&&e.start?n:this.parseConditional(n,t,i,r,s)},s.parseConditional=function(t,e,s,i,r){if(this.eat(h.question)){var a=this.startNodeAt(s,i);return a.test=t,a.consequent=this.parseMaybeAssign(),this.expect(h.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return t},s.parseExprOps=function(t,e){var s=this.state.start,i=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnary(e);return"ArrowFunctionExpression"===a.type&&a.start===r?a:e&&e.start?a:this.parseExprOp(a,s,i,-1,t)},s.parseExprOp=function(t,e,s,i,r){var a=this.state.type.binop;if(!(null==a||r&&this.match(h._in))&&a>i){var n=this.startNodeAt(e,s),o=this.state.value;n.left=t,n.operator=o,"**"!==o||"UnaryExpression"!==t.type||t.extra&&t.extra.parenthesized||this.raise(t.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var u=this.state.type;if(u===h.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(t,e)):u===h.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),u===h.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(h.name)&&"await"===this.state.value&&this.state.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return n.right=this.parseExprOpRightExpr(u,a,r),this.finishNode(n,u===h.logicalOR||u===h.logicalAND||u===h.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(n,e,s,i,r)}return t},s.parseExprOpRightExpr=function(t,e,s){var i=this;switch(t){case h.pipeline:if("smart"===this.getPluginOption("pipelineOperator","proposal")){var r=this.state.start,a=this.state.startLoc;return this.withTopicPermittingContext(function(){return i.parseSmartPipelineBody(i.parseExprOpBaseRightExpr(t,e,s),r,a)})}default:return this.parseExprOpBaseRightExpr(t,e,s)}},s.parseExprOpBaseRightExpr=function(t,e,s){var i=this.state.start,r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),i,r,t.rightAssociative?e-1:e,s)},s.parseMaybeUnary=function(t){if(this.state.type.prefix){var e=this.startNode(),s=this.match(h.incDec);if(e.operator=this.state.value,e.prefix=!0,"throw"===e.operator&&this.expectPlugin("throwExpressions"),this.next(),e.argument=this.parseMaybeUnary(),t&&t.start&&this.unexpected(t.start),s)this.checkLVal(e.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===e.operator){var i=e.argument;"Identifier"===i.type?this.raise(e.start,"Deleting local variable in strict mode"):"MemberExpression"===i.type&&"PrivateName"===i.property.type&&this.raise(e.start,"Deleting a private field is not allowed")}return this.finishNode(e,s?"UpdateExpression":"UnaryExpression")}var r=this.state.start,a=this.state.startLoc,n=this.parseExprSubscripts(t);if(t&&t.start)return n;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,a);o.operator=this.state.value,o.prefix=!1,o.argument=n,this.checkLVal(n,void 0,void 0,"postfix operation"),this.next(),n=this.finishNode(o,"UpdateExpression")}return n},s.parseExprSubscripts=function(t){var e=this.state.start,s=this.state.startLoc,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)},s.parseSubscripts=function(t,e,s,i){var r={optionalChainMember:!1,stop:!1};do{t=this.parseSubscript(t,e,s,i,r)}while(!r.stop);return t},s.parseSubscript=function(t,e,s,i,r){if(!i&&this.eat(h.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(h.questionDot)){if(this.expectPlugin("optionalChaining"),r.optionalChainMember=!0,i&&this.lookahead().type==h.parenL)return r.stop=!0,t;this.next();var n=this.startNodeAt(e,s);if(this.eat(h.bracketL))return n.object=t,n.property=this.parseExpression(),n.computed=!0,n.optional=!0,this.expect(h.bracketR),this.finishNode(n,"OptionalMemberExpression");if(this.eat(h.parenL)){var o=this.atPossibleAsync(t);return n.callee=t,n.arguments=this.parseCallExpressionArguments(h.parenR,o),n.optional=!0,this.finishNode(n,"OptionalCallExpression")}return n.object=t,n.property=this.parseIdentifier(!0),n.computed=!1,n.optional=!0,this.finishNode(n,"OptionalMemberExpression")}if(this.eat(h.dot)){var u=this.startNodeAt(e,s);return u.object=t,u.property=this.parseMaybePrivateName(),u.computed=!1,r.optionalChainMember?(u.optional=!1,this.finishNode(u,"OptionalMemberExpression")):this.finishNode(u,"MemberExpression")}if(this.eat(h.bracketL)){var p=this.startNodeAt(e,s);return p.object=t,p.property=this.parseExpression(),p.computed=!0,this.expect(h.bracketR),r.optionalChainMember?(p.optional=!1,this.finishNode(p,"OptionalMemberExpression")):this.finishNode(p,"MemberExpression")}if(!i&&this.match(h.parenL)){var c=this.state.maybeInArrowParameters,l=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;var d=this.atPossibleAsync(t);this.next();var f=this.startNodeAt(e,s);f.callee=t;var m={start:-1};return f.arguments=this.parseCallExpressionArguments(h.parenR,d,m),r.optionalChainMember?this.finishOptionalCallExpression(f):this.finishCallExpression(f),d&&this.shouldParseAsyncArrow()?(r.stop=!0,m.start>-1&&this.raise(m.start,"A trailing comma is not permitted after the rest element"),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e,s),f),this.state.yieldOrAwaitInPossibleArrowParameters=l):(this.toReferencedListDeep(f.arguments),this.state.yieldOrAwaitInPossibleArrowParameters=this.state.yieldOrAwaitInPossibleArrowParameters||l),this.state.maybeInArrowParameters=c,f}return this.match(h.backQuote)?this.parseTaggedTemplateExpression(e,s,t,r):(r.stop=!0,t)},s.parseTaggedTemplateExpression=function(t,e,s,i,r){var a=this.startNodeAt(t,e);return a.tag=s,a.quasi=this.parseTemplate(!0),r&&(a.typeParameters=r),i.optionalChainMember&&this.raise(t,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(a,"TaggedTemplateExpression")},s.atPossibleAsync=function(t){return!this.state.containsEsc&&this.state.potentialArrowAt===t.start&&"Identifier"===t.type&&"async"===t.name&&!this.canInsertSemicolon()},s.finishCallExpression=function(t){if("Import"===t.callee.type){1!==t.arguments.length&&this.raise(t.start,"import() requires exactly one argument");var e=t.arguments[0];e&&"SpreadElement"===e.type&&this.raise(e.start,"... is not allowed in import()")}return this.finishNode(t,"CallExpression")},s.finishOptionalCallExpression=function(t){if("Import"===t.callee.type){1!==t.arguments.length&&this.raise(t.start,"import() requires exactly one argument");var e=t.arguments[0];e&&"SpreadElement"===e.type&&this.raise(e.start,"... is not allowed in import()")}return this.finishNode(t,"OptionalCallExpression")},s.parseCallExpressionArguments=function(t,e,s){for(var i,r=[],a=!0;!this.eat(t);){if(a)a=!1;else if(this.expect(h.comma),this.eat(t))break;this.match(h.parenL)&&!i&&(i=this.state.start),r.push(this.parseExprListItem(!1,e?{start:0}:void 0,e?{start:0}:void 0,e?s:void 0))}return e&&i&&this.shouldParseAsyncArrow()&&this.unexpected(),r},s.shouldParseAsyncArrow=function(){return this.match(h.arrow)},s.parseAsyncArrowFromCallExpression=function(t,e){return this.expect(h.arrow),this.parseArrowExpression(t,e.arguments,!0),t},s.parseNoCallExpr=function(){var t=this.state.start,e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,e,!0)},s.parseExprAtom=function(t){this.state.type===h.slash&&this.readRegexp();var e,s=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case h._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),e=this.startNode(),this.next(),this.match(h.parenL)||this.match(h.bracketL)||this.match(h.dot)||this.unexpected(),this.match(h.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(e.start,"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."),this.finishNode(e,"Super");case h._import:return this.lookahead().type===h.dot?this.parseImportMetaProperty():(this.expectPlugin("dynamicImport"),e=this.startNode(),this.next(),this.match(h.parenL)||this.unexpected(null,h.parenL),this.finishNode(e,"Import"));case h._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case h._yield:this.state.inGenerator&&this.unexpected();case h.name:e=this.startNode();var i="await"===this.state.value&&(this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction),r=this.state.containsEsc,a=this.shouldAllowYieldIdentifier(),n=this.parseIdentifier(i||a);if("await"===n.name){if(this.state.inAsync||this.inModule||!this.state.inFunction&&this.options.allowAwaitOutsideFunction)return this.parseAwait(e)}else{if(!r&&"async"===n.name&&this.match(h._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(e,!1,!1,!0);if(s&&!this.canInsertSemicolon()&&"async"===n.name&&this.match(h.name)){var o=this.state.yieldOrAwaitInPossibleArrowParameters,u=this.state.inAsync;this.state.yieldOrAwaitInPossibleArrowParameters=null,this.state.inAsync=!0;var p=[this.parseIdentifier()];return this.expect(h.arrow),this.parseArrowExpression(e,p,!0),this.state.yieldOrAwaitInPossibleArrowParameters=o,this.state.inAsync=u,e}}if(s&&!this.canInsertSemicolon()&&this.eat(h.arrow)){var c=this.state.yieldOrAwaitInPossibleArrowParameters;return this.state.yieldOrAwaitInPossibleArrowParameters=null,this.parseArrowExpression(e,[n]),this.state.yieldOrAwaitInPossibleArrowParameters=c,e}return n;case h._do:this.expectPlugin("doExpressions");var l=this.startNode();this.next();var d=this.state.inFunction,f=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,l.body=this.parseBlock(!1),this.state.inFunction=d,this.state.labels=f,this.finishNode(l,"DoExpression");case h.regexp:var m=this.state.value;return(e=this.parseLiteral(m.value,"RegExpLiteral")).pattern=m.pattern,e.flags=m.flags,e;case h.num:return this.parseLiteral(this.state.value,"NumericLiteral");case h.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case h.string:return this.parseLiteral(this.state.value,"StringLiteral");case h._null:return e=this.startNode(),this.next(),this.finishNode(e,"NullLiteral");case h._true:case h._false:return this.parseBooleanLiteral();case h.parenL:return this.parseParenAndDistinguishExpression(s);case h.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(h.bracketR,!0,t),this.state.maybeInArrowParameters||this.toReferencedList(e.elements),this.finishNode(e,"ArrayExpression");case h.braceL:return this.parseObj(!1,t);case h._function:return this.parseFunctionExpression();case h.at:this.parseDecorators();case h._class:return e=this.startNode(),this.takeDecorators(e),this.parseClass(e,!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate(!1);case h.doubleColon:e=this.startNode(),this.next(),e.object=null;var y=e.callee=this.parseNoCallExpr();if("MemberExpression"===y.type)return this.finishNode(e,"BindExpression");throw this.raise(y.start,"Binding should be performed on object property.");case h.hash:if(this.state.inPipeline){if(e=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(e.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext())return this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference");throw this.raise(e.start,"Topic reference was used in a lexical context without topic binding")}default:throw this.unexpected()}},s.parseBooleanLiteral=function(){var t=this.startNode();return t.value=this.match(h._true),this.next(),this.finishNode(t,"BooleanLiteral")},s.parseMaybePrivateName=function(){if(this.match(h.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var t=this.startNode(),e=this.state.end;this.next();var s=this.state.start;return 0!=s-e&&this.raise(s,"Unexpected space between # and identifier"),t.id=this.parseIdentifier(!0),this.finishNode(t,"PrivateName")}return this.parseIdentifier(!0)},s.parseFunctionExpression=function(){var t=this.startNode(),e=this.startNode();return this.next(),e=this.createIdentifier(e,"function"),this.state.inGenerator&&this.eat(h.dot)?this.parseMetaProperty(t,e,"sent"):this.parseFunction(t,!1)},s.parseMetaProperty=function(t,e,s){t.meta=e,"function"===e.name&&"sent"===s&&(this.isContextual(s)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(t.property.start,"The only valid meta property for "+e.name+" is "+e.name+"."+s),this.finishNode(t,"MetaProperty")},s.parseImportMetaProperty=function(){var t=this.startNode(),e=this.parseIdentifier(!0);return this.expect(h.dot),"import"===e.name&&(this.isContextual("meta")?this.expectPlugin("importMeta"):this.hasPlugin("importMeta")||this.raise(e.start,"Dynamic imports require a parameter: import('a.js')")),this.inModule||this.raise(e.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(t,e,"meta")},s.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)},s.parseParenExpression=function(){this.expect(h.parenL);var t=this.parseExpression();return this.expect(h.parenR),t},s.parseParenAndDistinguishExpression=function(t){var e,s=this.state.start,i=this.state.startLoc;this.expect(h.parenL);var r=this.state.maybeInArrowParameters,a=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;for(var n,o,u=this.state.start,p=this.state.startLoc,c=[],l={start:0},d={start:0},f=!0;!this.match(h.parenR);){if(f)f=!1;else if(this.expect(h.comma,d.start||null),this.match(h.parenR)){o=this.state.start;break}if(this.match(h.ellipsis)){var m=this.state.start,y=this.state.startLoc;if(n=this.state.start,c.push(this.parseParenItem(this.parseRest(),m,y)),this.match(h.comma)){var D=this.lookahead().type===h.parenR?"A trailing comma is not permitted after the rest element":"Rest parameter must be last formal parameter";this.raise(this.state.start,D)}break}c.push(this.parseMaybeAssign(!1,l,this.parseParenItem,d))}var x=this.state.start,v=this.state.startLoc;this.expect(h.parenR),this.state.maybeInArrowParameters=r;var P=this.startNodeAt(s,i);if(t&&this.shouldParseArrow()&&(P=this.parseArrow(P))){for(var g=0;g1?((e=this.startNodeAt(u,p)).expressions=c,this.finishNodeAt(e,"SequenceExpression",x,v)):e=c[0],this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",s),e},s.shouldParseArrow=function(){return!this.canInsertSemicolon()},s.parseArrow=function(t){if(this.eat(h.arrow))return t},s.parseParenItem=function(t,e,s){return t},s.parseNew=function(){var t=this.startNode(),e=this.parseIdentifier(!0);if(this.eat(h.dot)){var s=this.parseMetaProperty(t,e,"target");if(!this.state.inFunction&&!this.state.inClassProperty){var i="new.target can only be used in functions";this.hasPlugin("classProperties")&&(i+=" or class properties"),this.raise(s.start,i)}return s}return t.callee=this.parseNoCallExpr(),"OptionalMemberExpression"!==t.callee.type&&"OptionalCallExpression"!==t.callee.type||this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"),this.eat(h.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(t),this.finishNode(t,"NewExpression")},s.parseNewArguments=function(t){if(this.eat(h.parenL)){var e=this.parseExprList(h.parenR);this.toReferencedList(e),t.arguments=e}else t.arguments=[]},s.parseTemplateElement=function(t){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(h.backQuote),this.finishNode(e,"TemplateElement")},s.parseTemplate=function(t){var e=this.startNode();this.next(),e.expressions=[];var s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)this.expect(h.dollarBraceL),e.expressions.push(this.parseExpression()),this.expect(h.braceR),e.quasis.push(s=this.parseTemplateElement(t));return this.next(),this.finishNode(e,"TemplateLiteral")},s.parseObj=function(t,e){var s=[],i=Object.create(null),r=!0,a=this.startNode();a.properties=[],this.next();for(var n=null;!this.eat(h.braceR);){if(r)r=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;if(this.match(h.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(h.at);)s.push(this.parseDecorator());var o=this.startNode(),u=!1,p=!1,c=void 0,l=void 0;if(s.length&&(o.decorators=s,s=[]),this.match(h.ellipsis)){if(o=this.parseSpread(t?{start:0}:void 0),t&&this.toAssignable(o,!0,"object pattern"),a.properties.push(o),!t)continue;var d=this.state.start;if(null!==n)this.unexpected(n,"Cannot have multiple rest elements when destructuring");else{if(this.eat(h.braceR))break;if(!this.match(h.comma)||this.lookahead().type!==h.braceR){n=d;continue}this.unexpected(d,"A trailing comma is not permitted after the rest element")}}o.method=!1,(t||e)&&(c=this.state.start,l=this.state.startLoc),t||(u=this.eat(h.star));var f=this.state.containsEsc;if(!t&&this.isContextual("async")){u&&this.unexpected();var m=this.parseIdentifier();this.match(h.colon)||this.match(h.parenL)||this.match(h.braceR)||this.match(h.eq)||this.match(h.comma)?(o.key=m,o.computed=!1):(p=!0,u=this.eat(h.star),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,c,l,u,p,t,e,f),this.checkPropClash(o,i),o.shorthand&&this.addExtra(o,"shorthand",!0),a.properties.push(o)}return null!==n&&this.unexpected(n,"The rest element has to be the last element when destructuring"),s.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(a,t?"ObjectPattern":"ObjectExpression")},s.isGetterOrSetterMethod=function(t,e){return!e&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&(this.match(h.string)||this.match(h.num)||this.match(h.bracketL)||this.match(h.name)||!!this.state.type.keyword)},s.checkGetterSetterParams=function(t){var e="get"===t.kind?0:1,s=t.start;t.params.length!==e&&("get"===t.kind?this.raise(s,"getter must not have any formal parameters"):this.raise(s,"setter must have exactly one formal parameter")),"set"===t.kind&&"RestElement"===t.params[0].type&&this.raise(s,"setter function argument must not be a rest parameter")},s.parseObjectMethod=function(t,e,s,i,r){return s||e||this.match(h.parenL)?(i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,"ObjectMethod")):!r&&this.isGetterOrSetterMethod(t,i)?((e||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),this.parseMethod(t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t):void 0},s.parseObjectProperty=function(t,e,s,i,r){return t.shorthand=!1,this.eat(h.colon)?(t.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,r),this.finishNode(t,"ObjectProperty")):t.computed||"Identifier"!==t.key.type?void 0:(this.checkReservedWord(t.key.name,t.key.start,!0,!0),i?t.value=this.parseMaybeDefault(e,s,t.key.__clone()):this.match(h.eq)&&r?(r.start||(r.start=this.state.start),t.value=this.parseMaybeDefault(e,s,t.key.__clone())):t.value=t.key.__clone(),t.shorthand=!0,this.finishNode(t,"ObjectProperty"))},s.parseObjPropValue=function(t,e,s,i,r,a,n,o){var h=this.parseObjectMethod(t,i,r,a,o)||this.parseObjectProperty(t,e,s,a,n);return h||this.unexpected(),h},s.parsePropertyName=function(t){if(this.eat(h.bracketL))t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(h.bracketR);else{var e=this.state.inPropertyName;this.state.inPropertyName=!0,t.key=this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==t.key.type&&(t.computed=!1),this.state.inPropertyName=e}return t.key},s.initFunction=function(t,e){t.id=null,t.generator=!1,t.async=!!e},s.parseMethod=function(t,e,s,i,r){var a=this.state.inFunction,n=this.state.inMethod,o=this.state.inAsync,h=this.state.inGenerator;this.state.inFunction=!0,this.state.inMethod=t.kind||!0,this.state.inAsync=s,this.state.inGenerator=e,this.initFunction(t,s),t.generator=!!e;var u=i;return this.parseFunctionParams(t,u),this.parseFunctionBodyAndFinish(t,r),this.state.inFunction=a,this.state.inMethod=n,this.state.inAsync=o,this.state.inGenerator=h,t},s.parseArrowExpression=function(t,e,s){var i=this.state.yieldOrAwaitInPossibleArrowParameters;i&&("YieldExpression"===i.type?this.raise(i.start,"yield is not allowed in the parameters of an arrow function inside a generator"):this.raise(i.start,"await is not allowed in the parameters of an arrow function inside an async function"));var r=this.state.inFunction;this.state.inFunction=!0,this.initFunction(t,s),e&&this.setArrowFunctionParameters(t,e);var a=this.state.inAsync,n=this.state.inGenerator,o=this.state.maybeInArrowParameters;return this.state.inAsync=s,this.state.inGenerator=!1,this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.state.inAsync=a,this.state.inGenerator=n,this.state.inFunction=r,this.state.maybeInArrowParameters=o,this.finishNode(t,"ArrowFunctionExpression")},s.setArrowFunctionParameters=function(t,e){t.params=this.toAssignableList(e,!0,"arrow function parameters")},s.isStrictBody=function(t){if("BlockStatement"===t.body.type&&t.body.directives.length)for(var e=0,s=t.body.directives;e" after pipeline body; arrow function in pipeline body must be parenthesized');if("PipelineTopicExpression"===e&&"SequenceExpression"===t.type)throw this.raise(s,"Pipeline body may not be a comma-separated sequence expression")},s.parseSmartPipelineBodyInStyle=function(t,e,s,i){var r=this.startNodeAt(s,i);switch(e){case"PipelineBareFunction":r.callee=t;break;case"PipelineBareConstructor":r.callee=t.callee;break;case"PipelineBareAwaitedFunction":r.callee=t.argument;break;case"PipelineTopicExpression":if(!this.topicReferenceWasUsedInCurrentTopicContext())throw this.raise(s,"Pipeline is in topic style but does not use topic reference");r.expression=t;break;default:throw this.raise(s,"Unknown pipeline style "+e)}return this.finishNode(r,e)},s.checkSmartPipelineBodyStyle=function(t){return t.type,this.isSimpleReference(t)?"PipelineBareFunction":"PipelineTopicExpression"},s.isSimpleReference=function(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}},s.withTopicPermittingContext=function(t){var e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}},s.withTopicForbiddingContext=function(t){var e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}},s.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},s.primaryTopicReferenceIsAllowedInCurrentTopicContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},s.topicReferenceWasUsedInCurrentTopicContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},e}(function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.toAssignable=function(t,e,s){if(t)switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var i=0;i0)for(var e=0,s=t.body.body;e=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?60===s&&this.state.exprAllowed?(++this.state.pos,this.finishToken(h.jsxTagStart)):this.getTokenFromCode(s):(t+=this.input.slice(e,this.state.pos),this.finishToken(h.jsxText,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:d(s)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}},s.jsxReadNewLine=function(t){var e,s=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===s&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,e},s.jsxReadString=function(t){for(var e="",s=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===t)break;38===i?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos):d(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}return e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)},s.jsxReadEntity=function(){for(var t,e="",s=0,i=this.input[this.state.pos],r=++this.state.pos;this.state.pos"):!_(r)&&_(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <"+j(r.name)+">"):_(r)||_(a)||j(a.name)!==j(r.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+j(r.name)+">")}return _(r)?(s.openingFragment=r,s.closingFragment=a):(s.openingElement=r,s.closingElement=a),s.children=i,this.match(h.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"),_(r)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")},s.jsxParseElement=function(){var t=this.state.start,e=this.state.startLoc;return this.next(),this.jsxParseElementAt(t,e)},s.parseExprAtom=function(e){return this.match(h.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(h.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.state.input.charCodeAt(this.state.pos)?(this.finishToken(h.jsxTagStart),this.jsxParseElement()):t.prototype.parseExprAtom.call(this,e)},s.readToken=function(e){if(this.state.inPropertyName)return t.prototype.readToken.call(this,e);var s=this.curContext();if(s===D.j_expr)return this.jsxReadToken();if(s===D.j_oTag||s===D.j_cTag){if(N(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(h.jsxTagEnd);if((34===e||39===e)&&s===D.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.state.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(h.jsxTagStart)):t.prototype.readToken.call(this,e)},s.updateContext=function(e){if(this.match(h.braceL)){var s=this.curContext();s===D.j_oTag?this.state.context.push(D.braceExpression):s===D.j_expr?this.state.context.push(D.templateQuasi):t.prototype.updateContext.call(this,e),this.state.exprAllowed=!0}else{if(!this.match(h.slash)||e!==h.jsxTagStart)return t.prototype.updateContext.call(this,e);this.state.context.length-=2,this.state.context.push(D.j_cTag),this.state.exprAllowed=!1}},e}(t)},flow:function(t){return function(t){function e(e,s){var i;return(i=t.call(this,e,s)||this).flowPragma=void 0,i}i(e,t);var s=e.prototype;return s.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},s.addComment=function(e){if(void 0===this.flowPragma){var s=O.exec(e.value);if(s)if("flow"===s[1])this.flowPragma="flow";else{if("noflow"!==s[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else this.flowPragma=null}return t.prototype.addComment.call(this,e)},s.flowParseTypeInitialiser=function(t){var e=this.state.inType;this.state.inType=!0,this.expect(t||h.colon);var s=this.flowParseType();return this.state.inType=e,s},s.flowParsePredicate=function(){var t=this.startNode(),e=this.state.startLoc,s=this.state.start;this.expect(h.modulo);var i=this.state.startLoc;return this.expectContextual("checks"),e.line===i.line&&e.column===i.column-1||this.raise(s,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(h.parenL)?(t.value=this.parseExpression(),this.expect(h.parenR),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},s.flowParseTypeAndPredicateInitialiser=function(){var t=this.state.inType;this.state.inType=!0,this.expect(h.colon);var e=null,s=null;return this.match(h.modulo)?(this.state.inType=t,s=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(h.modulo)&&(s=this.flowParsePredicate())),[e,s]},s.flowParseDeclareClass=function(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")},s.flowParseDeclareFunction=function(t){this.next();var e=t.id=this.parseIdentifier(),s=this.startNode(),i=this.startNode();this.isRelational("<")?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(h.parenL);var r=this.flowParseFunctionTypeParams();s.params=r.params,s.rest=r.rest,this.expect(h.parenR);var a=this.flowParseTypeAndPredicateInitialiser();return s.returnType=a[0],t.predicate=a[1],i.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.finishNode(e,e.type),this.semicolon(),this.finishNode(t,"DeclareFunction")},s.flowParseDeclare=function(t,e){if(this.match(h._class))return this.flowParseDeclareClass(t);if(this.match(h._function))return this.flowParseDeclareFunction(t);if(this.match(h._var))return this.flowParseDeclareVariable(t);if(this.isContextual("module"))return this.lookahead().type===h.dot?this.flowParseDeclareModuleExports(t):(e&&this.unexpected(null,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(t));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(t);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(t);if(this.isContextual("interface"))return this.flowParseDeclareInterface(t);if(this.match(h._export))return this.flowParseDeclareExportDeclaration(t,e);throw this.unexpected()},s.flowParseDeclareVariable=function(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(t,"DeclareVariable")},s.flowParseDeclareModule=function(t){var e=this;this.next(),this.match(h.string)?t.id=this.parseExprAtom():t.id=this.parseIdentifier();var s=t.body=this.startNode(),i=s.body=[];for(this.expect(h.braceL);!this.match(h.braceR);){var r=this.startNode();if(this.match(h._import)){var a=this.lookahead();"type"!==a.value&&"typeof"!==a.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.next(),this.parseImport(r)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),r=this.flowParseDeclare(r,!0);i.push(r)}this.expect(h.braceR),this.finishNode(s,"BlockStatement");var n=null,o=!1,u="Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return i.forEach(function(t){!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(o&&e.unexpected(t.start,"Duplicate `declare module.exports` statement"),"ES"===n&&e.unexpected(t.start,u),n="CommonJS",o=!0):("CommonJS"===n&&e.unexpected(t.start,u),n="ES")}),t.kind=n||"CommonJS",this.finishNode(t,"DeclareModule")},s.flowParseDeclareExportDeclaration=function(t,e){if(this.expect(h._export),this.eat(h._default))return this.match(h._function)||this.match(h._class)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h._const)||this.match(h._let)||(this.isContextual("type")||this.isContextual("interface"))&&!e){var s=this.state.value,i=L[s];this.unexpected(this.state.start,"`declare export "+s+"` is not supported. Use `"+i+"` instead")}if(this.match(h._var)||this.match(h._function)||this.match(h._class)||this.isContextual("opaque"))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h.star)||this.match(h.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))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()},s.flowParseDeclareModuleExports=function(t){return this.expectContextual("module"),this.expect(h.dot),this.expectContextual("exports"),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")},s.flowParseDeclareTypeAlias=function(t){return this.next(),this.flowParseTypeAlias(t),this.finishNode(t,"DeclareTypeAlias")},s.flowParseDeclareOpaqueType=function(t){return this.next(),this.flowParseOpaqueType(t,!0),this.finishNode(t,"DeclareOpaqueType")},s.flowParseDeclareInterface=function(t){return this.next(),this.flowParseInterfaceish(t),this.finishNode(t,"DeclareInterface")},s.flowParseInterfaceish=function(t,e){if(void 0===e&&(e=!1),t.id=this.flowParseRestrictedIdentifier(!e),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],t.implements=[],t.mixins=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(h.comma));if(this.isContextual("mixins")){this.next();do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}if(this.isContextual("implements")){this.next();do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})},s.flowParseInterfaceExtends=function(){var t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")},s.flowParseInterface=function(t){return this.flowParseInterfaceish(t),this.finishNode(t,"InterfaceDeclaration")},s.checkNotUnderscore=function(t){if("_"===t)throw this.unexpected(null,"`_` is only allowed as a type argument to call or new")},s.checkReservedType=function(t,e){F.indexOf(t)>-1&&this.raise(e,"Cannot overwrite reserved type "+t)},s.flowParseRestrictedIdentifier=function(t){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(t)},s.flowParseTypeAlias=function(t){return t.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(h.eq),this.semicolon(),this.finishNode(t,"TypeAlias")},s.flowParseOpaqueType=function(t,e){return this.expectContextual("type"),t.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(h.colon)&&(t.supertype=this.flowParseTypeInitialiser(h.colon)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(h.eq)),this.semicolon(),this.finishNode(t,"OpaqueType")},s.flowParseTypeParameter=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!1),!t&&e)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");var s=this.state.start,i=this.startNode(),r=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=r,i.bound=a.typeAnnotation,this.match(h.eq)?t?(this.eat(h.eq),i.default=this.flowParseType()):this.unexpected():e&&this.unexpected(s,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(i,"TypeParameter")},s.flowParseTypeParameterDeclaration=function(t){void 0===t&&(t=!0);var e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected();var i=!1;do{var r=this.flowParseTypeParameter(t,i);s.params.push(r),r.default&&(i=!0),this.isRelational(">")||this.expect(h.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")},s.flowParseTypeParameterInstantiation=function(){var t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expectRelational("<");var s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)t.params.push(this.flowParseType()),this.isRelational(">")||this.expect(h.comma);return this.state.noAnonFunctionType=s,this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")},s.flowParseTypeParameterInstantiationCallOrNew=function(){var t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(h.comma);return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")},s.flowParseInterfaceType=function(){var t=this.startNode();if(this.expectContextual("interface"),t.extends=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")},s.flowParseObjectPropertyKey=function(){return this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0)},s.flowParseObjectTypeIndexer=function(t,e,s){return t.static=e,this.lookahead().type===h.colon?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(h.bracketR),t.value=this.flowParseTypeInitialiser(),t.variance=s,this.finishNode(t,"ObjectTypeIndexer")},s.flowParseObjectTypeInternalSlot=function(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(h.bracketR),this.expect(h.bracketR),this.isRelational("<")||this.match(h.parenL)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start))):(t.method=!1,this.eat(h.question)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")},s.flowParseObjectTypeMethodish=function(t){for(t.params=[],t.rest=null,t.typeParameters=null,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(h.parenL);!this.match(h.parenR)&&!this.match(h.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(h.parenR)||this.expect(h.comma);return this.eat(h.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),this.expect(h.parenR),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")},s.flowParseObjectTypeCallProperty=function(t,e){var s=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(s),this.finishNode(t,"ObjectTypeCallProperty")},s.flowParseObjectType=function(t){var e=t.allowStatic,s=t.allowExact,i=t.allowSpread,r=t.allowProto,a=t.allowInexact,n=this.state.inType;this.state.inType=!0;var o,u,p=this.startNode();p.callProperties=[],p.properties=[],p.indexers=[],p.internalSlots=[];var c=!1;for(s&&this.match(h.braceBarL)?(this.expect(h.braceBarL),o=h.braceBarR,u=!0):(this.expect(h.braceL),o=h.braceR,u=!1),p.exact=u;!this.match(o);){var l=!1,d=null,f=this.startNode();if(r&&this.isContextual("proto")){var m=this.lookahead();m.type!==h.colon&&m.type!==h.question&&(this.next(),d=this.state.start,e=!1)}if(e&&this.isContextual("static")){var y=this.lookahead();y.type!==h.colon&&y.type!==h.question&&(this.next(),l=!0)}var D=this.flowParseVariance();if(this.eat(h.bracketL))null!=d&&this.unexpected(d),this.eat(h.bracketL)?(D&&this.unexpected(D.start),p.internalSlots.push(this.flowParseObjectTypeInternalSlot(f,l))):p.indexers.push(this.flowParseObjectTypeIndexer(f,l,D));else if(this.match(h.parenL)||this.isRelational("<"))null!=d&&this.unexpected(d),D&&this.unexpected(D.start),p.callProperties.push(this.flowParseObjectTypeCallProperty(f,l));else{var x="init";if(this.isContextual("get")||this.isContextual("set")){var v=this.lookahead();v.type!==h.name&&v.type!==h.string&&v.type!==h.num||(x=this.state.value,this.next())}var P=this.flowParseObjectTypeProperty(f,l,d,D,x,i,a);null===P?c=!0:p.properties.push(P)}this.flowObjectTypeSemicolon()}this.expect(o),i&&(p.inexact=c);var g=this.finishNode(p,"ObjectTypeAnnotation");return this.state.inType=n,g},s.flowParseObjectTypeProperty=function(t,e,s,i,r,a,n){if(this.match(h.ellipsis)){a||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),null!=s&&this.unexpected(s),i&&this.unexpected(i.start,"Spread properties cannot have variance"),this.expect(h.ellipsis);var o=this.eat(h.comma)||this.eat(h.semi);if(this.match(h.braceR)){if(n)return null;this.unexpected(null,"Explicit inexact syntax is only allowed inside inexact objects")}return this.match(h.braceBarR)&&this.unexpected(null,"Explicit inexact syntax cannot appear inside an explicit exact object type"),o&&this.unexpected(null,"Explicit inexact syntax must appear at the end of an inexact object"),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty")}t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=s,t.kind=r;var u=!1;return this.isRelational("<")||this.match(h.parenL)?(t.method=!0,null!=s&&this.unexpected(s),i&&this.unexpected(i.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start)),"get"!==r&&"set"!==r||this.flowCheckGetterSetterParams(t)):("init"!==r&&this.unexpected(),t.method=!1,this.eat(h.question)&&(u=!0),t.value=this.flowParseTypeInitialiser(),t.variance=i),t.optional=u,this.finishNode(t,"ObjectTypeProperty")},s.flowCheckGetterSetterParams=function(t){var e="get"===t.kind?0:1,s=t.start;t.value.params.length+(t.value.rest?1:0)!==e&&("get"===t.kind?this.raise(s,"getter must not have any formal parameters"):this.raise(s,"setter must have exactly one formal parameter")),"set"===t.kind&&t.value.rest&&this.raise(s,"setter function argument must not be a rest parameter")},s.flowObjectTypeSemicolon=function(){this.eat(h.semi)||this.eat(h.comma)||this.match(h.braceR)||this.match(h.braceBarR)||this.unexpected()},s.flowParseQualifiedTypeIdentifier=function(t,e,s){t=t||this.state.start,e=e||this.state.startLoc;for(var i=s||this.parseIdentifier();this.eat(h.dot);){var r=this.startNodeAt(t,e);r.qualification=i,r.id=this.parseIdentifier(),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i},s.flowParseGenericType=function(t,e,s){var i=this.startNodeAt(t,e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(t,e,s),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")},s.flowParseTypeofType=function(){var t=this.startNode();return this.expect(h._typeof),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")},s.flowParseTupleType=function(){var t=this.startNode();for(t.types=[],this.expect(h.bracketL);this.state.pos0){var x=p.concat();if(D.length>0){this.state=u,this.state.noArrowAt=x;for(var v=0;v1&&this.raise(u.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),f&&1===y.length){this.state=u,this.state.noArrowAt=x.concat(y[0].start);var b=this.tryParseConditionalConsequent();d=b.consequent,f=b.failed}this.getArrowLikeExpressions(d,!0)}return this.state.noArrowAt=p,this.expect(h.colon),c.test=e,c.consequent=d,c.alternate=this.forwardNoArrowParamsConversionAt(c,function(){return n.parseMaybeAssign(s,void 0,void 0,void 0)}),this.finishNode(c,"ConditionalExpression")},s.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var t=this.parseMaybeAssign(),e=!this.match(h.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}},s.getArrowLikeExpressions=function(e,s){for(var i=this,r=[e],a=[];0!==r.length;){var n=r.pop();"ArrowFunctionExpression"===n.type?(n.typeParameters||!n.returnType?(this.toAssignableList(n.params,!0,"arrow function parameters"),t.prototype.checkFunctionNameAndParams.call(this,n,!0)):a.push(n),r.push(n.body)):"ConditionalExpression"===n.type&&(r.push(n.consequent),r.push(n.alternate))}if(s){for(var o=0;o1)&&e||this.raise(i.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return t},s.checkLVal=function(e,s,i,r){if("TypeCastExpression"!==e.type)return t.prototype.checkLVal.call(this,e,s,i,r)},s.parseClassProperty=function(e){return this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),t.prototype.parseClassProperty.call(this,e)},s.parseClassPrivateProperty=function(e){return this.match(h.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),t.prototype.parseClassPrivateProperty.call(this,e)},s.isClassMethod=function(){return this.isRelational("<")||t.prototype.isClassMethod.call(this)},s.isClassProperty=function(){return this.match(h.colon)||t.prototype.isClassProperty.call(this)},s.isNonstaticConstructor=function(e){return!this.match(h.colon)&&t.prototype.isNonstaticConstructor.call(this,e)},s.pushClassMethod=function(e,s,i,r,a){s.variance&&this.unexpected(s.variance.start),delete s.variance,this.isRelational("<")&&(s.typeParameters=this.flowParseTypeParameterDeclaration(!1)),t.prototype.pushClassMethod.call(this,e,s,i,r,a)},s.pushClassPrivateMethod=function(e,s,i,r){s.variance&&this.unexpected(s.variance.start),delete s.variance,this.isRelational("<")&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),t.prototype.pushClassPrivateMethod.call(this,e,s,i,r)},s.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.flowParseRestrictedIdentifier(!0),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(h.comma))}},s.parsePropertyName=function(e){var s=this.flowParseVariance(),i=t.prototype.parsePropertyName.call(this,e);return e.variance=s,i},s.parseObjPropValue=function(e,s,i,r,a,n,o,u){var p;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(p=this.flowParseTypeParameterDeclaration(!1),this.match(h.parenL)||this.unexpected()),t.prototype.parseObjPropValue.call(this,e,s,i,r,a,n,o,u),p&&((e.value||e).typeParameters=p)},s.parseAssignableListItemTypes=function(t){if(this.eat(h.question)){if("Identifier"!==t.type)throw this.raise(t.start,"A binding pattern parameter cannot be optional in an implementation signature.");t.optional=!0}return this.match(h.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),this.finishNode(t,t.type),t},s.parseMaybeDefault=function(e,s,i){var r=t.prototype.parseMaybeDefault.call(this,e,s,i);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start")}throw new Error("Unreachable")},s.tsParseList=function(t,e){for(var s=[];!this.tsIsListTerminator(t);)s.push(e());return s},s.tsParseDelimitedList=function(t,e){return st(this.tsParseDelimitedListWorker(t,e,!0))},s.tsTryParseDelimitedList=function(t,e){return this.tsParseDelimitedListWorker(t,e,!1)},s.tsParseDelimitedListWorker=function(t,e,s){for(var i=[];!this.tsIsListTerminator(t);){var r=e();if(null==r)return;if(i.push(r),!this.eat(h.comma)){if(this.tsIsListTerminator(t))break;return void(s&&this.expect(h.comma))}}return i},s.tsParseBracketedList=function(t,e,s,i){i||(s?this.expect(h.bracketL):this.expectRelational("<"));var r=this.tsParseDelimitedList(t,e);return s?this.expect(h.bracketR):this.expectRelational(">"),r},s.tsParseEntityName=function(t){for(var e=this.parseIdentifier();this.eat(h.dot);){var s=this.startNodeAtNode(e);s.left=e,s.right=this.parseIdentifier(t),e=this.finishNode(s,"TSQualifiedName")}return e},s.tsParseTypeReference=function(){var t=this.startNode();return t.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")},s.tsParseThisTypePredicate=function(t){this.next();var e=this.startNode();return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(e,"TSTypePredicate")},s.tsParseThisTypeNode=function(){var t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")},s.tsParseTypeQuery=function(){var t=this.startNode();return this.expect(h._typeof),t.exprName=this.tsParseEntityName(!0),this.finishNode(t,"TSTypeQuery")},s.tsParseTypeParameter=function(){var t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsEatThenParseType(h._extends),t.default=this.tsEatThenParseType(h.eq),this.finishNode(t,"TSTypeParameter")},s.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},s.tsParseTypeParameters=function(){var t=this.startNode();return this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected(),t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(t,"TSTypeParameterDeclaration")},s.tsFillSignature=function(t,e){var s=t===h.arrow;e.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),e.parameters=this.tsParseBindingListForSignature(),s?e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))},s.tsParseBindingListForSignature=function(){var t=this;return this.parseBindingList(h.parenR).map(function(e){if("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type)throw t.unexpected(e.start,"Name in a signature must be an Identifier or ObjectPattern, instead got "+e.type);return e})},s.tsParseTypeMemberSemicolon=function(){this.eat(h.comma)||this.semicolon()},s.tsParseSignatureMember=function(t){var e=this.startNode();return"TSConstructSignatureDeclaration"===t&&this.expect(h._new),this.tsFillSignature(h.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)},s.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(h.name)&&this.match(h.colon)},s.tsTryParseIndexSignature=function(t){if(this.match(h.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(h.bracketL);var e=this.parseIdentifier();this.expect(h.colon),e.typeAnnotation=this.tsParseTypeAnnotation(!1),this.expect(h.bracketR),t.parameters=[e];var s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}},s.tsParsePropertyOrMethodSignature=function(t,e){this.parsePropertyName(t),this.eat(h.question)&&(t.optional=!0);var s=t;if(e||!this.match(h.parenL)&&!this.isRelational("<")){var i=s;e&&(i.readonly=!0);var r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}var a=s;return this.tsFillSignature(h.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSMethodSignature")},s.tsParseTypeMember=function(){if(this.match(h.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration");if(this.match(h._new)&&this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this)))return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var t=this.startNode(),e=!!this.tsParseModifier(["readonly"]),s=this.tsTryParseIndexSignature(t);return s?(e&&(t.readonly=!0),s):this.tsParsePropertyOrMethodSignature(t,e)},s.tsIsStartOfConstructSignature=function(){return this.next(),this.match(h.parenL)||this.isRelational("<")},s.tsParseTypeLiteral=function(){var t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")},s.tsParseObjectTypeMembers=function(){this.expect(h.braceL);var t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),t},s.tsIsStartOfMappedType=function(){return this.next(),this.eat(h.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(h.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(h._in))))},s.tsParseMappedTypeParameter=function(){var t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsExpectThenParseType(h._in),this.finishNode(t,"TSTypeParameter")},s.tsParseMappedType=function(){var t=this.startNode();return this.expect(h.braceL),this.match(h.plusMin)?(t.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(t.readonly=!0),this.expect(h.bracketL),t.typeParameter=this.tsParseMappedTypeParameter(),this.expect(h.bracketR),this.match(h.plusMin)?(t.optional=this.state.value,this.next(),this.expect(h.question)):this.eat(h.question)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(t,"TSMappedType")},s.tsParseTupleType=function(){var t=this,e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var s=!1;return e.elementTypes.forEach(function(i,r){"TSRestType"===i.type?r!==e.elementTypes.length-1&&t.raise(i.start,"A rest element must be last in a tuple type."):"TSOptionalType"===i.type?s=!0:s&&t.raise(i.start,"A required element cannot follow an optional element.")}),this.finishNode(e,"TSTupleType")},s.tsParseTupleElementType=function(){if(this.match(h.ellipsis)){var t=this.startNode();return this.next(),t.typeAnnotation=this.tsParseType(),this.finishNode(t,"TSRestType")}var e=this.tsParseType();if(this.eat(h.question)){var s=this.startNodeAtNode(e);return s.typeAnnotation=e,this.finishNode(s,"TSOptionalType")}return e},s.tsParseParenthesizedType=function(){var t=this.startNode();return this.expect(h.parenL),t.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(t,"TSParenthesizedType")},s.tsParseFunctionOrConstructorType=function(t){var e=this.startNode();return"TSConstructorType"===t&&this.expect(h._new),this.tsFillSignature(h.arrow,e),this.finishNode(e,t)},s.tsParseLiteralTypeNode=function(){var t=this,e=this.startNode();return e.literal=function(){switch(t.state.type){case h.num:return t.parseLiteral(t.state.value,"NumericLiteral");case h.string:return t.parseLiteral(t.state.value,"StringLiteral");case h._true:case h._false:return t.parseBooleanLiteral();default:throw t.unexpected()}}(),this.finishNode(e,"TSLiteralType")},s.tsParseNonArrayType=function(){switch(this.state.type){case h.name:case h._void:case h._null:var t=this.match(h._void)?"TSVoidKeyword":this.match(h._null)?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&this.lookahead().type!==h.dot){var e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference();case h.string:case h.num:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if("-"===this.state.value){var s=this.startNode();if(this.next(),!this.match(h.num))throw this.unexpected();return s.literal=this.parseLiteral(-this.state.value,"NumericLiteral",s.start,s.loc.start),this.finishNode(s,"TSLiteralType")}break;case h._this:var i=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i;case h._typeof:return this.tsParseTypeQuery();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType()}throw this.unexpected()},s.tsParseArrayTypeOrHigher=function(){for(var t=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(h.bracketL);)if(this.match(h.bracketR)){var e=this.startNodeAtNode(t);e.elementType=t,this.expect(h.bracketR),t=this.finishNode(e,"TSArrayType")}else{var s=this.startNodeAtNode(t);s.objectType=t,s.indexType=this.tsParseType(),this.expect(h.bracketR),t=this.finishNode(s,"TSIndexedAccessType")}return t},s.tsParseTypeOperator=function(t){var e=this.startNode();return this.expectContextual(t),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),this.finishNode(e,"TSTypeOperator")},s.tsParseInferType=function(){var t=this.startNode();this.expectContextual("infer");var e=this.startNode();return e.name=this.parseIdentifierName(e.start),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")},s.tsParseTypeOperatorOrHigher=function(){var t=this,e=["keyof","unique"].find(function(e){return t.isContextual(e)});return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},s.tsParseUnionOrIntersectionType=function(t,e,s){this.eat(s);var i=e();if(this.match(s)){for(var r=[i];this.eat(s);)r.push(e());var a=this.startNodeAtNode(i);a.types=r,i=this.finishNode(a,t)}return i},s.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)},s.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)},s.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},s.tsSkipParameterStart=function(){if(this.match(h.name)||this.match(h._this))return this.next(),!0;if(this.match(h.braceL)){var t=1;for(this.next();t>0;)this.match(h.braceL)?++t:this.match(h.braceR)&&--t,this.next();return!0}return!1},s.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)&&(this.next(),this.match(h.arrow)))return!0}return!1},s.tsParseTypeOrTypePredicateAnnotation=function(t){var e=this;return this.tsInType(function(){var s=e.startNode();e.expect(t);var i=e.tsIsIdentifier()&&e.tsTryParse(e.tsParseTypePredicatePrefix.bind(e));if(!i)return e.tsParseTypeAnnotation(!1,s);var r=e.tsParseTypeAnnotation(!1),a=e.startNodeAtNode(i);return a.parameterName=i,a.typeAnnotation=r,s.typeAnnotation=e.finishNode(a,"TSTypePredicate"),e.finishNode(s,"TSTypeAnnotation")})},s.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0},s.tsTryParseTypeAnnotation=function(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0},s.tsTryParseType=function(){return this.tsEatThenParseType(h.colon)},s.tsParseTypePredicatePrefix=function(){var t=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),t},s.tsParseTypeAnnotation=function(t,e){var s=this;return void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),this.tsInType(function(){t&&s.expect(h.colon),e.typeAnnotation=s.tsParseType()}),this.finishNode(e,"TSTypeAnnotation")},s.tsParseType=function(){it(this.state.inType);var t=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(h._extends))return t;var e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsParseNonConditionalType(),this.expect(h.question),e.trueType=this.tsParseType(),this.expect(h.colon),e.falseType=this.tsParseType(),this.finishNode(e,"TSConditionalType")},s.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(h._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()},s.tsParseTypeAssertion=function(){var t=this,e=this.startNode();return e.typeAnnotation=this.tsInType(function(){return t.tsParseType()}),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")},s.tsParseHeritageClause=function(){return this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this))},s.tsParseExpressionWithTypeArguments=function(){var t=this.startNode();return t.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")},s.tsParseInterfaceDeclaration=function(t){t.id=this.parseIdentifier(),t.typeParameters=this.tsTryParseTypeParameters(),this.eat(h._extends)&&(t.extends=this.tsParseHeritageClause());var e=this.startNode();return e.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(e,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")},s.tsParseTypeAliasDeclaration=function(t){return t.id=this.parseIdentifier(),t.typeParameters=this.tsTryParseTypeParameters(),t.typeAnnotation=this.tsExpectThenParseType(h.eq),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")},s.tsInNoContext=function(t){var e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}},s.tsInType=function(t){var e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}},s.tsEatThenParseType=function(t){return this.match(t)?this.tsNextThenParseType():void 0},s.tsExpectThenParseType=function(t){var e=this;return this.tsDoThenParseType(function(){return e.expect(t)})},s.tsNextThenParseType=function(){var t=this;return this.tsDoThenParseType(function(){return t.next()})},s.tsDoThenParseType=function(t){var e=this;return this.tsInType(function(){return t(),e.tsParseType()})},s.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(h.string)?this.parseLiteral(this.state.value,"StringLiteral"):this.parseIdentifier(!0),this.eat(h.eq)&&(t.initializer=this.parseMaybeAssign()),this.finishNode(t,"TSEnumMember")},s.tsParseEnumDeclaration=function(t,e){return e&&(t.const=!0),t.id=this.parseIdentifier(),this.expect(h.braceL),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(t,"TSEnumDeclaration")},s.tsParseModuleBlock=function(){var t=this.startNode();return this.expect(h.braceL),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,h.braceR),this.finishNode(t,"TSModuleBlock")},s.tsParseModuleOrNamespaceDeclaration=function(t){if(t.id=this.parseIdentifier(),this.eat(h.dot)){var e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e),t.body=e}else t.body=this.tsParseModuleBlock();return this.finishNode(t,"TSModuleDeclaration")},s.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual("global")?(t.global=!0,t.id=this.parseIdentifier()):this.match(h.string)?t.id=this.parseExprAtom():this.unexpected(),this.match(h.braceL)?t.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},s.tsParseImportEqualsDeclaration=function(t,e){return t.isExport=e||!1,t.id=this.parseIdentifier(),this.expect(h.eq),t.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")},s.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookahead().type===h.parenL},s.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},s.tsParseExternalModuleReference=function(){var t=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))throw this.unexpected();return t.expression=this.parseLiteral(this.state.value,"StringLiteral"),this.expect(h.parenR),this.finishNode(t,"TSExternalModuleReference")},s.tsLookAhead=function(t){var e=this.state.clone(),s=t();return this.state=e,s},s.tsTryParseAndCatch=function(t){var e=this.state.clone();try{return t()}catch(t){if(t instanceof SyntaxError)return void(this.state=e);throw t}},s.tsTryParse=function(t){var e=this.state.clone(),s=t();return void 0!==s&&!1!==s?s:void(this.state=e)},s.nodeWithSamePosition=function(t,e){var s=this.startNodeAtNode(t);return s.type=e,s.end=t.end,s.loc.end=t.loc.end,t.leadingComments&&(s.leadingComments=t.leadingComments),t.trailingComments&&(s.trailingComments=t.trailingComments),t.innerComments&&(s.innerComments=t.innerComments),s},s.tsTryParseDeclare=function(t){switch(this.state.type){case h._function:return this.next(),this.parseFunction(t,!0);case h._class:return this.parseClass(t,!0,!1);case h._const:if(this.match(h._const)&&this.isLookaheadContextual("enum"))return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0);case h._var:case h._let:return this.parseVarStatement(t,this.state.type);case h.name:var e=this.state.value;return"global"===e?this.tsParseAmbientExternalModuleDeclaration(t):this.tsParseDeclaration(t,e,!0)}},s.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},s.tsParseExpressionStatement=function(t,e){switch(e.name){case"declare":var s=this.tsTryParseDeclare(t);if(s)return s.declare=!0,s;break;case"global":if(this.match(h.braceL)){var i=t;return i.global=!0,i.id=e,i.body=this.tsParseModuleBlock(),this.finishNode(i,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1)}},s.tsParseDeclaration=function(t,e,s){switch(e){case"abstract":if(s||this.match(h._class)){var i=t;return i.abstract=!0,s&&this.next(),this.parseClass(i,!0,!1)}break;case"enum":if(s||this.match(h.name))return s&&this.next(),this.tsParseEnumDeclaration(t,!1);break;case"interface":if(s||this.match(h.name))return s&&this.next(),this.tsParseInterfaceDeclaration(t);break;case"module":if(s&&this.next(),this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(t);if(s||this.match(h.name))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"namespace":if(s||this.match(h.name))return s&&this.next(),this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(s||this.match(h.name))return s&&this.next(),this.tsParseTypeAliasDeclaration(t)}},s.tsTryParseGenericAsyncArrowFunction=function(e,s){var i=this,r=this.tsTryParseAndCatch(function(){var r=i.startNodeAt(e,s);return r.typeParameters=i.tsParseTypeParameters(),t.prototype.parseFunctionParams.call(i,r),r.returnType=i.tsTryParseTypeOrTypePredicateAnnotation(),i.expect(h.arrow),r});if(r){var a=this.state.inAsync,n=this.state.inGenerator;return this.state.inAsync=!0,this.state.inGenerator=!1,r.id=null,r.generator=!1,r.expression=!0,r.async=!0,this.parseFunctionBody(r,!0),this.state.inAsync=a,this.state.inGenerator=n,this.finishNode(r,"ArrowFunctionExpression")}},s.tsParseTypeArguments=function(){var t=this,e=this.startNode();return e.params=this.tsInType(function(){return t.tsInNoContext(function(){return t.expectRelational("<"),t.tsParseDelimitedList("TypeParametersOrArguments",t.tsParseType.bind(t))})}),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")},s.tsIsDeclarationStart=function(){if(this.match(h.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},s.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&t.prototype.isExportDefaultSpecifier.call(this)},s.parseAssignableListItem=function(t,e){var s,i=!1;t&&(s=this.parseAccessModifier(),i=!!this.tsParseModifier(["readonly"]));var r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);var a=this.parseMaybeDefault(r.start,r.loc.start,r);if(s||i){var n=this.startNodeAtNode(a);if(e.length&&(n.decorators=e),s&&(n.accessibility=s),i&&(n.readonly=i),"Identifier"!==a.type&&"AssignmentPattern"!==a.type)throw this.raise(n.start,"A parameter property may not be declared using a binding pattern.");return n.parameter=a,this.finishNode(n,"TSParameterProperty")}return e.length&&(r.decorators=e),a},s.parseFunctionBodyAndFinish=function(e,s,i){!i&&this.match(h.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon));var r="FunctionDeclaration"===s?"TSDeclareFunction":"ClassMethod"===s?"TSDeclareMethod":void 0;r&&!this.match(h.braceL)&&this.isLineTerminator()?this.finishNode(e,r):t.prototype.parseFunctionBodyAndFinish.call(this,e,s,i)},s.parseSubscript=function(e,s,i,r,a){var n=this;if(!this.hasPrecedingLineBreak()&&this.match(h.bang)){this.state.exprAllowed=!1,this.next();var o=this.startNodeAt(s,i);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}if(this.isRelational("<")){var u=this.tsTryParseAndCatch(function(){if(!r&&n.atPossibleAsync(e)){var t=n.tsTryParseGenericAsyncArrowFunction(s,i);if(t)return t}var o=n.startNodeAt(s,i);o.callee=e;var u=n.tsParseTypeArguments();if(u){if(!r&&n.eat(h.parenL))return o.arguments=n.parseCallExpressionArguments(h.parenR,!1),o.typeParameters=u,n.finishCallExpression(o);if(n.match(h.backQuote))return n.parseTaggedTemplateExpression(s,i,e,a,u)}n.unexpected()});if(u)return u}return t.prototype.parseSubscript.call(this,e,s,i,r,a)},s.parseNewArguments=function(e){var s=this;if(this.isRelational("<")){var i=this.tsTryParseAndCatch(function(){var t=s.tsParseTypeArguments();return s.match(h.parenL)||s.unexpected(),t});i&&(e.typeParameters=i)}t.prototype.parseNewArguments.call(this,e)},s.parseExprOp=function(e,s,i,r,a){if(st(h._in.binop)>r&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var n=this.startNodeAt(s,i);return n.expression=e,n.typeAnnotation=this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.parseExprOp(n,s,i,r,a)}return t.prototype.parseExprOp.call(this,e,s,i,r,a)},s.checkReservedWord=function(t,e,s,i){},s.checkDuplicateExports=function(){},s.parseImport=function(e){return this.match(h.name)&&this.lookahead().type===h.eq?this.tsParseImportEqualsDeclaration(e):t.prototype.parseImport.call(this,e)},s.parseExport=function(e){if(this.match(h._import))return this.expect(h._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(h.eq)){var s=e;return s.expression=this.parseExpression(),this.semicolon(),this.finishNode(s,"TSExportAssignment")}if(this.eatContextual("as")){var i=e;return this.expectContextual("namespace"),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}return t.prototype.parseExport.call(this,e)},s.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===h._class},s.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){var s=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(s)return s}return t.prototype.parseExportDefaultExpression.call(this)},s.parseStatementContent=function(e,s){if(this.state.type===h._const){var i=this.lookahead();if(i.type===h.name&&"enum"===i.value){var r=this.startNode();return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(r,!0)}}return t.prototype.parseStatementContent.call(this,e,s)},s.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},s.parseClassMember=function(e,s,i){var r=this.parseAccessModifier();r&&(s.accessibility=r),t.prototype.parseClassMember.call(this,e,s,i)},s.parseClassMemberWithIsStatic=function(e,s,i,r){var a=s,n=s,o=s,h=!1,u=!1;switch(this.tsParseModifier(["abstract","readonly"])){case"readonly":u=!0,h=!!this.tsParseModifier(["abstract"]);break;case"abstract":h=!0,u=!!this.tsParseModifier(["readonly"])}if(h&&(a.abstract=!0),u&&(o.readonly=!0),!h&&!r&&!a.accessibility){var p=this.tsTryParseIndexSignature(s);if(p)return void e.body.push(p)}if(u)return a.static=r,this.parseClassPropertyName(n),this.parsePostMemberNameModifiers(a),void this.pushClassProperty(e,n);t.prototype.parseClassMemberWithIsStatic.call(this,e,s,i,r)},s.parsePostMemberNameModifiers=function(t){this.eat(h.question)&&(t.optional=!0)},s.parseExpressionStatement=function(e,s){return("Identifier"===s.type?this.tsParseExpressionStatement(e,s):void 0)||t.prototype.parseExpressionStatement.call(this,e,s)},s.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||t.prototype.shouldParseExportDeclaration.call(this)},s.parseConditional=function(e,s,i,r,a){if(!a||!this.match(h.question))return t.prototype.parseConditional.call(this,e,s,i,r,a);var n=this.state.clone();try{return t.prototype.parseConditional.call(this,e,s,i,r)}catch(t){if(!(t instanceof SyntaxError))throw t;return this.state=n,a.start=t.pos||this.state.start,e}},s.parseParenItem=function(e,s,i){if(e=t.prototype.parseParenItem.call(this,e,s,i),this.eat(h.question)&&(e.optional=!0),this.match(h.colon)){var r=this.startNodeAt(s,i);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e},s.parseExportDeclaration=function(e){var s,i=this.eatContextual("declare");return this.match(h.name)&&(s=this.tsTryParseExportDeclaration()),s||(s=t.prototype.parseExportDeclaration.call(this,e)),s&&i&&(s.declare=!0),s},s.parseClassId=function(e,s,i){if(s&&!i||!this.isContextual("implements")){t.prototype.parseClassId.apply(this,arguments);var r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r)}},s.parseClassProperty=function(e){!e.optional&&this.eat(h.bang)&&(e.definite=!0);var s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),t.prototype.parseClassProperty.call(this,e)},s.pushClassMethod=function(e,s,i,r,a){var n=this.tsTryParseTypeParameters();n&&(s.typeParameters=n),t.prototype.pushClassMethod.call(this,e,s,i,r,a)},s.pushClassPrivateMethod=function(e,s,i,r){var a=this.tsTryParseTypeParameters();a&&(s.typeParameters=a),t.prototype.pushClassPrivateMethod.call(this,e,s,i,r)},s.parseClassSuper=function(e){t.prototype.parseClassSuper.call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause())},s.parseObjPropValue=function(e){var s,i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i);for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;nt.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),s={EOL:"\n"},c=Object.freeze({default:s}),u=c&&s||c,l=a(function(e,t){var r,n;function i(){return r=(e=o)&&e.__esModule?e:{default:e};var e}function a(){return n=u}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(l);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(l);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return g(e).pragmas},t.parseWithComments=g,t.print=function(e){var t=e.comments,o=void 0===t?"":t,s=e.pragmas,c=void 0===s?{}:s,u=(0,(r||i()).default)(o)||(n||a()).EOL,l=Object.keys(c),_=l.map(function(e){return y(e,c[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+u}).join("");if(!o){if(0===l.length)return"";if(1===l.length&&!Array.isArray(c[l[0]])){var d=c[l[0]];return"".concat("/**"," ").concat(y(l[0],d)[0]).concat(" */")}}var p=o.split(u).map(function(e){return"".concat(" *"," ").concat(e)}).join(u)+u;return"/**"+u+(o?p:"")+(o&&l.length?" *"+u:"")+_+" */"};var s=/\*\/$/,c=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_=/(^|\s+)\/\/([^\r\n]*)/g,d=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function g(e){var t=(0,(r||i()).default)(e)||(n||a()).EOL;e=e.replace(c,"").replace(s,"").replace(m,"$1");for(var o="";o!==e;)o=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(d,"").trimRight();for(var u,l=Object.create(null),g=e.replace(f,"").replace(d,"").trimRight();u=f.exec(e);){var y=u[2].replace(_,"");"string"==typeof l[u[1]]||Array.isArray(l[u[1]])?l[u[1]]=[].concat(l[u[1]],y):l[u[1]]=y}return{comments:g,pragmas:l}}function y(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});i(l);var _=function(e){var t=Object.keys(l.parse(l.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},d=function(e){return e.length>0?e[e.length-1]:null};var p={locStart:function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&d(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}}),h=a(function(e){e.exports=function(e){return!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))}}),v=a(function(e){var t=/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;e.exports=function(e){if("string"!=typeof(e=e.replace(t," "))||0===e.length)return 0;e=function(e){return"string"==typeof e?e.replace(y(),""):e}(e);for(var r=0,n=0;n=127&&i<=159||(i>=768&&i<=879||(i>65535&&n++,r+=h(i)?2:1))}return r}}),b=/[|\\{}()[\]^$+*?.]/g,D=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(b,"\\$&")},x=/[^\x20-\x7F]/;function S(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function T(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,o=r;o>=0&&o"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){L[e]=t})});var B={"==":!0,"!=":!0,"===":!0,"!==":!0},j={"*":!0,"/":!0,"%":!0},J={">>":!0,">>>":!0,"<<":!0};function z(e,t,r){for(var n=0,i=r=r||0;i(r.match(o.regex)||[]).length?o.quote:a.quote);return s}function U(e,t,r){var n='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,function(e,i,a){return i===n?i:a===t?"\\"+a:a||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i)});return t+i+t}function V(e){return e&&e.comments&&e.comments.length>0&&e.comments.some(function(e){return"prettier-ignore"===e.value.trim()})}function q(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var W={replaceEndOfLineWith:function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e.split("\n")[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;0!==r.length&&r.push(t),r.push(c)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r},getStringWidth:function(e){return e?x.test(e)?v(e):e.length:0},getMaxContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(D(t),")+"),"g"));return null===r?0:r.reduce(function(e,r){return Math.max(e,r.length/t.length)},0)},getPrecedence:R,shouldFlatten:function(e,t){return!(R(t)!==R(e)||"**"===e||B[e]&&B[t]||"%"===t&&j[e]||"%"===e&&j[t]||t!==e&&j[t]&&j[e]||J[e]&&J[t])},isBitwiseOperator:function(e){return!!J[e]||"|"===e||"^"===e||"&"===e},isExportDeclaration:S,getParentExportDeclaration:function(e){var t=e.getParentNode();return"declaration"===e.getName()&&S(t)?t:null},getPenultimate:function(e){return e.length>1?e[e.length-2]:null},getLast:d,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:O,getNextNonSpaceNonCommentCharacterIndex:M,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(M(e,t,r))},skip:T,skipWhitespace:C,skipSpaces:E,skipToLineEnd:k,skipEverythingButNewLine:N,skipInlineComment:A,skipTrailingComment:F,skipNewline:P,isNextLineEmptyAfterIndex:I,isNextLineEmpty:function(e,t,r){return I(e,r(t))},isPreviousLineEmpty:function(e,t,r){var n=r(t)-1;return n=P(e,n=E(e,n,{backwards:!0}),{backwards:!0}),(n=E(e,n,{backwards:!0}))!==P(e,n,{backwards:!0})},hasNewline:w,hasNewlineInRange:function(e,t,r){for(var n=t;n1)for(var r=1;r>>=5)>0&&(t|=32),r+=Ne(t)}while(n>0);return r},Pe=function(e,t,r){var n,i,a,o,s=e.length,c=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Ae(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<>1,1==(1&a)?-o:o),r.rest=t},we=a(function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=_(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:_(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=_(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}}),Ie=Object.prototype.hasOwnProperty,Oe="undefined"!=typeof Map;function Me(){this._array=[],this._set=Oe?new Map:Object.create(null)}Me.fromArray=function(e,t){for(var r=new Me,n=0,i=e.length;n=0)return t}else{var r=we.toSetString(e);if(Ie.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Me.prototype.at=function(e){if(e>=0&&en||i==n&&o>=a||we.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Re.prototype.toArray=function(){return this._sorted||(this._array.sort(we.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Be=Le.ArraySet,je={MappingList:Re}.MappingList;function Je(e){e||(e={}),this._file=we.getArg(e,"file",null),this._sourceRoot=we.getArg(e,"sourceRoot",null),this._skipValidation=we.getArg(e,"skipValidation",!1),this._sources=new Be,this._names=new Be,this._mappings=new je,this._sourcesContents=null}Je.prototype._version=3,Je.fromSourceMap=function(e){var t=e.sourceRoot,r=new Je({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=we.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(n){var i=n;null!==t&&(i=we.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)}),r},Je.prototype.addMapping=function(e){var t=we.getArg(e,"generated"),r=we.getArg(e,"original",null),n=we.getArg(e,"source",null),i=we.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Je.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=we.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[we.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[we.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Je.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=we.relative(i,n));var a=new Be,o=new Be;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=we.join(r,t.source)),null!=i&&(t.source=we.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||o.has(u)||o.add(u)},this),this._sources=a,this._names=o,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=we.join(r,t)),null!=i&&(t=we.relative(i,t)),this.setSourceContent(t,n))},this)},Je.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Je.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!we.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=","}e+=Fe(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=Fe(n-u),u=n,e+=Fe(t.originalLine-1-s),s=t.originalLine-1,e+=Fe(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=Fe(r-c),c=r)),l+=e}return l},Je.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=we.relative(t,e));var r=we.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},Je.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},Je.prototype.toString=function(){return JSON.stringify(this.toJSON())};var ze={SourceMapGenerator:Je},Ke=a(function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}});function Ue(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Ve(e,t,r,n){if(r=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:we.getArg(a,"generatedLine",null),column:we.getArg(a,"generatedColumn",null),lastColumn:we.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:we.getArg(a,"generatedLine",null),column:we.getArg(a,"generatedColumn",null),lastColumn:we.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};function Ge(e,t){var r=e;"string"==typeof e&&(r=we.parseSourceMapInput(e));var n=we.getArg(r,"version"),i=we.getArg(r,"sources"),a=we.getArg(r,"names",[]),o=we.getArg(r,"sourceRoot",null),s=we.getArg(r,"sourcesContent",null),c=we.getArg(r,"mappings"),u=we.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=we.normalize(o)),i=i.map(String).map(we.normalize).map(function(e){return o&&we.isAbsolute(o)&&we.isAbsolute(e)?we.relative(o,e):e}),this._names=qe.fromArray(a.map(String),!0),this._sources=qe.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(e){return we.computeSourceURL(o,e,t)}),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function Ye(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Ge.prototype=Object.create(He.prototype),Ge.prototype.consumer=He,Ge.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=we.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=_+i[1],_+=i[1],r.originalLine=u+i[2],u=r.originalLine,r.originalLine+=1,r.originalColumn=l+i[3],l=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),h.push(r),"number"==typeof r.originalLine&&y.push(r)}We(h,we.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,We(y,we.compareByOriginalPositions),this.__originalMappings=y},Ge.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Ke.search(e,t,i,a)},Ge.prototype.computeColumnSpans=function(){for(var e=0;e=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=we.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=we.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=we.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:we.getArg(n,"originalLine",null),column:we.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Ge.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},Ge.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=we.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=we.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},Ge.prototype.generatedPositionFor=function(e){var t=we.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:we.getArg(e,"line"),originalColumn:we.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",we.compareByOriginalPositions,we.getArg(e,"bias",He.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:we.getArg(i,"generatedLine",null),column:we.getArg(i,"generatedColumn",null),lastColumn:we.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};function Xe(e,t){var r=e;"string"==typeof e&&(r=we.parseSourceMapInput(e));var n=we.getArg(r,"version"),i=we.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new qe,this._names=new qe;var a={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=we.getArg(e,"offset"),n=we.getArg(r,"line"),i=we.getArg(r,"column");if(n=0;t--)this.prepend(e[t]);else{if(!e[Ze]&&"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},et.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r>18&63]+tt[i>>12&63]+tt[i>>6&63]+tt[63&i]);return a.join("")}function st(e){var t;it||at();for(var r=e.length,n=r%3,i="",a=[],o=0,s=r-n;os?s:o+16383));return 1===n?(t=e[r-1],i+=tt[t>>2],i+=tt[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=tt[t>>10],i+=tt[t>>4&63],i+=tt[t<<2&63],i+="="),a.push(i),a.join("")}function ct(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<>1,l=-7,_=r?i-1:0,d=r?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)}function ut(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*m}var lt={}.toString,_t=Array.isArray||function(e){return"[object Array]"==lt.call(e)};function dt(){return ft.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function pt(e,t){if(dt()=dt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dt().toString(16)+" bytes");return 0|e}function bt(e){return!(null==e||!e._isBuffer)}function Dt(e,t){if(bt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ht(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Gt(e).length;default:if(n)return Ht(e).length;t=(""+t).toLowerCase(),n=!0}}function xt(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function St(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=ft.from(t,n)),bt(t))return 0===t.length?-1:Tt(e,t,r,n,i);if("number"==typeof t)return t&=255,ft.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Tt(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Tt(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;as&&(r=s-c),a=r;a>=0;a--){for(var _=!0,d=0;di&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function Pt(e,t,r){return 0===t&&r===e.length?st(e):st(e.slice(t,r))}function wt(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+_<=r)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=_}return function(e){var t=e.length;if(t<=It)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Lt(this,t,r);case"utf8":case"utf-8":return wt(this,t,r);case"ascii":return Ot(this,t,r);case"latin1":case"binary":return Mt(this,t,r);case"base64":return Pt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},ft.prototype.equals=function(e){if(!bt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ft.compare(this,e)},ft.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ft.prototype.compare=function(e,t,r,n,i){if(!bt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Ct(this,e,t,r);case"utf8":case"utf-8":return Et(this,e,t,r);case"ascii":return kt(this,e,t,r);case"latin1":case"binary":return Nt(this,e,t,r);case"base64":return At(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var It=4096;function Ot(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function jt(e,t,r,n,i,a){if(!bt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Jt(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function zt(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function Kt(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ut(e,t,r,n,i){return i||Kt(e,0,r,4),ut(e,t,r,n,23,4),r+4}function Vt(e,t,r,n,i){return i||Kt(e,0,r,8),ut(e,t,r,n,52,8),r+8}ft.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},ft.prototype.readUInt8=function(e,t){return t||Bt(e,1,this.length),this[e]},ft.prototype.readUInt16LE=function(e,t){return t||Bt(e,2,this.length),this[e]|this[e+1]<<8},ft.prototype.readUInt16BE=function(e,t){return t||Bt(e,2,this.length),this[e]<<8|this[e+1]},ft.prototype.readUInt32LE=function(e,t){return t||Bt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ft.prototype.readUInt32BE=function(e,t){return t||Bt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ft.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Bt(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},ft.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Bt(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},ft.prototype.readInt8=function(e,t){return t||Bt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ft.prototype.readInt16LE=function(e,t){t||Bt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ft.prototype.readInt16BE=function(e,t){t||Bt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ft.prototype.readInt32LE=function(e,t){return t||Bt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ft.prototype.readInt32BE=function(e,t){return t||Bt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ft.prototype.readFloatLE=function(e,t){return t||Bt(e,4,this.length),ct(this,e,!0,23,4)},ft.prototype.readFloatBE=function(e,t){return t||Bt(e,4,this.length),ct(this,e,!1,23,4)},ft.prototype.readDoubleLE=function(e,t){return t||Bt(e,8,this.length),ct(this,e,!0,52,8)},ft.prototype.readDoubleBE=function(e,t){return t||Bt(e,8,this.length),ct(this,e,!1,52,8)},ft.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||jt(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},ft.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,1,255,0),ft.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ft.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,65535,0),ft.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Jt(this,e,t,!0),t+2},ft.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,65535,0),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Jt(this,e,t,!1),t+2},ft.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,4294967295,0),ft.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):zt(this,e,t,!0),t+4},ft.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,4294967295,0),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):zt(this,e,t,!1),t+4},ft.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);jt(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},ft.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);jt(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},ft.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,1,127,-128),ft.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ft.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,32767,-32768),ft.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Jt(this,e,t,!0),t+2},ft.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,32767,-32768),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Jt(this,e,t,!1),t+2},ft.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,2147483647,-2147483648),ft.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):zt(this,e,t,!0),t+4},ft.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):zt(this,e,t,!1),t+4},ft.prototype.writeFloatLE=function(e,t,r){return Ut(this,e,t,!0,r)},ft.prototype.writeFloatBE=function(e,t,r){return Ut(this,e,t,!1,r)},ft.prototype.writeDoubleLE=function(e,t,r){return Vt(this,e,t,!0,r)},ft.prototype.writeDoubleBE=function(e,t,r){return Vt(this,e,t,!1,r)},ft.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!ft.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Gt(e){return function(e){var t,r,n,i,a,o;it||at();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new nt(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=rt[e.charCodeAt(t)]<<2|rt[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=rt[e.charCodeAt(t)]<<10|rt[e.charCodeAt(t+1)]<<4|rt[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(qt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Yt(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Xt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Qt=Object.prototype.toString,$t="function"==typeof ft.alloc&&"function"==typeof ft.allocUnsafe&&"function"==typeof ft.from;var Zt,er=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n=e,"ArrayBuffer"===Qt.call(n).slice(8,-1)?function(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=n;else if((r>>>=0)>n)throw new RangeError("'length' is out of bounds");return $t?ft.from(e.slice(t,t+r)):new ft(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!ft.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return $t?ft.from(e,t):new ft(e,t)}(e,t):$t?ft.from(e):new ft(e);var n},tr={},rr=(Object.freeze({default:tr}),De&&be||De),nr=Te&&Se||Te,ir=rr;try{(Zt=nr).existsSync&&Zt.readFileSync||(Zt=null)}catch(e){}var ar="auto",or={},sr=/^data:application\/json[^,]+base64,/,cr=[],ur=[];function lr(){return"browser"===ar||"node"!==ar&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function _r(e){return function(t){for(var r=0;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(n(r(e[c]),t)){case-1:a=c+1;break;case 0:return c;case 1:s=c-1}}return~a}function y(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.emptyArray=[],e.createMap=r,e.createMapFromEntries=function(e){for(var t=r(),n=0,i=e;n=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(e,t){for(var r=0;r0&&h.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;io&&h.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n},e.sum=function(e,t){for(var r=0,n=0,i=e;nt?1:0}function M(e,t){return w(e,t)}e.hasProperty=b,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t},e.getOwnValues=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(e[r]);return t},e.arrayFrom=D,e.assign=function(e){for(var t=[],r=1;r=t},e.assert=function e(r,n,i,a){r||(i&&(n+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),t(n?"False expression: "+n:"False expression.",a||e))},e.assertEqual=function(e,r,n,i){e!==r&&t("Expected "+e+" === "+r+". "+(n?i?n+" "+i:n:""))},e.assertLessThan=function(e,r,n){e>=r&&t("Expected "+e+" < "+r+". "+(n||""))},e.assertLessThanOrEqual=function(e,r){e>r&&t("Expected "+e+" <= "+r)},e.assertGreaterThanOrEqual=function(e,r){e= "+r)},e.fail=t,e.assertDefined=r,e.assertEachDefined=function(e,t){for(var n=0,i=e;n0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function j(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function J(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function z(e,t){return e.length>t.length&&J(e,t)}function K(e,t){for(var r=t;r=r.length+n.length&&q(t,r)&&J(t,n)}e.getUILocale=function(){return R},e.setUILocale=function(e){R!==e&&(R=e,L=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(L||(L=B(R)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return I(e?1:0,t?1:0)},e.getSpellingSuggestion=function(e,t,r){for(var n,i=Math.min(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;ci&&(i=c.prefix.length,n=s)}return n},e.startsWith=q,e.removePrefix=function(e,t){return q(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),q(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(e,t){return function(r){return e(r)||t(r)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||k;for(var o=0,s=0,c=e.length,u=t.length;o=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var t=[],r=0,n=e.trim().split(c);r=",n.version)),y(i.major)||r.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function g(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function D(t){return e.map(t,x).join(" ")}function x(e){return""+e.operator+e.operand}}(c||(c={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.LessThanToken=28]="LessThanToken",e[e.LessThanSlashToken=29]="LessThanSlashToken",e[e.GreaterThanToken=30]="GreaterThanToken",e[e.LessThanEqualsToken=31]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=32]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=33]="EqualsEqualsToken",e[e.ExclamationEqualsToken=34]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=35]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=36]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=37]="EqualsGreaterThanToken",e[e.PlusToken=38]="PlusToken",e[e.MinusToken=39]="MinusToken",e[e.AsteriskToken=40]="AsteriskToken",e[e.AsteriskAsteriskToken=41]="AsteriskAsteriskToken",e[e.SlashToken=42]="SlashToken",e[e.PercentToken=43]="PercentToken",e[e.PlusPlusToken=44]="PlusPlusToken",e[e.MinusMinusToken=45]="MinusMinusToken",e[e.LessThanLessThanToken=46]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=47]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=48]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=49]="AmpersandToken",e[e.BarToken=50]="BarToken",e[e.CaretToken=51]="CaretToken",e[e.ExclamationToken=52]="ExclamationToken",e[e.TildeToken=53]="TildeToken",e[e.AmpersandAmpersandToken=54]="AmpersandAmpersandToken",e[e.BarBarToken=55]="BarBarToken",e[e.QuestionToken=56]="QuestionToken",e[e.ColonToken=57]="ColonToken",e[e.AtToken=58]="AtToken",e[e.EqualsToken=59]="EqualsToken",e[e.PlusEqualsToken=60]="PlusEqualsToken",e[e.MinusEqualsToken=61]="MinusEqualsToken",e[e.AsteriskEqualsToken=62]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=63]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=64]="SlashEqualsToken",e[e.PercentEqualsToken=65]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=66]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=68]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=69]="AmpersandEqualsToken",e[e.BarEqualsToken=70]="BarEqualsToken",e[e.CaretEqualsToken=71]="CaretEqualsToken",e[e.Identifier=72]="Identifier",e[e.BreakKeyword=73]="BreakKeyword",e[e.CaseKeyword=74]="CaseKeyword",e[e.CatchKeyword=75]="CatchKeyword",e[e.ClassKeyword=76]="ClassKeyword",e[e.ConstKeyword=77]="ConstKeyword",e[e.ContinueKeyword=78]="ContinueKeyword",e[e.DebuggerKeyword=79]="DebuggerKeyword",e[e.DefaultKeyword=80]="DefaultKeyword",e[e.DeleteKeyword=81]="DeleteKeyword",e[e.DoKeyword=82]="DoKeyword",e[e.ElseKeyword=83]="ElseKeyword",e[e.EnumKeyword=84]="EnumKeyword",e[e.ExportKeyword=85]="ExportKeyword",e[e.ExtendsKeyword=86]="ExtendsKeyword",e[e.FalseKeyword=87]="FalseKeyword",e[e.FinallyKeyword=88]="FinallyKeyword",e[e.ForKeyword=89]="ForKeyword",e[e.FunctionKeyword=90]="FunctionKeyword",e[e.IfKeyword=91]="IfKeyword",e[e.ImportKeyword=92]="ImportKeyword",e[e.InKeyword=93]="InKeyword",e[e.InstanceOfKeyword=94]="InstanceOfKeyword",e[e.NewKeyword=95]="NewKeyword",e[e.NullKeyword=96]="NullKeyword",e[e.ReturnKeyword=97]="ReturnKeyword",e[e.SuperKeyword=98]="SuperKeyword",e[e.SwitchKeyword=99]="SwitchKeyword",e[e.ThisKeyword=100]="ThisKeyword",e[e.ThrowKeyword=101]="ThrowKeyword",e[e.TrueKeyword=102]="TrueKeyword",e[e.TryKeyword=103]="TryKeyword",e[e.TypeOfKeyword=104]="TypeOfKeyword",e[e.VarKeyword=105]="VarKeyword",e[e.VoidKeyword=106]="VoidKeyword",e[e.WhileKeyword=107]="WhileKeyword",e[e.WithKeyword=108]="WithKeyword",e[e.ImplementsKeyword=109]="ImplementsKeyword",e[e.InterfaceKeyword=110]="InterfaceKeyword",e[e.LetKeyword=111]="LetKeyword",e[e.PackageKeyword=112]="PackageKeyword",e[e.PrivateKeyword=113]="PrivateKeyword",e[e.ProtectedKeyword=114]="ProtectedKeyword",e[e.PublicKeyword=115]="PublicKeyword",e[e.StaticKeyword=116]="StaticKeyword",e[e.YieldKeyword=117]="YieldKeyword",e[e.AbstractKeyword=118]="AbstractKeyword",e[e.AsKeyword=119]="AsKeyword",e[e.AnyKeyword=120]="AnyKeyword",e[e.AsyncKeyword=121]="AsyncKeyword",e[e.AwaitKeyword=122]="AwaitKeyword",e[e.BooleanKeyword=123]="BooleanKeyword",e[e.ConstructorKeyword=124]="ConstructorKeyword",e[e.DeclareKeyword=125]="DeclareKeyword",e[e.GetKeyword=126]="GetKeyword",e[e.InferKeyword=127]="InferKeyword",e[e.IsKeyword=128]="IsKeyword",e[e.KeyOfKeyword=129]="KeyOfKeyword",e[e.ModuleKeyword=130]="ModuleKeyword",e[e.NamespaceKeyword=131]="NamespaceKeyword",e[e.NeverKeyword=132]="NeverKeyword",e[e.ReadonlyKeyword=133]="ReadonlyKeyword",e[e.RequireKeyword=134]="RequireKeyword",e[e.NumberKeyword=135]="NumberKeyword",e[e.ObjectKeyword=136]="ObjectKeyword",e[e.SetKeyword=137]="SetKeyword",e[e.StringKeyword=138]="StringKeyword",e[e.SymbolKeyword=139]="SymbolKeyword",e[e.TypeKeyword=140]="TypeKeyword",e[e.UndefinedKeyword=141]="UndefinedKeyword",e[e.UniqueKeyword=142]="UniqueKeyword",e[e.UnknownKeyword=143]="UnknownKeyword",e[e.FromKeyword=144]="FromKeyword",e[e.GlobalKeyword=145]="GlobalKeyword",e[e.BigIntKeyword=146]="BigIntKeyword",e[e.OfKeyword=147]="OfKeyword",e[e.QualifiedName=148]="QualifiedName",e[e.ComputedPropertyName=149]="ComputedPropertyName",e[e.TypeParameter=150]="TypeParameter",e[e.Parameter=151]="Parameter",e[e.Decorator=152]="Decorator",e[e.PropertySignature=153]="PropertySignature",e[e.PropertyDeclaration=154]="PropertyDeclaration",e[e.MethodSignature=155]="MethodSignature",e[e.MethodDeclaration=156]="MethodDeclaration",e[e.Constructor=157]="Constructor",e[e.GetAccessor=158]="GetAccessor",e[e.SetAccessor=159]="SetAccessor",e[e.CallSignature=160]="CallSignature",e[e.ConstructSignature=161]="ConstructSignature",e[e.IndexSignature=162]="IndexSignature",e[e.TypePredicate=163]="TypePredicate",e[e.TypeReference=164]="TypeReference",e[e.FunctionType=165]="FunctionType",e[e.ConstructorType=166]="ConstructorType",e[e.TypeQuery=167]="TypeQuery",e[e.TypeLiteral=168]="TypeLiteral",e[e.ArrayType=169]="ArrayType",e[e.TupleType=170]="TupleType",e[e.OptionalType=171]="OptionalType",e[e.RestType=172]="RestType",e[e.UnionType=173]="UnionType",e[e.IntersectionType=174]="IntersectionType",e[e.ConditionalType=175]="ConditionalType",e[e.InferType=176]="InferType",e[e.ParenthesizedType=177]="ParenthesizedType",e[e.ThisType=178]="ThisType",e[e.TypeOperator=179]="TypeOperator",e[e.IndexedAccessType=180]="IndexedAccessType",e[e.MappedType=181]="MappedType",e[e.LiteralType=182]="LiteralType",e[e.ImportType=183]="ImportType",e[e.ObjectBindingPattern=184]="ObjectBindingPattern",e[e.ArrayBindingPattern=185]="ArrayBindingPattern",e[e.BindingElement=186]="BindingElement",e[e.ArrayLiteralExpression=187]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=188]="ObjectLiteralExpression",e[e.PropertyAccessExpression=189]="PropertyAccessExpression",e[e.ElementAccessExpression=190]="ElementAccessExpression",e[e.CallExpression=191]="CallExpression",e[e.NewExpression=192]="NewExpression",e[e.TaggedTemplateExpression=193]="TaggedTemplateExpression",e[e.TypeAssertionExpression=194]="TypeAssertionExpression",e[e.ParenthesizedExpression=195]="ParenthesizedExpression",e[e.FunctionExpression=196]="FunctionExpression",e[e.ArrowFunction=197]="ArrowFunction",e[e.DeleteExpression=198]="DeleteExpression",e[e.TypeOfExpression=199]="TypeOfExpression",e[e.VoidExpression=200]="VoidExpression",e[e.AwaitExpression=201]="AwaitExpression",e[e.PrefixUnaryExpression=202]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=203]="PostfixUnaryExpression",e[e.BinaryExpression=204]="BinaryExpression",e[e.ConditionalExpression=205]="ConditionalExpression",e[e.TemplateExpression=206]="TemplateExpression",e[e.YieldExpression=207]="YieldExpression",e[e.SpreadElement=208]="SpreadElement",e[e.ClassExpression=209]="ClassExpression",e[e.OmittedExpression=210]="OmittedExpression",e[e.ExpressionWithTypeArguments=211]="ExpressionWithTypeArguments",e[e.AsExpression=212]="AsExpression",e[e.NonNullExpression=213]="NonNullExpression",e[e.MetaProperty=214]="MetaProperty",e[e.SyntheticExpression=215]="SyntheticExpression",e[e.TemplateSpan=216]="TemplateSpan",e[e.SemicolonClassElement=217]="SemicolonClassElement",e[e.Block=218]="Block",e[e.VariableStatement=219]="VariableStatement",e[e.EmptyStatement=220]="EmptyStatement",e[e.ExpressionStatement=221]="ExpressionStatement",e[e.IfStatement=222]="IfStatement",e[e.DoStatement=223]="DoStatement",e[e.WhileStatement=224]="WhileStatement",e[e.ForStatement=225]="ForStatement",e[e.ForInStatement=226]="ForInStatement",e[e.ForOfStatement=227]="ForOfStatement",e[e.ContinueStatement=228]="ContinueStatement",e[e.BreakStatement=229]="BreakStatement",e[e.ReturnStatement=230]="ReturnStatement",e[e.WithStatement=231]="WithStatement",e[e.SwitchStatement=232]="SwitchStatement",e[e.LabeledStatement=233]="LabeledStatement",e[e.ThrowStatement=234]="ThrowStatement",e[e.TryStatement=235]="TryStatement",e[e.DebuggerStatement=236]="DebuggerStatement",e[e.VariableDeclaration=237]="VariableDeclaration",e[e.VariableDeclarationList=238]="VariableDeclarationList",e[e.FunctionDeclaration=239]="FunctionDeclaration",e[e.ClassDeclaration=240]="ClassDeclaration",e[e.InterfaceDeclaration=241]="InterfaceDeclaration",e[e.TypeAliasDeclaration=242]="TypeAliasDeclaration",e[e.EnumDeclaration=243]="EnumDeclaration",e[e.ModuleDeclaration=244]="ModuleDeclaration",e[e.ModuleBlock=245]="ModuleBlock",e[e.CaseBlock=246]="CaseBlock",e[e.NamespaceExportDeclaration=247]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=248]="ImportEqualsDeclaration",e[e.ImportDeclaration=249]="ImportDeclaration",e[e.ImportClause=250]="ImportClause",e[e.NamespaceImport=251]="NamespaceImport",e[e.NamedImports=252]="NamedImports",e[e.ImportSpecifier=253]="ImportSpecifier",e[e.ExportAssignment=254]="ExportAssignment",e[e.ExportDeclaration=255]="ExportDeclaration",e[e.NamedExports=256]="NamedExports",e[e.ExportSpecifier=257]="ExportSpecifier",e[e.MissingDeclaration=258]="MissingDeclaration",e[e.ExternalModuleReference=259]="ExternalModuleReference",e[e.JsxElement=260]="JsxElement",e[e.JsxSelfClosingElement=261]="JsxSelfClosingElement",e[e.JsxOpeningElement=262]="JsxOpeningElement",e[e.JsxClosingElement=263]="JsxClosingElement",e[e.JsxFragment=264]="JsxFragment",e[e.JsxOpeningFragment=265]="JsxOpeningFragment",e[e.JsxClosingFragment=266]="JsxClosingFragment",e[e.JsxAttribute=267]="JsxAttribute",e[e.JsxAttributes=268]="JsxAttributes",e[e.JsxSpreadAttribute=269]="JsxSpreadAttribute",e[e.JsxExpression=270]="JsxExpression",e[e.CaseClause=271]="CaseClause",e[e.DefaultClause=272]="DefaultClause",e[e.HeritageClause=273]="HeritageClause",e[e.CatchClause=274]="CatchClause",e[e.PropertyAssignment=275]="PropertyAssignment",e[e.ShorthandPropertyAssignment=276]="ShorthandPropertyAssignment",e[e.SpreadAssignment=277]="SpreadAssignment",e[e.EnumMember=278]="EnumMember",e[e.UnparsedPrologue=279]="UnparsedPrologue",e[e.UnparsedPrepend=280]="UnparsedPrepend",e[e.UnparsedText=281]="UnparsedText",e[e.UnparsedInternalText=282]="UnparsedInternalText",e[e.UnparsedSyntheticReference=283]="UnparsedSyntheticReference",e[e.SourceFile=284]="SourceFile",e[e.Bundle=285]="Bundle",e[e.UnparsedSource=286]="UnparsedSource",e[e.InputFiles=287]="InputFiles",e[e.JSDocTypeExpression=288]="JSDocTypeExpression",e[e.JSDocAllType=289]="JSDocAllType",e[e.JSDocUnknownType=290]="JSDocUnknownType",e[e.JSDocNullableType=291]="JSDocNullableType",e[e.JSDocNonNullableType=292]="JSDocNonNullableType",e[e.JSDocOptionalType=293]="JSDocOptionalType",e[e.JSDocFunctionType=294]="JSDocFunctionType",e[e.JSDocVariadicType=295]="JSDocVariadicType",e[e.JSDocComment=296]="JSDocComment",e[e.JSDocTypeLiteral=297]="JSDocTypeLiteral",e[e.JSDocSignature=298]="JSDocSignature",e[e.JSDocTag=299]="JSDocTag",e[e.JSDocAugmentsTag=300]="JSDocAugmentsTag",e[e.JSDocClassTag=301]="JSDocClassTag",e[e.JSDocCallbackTag=302]="JSDocCallbackTag",e[e.JSDocEnumTag=303]="JSDocEnumTag",e[e.JSDocParameterTag=304]="JSDocParameterTag",e[e.JSDocReturnTag=305]="JSDocReturnTag",e[e.JSDocThisTag=306]="JSDocThisTag",e[e.JSDocTypeTag=307]="JSDocTypeTag",e[e.JSDocTemplateTag=308]="JSDocTemplateTag",e[e.JSDocTypedefTag=309]="JSDocTypedefTag",e[e.JSDocPropertyTag=310]="JSDocPropertyTag",e[e.SyntaxList=311]="SyntaxList",e[e.NotEmittedStatement=312]="NotEmittedStatement",e[e.PartiallyEmittedExpression=313]="PartiallyEmittedExpression",e[e.CommaListExpression=314]="CommaListExpression",e[e.MergeDeclarationMarker=315]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=316]="EndOfDeclarationMarker",e[e.Count=317]="Count",e[e.FirstAssignment=59]="FirstAssignment",e[e.LastAssignment=71]="LastAssignment",e[e.FirstCompoundAssignment=60]="FirstCompoundAssignment",e[e.LastCompoundAssignment=71]="LastCompoundAssignment",e[e.FirstReservedWord=73]="FirstReservedWord",e[e.LastReservedWord=108]="LastReservedWord",e[e.FirstKeyword=73]="FirstKeyword",e[e.LastKeyword=147]="LastKeyword",e[e.FirstFutureReservedWord=109]="FirstFutureReservedWord",e[e.LastFutureReservedWord=117]="LastFutureReservedWord",e[e.FirstTypeNode=163]="FirstTypeNode",e[e.LastTypeNode=183]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=71]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=147]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=28]="FirstBinaryOperator",e[e.LastBinaryOperator=71]="LastBinaryOperator",e[e.FirstNode=148]="FirstNode",e[e.FirstJSDocNode=288]="FirstJSDocNode",e[e.LastJSDocNode=310]="LastJSDocNode",e[e.FirstJSDocTagNode=299]="FirstJSDocTagNode",e[e.LastJSDocTagNode=310]="LastJSDocTagNode",e[e.FirstContextualKeyword=118]="FirstContextualKeyword",e[e.LastContextualKeyword=147]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",e[e.JSDoc=2097152]="JSDoc",e[e.Ambient=4194304]="Ambient",e[e.InWithStatement=8388608]="InWithStatement",e[e.JsonFile=16777216]="JsonFile",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=12679168]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=3071]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));var t,r=function(){return function(){}}();e.OperationCanceledException=r,function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=67220415]="Value",e[e.Type=67897832]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=67220414]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=67220415]="BlockScopedVariableExcludes",e[e.ParameterExcludes=67220415]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=68008959]="EnumMemberExcludes",e[e.FunctionExcludes=67219887]="FunctionExcludes",e[e.ClassExcludes=68008383]="ClassExcludes",e[e.InterfaceExcludes=67897736]="InterfaceExcludes",e[e.RegularEnumExcludes=68008191]="RegularEnumExcludes",e[e.ConstEnumExcludes=68008831]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=67212223]="MethodExcludes",e[e.GetAccessorExcludes=67154879]="GetAccessorExcludes",e[e.SetAccessorExcludes=67187647]="SetAccessorExcludes",e[e.TypeParameterExcludes=67635688]="TypeParameterExcludes",e[e.TypeAliasExcludes=67897832]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.Partial=16]="Partial",e[e.HasNonUniformType=32]="HasNonUniformType",e[e.HasLiteralType=64]="HasLiteralType",e[e.ContainsPublic=128]="ContainsPublic",e[e.ContainsProtected=256]="ContainsProtected",e[e.ContainsPrivate=512]="ContainsPrivate",e[e.ContainsStatic=1024]="ContainsStatic",e[e.Late=2048]="Late",e[e.ReverseMapped=4096]="ReverseMapped",e[e.OptionalParameter=8192]="OptionalParameter",e[e.RestParameter=16384]="RestParameter",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=96]="Discriminant"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=132]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=67238908]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=4194304]="InstantiablePrimitive",e[e.Instantiable=63176704]="Instantiable",e[e.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",e[e.ObjectFlagsType=3768320]="ObjectFlagsType",e[e.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=1835007]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=4194304]="IncludesWildcard",e[e.IncludesEmptyObject=8388608]="IncludesEmptyObject",e[e.GenericMappedType=131072]="GenericMappedType"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.PrimitiveUnion=65536]="PrimitiveUnion",e[e.ContainsWideningType=131072]="ContainsWideningType",e[e.ContainsObjectLiteral=262144]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=524288]="ContainsAnyFunctionType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=393216]="RequiresWidening",e[e.PropagatingFlags=917504]="PropagatingFlags"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent"}(e.Variance||(e.Variance={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.MappedTypeConstraint=4]="MappedTypeConstraint",e[e.ReturnType=8]="ReturnType",e[e.LiteralKeyof=16]="LiteralKeyof",e[e.NoConstraints=32]="NoConstraints",e[e.AlwaysStrict=64]="AlwaysStrict",e[e.PriorityImpliesCombination=28]="PriorityImpliesCombination"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=6]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ESNext=7]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=7]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2019=8]="ContainsES2019",e[e.ContainsES2018=16]="ContainsES2018",e[e.ContainsES2017=32]="ContainsES2017",e[e.ContainsES2016=64]="ContainsES2016",e[e.ContainsES2015=128]="ContainsES2015",e[e.ContainsGenerator=256]="ContainsGenerator",e[e.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=2048]="ContainsLexicalThis",e[e.ContainsRestOrSpread=4096]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=65536]="ContainsBindingPattern",e[e.ContainsYield=131072]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=524288]="ContainsDynamicImport",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2019=8]="AssertES2019",e[e.AssertES2018=16]="AssertES2018",e[e.AssertES2017=32]="AssertES2017",e[e.AssertES2016=64]="AssertES2016",e[e.AssertES2015=128]="AssertES2015",e[e.AssertGenerator=256]="AssertGenerator",e[e.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",e[e.FunctionExcludes=537373696]="FunctionExcludes",e[e.ConstructorExcludes=537372672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536872960]="PropertyExcludes",e[e.ClassExcludes=536888320]="ClassExcludes",e[e.ModuleExcludes=537168896]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536879104]="CatchClauseExcludes",e[e.BindingPatternExcludes=536875008]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=2048]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.MakeTemplateObject=65536]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=65536]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement"}(e.EmitHint||(e.EmitHint={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),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.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=528]="TupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=49153]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(c||(c={})),function(e){function t(e){for(var t=5381,r=0;r0;p(),s--){var _=t[a];if(_)if(_.isClosed)t[a]=void 0;else{u++;var d=l(_,v(_.fileName));_.isClosed?t[a]=void 0:d?(_.unchangedPolls=0,t!==i&&(t[a]=void 0,g(_))):_.unchangedPolls!==e.unchangedPollThresholds[r]?_.unchangedPolls++:t===i?(_.unchangedPolls=1,t[a]=void 0,m(_,n.Low)):r!==n.High&&(_.unchangedPolls++,t[a]=void 0,m(_,r===n.Low?n.Medium:n.High)),t[a]&&(c type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness"),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertion_can_only_be_applied_to_a_string_number_boolean_array_or_object_literal:t(1355,e.DiagnosticCategory.Error,"A_const_assertion_can_only_be_applied_to_a_string_number_boolean_array_or_object_literal_1355","A 'const' assertion can only be applied to a string, number, boolean, array, or object literal."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:t(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension"),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),It_is_highly_likely_that_you_are_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ESNext:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:t(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Generate_types_for_0:t(95067,e.DiagnosticCategory.Message,"Generate_types_for_0_95067","Generate types for '{0}'"),Generate_types_for_all_packages_without_types:t(95068,e.DiagnosticCategory.Message,"Generate_types_for_all_packages_without_types_95068","Generate types for all packages without types"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object")}}(c||(c={})),function(e){var t;function r(e){return e>=72}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 30===e||r(e)};var n=((t={abstract:118,any:120,as:119,bigint:146,boolean:123,break:73,case:74,catch:75,class:76,continue:78,const:77}).constructor=124,t.debugger=79,t.declare=125,t.default=80,t.delete=81,t.do=82,t.else=83,t.enum=84,t.export=85,t.extends=86,t.false=87,t.finally=88,t.for=89,t.from=144,t.function=90,t.get=126,t.if=91,t.implements=109,t.import=92,t.in=93,t.infer=127,t.instanceof=94,t.interface=110,t.is=128,t.keyof=129,t.let=111,t.module=130,t.namespace=131,t.never=132,t.new=95,t.null=96,t.number=135,t.object=136,t.package=112,t.private=113,t.protected=114,t.public=115,t.readonly=133,t.require=134,t.global=145,t.return=97,t.set=137,t.static=116,t.string=138,t.super=98,t.switch=99,t.symbol=139,t.this=100,t.throw=101,t.true=102,t.try=103,t.type=140,t.typeof=104,t.undefined=141,t.unique=142,t.unknown=143,t.var=105,t.void=106,t.while=107,t.with=108,t.yield=117,t.async=121,t.await=122,t.of=147,t),a=e.createMapFromTemplate(n),o=e.createMapFromTemplate(i({},n,{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":28,">":30,"<=":31,">=":32,"==":33,"!=":34,"===":35,"!==":36,"=>":37,"+":38,"-":39,"**":41,"*":40,"/":42,"%":43,"++":44,"--":45,"<<":46,">":47,">>>":48,"&":49,"|":50,"^":51,"!":52,"~":53,"&&":54,"||":55,"?":56,":":57,"=":59,"+=":60,"-=":61,"*=":62,"**=":63,"/=":64,"%=":65,"<<=":66,">>=":67,">>>=":68,"&=":69,"|=":70,"^=":71,"@":58})),s=[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],c=[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],u=[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],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];function _(e,t){if(e=1?u:s)}e.isUnicodeIdentifierStart=d;var p,f=(p=[],o.forEach(function(e,t){p[e]=t}),p);function m(e){for(var t=new Array,r=0,n=0;r127&&D(i)&&(t.push(n),n=r)}}return t.push(n),t}function g(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,m(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function D(e){return 10===e||13===e||8232===e||8233===e}function x(e){return e>=48&&e<=57}function S(e){return e>=48&&e<=55}e.tokenToString=function(e){return f[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=m,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):g(y(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=g,e.getLineStarts=y,e.computeLineAndCharacterOfPosition=h,e.getLineAndCharacterOfPosition=function(e,t){return h(y(e),t)},e.isWhiteSpaceLike=v,e.isWhiteSpaceSingleLine=b,e.isLineBreak=D,e.isOctalDigit=S,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&v(a)){r++;continue}}return r}};var T="<<<<<<<".length;function C(t,r){if(e.Debug.assert(r>=0),0===r||D(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+T=0&&r127&&v(m)){_&&D(m)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function P(e,t,r,n,i){return F(!0,e,t,!1,r,n,i)}function w(e,t,r,n,i){return F(!0,e,t,!0,r,n,i)}function I(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function O(e){var t=k.exec(e);if(t)return t[0]}function M(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&d(e,t)}function L(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,t){return _(e,t>=1?l:c)}(e,t)}e.isShebangTrivia=N,e.scanShebangTrivia=A,e.forEachLeadingCommentRange=function(e,t,r,n){return F(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return F(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=P,e.reduceEachTrailingCommentRange=w,e.getLeadingCommentRanges=function(e,t){return P(e,t,I,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return w(e,t,I,void 0,void 0)},e.getShebang=O,e.isIdentifierStart=M,e.isIdentifierPart=L,e.isIdentifierText=function(e,t){if(!M(e.charCodeAt(0),t))return!1;for(var r=1;r108},isReservedWord:function(){return f>=73&&f<=108},isUnterminated:function(){return 0!=(4&g)},getTokenFlags:function(){return g},reScanGreaterToken:function(){if(30===f){if(62===y.charCodeAt(l))return 62===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=68):(l+=2,f=48):61===y.charCodeAt(l+1)?(l+=2,f=67):(l++,f=47);if(61===y.charCodeAt(l))return l++,f=32}return f},reScanSlashToken:function(){if(42===f||64===f){for(var r=p+1,n=!1,i=!1;;){if(r>=_){g|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=y.charCodeAt(r);if(D(a)){g|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&L(y.charCodeAt(r),t);)r++;l=r,m=y.substring(p,l),f=13}return f},reScanTemplateToken:function(){return e.Debug.assert(19===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=j()},scanJsxIdentifier:function(){if(r(f)){for(var e=l;l<_;){var n=y.charCodeAt(l);if(45!==n&&(e===l?!M(n,t):!L(n,t)))break;l++}m+=y.substring(e,l)}return f},scanJsxAttributeValue:function(){switch(d=l,y.charCodeAt(l)){case 34:case 39:return m=B(!0),f=10;default:return H()}},reScanJsxToken:function(){return l=p=d,f=G()},reScanLessThanToken:function(){return 46===f?(l=p+1,f=28):f},scanJsxToken:G,scanJSDocToken:function(){if(d=p=l,g=0,l>=_)return f=1;var e=y.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<_&&b(y.charCodeAt(l));)l++;return f=5;case 64:return f=58;case 10:case 13:return g|=1,f=4;case 42:return f=40;case 123:return f=18;case 125:return f=19;case 91:return f=22;case 93:return f=23;case 60:return f=28;case 61:return f=59;case 44:return f=27;case 46:return f=24;case 96:for(;l<_&&96!==y.charCodeAt(l);)l++;return m=y.substring(p+1,l),l++,f=14}if(M(e,7)){for(;L(y.charCodeAt(l),7)&&l<_;)l++;return m=y.substring(p,l),f=V()}return f=0},scan:H,getText:function(){return y},setText:X,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:Q,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return Y(e,!1)},lookAhead:function(e){return Y(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,o=p,s=f,c=m,u=g;X(y,e,t);var h=r();return _=n,l=i,d=a,p=o,f=s,m=c,g=u,h}};function T(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function k(){for(var t=l,r=!1,n=!1,i="";;){var a=y.charCodeAt(l);if(95!==a){if(!x(a))break;r=!0,n=!1,l++}else g|=512,r?(r=!1,n=!0,i+=y.substring(t,l)):T(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===y.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+y.substring(t,l)}function F(){var t,r,n=l,i=k();46===y.charCodeAt(l)&&(l++,t=k());var a,o=l;if(69===y.charCodeAt(l)||101===y.charCodeAt(l)){l++,g|=16,43!==y.charCodeAt(l)&&45!==y.charCodeAt(l)||l++;var s=l,c=k();c?(r=y.substring(o,s)+c,o=l):T(e.Diagnostics.Digit_expected)}if(512&g?(a=i,t&&(a+="."+t),r&&(a+=r)):a=y.substring(n,o),void 0!==t||16&g)return P(n,void 0===t&&!!(16&g)),{type:8,value:""+ +a};m=a;var u=W();return P(n),{type:u,value:m}}function P(r,n){if(M(y.charCodeAt(l),t)){var i=l,a=U().length;1===a&&"n"===y[i]?T(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(T(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function w(){for(var e=l;S(y.charCodeAt(l));)l++;return+y.substring(e,l)}function I(e,t){var r=R(e,!1,t);return r?parseInt(r,16):-1}function O(e,t){return R(e,!0,t)}function R(t,r,n){for(var i=[],a=!1,o=!1;i.length=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length=_){n+=y.substring(i,l),g|=4,T(e.Diagnostics.Unterminated_string_literal);break}var a=y.charCodeAt(l);if(a===r){n+=y.substring(i,l),l++;break}if(92!==a||t){if(D(a)&&!t){n+=y.substring(i,l),g|=4,T(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=y.substring(i,l),n+=J(),i=l}return n}function j(){for(var t,r=96===y.charCodeAt(l),n=++l,i="";;){if(l>=_){i+=y.substring(n,l),g|=4,T(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var a=y.charCodeAt(l);if(96===a){i+=y.substring(n,l),l++,t=r?14:17;break}if(36===a&&l+1<_&&123===y.charCodeAt(l+1)){i+=y.substring(n,l),l+=2,t=r?15:16;break}92!==a?13!==a?l++:(i+=y.substring(n,l),++l<_&&10===y.charCodeAt(l)&&l++,i+="\n",n=l):(i+=y.substring(n,l),i+=J(),n=l)}return e.Debug.assert(void 0!==t),m=i,t}function J(){if(++l>=_)return T(e.Diagnostics.Unexpected_end_of_text),"";var t,r,n,i=y.charCodeAt(l);switch(l++,i){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return l<_&&123===y.charCodeAt(l)?(g|=8,l++,t=O(1,!1),r=t?parseInt(t,16):-1,n=!1,r<0?(T(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(T(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(T(e.Diagnostics.Unexpected_end_of_text),n=!0):125===y.charCodeAt(l)?l++:(T(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}(r)):z(4);case 120:return z(2);case 13:l<_&&10===y.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(i)}}function z(t){var r=I(t,!1);return r>=0?String.fromCharCode(r):(T(e.Diagnostics.Hexadecimal_digit_expected),"")}function K(){if(l+5<_&&117===y.charCodeAt(l+1)){var e=l;l+=2;var t=I(4,!1);return l=e,t}return-1}function U(){for(var e="",r=l;l<_;){var n=y.charCodeAt(l);if(L(n,t))l++;else{if(92!==n)break;if(!((n=K())>=0&&L(n,t)))break;e+=y.substring(r,l),e+=String.fromCharCode(n),r=l+=6}}return e+=y.substring(r,l)}function V(){var e=m.length;if(e>=2&&e<=11){var t=m.charCodeAt(0);if(t>=97&&t<=122){var r=a.get(m);if(void 0!==r)return f=r}}return f=72}function q(t){for(var r="",n=!1,i=!1;;){var a=y.charCodeAt(l);if(95!==a){if(n=!0,!x(a)||a-48>=t)break;r+=y[l],l++,i=!1}else g|=512,n?(n=!1,i=!0):T(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===y.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function W(){if(110===y.charCodeAt(l))return m+="n",384&g&&(m=e.parsePseudoBigInt(m)+"n"),l++,9;var t=128&g?parseInt(m.slice(2),2):256&g?parseInt(m.slice(2),8):+m;return m=""+t,8}function H(){var r;d=l,g=0;for(var a=!1;;){if(p=l,l>=_)return f=1;var o=y.charCodeAt(l);if(35===o&&0===l&&N(y,l)){if(l=A(y,l),n)continue;return f=6}switch(o){case 10:case 13:if(g|=1,n){l++;continue}return 13===o&&l+1<_&&10===y.charCodeAt(l+1)?l+=2:l++,f=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(n){l++;continue}for(;l<_&&b(y.charCodeAt(l));)l++;return f=5;case 33:return 61===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=36):(l+=2,f=34):(l++,f=52);case 34:case 39:return m=B(),f=10;case 96:return f=j();case 37:return 61===y.charCodeAt(l+1)?(l+=2,f=65):(l++,f=43);case 38:return 38===y.charCodeAt(l+1)?(l+=2,f=54):61===y.charCodeAt(l+1)?(l+=2,f=69):(l++,f=49);case 40:return l++,f=20;case 41:return l++,f=21;case 42:if(61===y.charCodeAt(l+1))return l+=2,f=62;if(42===y.charCodeAt(l+1))return 61===y.charCodeAt(l+2)?(l+=3,f=63):(l+=2,f=41);if(l++,h&&!a&&1&g){a=!0;continue}return f=40;case 43:return 43===y.charCodeAt(l+1)?(l+=2,f=44):61===y.charCodeAt(l+1)?(l+=2,f=60):(l++,f=38);case 44:return l++,f=27;case 45:return 45===y.charCodeAt(l+1)?(l+=2,f=45):61===y.charCodeAt(l+1)?(l+=2,f=61):(l++,f=39);case 46:return x(y.charCodeAt(l+1))?(m=F().value,f=8):46===y.charCodeAt(l+1)&&46===y.charCodeAt(l+2)?(l+=3,f=25):(l++,f=24);case 47:if(47===y.charCodeAt(l+1)){for(l+=2;l<_&&!D(y.charCodeAt(l));)l++;if(n)continue;return f=2}if(42===y.charCodeAt(l+1)){l+=2,42===y.charCodeAt(l)&&47!==y.charCodeAt(l+1)&&(g|=2);for(var s=!1;l<_;){var c=y.charCodeAt(l);if(42===c&&47===y.charCodeAt(l+1)){l+=2,s=!0;break}D(c)&&(g|=1),l++}if(s||T(e.Diagnostics.Asterisk_Slash_expected),n)continue;return s||(g|=4),f=3}return 61===y.charCodeAt(l+1)?(l+=2,f=64):(l++,f=42);case 48:if(l+2<_&&(88===y.charCodeAt(l+1)||120===y.charCodeAt(l+1)))return l+=2,(m=O(1,!0))||(T(e.Diagnostics.Hexadecimal_digit_expected),m="0"),m="0x"+m,g|=64,f=W();if(l+2<_&&(66===y.charCodeAt(l+1)||98===y.charCodeAt(l+1)))return l+=2,(m=q(2))||(T(e.Diagnostics.Binary_digit_expected),m="0"),m="0b"+m,g|=128,f=W();if(l+2<_&&(79===y.charCodeAt(l+1)||111===y.charCodeAt(l+1)))return l+=2,(m=q(8))||(T(e.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,g|=256,f=W();if(l+1<_&&S(y.charCodeAt(l+1)))return m=""+w(),g|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=F(),f=r.type,m=r.value,f;case 58:return l++,f=57;case 59:return l++,f=26;case 60:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return 60===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=66):(l+=2,f=46):61===y.charCodeAt(l+1)?(l+=2,f=31):1===i&&47===y.charCodeAt(l+1)&&42!==y.charCodeAt(l+2)?(l+=2,f=29):(l++,f=28);case 61:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return 61===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=35):(l+=2,f=33):62===y.charCodeAt(l+1)?(l+=2,f=37):(l++,f=59);case 62:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return l++,f=30;case 63:return l++,f=56;case 91:return l++,f=22;case 93:return l++,f=23;case 94:return 61===y.charCodeAt(l+1)?(l+=2,f=71):(l++,f=51);case 123:return l++,f=18;case 124:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return 124===y.charCodeAt(l+1)?(l+=2,f=55):61===y.charCodeAt(l+1)?(l+=2,f=70):(l++,f=50);case 125:return l++,f=19;case 126:return l++,f=53;case 64:return l++,f=58;case 92:var u=K();return u>=0&&M(u,t)?(l+=6,m=String.fromCharCode(u)+U(),f=V()):(T(e.Diagnostics.Invalid_character),l++,f=0);default:if(M(o,t)){for(l++;l<_&&L(o=y.charCodeAt(l),t);)l++;return m=y.substring(p,l),92===o&&(m+=U()),f=V()}if(b(o)){l++;continue}if(D(o)){g|=1,l++;continue}return T(e.Diagnostics.Invalid_character),l++,f=0}}}function G(){if(d=p=l,l>=_)return f=1;var e=y.charCodeAt(l);if(60===e)return 47===y.charCodeAt(l+1)?(l+=2,f=29):(l++,f=28);if(123===e)return l++,f=18;for(var t=0;l<_&&123!==(e=y.charCodeAt(l));){if(60===e){if(C(y,l))return l=E(y,l,T),f=7;break}D(e)&&0===t?t=-1:v(e)||(t=l),l++}return m=y.substring(d,l),-1===t?12:11}function Y(e,t){var r=l,n=d,i=p,a=f,o=m,s=g,c=e();return c&&!t||(l=r,d=n,p=i,f=a,m=o,g=s),c}function X(e,t,r){y=e||"",_=void 0===r?y.length:t+r,Q(t||0)}function Q(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,m=void 0,g=0}}}(c||(c={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(c||(c={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!d(e)}function m(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?v(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos)}function b(e,t,r){return void 0===r&&(r=!1),D(e.text,t,r)}function D(t,r,n){if(void 0===n&&(n=!1),d(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function e(t){return 288===t.kind||t.parent&&e(t.parent)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function x(e,t){return void 0===t&&(t=!1),b(l(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=Xe(e);return 237===t.kind&&274===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||k(t))}function k(e){return!!(512&e.flags)}function N(e){return E(e)&&A(e)}function A(t){switch(t.parent.kind){case 284:return e.isExternalModule(t.parent);case 245:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t,r){switch(t.kind){case 284:case 246:case 274:case 244:case 225:case 226:case 227:case 157:case 156:case 158:case 159:case 239:case 196:case 197:return!0;case 218:return!e.isFunctionLike(r)}return!1}function P(t){switch(t.kind){case 160:case 161:case 155:case 162:case 165:case 166:case 294:case 240:case 209:case 241:case 242:case 308:case 239:case 156:case 157:case 158:case 159:case 196:case 197:return!0;default:return e.assertType(t),!1}}function w(e){switch(e.kind){case 249:case 248:return!0;default:return!1}}function I(e){return e&&0!==c(e)?x(e):"(Missing)"}function O(t){switch(t.kind){case 72:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 149:return Ue(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function M(t,r,n,i,a,o,s){var c=R(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function L(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function R(t,r){var n=r;switch(r.kind){case 284:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):L(t,i);case 237:case 186:case 240:case 209:case 241:case 244:case 243:case 278:case 239:case 196:case 156:case 158:case 159:case 242:case 154:case 153:n=r.name;break;case 197:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&218===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,n.end)}function B(e){return 6===e.scriptKind}function j(t){return!!(2&e.getCombinedNodeFlags(t))}function J(e){return 191===e.kind&&92===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function K(e){return 221===e.kind&&10===e.expression.kind}e.toPath=a,e.changesAffectModuleResolution=function(t,r){return t.configFilePath!==r.configFilePath||e.moduleResolutionOptionDeclarations.some(function(n){return!e.isJsonEqual(e.getCompilerOptionValue(t,n),e.getCompilerOptionValue(r,n))})},e.findAncestor=o,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r,n=e.entries(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=a[0],c=t(a[1],s);if(c)return c}},e.forEachKey=function(e,t){for(var r,n=e.keys(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=t(a);if(s)return s}},e.copyEntries=s,e.arrayToSet=function(t,r){return e.arrayToMap(t,r||function(e){return e},function(){return!0})},e.cloneMap=function(t){var r=e.createMap();return s(t,r),r},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName,n=e.version;return(r?t+"/"+r:t)+"@"+n},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=d,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return m(e,t,K)},e.insertStatementsAfterCustomPrologue=function(e,t){return m(e,t,y)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,K)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,y)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2/;var U=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var V=/^(\/\/\/\s*/;function q(t){if(163<=t.kind&&t.kind<=183)return!0;switch(t.kind){case 120:case 143:case 135:case 146:case 138:case 123:case 139:case 136:case 141:case 132:return!0;case 106:return 200!==t.parent.kind;case 211:return!Ut(t);case 150:return 181===t.parent.kind||176===t.parent.kind;case 72:148===t.parent.kind&&t.parent.right===t?t=t.parent:189===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(72===t.kind||148===t.kind||189===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 148:case 189:case 100:var r=t.parent;if(167===r.kind)return!1;if(183===r.kind)return!r.isTypeOf;if(163<=r.kind&&r.kind<=183)return!0;switch(r.kind){case 211:return!Ut(r);case 150:case 308:return t===r.constraint;case 154:case 153:case 151:case 237:return t===r.type;case 239:case 196:case 197:case 157:case 156:case 155:case 158:case 159:return t===r.type;case 160:case 161:case 162:case 194:return t===r.type;case 191:case 192:return e.contains(r.typeArguments,t);case 193:return!1}}return!1}function W(e){if(e)switch(e.kind){case 186:case 278:case 151:case 275:case 154:case 153:case 276:case 237:return!0}return!1}function H(e){return 238===e.parent.kind&&219===e.parent.parent.kind}function G(e,t,r){return e.properties.filter(function(e){if(275===e.kind){var n=O(e.name);return t===n||!!r&&r===n}return!1})}function Y(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function X(t,r){var n=Y(t);return n?G(n,r):e.emptyArray}function Q(t,r){for(e.Debug.assert(284!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 149:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 152:151===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 197:if(!r)continue;case 239:case 196:case 244:case 154:case 153:case 156:case 155:case 157:case 158:case 159:case 160:case 161:case 162:case 243:case 284:return t}}}function $(e){var t=e.kind;return(189===t||190===t)&&98===e.expression.kind}function Z(e,t,r){switch(e.kind){case 240:return!0;case 154:return 240===t.kind;case 158:case 159:case 156:return void 0!==e.body&&240===t.kind;case 151:return void 0!==t.body&&(157===t.kind||156===t.kind||159===t.kind)&&240===r.kind}return!1}function ee(e,t,r){return void 0!==e.decorators&&Z(e,t,r)}function te(e,t,r){return ee(e,t,r)||re(e,t)}function re(t,r){switch(t.kind){case 240:return e.some(t.members,function(e){return te(e,t,r)});case 156:case 159:return e.some(t.parameters,function(e){return ee(e,t,r)});default:return!1}}function ne(e){var t=e.parent;return(262===t.kind||261===t.kind||263===t.kind)&&t.tagName===e}function ie(e){switch(e.kind){case 98:case 96:case 102:case 87:case 13:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 212:case 194:case 213:case 195:case 196:case 209:case 197:case 200:case 198:case 199:case 202:case 203:case 204:case 205:case 208:case 206:case 14:case 210:case 260:case 261:case 264:case 207:case 201:case 214:return!0;case 148:for(;148===e.parent.kind;)e=e.parent;return 167===e.parent.kind||ne(e);case 72:if(167===e.parent.kind||ne(e))return!0;case 8:case 9:case 10:case 100:return ae(e);default:return!1}}function ae(e){var t=e.parent;switch(t.kind){case 237:case 151:case 154:case 153:case 278:case 275:case 186:return t.initializer===e;case 221:case 222:case 223:case 224:case 230:case 231:case 232:case 271:case 234:return t.expression===e;case 225:var r=t;return r.initializer===e&&238!==r.initializer.kind||r.condition===e||r.incrementor===e;case 226:case 227:var n=t;return n.initializer===e&&238!==n.initializer.kind||n.expression===e;case 194:case 212:case 216:case 149:return e===t.expression;case 152:case 270:case 269:case 277:return!0;case 211:return t.expression===e&&Ut(t);case 276:return t.objectAssignmentInitializer===e;default:return ie(t)}}function oe(e){return 248===e.kind&&259===e.moduleReference.kind}function se(e){return ce(e)}function ce(e){return!!e&&!!(65536&e.flags)}function ue(t,r){if(191!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(72!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function le(t){return ce(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&55===t.initializer.operatorToken.kind&&t.name&&Vt(t.name)&&de(t.name,t.initializer.left)?t.initializer.right:t.initializer}function _e(t,r){if(e.isCallExpression(t)){var n=Ie(t.expression);return 196===n.kind||197===n.kind?t:void 0}return 196===t.kind||209===t.kind||197===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function de(t,r){return e.isIdentifier(t)&&e.isIdentifier(r)?t.escapedText===r.escapedText:e.isIdentifier(t)&&e.isPropertyAccessExpression(r)?(100===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&de(t,r.name):!(!e.isPropertyAccessExpression(t)||!e.isPropertyAccessExpression(r))&&(t.name.escapedText===r.name.escapedText&&de(t.expression,r.expression))}function pe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function fe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function me(t){var r=function(t){if(e.isCallExpression(t)){if(!ge(t))return 0;var r=t.arguments[0];return pe(r)||fe(r)?8:e.isPropertyAccessExpression(r)&&"prototype"===r.name.escapedText&&Vt(r.expression)?9:7}if(59!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var n=t.left;if(Vt(n.expression)&&"prototype"===n.name.escapedText&&e.isObjectLiteralExpression(he(t)))return 6;return ye(n)}(t);return 5===r||ce(t)?r:0}function ge(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Ue(t.arguments[1])&&Vt(t.arguments[0])}function ye(t){if(100===t.expression.kind)return 4;if(fe(t))return 2;if(Vt(t.expression)){if(Wt(t.expression))return 3;for(var r=t;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var n=r.expression;return"exports"===n.escapedText||"module"===n.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function he(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function ve(t){switch(t.parent.kind){case 249:case 255:return t.parent;case 259:return t.parent.parent;case 191:return J(t.parent)||ue(t.parent,!1)?t.parent:void 0;case 182:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function be(e){return 309===e.kind||302===e.kind}function De(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==me(t.expression)&&e.isBinaryExpression(t.expression.right)&&55===t.expression.right.operatorToken.kind?t.expression.right.right:void 0}function xe(e){switch(e.kind){case 219:var t=Se(e);return t&&t.initializer;case 154:case 275:return e.initializer}}function Se(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Te(t){return e.isModuleDeclaration(t)&&t.body&&244===t.body.kind?t.body:void 0}function Ce(t){var r=t.parent;return 275===r.kind||154===r.kind||221===r.kind&&189===t.kind||Te(r)||e.isBinaryExpression(t)&&59===t.operatorToken.kind?r:r.parent&&(Se(r.parent)===t||e.isBinaryExpression(r)&&59===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Se(r.parent.parent)||xe(r.parent.parent)===t||De(r.parent.parent))?r.parent.parent:void 0}function Ee(e){return ke(Ne(e))}function ke(t){var r,n=De(t)||(r=t,e.isExpressionStatement(r)&&r.expression&&e.isBinaryExpression(r.expression)&&59===r.expression.operatorToken.kind?r.expression.right:void 0)||xe(t)||Se(t)||Te(t)||t;return n&&e.isFunctionLike(n)?n:void 0}function Ne(t){return e.Debug.assertDefined(o(t.parent,e.isJSDoc)).parent}function Ae(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&295===r.kind}function Fe(e){for(var t=e.parent;;){switch(t.kind){case 204:var r=t.operatorToken.kind;return jt(r)&&t.left===e?59===r?1:2:0;case 202:case 203:var n=t.operator;return 44===n||45===n?2:0;case 226:case 227:return t.initializer===e?1:0;case 195:case 187:case 208:case 213:e=t;break;case 276:if(t.name!==e)return 0;e=t.parent;break;case 275:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Pe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function we(e){return Pe(e,195)}function Ie(e){for(;195===e.kind;)e=e.expression;return e}function Oe(t){var r=e.isExportAssignment(t)?t.expression:t.right;return Vt(r)||e.isClassExpression(r)}function Me(t){var r=Le(t);if(r&&ce(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function Le(e){var t=je(e.heritageClauses,86);return t&&t.types.length>0?t.types[0]:void 0}function Re(e){var t=je(e.heritageClauses,109);return t?t.types:void 0}function Be(e){var t=je(e.heritageClauses,86);return t?t.types:void 0}function je(e,t){if(e)for(var r=0,n=e;r=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,function(e){return n.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}}};var rt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,nt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,it=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,at=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});function ot(e,t){var r=96===t?it:39===t?nt:rt;return e.replace(r,st)}function st(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return at.get(e)||ct(e.charCodeAt(0))}function ct(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=ot,e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")};var ut=/[^\u0000-\u007F]/g;function lt(e,t){return e=ot(e,t),ut.test(e)?e.replace(ut,function(e){return ct(e.charCodeAt(0))}):e}e.escapeNonAsciiString=lt;var _t=[""," "];function dt(e){return void 0===_t[e]&&(_t[e]=dt(e-1)+_t[1]),_t[e]}function pt(){return _t[1].length}function ft(e,t,r){return t.moduleName||mt(e,t.fileName,r&&r.fileName)}function mt(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},o=a(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),s=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),c=e.getRelativePathToDirectoryOrUrl(o,s,o,i,!1),u=e.removeFileExtension(c);return n?e.ensurePathIsNonModuleName(u):u}function gt(t,r,n,i,a){var o=r.declarationDir||r.outDir,s=o?vt(t,o,n,i,a):t;return e.removeFileExtension(s)+".d.ts"}function yt(e,t,r,n){return!(t.noEmitForJsFiles&&se(e)||e.isDeclarationFile||r(e)||B(e)&&n(e.fileName))}function ht(e,t,r){return vt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function vt(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function bt(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Dt(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function xt(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&St(e.parameters[0]);return e.parameters[t?1:0]}}function St(e){return Tt(e.name)}function Tt(e){return!!e&&72===e.kind&&Ct(e)}function Ct(e){return 100===e.originalKeywordKind}function Et(t){var r=t.type;return r||!ce(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}function kt(e,t,r,n){Nt(e,t,r.pos,n)}function Nt(e,t,r,n){n&&n.length&&r!==n[0].pos&&Dt(e,r)!==Dt(e,n[0].pos)&&t.writeLine()}function At(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u=59&&e<=71}function Jt(e){var t=zt(e);return t&&!t.isImplements?t.class:void 0}function zt(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:109===t.parent.token}:void 0}function Kt(t,r){return e.isBinaryExpression(t)&&(r?59===t.operatorToken.kind:jt(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Ut(e){return void 0!==Jt(e)}function Vt(e){return 72===e.kind||qt(e)}function qt(t){return e.isPropertyAccessExpression(t)&&Vt(t.expression)}function Wt(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText}e.getIndentString=dt,e.getIndentSize=pt,e.createTextWriter=function(t){var r,n,i,a,o;function s(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function c(e){e&&e.length&&(i&&(e=dt(n)+e,i=!1),r+=e,s(e))}function u(){r="",n=0,i=!0,a=0,o=0}return u(),{write:c,rawWrite:function(e){void 0!==e&&(r+=e,s(e))},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(){i||(a++,o=(r+=t).length,i=!0)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*pt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},clear:u,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:function(e,t){return c(e)},writeTrailingSemicolon:c,writeComment:c,getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonOmittingWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return i({},e,{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.getResolvedExternalModuleName=ft,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return ft(e,n)},e.getExternalModuleNameFromPath=mt,e.getOwnEmitOutputFilePath=function(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(ht(t,r,i.outDir)):e.removeFileExtension(t))+n},e.getDeclarationEmitOutputFilePath=function(e,t){return gt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=gt,e.getSourceFilesToEmit=function(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)},a=function(e){return t.getResolvedProjectReferenceToRedirect(e)};if(n.outFile||n.out){var o=e.getEmitModuleKind(n),s=n.emitDeclarationOnly||o===e.ModuleKind.AMD||o===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(s||!e.isExternalModule(t))&&yt(t,n,i,a)})}var c=void 0===r?t.getSourceFiles():[r];return e.filter(c,function(e){return yt(e,n,i,a)})},e.sourceFileMayBeEmitted=yt,e.getSourceFilePathInNewDir=ht,e.getSourceFilePathInNewDirWorker=vt,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)},e.getLineOfLocalPosition=bt,e.getLineOfLocalPositionFromLineMap=Dt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&p(t.body)})},e.getSetAccessorTypeAnnotationNode=function(e){var t=xt(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(St(r))return r}},e.parameterIsThisKeyword=St,e.isThisIdentifier=Tt,e.identifierIsThisKeyword=Ct,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Ve(r)?(n=r,158===r.kind?a=r:159===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(t){e.isAccessor(t)&&wt(t,32)===wt(r,32)&&He(t.name)===He(r.name)&&(n?i||(i=t):n=t,158!==t.kind||a||(a=t),159!==t.kind||o||(o=t))}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Et,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ce(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(296===t.parent.kind&&t.parent.tags.some(be))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=xt(e);return t&&Et(t)},e.emitNewLineBeforeLeadingComments=kt,e.emitNewLineBeforeLeadingCommentsOfPosition=Nt,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Dt(e,r)!==Dt(e,n)&&t.writeLine()},e.emitComments=At,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return h(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d=m+2)break}l.push(f),_=f}l.length&&(m=Dt(r,e.last(l).end),Dt(r,e.skipTrivia(t,a.pos))>=m+2&&(kt(r,n,a,c),At(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}))}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l0){var f=p%pt(),m=dt((p-f)/pt());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Ft(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasModifiers=function(e){return 0!==Lt(e)},e.hasModifier=wt,e.hasStaticModifier=It,e.hasReadonlyModifier=Ot,e.getSelectedModifierFlags=Mt,e.getModifierFlags=Lt,e.getModifierFlagsNoCache=Rt,e.modifierToFlag=Bt,e.isLogicalOperator=function(e){return 55===e||54===e||52===e},e.isAssignmentOperator=jt,e.tryGetClassExtendingExpressionWithTypeArguments=Jt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zt,e.isAssignmentExpression=Kt,e.isDestructuringAssignment=function(e){if(Kt(e,!0)){var t=e.left.kind;return 188===t||187===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Ut,e.isEntityNameExpression=Vt,e.isPropertyAccessEntityNameExpression=qt,e.isPrototypeAccess=Wt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 148===e.parent.kind&&e.parent.right===e||189===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 188===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 187===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&wt(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})};var Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Gt(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=Ht.charAt(r)+Ht.charAt(n)+Ht.charAt(i)+Ht.charAt(a),c+=3;return o}e.convertToBase64=Gt,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Gt(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[0],l=c[1];0!==u&&(o&u)===u&&(o&=~u,a=l+(a?", ":"")+a)}if(0===o)return a}else for(var _=0,d=i;_=t||-1===r),{pos:t,end:r}}function er(e,t){return Zt(t,e.end)}function tr(e){return e.decorators&&e.decorators.length>0?er(e,e.decorators.end):e}function rr(e,t,r){return nr(ir(e,r),t.end,r)}function nr(e,t,r){return e===t||bt(r,e)===bt(r,t)}function ir(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function ar(e){return void 0!==e.initializer}function or(e){return 33554432&e.flags?e.checkFlags:0}function sr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 195:return sr(r);case 203:case 202:var n=r.operator;return 44===n||45===n?c():0;case 204:var i=r,a=i.left,o=i.operatorToken;return a===t&&jt(o.kind)?59===o.kind?1:c():0;case 189:return r.name!==t?0:sr(r);case 275:var s=sr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 276:return t===r.objectAssignmentInitializer?0:sr(r.parent);case 187:return sr(r);default:return 0}function c(){return r.parent&&221===function(e){for(;195===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function cr(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function ur(e){if(32&e.flags){var t=lr(e);return!!t&&wt(t,128)}return!1}function lr(t){return e.find(t.declarations,e.isClassLike)}function _r(e){return 3768320&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return Xt;case 1:return Qt}return r?r():e.sys?e.sys.newLine:Xt},e.formatSyntaxKind=function(t){return $t(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return $t(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return $t(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return $t(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return $t(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return $t(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return $t(t,e.ObjectFlags,!0)},e.createRange=Zt,e.moveRangeEnd=function(e,t){return Zt(e.pos,t)},e.moveRangePos=er,e.moveRangePastDecorators=tr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?er(e,e.modifiers.end):tr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Zt(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return rr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return nr(ir(e,r),ir(t,r),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return nr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=rr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return nr(e.end,ir(t,r),r)},e.positionsAreOnSameLine=nr,e.getStartPositionOfRange=ir,e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 243:case 244:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,ar)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=or,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&or(t)){var n=t.checkFlags;return(512&n?8:128&n?4:16)|(1024&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===sr(e)},e.isWriteAccess=function(e){return 0!==sr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Yt||(Yt={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"===f(t[n])){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);void 0===o?(e.delete(n),i(r,n)):a&&a(r,o,n)}),t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})},e.forEachAncestorDirectory=cr,e.isAbstractConstructorType=function(e){return!!(16&_r(e))&&!!e.symbol&&ur(e.symbol)},e.isAbstractConstructorSymbol=ur,e.getClassLikeDeclarationOfSymbol=lr,e.getObjectFlags=_r,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!cr(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:x(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,function(e){p(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}}),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=163&&e<=183||120===e||143===e||135===e||146===e||136===e||123===e||138===e||139===e||100===e||106===e||141===e||96===e||132===e||211===e||289===e||290===e||291===e||292===e||293===e||294===e||295===e},e.isAccessExpression=function(e){return 189===e.kind||190===e.kind},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}}(c||(c={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 237===t.kind&&(t=t.parent),t&&238===t.kind&&(n|=r(t),t=t.parent),t&&219===t.kind&&(n|=r(t)),n}function p(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function f(e){return 0==(8&e.flags)}function m(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(t){var r=v(t);return r&&e.isIdentifier(r)?r:void 0}function y(t){return t.name||function(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return g(r);switch(r.kind){case 219:if(r.declarationList&&r.declarationList.declarations[0])return g(r.declarationList.declarations[0]);break;case 221:var n=r.expression;switch(n.kind){case 189:return n.name;case 190:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 195:return g(r.expression);case 233:if(e.isDeclaration(r.statement)||e.isExpression(r.statement))return g(r.statement)}}}(t)}function h(t){switch(t.kind){case 72:return t;case 310:case 304:var r=t.name;if(148===r.kind)return r.right;break;case 191:case 204:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return n.left.name;case 7:case 8:case 9:return n.arguments[1];default:return}case 309:return y(t);case 254:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}function v(t){if(void 0!==t)return h(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?function(t){if(!t.parent)return;if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isPropertyAccessExpression(t.parent.left))return t.parent.left.name}}(t):void 0)}function b(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return T(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=T(t.parent).filter(e.isJSDocParameterTag);if(n=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=function(e){return m(e.escapedText)},e.symbolName=function(e){return m(e.escapedName)},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=function(e){return!!e.name},e.getNonAssignedNameOfDeclaration=h,e.getNameOfDeclaration=v,e.getJSDocParameterTags=b,e.getJSDocTypeParameterTags=function(t){var r=t.name.escapedText;return T(t.parent).filter(function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some(function(e){return e.name.escapedText===r})})},e.hasJSDocParameterTags=function(t){return!!C(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return C(t,e.isJSDocAugmentsTag)},e.getJSDocClassTag=function(t){return C(t,e.isJSDocClassTag)},e.getJSDocEnumTag=function(t){return C(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return C(t,e.isJSDocThisTag)},e.getJSDocReturnTag=D,e.getJSDocTemplateTag=function(t){return C(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=x,e.getJSDocType=S,e.getJSDocReturnType=function(t){var r=D(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=x(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i))return i.type}},e.getJSDocTags=T,e.getAllJSDocTagsOfKind=function(e,t){return T(e).filter(function(e){return e.kind===t})},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(296===t.parent.kind),e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0});if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=S(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}}(c||(c={})),function(e){function t(e){return 72===e.kind}function r(e){return 164===e.kind}function n(e){switch(e.kind){case 281:case 282:return!0;default:return!1}}e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=t,e.isQualifiedName=function(e){return 148===e.kind},e.isComputedPropertyName=function(e){return 149===e.kind},e.isTypeParameterDeclaration=function(e){return 150===e.kind},e.isParameter=function(e){return 151===e.kind},e.isDecorator=function(e){return 152===e.kind},e.isPropertySignature=function(e){return 153===e.kind},e.isPropertyDeclaration=function(e){return 154===e.kind},e.isMethodSignature=function(e){return 155===e.kind},e.isMethodDeclaration=function(e){return 156===e.kind},e.isConstructorDeclaration=function(e){return 157===e.kind},e.isGetAccessorDeclaration=function(e){return 158===e.kind},e.isSetAccessorDeclaration=function(e){return 159===e.kind},e.isCallSignatureDeclaration=function(e){return 160===e.kind},e.isConstructSignatureDeclaration=function(e){return 161===e.kind},e.isIndexSignatureDeclaration=function(e){return 162===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 159===e.kind||158===e.kind},e.isTypePredicateNode=function(e){return 163===e.kind},e.isTypeReferenceNode=r,e.isFunctionTypeNode=function(e){return 165===e.kind},e.isConstructorTypeNode=function(e){return 166===e.kind},e.isTypeQueryNode=function(e){return 167===e.kind},e.isTypeLiteralNode=function(e){return 168===e.kind},e.isArrayTypeNode=function(e){return 169===e.kind},e.isTupleTypeNode=function(e){return 170===e.kind},e.isUnionTypeNode=function(e){return 173===e.kind},e.isIntersectionTypeNode=function(e){return 174===e.kind},e.isConditionalTypeNode=function(e){return 175===e.kind},e.isInferTypeNode=function(e){return 176===e.kind},e.isParenthesizedTypeNode=function(e){return 177===e.kind},e.isThisTypeNode=function(e){return 178===e.kind},e.isTypeOperatorNode=function(e){return 179===e.kind},e.isIndexedAccessTypeNode=function(e){return 180===e.kind},e.isMappedTypeNode=function(e){return 181===e.kind},e.isLiteralTypeNode=function(e){return 182===e.kind},e.isImportTypeNode=function(e){return 183===e.kind},e.isObjectBindingPattern=function(e){return 184===e.kind},e.isArrayBindingPattern=function(e){return 185===e.kind},e.isBindingElement=function(e){return 186===e.kind},e.isArrayLiteralExpression=function(e){return 187===e.kind},e.isObjectLiteralExpression=function(e){return 188===e.kind},e.isPropertyAccessExpression=function(e){return 189===e.kind},e.isElementAccessExpression=function(e){return 190===e.kind},e.isCallExpression=function(e){return 191===e.kind},e.isNewExpression=function(e){return 192===e.kind},e.isTaggedTemplateExpression=function(e){return 193===e.kind},e.isTypeAssertion=function(e){return 194===e.kind},e.isConstTypeReference=function(e){return r(e)&&t(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},e.isParenthesizedExpression=function(e){return 195===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;313===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 196===e.kind},e.isArrowFunction=function(e){return 197===e.kind},e.isDeleteExpression=function(e){return 198===e.kind},e.isTypeOfExpression=function(e){return 199===e.kind},e.isVoidExpression=function(e){return 200===e.kind},e.isAwaitExpression=function(e){return 201===e.kind},e.isPrefixUnaryExpression=function(e){return 202===e.kind},e.isPostfixUnaryExpression=function(e){return 203===e.kind},e.isBinaryExpression=function(e){return 204===e.kind},e.isConditionalExpression=function(e){return 205===e.kind},e.isTemplateExpression=function(e){return 206===e.kind},e.isYieldExpression=function(e){return 207===e.kind},e.isSpreadElement=function(e){return 208===e.kind},e.isClassExpression=function(e){return 209===e.kind},e.isOmittedExpression=function(e){return 210===e.kind},e.isExpressionWithTypeArguments=function(e){return 211===e.kind},e.isAsExpression=function(e){return 212===e.kind},e.isNonNullExpression=function(e){return 213===e.kind},e.isMetaProperty=function(e){return 214===e.kind},e.isTemplateSpan=function(e){return 216===e.kind},e.isSemicolonClassElement=function(e){return 217===e.kind},e.isBlock=function(e){return 218===e.kind},e.isVariableStatement=function(e){return 219===e.kind},e.isEmptyStatement=function(e){return 220===e.kind},e.isExpressionStatement=function(e){return 221===e.kind},e.isIfStatement=function(e){return 222===e.kind},e.isDoStatement=function(e){return 223===e.kind},e.isWhileStatement=function(e){return 224===e.kind},e.isForStatement=function(e){return 225===e.kind},e.isForInStatement=function(e){return 226===e.kind},e.isForOfStatement=function(e){return 227===e.kind},e.isContinueStatement=function(e){return 228===e.kind},e.isBreakStatement=function(e){return 229===e.kind},e.isBreakOrContinueStatement=function(e){return 229===e.kind||228===e.kind},e.isReturnStatement=function(e){return 230===e.kind},e.isWithStatement=function(e){return 231===e.kind},e.isSwitchStatement=function(e){return 232===e.kind},e.isLabeledStatement=function(e){return 233===e.kind},e.isThrowStatement=function(e){return 234===e.kind},e.isTryStatement=function(e){return 235===e.kind},e.isDebuggerStatement=function(e){return 236===e.kind},e.isVariableDeclaration=function(e){return 237===e.kind},e.isVariableDeclarationList=function(e){return 238===e.kind},e.isFunctionDeclaration=function(e){return 239===e.kind},e.isClassDeclaration=function(e){return 240===e.kind},e.isInterfaceDeclaration=function(e){return 241===e.kind},e.isTypeAliasDeclaration=function(e){return 242===e.kind},e.isEnumDeclaration=function(e){return 243===e.kind},e.isModuleDeclaration=function(e){return 244===e.kind},e.isModuleBlock=function(e){return 245===e.kind},e.isCaseBlock=function(e){return 246===e.kind},e.isNamespaceExportDeclaration=function(e){return 247===e.kind},e.isImportEqualsDeclaration=function(e){return 248===e.kind},e.isImportDeclaration=function(e){return 249===e.kind},e.isImportClause=function(e){return 250===e.kind},e.isNamespaceImport=function(e){return 251===e.kind},e.isNamedImports=function(e){return 252===e.kind},e.isImportSpecifier=function(e){return 253===e.kind},e.isExportAssignment=function(e){return 254===e.kind},e.isExportDeclaration=function(e){return 255===e.kind},e.isNamedExports=function(e){return 256===e.kind},e.isExportSpecifier=function(e){return 257===e.kind},e.isMissingDeclaration=function(e){return 258===e.kind},e.isExternalModuleReference=function(e){return 259===e.kind},e.isJsxElement=function(e){return 260===e.kind},e.isJsxSelfClosingElement=function(e){return 261===e.kind},e.isJsxOpeningElement=function(e){return 262===e.kind},e.isJsxClosingElement=function(e){return 263===e.kind},e.isJsxFragment=function(e){return 264===e.kind},e.isJsxOpeningFragment=function(e){return 265===e.kind},e.isJsxClosingFragment=function(e){return 266===e.kind},e.isJsxAttribute=function(e){return 267===e.kind},e.isJsxAttributes=function(e){return 268===e.kind},e.isJsxSpreadAttribute=function(e){return 269===e.kind},e.isJsxExpression=function(e){return 270===e.kind},e.isCaseClause=function(e){return 271===e.kind},e.isDefaultClause=function(e){return 272===e.kind},e.isHeritageClause=function(e){return 273===e.kind},e.isCatchClause=function(e){return 274===e.kind},e.isPropertyAssignment=function(e){return 275===e.kind},e.isShorthandPropertyAssignment=function(e){return 276===e.kind},e.isSpreadAssignment=function(e){return 277===e.kind},e.isEnumMember=function(e){return 278===e.kind},e.isSourceFile=function(e){return 284===e.kind},e.isBundle=function(e){return 285===e.kind},e.isUnparsedSource=function(e){return 286===e.kind},e.isUnparsedPrepend=function(e){return 280===e.kind},e.isUnparsedTextLike=n,e.isUnparsedNode=function(e){return n(e)||279===e.kind||283===e.kind},e.isJSDocTypeExpression=function(e){return 288===e.kind},e.isJSDocAllType=function(e){return 289===e.kind},e.isJSDocUnknownType=function(e){return 290===e.kind},e.isJSDocNullableType=function(e){return 291===e.kind},e.isJSDocNonNullableType=function(e){return 292===e.kind},e.isJSDocOptionalType=function(e){return 293===e.kind},e.isJSDocFunctionType=function(e){return 294===e.kind},e.isJSDocVariadicType=function(e){return 295===e.kind},e.isJSDoc=function(e){return 296===e.kind},e.isJSDocAugmentsTag=function(e){return 300===e.kind},e.isJSDocClassTag=function(e){return 301===e.kind},e.isJSDocEnumTag=function(e){return 303===e.kind},e.isJSDocThisTag=function(e){return 306===e.kind},e.isJSDocParameterTag=function(e){return 304===e.kind},e.isJSDocReturnTag=function(e){return 305===e.kind},e.isJSDocTypeTag=function(e){return 307===e.kind},e.isJSDocTemplateTag=function(e){return 308===e.kind},e.isJSDocTypedefTag=function(e){return 309===e.kind},e.isJSDocPropertyTag=function(e){return 310===e.kind},e.isJSDocPropertyLikeTag=function(e){return 310===e.kind||304===e.kind},e.isJSDocTypeLiteral=function(e){return 297===e.kind},e.isJSDocCallbackTag=function(e){return 302===e.kind},e.isJSDocSignature=function(e){return 298===e.kind}}(c||(c={})),function(e){function t(e){return e>=148}function r(e){return 8<=e&&e<=14}function n(e){return 14<=e&&e<=17}function i(e){switch(e){case 118:case 121:case 77:case 125:case 80:case 85:case 115:case 113:case 114:case 133:case 116:return!0}return!1}function a(t){return!!(92&e.modifierToFlag(t))}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 239:case 156:case 157:case 158:case 159:case 196:case 197:return!0;default:return!1}}function c(e){switch(e){case 155:case 160:case 298:case 161:case 162:case 165:case 294:case 166:return!0;default:return s(e)}}function u(e){var t=e.kind;return 157===t||154===t||156===t||158===t||159===t||162===t||217===t}function l(e){var t=e.kind;return 161===t||160===t||153===t||155===t||162===t}function _(e){var t=e.kind;return 275===t||276===t||277===t||156===t||158===t||159===t}function d(e){switch(e.kind){case 184:case 188:return!0}return!1}function p(e){switch(e.kind){case 185:case 187:return!0}return!1}function f(e){switch(e){case 189:case 190:case 192:case 191:case 260:case 261:case 264:case 193:case 187:case 195:case 188:case 209:case 196:case 72:case 13:case 8:case 9:case 10:case 14:case 206:case 87:case 96:case 100:case 102:case 98:case 213:case 214:case 92:return!0;default:return!1}}function m(e){switch(e){case 202:case 203:case 198:case 199:case 200:case 201:case 194:return!0;default:return f(e)}}function g(t){return function(e){switch(e){case 205:case 207:case 197:case 204:case 208:case 212:case 210:case 314:case 313:return!0;default:return m(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function y(e){return 313===e.kind}function h(e){return 312===e.kind}function v(e){return 239===e||258===e||240===e||241===e||242===e||243===e||244===e||249===e||248===e||255===e||254===e||247===e}function b(e){return 229===e||228===e||236===e||223===e||221===e||220===e||226===e||227===e||225===e||222===e||233===e||230===e||232===e||234===e||235===e||219===e||224===e||231===e||312===e||316===e||315===e}function D(e){return e.kind>=299&&e.kind<=310}function x(e){return!!e.initializer}e.isSyntaxList=function(e){return 311===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=147},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=r,e.isLiteralExpression=function(e){return r(e.kind)},e.isTemplateLiteralKind=n,e.isTemplateLiteralToken=function(e){return n(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||n(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isParameterPropertyModifier=a,e.isClassMemberModifier=function(e){return a(e)||116===e},e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 148===t||72===t},e.isPropertyName=function(e){var t=e.kind;return 72===t||10===t||8===t||149===t},e.isBindingName=function(e){var t=e.kind;return 72===t||184===t||185===t},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=c,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&o(t.parent)},e.isClassElement=u,e.isClassLike=function(e){return e&&(240===e.kind||209===e.kind)},e.isAccessor=function(e){return e&&(158===e.kind||159===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 156:case 158:case 159:return!0;default:return!1}},e.isTypeElement=l,e.isClassOrTypeElement=function(e){return l(e)||u(e)},e.isObjectLiteralElementLike=_,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 165:case 166:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 185===t||184===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 187===t||188===t},e.isArrayBindingElement=function(e){var t=e.kind;return 186===t||210===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 237:case 151:case 186:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return d(e)||p(e)},e.isObjectBindingOrAssignmentPattern=d,e.isArrayBindingOrAssignmentPattern=p,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 189===t||148===t||183===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 189===t||148===t},e.isCallLikeExpression=function(e){switch(e.kind){case 262:case 261:case 191:case 192:case 193:case 152:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 191===e.kind||192===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 206===t||14===t},e.isLeftHandSideExpression=function(t){return f(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return m(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 203:return!0;case 202:return 44===e.operator||45===e.operator;default:return!1}},e.isExpression=g,e.isAssertionExpression=function(e){var t=e.kind;return 194===t||212===t},e.isPartiallyEmittedExpression=y,e.isNotEmittedStatement=h,e.isNotEmittedOrPartiallyEmittedNode=function(e){return h(e)||y(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 225:case 226:case 227:case 223:case 224:return!0;case 233:return r&&e(t.statement,r)}return!1},e.isForInOrOfStatement=function(e){return 226===e.kind||227===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||g(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||g(t)},e.isModuleBody=function(e){var t=e.kind;return 245===t||244===t||72===t},e.isNamespaceBody=function(e){var t=e.kind;return 245===t||244===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 72===t||244===t},e.isNamedImportBindings=function(e){var t=e.kind;return 252===t||251===t},e.isModuleOrEnumDeclaration=function(e){return 244===e.kind||243===e.kind},e.isDeclaration=function(t){return 150===t.kind?t.parent&&308!==t.parent.kind||e.isInJSFile(t):197===(r=t.kind)||186===r||240===r||209===r||157===r||243===r||278===r||257===r||239===r||196===r||158===r||250===r||248===r||253===r||241===r||267===r||156===r||155===r||244===r||247===r||251===r||151===r||275===r||154===r||153===r||159===r||276===r||242===r||150===r||237===r||309===r||302===r||310===r;var r},e.isDeclarationStatement=function(e){return v(e.kind)},e.isStatementButNotDeclaration=function(e){return b(e.kind)},e.isStatement=function(t){var r=t.kind;return b(r)||v(r)||function(t){return 218===t.kind&&((void 0===t.parent||235!==t.parent.kind&&274!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isModuleReference=function(e){var t=e.kind;return 259===t||148===t||72===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 100===t||72===t||189===t},e.isJsxChild=function(e){var t=e.kind;return 260===t||270===t||261===t||11===t||264===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 267===t||269===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||270===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 262===t||261===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 271===t||272===t},e.isJSDocNode=function(e){return e.kind>=288&&e.kind<=310},e.isJSDocCommentContainingNode=function(t){return 296===t.kind||D(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=D,e.isSetAccessor=function(e){return 159===e.kind},e.isGetAccessor=function(e){return 158===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=x,e.hasOnlyExpressionInitializer=function(t){return x(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){return 267===e.kind||269===e.kind||_(e)},e.isTypeReferenceType=function(e){return 164===e.kind||211===e.kind};var S=1073741823;e.guessIndentation=function(t){for(var r=S,n=0,i=t;n=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function p(e){return!(!e.declaration&&!e.composite)}function f(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function m(e,t){return t.strictFlag?f(e,t.name):e[t.name]}e.isNamedImportsOrExports=function(e){return 252===e.kind||256===e.kind},e.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return i},getIdentifierConstructor:function(){return i},getSourceFileConstructor:function(){return i},getSymbolConstructor:function(){return t},getTypeConstructor:function(){return r},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return a}},e.formatStringFromArgs=o,e.getLocaleSpecificMessage=s,e.createFileDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length));var a=s(i);return arguments.length>4&&(a=o(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}},e.formatMessage=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),r},e.createCompilerDiagnostic=function(e){var t=s(e);return arguments.length>1&&(t=o(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e},e.compareDiagnostics=u,e.compareDiagnosticsSkipRelatedInformation=l,e.getEmitScriptTarget=_,e.getEmitModuleKind=d,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=d(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(d(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!p(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=d(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=p,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=f,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some(function(n){return!e.isJsonEqual(m(r,n),m(t,n))})},e.getCompilerOptionValue=m,e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r=97&&e<=122||e>=65&&e<=90}function D(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:g,2);return n<0?t.length:n+1}if(b(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf(y);if(-1!==a){var o=a+y.length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&b(t.charCodeAt(s+1))){var l=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==l){if(47===t.charCodeAt(l))return~(l+1);if(l===t.length)return~l}}return~(s+1)}return~t.length}return 0}function x(e){var t=D(e);return t<0?~t:t}function S(e){return D(e)>0}function T(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),[n].concat(i)}(t=e.combinePaths(r,t),x(t))}function C(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function E(e,t){return C(T(e,t))}function k(t){return 0===t.length?"":(t[0]&&e.ensureTrailingDirectorySeparator(t[0]))+t.slice(1).join(e.directorySeparator)}e.normalizeSlashes=v,e.getRootLength=x,e.normalizePath=function(t){return e.resolvePath(t)},e.normalizePathAndParts=function(t){var r=C(T(t=v(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(a):a,parts:i}}return{path:n,parts:i}},e.getDirectoryPath=function(t){var r=x(t=v(t));return r===t.length?t:(t=e.removeTrailingDirectorySeparator(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))},e.startsWithDirectory=function(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.isUrl=function(e){return D(e)<0},e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.isRootedDiskPath=S,e.isDiskPathRoot=function(e){var t=D(e);return t>0&&t===e.length},e.convertToRelativePath=function(t,r,n){return S(t)?e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1):t},e.getPathComponents=T,e.reducePathComponents=C,e.getNormalizedPathComponents=E,e.getNormalizedAbsolutePath=function(e,t){return k(E(e,t))},e.getPathFromPathComponents=k}(c||(c={})),function(e){function t(t,r,n,i){var a,o=e.reducePathComponents(e.getPathComponents(t)),s=e.reducePathComponents(e.getPathComponents(r));for(a=0;a0==e.getRootLength(n)>0,"Paths must either both be absolute or both be relative");var a="function"==typeof i?i:e.identity,o=t(r,n,"boolean"==typeof i&&i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a);return e.getPathFromPathComponents(o)}function n(t){return 0!==e.getRootLength(t)||e.pathIsRelative(t)?t:"./"+t}function i(t,r,n){if(t=e.normalizeSlashes(t),e.getRootLength(t)===t.length)return"";var i=(t=c(t)).slice(Math.max(e.getRootLength(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?V(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function a(t){for(var r=[],n=1;n0;)u+=")?",f--;return u}(t,r,n,x[n])})}function C(e){return!/[.*?]/.test(e)}function E(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function k(t,r,n,i,o){t=e.normalizePath(t);var s=a(o=e.normalizePath(o),t);return{includeFilePatterns:e.map(T(n,s,"files"),function(e){return"^"+e+"$"}),includeFilePattern:S(n,s,"files"),includeDirectoryPattern:S(n,s,"directories"),excludePattern:S(r,s,"exclude"),basePaths:function(t,r,n){var i=[t];if(r){for(var o=[],s=0,c=r;s=0;n--)if(e.fileExtensionIs(t,r[n]))return M(n,r);return 0},e.adjustExtensionPriority=M,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var L,R=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function B(t,r){return e.fileExtensionIs(t,r)?j(t,r):void 0}function j(e,t){return e.substring(0,e.length-t.length)}function J(t,r,n,i){var a=void 0!==n&&void 0!==i?V(t,n,i):V(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t}function z(t){L.assert(e.hasZeroOrOneAsteriskCharacter(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function K(e){return".ts"===e||".tsx"===e||".d.ts"===e}function U(t){return e.find(R,function(r){return e.fileExtensionIs(t,r)})}function V(t,r,n){if(r)return function(t,r,n){"string"==typeof r&&(r=[r]);for(var i=0,a=r;i=o.length&&"."===t.charAt(t.length-o.length)){var s=t.slice(t.length-o.length);if(n(s,o))return s}}return""}(t,r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=i(t),o=a.lastIndexOf(".");return o>=0?a.substring(o):""}e.removeFileExtension=function(e){for(var t=0,r=R;t=0)},e.extensionIsTS=K,e.resolutionExtensionIsTSOrJson=function(e){return K(e)||".json"===e},e.extensionFromPath=function(e){var t=U(e);return void 0!==t?t:L.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==U(e)},e.tryGetExtensionFromPath=U,e.getAnyExtensionFromPath=V,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;in&&(n=a)}return{min:r,max:n}};var q=function(){function t(){this.map=e.createMap()}return t.prototype.add=function(t){this.map.set(String(e.getNodeId(t)),t)},t.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.some=function(t){return e.forEachEntry(this.map,t)||!1},t}();e.NodeSet=q;var W=function(){function t(){this.map=e.createMap()}return t.prototype.get=function(t){var r=this.map.get(String(e.getNodeId(t)));return r&&r.value},t.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;var n=t();return this.set(e,n),n},t.prototype.set=function(t,r){this.map.set(String(e.getNodeId(t)),{node:t,value:r})},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(function(t){var r=t.node,n=t.value;return e(n,r)})},t}();e.NodeMap=W,e.rangeOfNode=function(t){return{pos:e.getTokenPosOfNode(t),end:t.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib},e.isJsonEqual=function t(r,n){return r===n||"object"===f(r)&&null!==r&&"object"===f(n)&&null!==n&&e.equalOwnProperties(r,n,t)},e.getOrUpdate=function(e,t,r){var n=e.get(t);if(void 0===n){var i=r();return e.set(t,i),i}return n},e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),_=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=_;var d=_>>>16;d&&(o[u+1]|=d)}for(var p="",f=o.length-1,m=!0;m;){var g=0;for(m=!1,u=f;u>=0;u--){var y=g<<16|o[u],h=y/10|0;o[u]=h,g=y-10*h,h&&!m&&(f=u,m=!0)}p=g+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r}}(c||(c={})),function(e){var t,r,n,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 284===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):72===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.isJSDocLikeText=l,e.forEachChild=_,e.createSourceFile=function(t,r,n,i,a){var s;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),s=100===n?o.parseSourceFile(t,r,n,void 0,i,6):o.parseSourceFile(t,r,n,void 0,i,a),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=s.updateSourceFile(e,t,r,n);return i.flags|=1572864&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&o.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,m,g,y,h,v,b,x,S,T,C=e.createScanner(7,!0),E=10240,k=!1;function N(t,r,n,i,a){void 0===n&&(n=2),F(r,n,i,6),(o=M(t,2,6,!1)).flags=b,ne();var c=te();if(1===re())o.statements=De([],c,c),o.endOfFileToken=ge();else{var u=ve(221);switch(re()){case 22:u.expression=Ar();break;case 102:case 87:case 96:u.expression=ge();break;case 39:ue(function(){return 8===ne()&&57!==ne()})?u.expression=ur():u.expression=Pr();break;case 8:case 10:if(ue(function(){return 57!==ne()})){u.expression=nt();break}default:u.expression=Pr()}xe(u),o.statements=De([u],c),o.endOfFileToken=me(1,e.Diagnostics.Unexpected_token)}a&&O(o),o.parseDiagnostics=s;var l=o;return P(),l}function A(e){return 4===e||2===e||1===e||6===e?1:0}function F(t,o,u,l){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),m=t,c=u,s=[],v=0,y=e.createMap(),h=0,g=0,l){case 1:case 2:b=65536;break;case 6:b=16842752;break;default:b=0}k=!1,C.setText(m),C.setOnError(ee),C.setScriptTarget(o),C.setLanguageVariant(A(l))}function P(){C.setText(""),C.setOnError(void 0),s=void 0,o=void 0,y=void 0,c=void 0,m=void 0}function w(t,r,n,i){var a=d(t);return a&&(b|=4194304),(o=M(t,r,i,a)).flags=b,ne(),p(o,m),f(o,function(t,r,n){s.push(e.createFileDiagnostic(o,t,r,n))}),o.statements=qe(0,Gr),e.Debug.assert(1===re()),o.endOfFileToken=I(ge()),function(t){t.externalModuleIndicator=e.forEach(t.statements,Ln)||function(e){return 1048576&e.flags?Rn(e):void 0}(t)}(o),o.nodeCount=g,o.identifierCount=h,o.identifiers=y,o.parseDiagnostics=s,n&&O(o),o}function I(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,o.text),function(e){return T.parseJSDocComment(t,e.pos,e.end-e.pos)});return r.length&&(t.jsDoc=r),t}function O(t){var r=t;return void _(t,function t(n){if(n.parent!==r){n.parent=r;var i=r;if(r=n,_(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a108)}function de(t,r,n){return void 0===n&&(n=!0),re()===t?(n&&ne(),!0):(r?X(r):X(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function pe(e){return re()===e&&(ne(),!0)}function fe(e){if(re()===e)return ge()}function me(t,r,n){return fe(t)||Se(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function ge(){var e=ve(re());return ne(),xe(e)}function ye(){return 26===re()||(19===re()||1===re()||C.hasPrecedingLineBreak())}function he(){return ye()?(26===re()&&ne(),!0):de(26)}function ve(t,a){g++;var o=a>=0?a:C.getStartPos();return e.isNodeKind(t)||0===t?new r(t,o,o):72===t?new i(t,o,o):new n(t,o,o)}function be(e,t){var r=ve(e,t);return 2&C.getTokenFlags()&&I(r),r}function De(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?C.getStartPos():r,i}function xe(e,t){return e.end=void 0===t?C.getStartPos():t,b&&(e.flags|=b),k&&(k=!1,e.flags|=32768),e}function Se(t,r,n,i){r?Q(C.getStartPos(),0,n,i):n&&X(n,i);var a=ve(t);return 72===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),xe(a)}function Te(e){var t=y.get(e);return void 0===t&&y.set(e,t=e),t}function Ce(t,r){if(h++,t){var n=ve(72);return 72!==re()&&(n.originalKeywordKind=re()),n.escapedText=e.escapeLeadingUnderscores(Te(C.getTokenValue())),ne(),xe(n)}return Se(72,1===re(),r||e.Diagnostics.Identifier_expected)}function Ee(e){return Ce(_e(),e)}function ke(t){return Ce(e.tokenIsIdentifierOrKeyword(re()),t)}function Ne(){return e.tokenIsIdentifierOrKeyword(re())||10===re()||8===re()}function Ae(e){if(10===re()||8===re()){var t=nt();return t.text=Te(t.text),t}return e&&22===re()?function(){var e=ve(149);return de(22),e.expression=U(Yt),de(23),xe(e)}():ke()}function Fe(){return Ae(!0)}function Pe(e){return re()===e&&le(Ie)}function we(){return ne(),!C.hasPrecedingLineBreak()&&Oe()}function Ie(){switch(re()){case 77:return 84===ne();case 85:return ne(),80===re()?ue(Me):40!==re()&&119!==re()&&18!==re()&&Oe();case 80:return Me();case 116:case 126:case 137:return ne(),Oe();default:return we()}}function Oe(){return 22===re()||18===re()||40===re()||25===re()||Ne()}function Me(){return ne(),76===re()||90===re()||110===re()||118===re()&&ue(zr)||121===re()&&ue(Kr)}function Le(t,r){if(He(t))return!0;switch(t){case 0:case 1:case 3:return!(26===re()&&r)&&Wr();case 2:return 74===re()||80===re();case 4:return ue(bt);case 5:return ue(fn)||26===re()&&!r;case 6:return 22===re()||Ne();case 12:switch(re()){case 22:case 40:case 25:case 24:return!0;default:return Ne()}case 18:return Ne();case 9:return 22===re()||25===re()||Ne();case 7:return 18===re()?ue(Re):r?_e()&&!ze():Ht()&&!ze();case 8:return rn();case 10:return 27===re()||25===re()||rn();case 19:return _e();case 15:switch(re()){case 27:case 24:return!0}case 11:return 25===re()||Gt();case 16:return dt(!1);case 17:return dt(!0);case 20:case 21:return 27===re()||Mt();case 22:return Cn();case 23:return e.tokenIsIdentifierOrKeyword(re());case 13:return e.tokenIsIdentifierOrKeyword(re())||18===re();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Re(){if(e.Debug.assert(18===re()),19===ne()){var t=ne();return 27===t||18===t||86===t||109===t}return!0}function Be(){return ne(),_e()}function je(){return ne(),e.tokenIsIdentifierOrKeyword(re())}function Je(){return ne(),e.tokenIsIdentifierOrKeywordOrGreaterThan(re())}function ze(){return(109===re()||86===re())&&ue(Ke)}function Ke(){return ne(),Gt()}function Ue(){return ne(),Mt()}function Ve(e){if(1===re())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===re();case 3:return 19===re()||74===re()||80===re();case 7:return 18===re()||86===re()||109===re();case 8:return function(){if(ye())return!0;if(ar(re()))return!0;if(37===re())return!0;return!1}();case 19:return 30===re()||20===re()||18===re()||86===re()||109===re();case 11:return 21===re()||26===re();case 15:case 21:case 10:return 23===re();case 17:case 16:case 18:return 21===re()||23===re();case 20:return 27!==re();case 22:return 18===re()||19===re();case 13:return 30===re()||42===re();case 14:return 28===re()&&ue(Fn);default:return!1}}function qe(e,t){var r=v;v|=1<=0&&(c.hasTrailingComma=!0),c}function Xe(){var e=De([],te());return e.isMissingList=!0,e}function Qe(e,t,r,n){if(de(r)){var i=Ye(e,t);return de(n),i}return Xe()}function $e(e,t){for(var r=e?ke(t):Ee(t),n=C.getStartPos();pe(24);){if(28===re()){r.jsdocDotPos=n;break}n=C.getStartPos(),r=Ze(r,et(e))}return r}function Ze(e,t){var r=ve(148,e.pos);return r.left=e,r.right=t,xe(r)}function et(t){if(C.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(re())&&ue(Jr))return Se(72,!0,e.Diagnostics.Identifier_expected);return t?ke():Ee()}function tt(){var t,r=ve(206);r.head=(t=it(re()),e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(15===r.head.kind,"Template head has wrong token kind");var n=[],i=te();do{n.push(rt())}while(16===e.last(n).literal.kind);return r.templateSpans=De(n,i),xe(r)}function rt(){var t,r,n=ve(216);return n.expression=U(Yt),19===re()?(u=C.reScanTemplateToken(),r=it(re()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),t=r):t=me(17,e.Diagnostics._0_expected,e.tokenToString(19)),n.literal=t,xe(n)}function nt(){return it(re())}function it(e){var t=ve(e);return t.text=C.getTokenValue(),C.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),C.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&C.getTokenFlags()),ne(),xe(t),t}function at(){var t=ve(164);return t.typeName=$e(!0,e.Diagnostics.Type_expected),C.hasPrecedingLineBreak()||28!==ae()||(t.typeArguments=Qe(20,Vt,28,30)),xe(t)}function ot(e){var t=ve(289);return e?Rt(293,t):(ne(),xe(t))}function st(){var e=ve(151);return 100!==re()&&95!==re()||(e.name=ke(),de(57)),e.type=ct(),xe(e)}function ct(){C.setInJSDocType(!0);var e=fe(25),t=Kt();if(C.setInJSDocType(!1),e){var r=ve(295,e.pos);r.type=t,t=xe(r)}return 59===re()?Rt(293,t):t}function ut(){var e=ve(150);return e.name=Ee(),pe(86)&&(Mt()||!Gt()?e.constraint=Vt():e.expression=lr()),pe(59)&&(e.default=Vt()),xe(e)}function lt(){if(28===re())return Qe(19,ut,28,30)}function _t(){if(pe(57))return Vt()}function dt(t){return 25===re()||rn()||e.isModifierKind(re())||58===re()||Mt(!t)}function pt(){var t=be(151);return 100===re()?(t.name=Ce(!0),t.type=_t(),xe(t)):(t.decorators=mn(),t.modifiers=gn(),t.dotDotDotToken=fe(25),t.name=nn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(re())&&ne(),t.questionToken=fe(56),t.type=_t(),t.initializer=Xt(),xe(t))}function ft(t,r,n){32&r||(n.typeParameters=lt());var i=function(e,t){if(!de(20))return e.parameters=Xe(),!1;var r=W(),n=Y();return B(!!(1&t)),J(!!(2&t)),e.parameters=32&t?Ye(17,st):Ye(16,pt),B(r),J(n),de(21)}(n,r);return(!function(t,r){if(37===t)return de(t),!0;if(pe(57))return!0;if(r&&37===re())return X(e.Diagnostics._0_expected,e.tokenToString(57)),ne(),!0;return!1}(t,!!(4&r))||(n.type=Kt(),!function t(r){switch(r.kind){case 164:return e.nodeIsMissing(r.typeName);case 165:case 166:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 177:return t(r.type);default:return!1}}(n.type)))&&i}function mt(){pe(27)||he()}function gt(e){var t=be(e);return 161===e&&de(95),ft(57,4,t),mt(),xe(t)}function yt(){return 22===re()&&ue(ht)}function ht(){if(ne(),25===re()||23===re())return!0;if(e.isModifierKind(re())){if(ne(),_e())return!0}else{if(!_e())return!1;ne()}return 57===re()||27===re()||56===re()&&(ne(),57===re()||27===re()||23===re())}function vt(e){return e.kind=162,e.parameters=Qe(16,pt,22,23),e.type=Wt(),mt(),xe(e)}function bt(){if(20===re()||28===re())return!0;for(var t=!1;e.isModifierKind(re());)t=!0,ne();return 22===re()||(Ne()&&(t=!0,ne()),!!t&&(20===re()||28===re()||56===re()||57===re()||27===re()||ye()))}function Dt(){if(20===re()||28===re())return gt(160);if(95===re()&&ue(xt))return gt(161);var e=be(0);return e.modifiers=gn(),yt()?vt(e):function(e){return e.name=Fe(),e.questionToken=fe(56),20===re()||28===re()?(e.kind=155,ft(57,4,e)):(e.kind=153,e.type=Wt(),59===re()&&(e.initializer=Xt())),mt(),xe(e)}(e)}function xt(){return ne(),20===re()||28===re()}function St(){return 24===ne()}function Tt(){switch(ne()){case 20:case 28:case 24:return!0}return!1}function Ct(){var e;return de(18)?(e=qe(4,Dt),de(19)):e=Xe(),e}function Et(){return ne(),38===re()||39===re()?133===ne():(133===re()&&ne(),22===re()&&Be()&&93===ne())}function kt(){var e=ve(181);return de(18),133!==re()&&38!==re()&&39!==re()||(e.readonlyToken=ge(),133!==e.readonlyToken.kind&&me(133)),de(22),e.typeParameter=function(){var e=ve(150);return e.name=Ee(),de(93),e.constraint=Vt(),xe(e)}(),de(23),56!==re()&&38!==re()&&39!==re()||(e.questionToken=ge(),56!==e.questionToken.kind&&me(56)),e.type=Wt(),he(),de(19),xe(e)}function Nt(){var e=te();if(pe(25)){var t=ve(172,e);return t.type=Vt(),xe(t)}var r=Vt();return 2097152&b||291!==r.kind||r.pos!==r.type.pos||(r.kind=171),r}function At(){var e=ge();return 24===re()?void 0:e}function Ft(e){var t,r=ve(182);e&&((t=ve(202)).operator=39,ne());var n=102===re()||87===re()?ge():it(re());return e&&(t.operand=n,xe(t),n=t),r.literal=n,xe(r)}function Pt(){return ne(),92===re()}function wt(){o.flags|=524288;var t=ve(183);return pe(104)&&(t.isTypeOf=!0),de(92),de(20),t.argument=Vt(),de(21),pe(24)&&(t.qualifier=$e(!0,e.Diagnostics.Type_expected)),t.typeArguments=Tn(),xe(t)}function It(){return ne(),8===re()||9===re()}function Ot(){switch(re()){case 120:case 143:case 138:case 135:case 146:case 139:case 123:case 141:case 132:case 136:return le(At)||at();case 40:return ot(!1);case 62:return ot(!0);case 56:return n=C.getStartPos(),ne(),27===re()||19===re()||21===re()||30===re()||59===re()||50===re()?xe(r=ve(290,n)):((r=ve(291,n)).type=Vt(),xe(r));case 90:return function(){if(ue(An)){var e=be(294);return ne(),ft(57,36,e),xe(e)}var t=ve(164);return t.typeName=ke(),xe(t)}();case 52:return function(){var e=ve(292);return ne(),e.type=Ot(),xe(e)}();case 14:case 10:case 8:case 9:case 102:case 87:return Ft();case 39:return ue(It)?Ft(!0):at();case 106:case 96:return ge();case 100:var e=(t=ve(178),ne(),xe(t));return 128!==re()||C.hasPrecedingLineBreak()?e:function(e){ne();var t=ve(163,e.pos);return t.parameterName=e,t.type=Vt(),xe(t)}(e);case 104:return ue(Pt)?wt():function(){var e=ve(167);return de(104),e.exprName=$e(!0),xe(e)}();case 18:return ue(Et)?kt():function(){var e=ve(168);return e.members=Ct(),xe(e)}();case 22:return function(){var e=ve(170);return e.elementTypes=Qe(21,Nt,22,23),xe(e)}();case 20:return function(){var e=ve(177);return de(20),e.type=Vt(),de(21),xe(e)}();case 92:return wt();default:return at()}var t,r,n}function Mt(e){switch(re()){case 120:case 143:case 138:case 135:case 146:case 123:case 133:case 139:case 142:case 106:case 141:case 96:case 100:case 104:case 132:case 18:case 22:case 28:case 50:case 49:case 95:case 10:case 8:case 9:case 102:case 87:case 136:case 40:case 56:case 52:case 25:case 127:case 92:return!0;case 90:return!e;case 39:return!e&&ue(It);case 20:return!e&&ue(Lt);default:return _e()}}function Lt(){return ne(),21===re()||dt(!1)||Mt()}function Rt(e,t){ne();var r=ve(e,t.pos);return r.type=t,xe(r)}function Bt(){var e=re();switch(e){case 129:case 142:case 133:return function(e){var t=ve(179);return de(e),t.operator=e,t.type=Bt(),xe(t)}(e);case 127:return function(){var e=ve(176);de(127);var t=ve(150);return t.name=Ee(),e.typeParameter=xe(t),xe(e)}()}return function(){for(var e=Ot();!C.hasPrecedingLineBreak();)switch(re()){case 52:e=Rt(292,e);break;case 56:if(!(2097152&b)&&ue(Ue))return e;e=Rt(291,e);break;case 22:var t;de(22),Mt()?((t=ve(180,e.pos)).objectType=e,t.indexType=Vt(),de(23),e=xe(t)):((t=ve(169,e.pos)).elementType=e,de(23),e=xe(t));break;default:return e}return e}()}function jt(e,t,r){pe(r);var n=t();if(re()===r){for(var i=[n];pe(r);)i.push(t());var a=ve(e,n.pos);a.types=De(i,n.pos),n=xe(a)}return n}function Jt(){return jt(174,Bt,49)}function zt(){if(ne(),21===re()||25===re())return!0;if(function(){if(e.isModifierKind(re())&&gn(),_e()||100===re())return ne(),!0;if(22===re()||18===re()){var t=s.length;return nn(),t===s.length}return!1}()){if(57===re()||27===re()||56===re()||59===re())return!0;if(21===re()&&(ne(),37===re()))return!0}return!1}function Kt(){var e=_e()&&le(Ut),t=Vt();if(e){var r=ve(163,e.pos);return r.parameterName=e,r.type=t,xe(r)}return t}function Ut(){var e=Ee();if(128===re()&&!C.hasPrecedingLineBreak())return ne(),e}function Vt(){return z(20480,qt)}function qt(e){if(28===re()||20===re()&&ue(zt)||95===re())return function(){var e=te(),t=be(pe(95)?166:165,e);return ft(37,4,t),xe(t)}();var t=jt(173,Jt,50);if(!e&&!C.hasPrecedingLineBreak()&&pe(86)){var r=ve(175,t.pos);return r.checkType=t,r.extendsType=qt(!0),de(56),r.trueType=qt(),de(57),r.falseType=qt(),xe(r)}return t}function Wt(){return pe(57)?Vt():void 0}function Ht(){switch(re()){case 100:case 98:case 96:case 102:case 87:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 90:case 76:case 95:case 42:case 64:case 72:return!0;case 92:return ue(Tt);default:return _e()}}function Gt(){if(Ht())return!0;switch(re()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 44:case 45:case 28:case 122:case 117:return!0;default:return!!function(){if(H()&&93===re())return!1;return e.getBinaryOperatorPrecedence(re())>0}()||_e()}}function Yt(){var e=G();e&&j(!1);for(var t,r=Qt();t=fe(27);)r=sr(r,t,Qt());return e&&j(!0),r}function Xt(){return pe(59)?Qt():void 0}function Qt(){if(function(){if(117===re())return!!W()||ue(Ur);return!1}())return t=ve(207),ne(),C.hasPrecedingLineBreak()||40!==re()&&!Gt()?xe(t):(t.asteriskToken=fe(40),t.expression=Qt(),xe(t));var t,r=function(){var t=function(){if(20===re()||28===re()||121===re())return ue(Zt);if(37===re())return 1;return 0}();if(0===t)return;var r=1===t?rr(!0):le(er);if(!r)return;var n=e.hasModifier(r,256),i=re();return r.equalsGreaterThanToken=me(37),r.body=37===i||18===i?nr(n):Ee(),xe(r)}()||function(){if(121===re()&&1===ue(tr)){var e=yn(),t=ir(0);return $t(t,e)}return}();if(r)return r;var n=ir(0);return 72===n.kind&&37===re()?$t(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(ie())?sr(n,ge(),Qt()):function(t){var r=fe(56);if(!r)return t;var n=ve(205,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=z(E,Qt),n.colonToken=me(57),n.whenFalse=e.nodeIsPresent(n.colonToken)?Qt():Se(72,!1,e.Diagnostics._0_expected,e.tokenToString(57)),xe(n)}(n)}function $t(t,r){var n;e.Debug.assert(37===re(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=ve(197,r.pos)).modifiers=r:n=ve(197,t.pos);var i=ve(151,t.pos);return i.name=t,xe(i),n.parameters=De([i],i.pos,i.end),n.equalsGreaterThanToken=me(37),n.body=nr(!!r),I(xe(n))}function Zt(){if(121===re()){if(ne(),C.hasPrecedingLineBreak())return 0;if(20!==re()&&28!==re())return 0}var t=re(),r=ne();if(20===t){if(21===r)switch(ne()){case 37:case 57:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&121!==r&&ue(Be))return 1;if(!_e()&&100!==r)return 0;switch(ne()){case 57:return 1;case 56:return ne(),57===re()||27===re()||59===re()||21===re()?1:0;case 27:case 59:case 21:return 2}return 0}return e.Debug.assert(28===t),_e()?1===o.languageVariant?ue(function(){var e=ne();if(86===e)switch(ne()){case 59:case 30:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:2:0}function er(){return rr(!1)}function tr(){if(121===re()){if(ne(),C.hasPrecedingLineBreak()||37===re())return 0;var e=ir(0);if(!C.hasPrecedingLineBreak()&&72===e.kind&&37===re())return 1}return 0}function rr(t){var r=be(197);if(r.modifiers=yn(),(ft(57,e.hasModifier(r,256)?2:0,r)||t)&&(t||37===re()||18===re()))return r}function nr(e){return 18===re()?Mr(e?2:0):26===re()||90===re()||76===re()||!Wr()||18!==re()&&90!==re()&&76!==re()&&58!==re()&&Gt()?e?V(Qt):z(16384,Qt):Mr(16|(e?2:0))}function ir(e){return or(e,lr())}function ar(e){return 93===e||147===e}function or(t,r){for(;;){ie();var n=e.getBinaryOperatorPrecedence(re());if(!(41===re()?n>=t:n>t))break;if(93===re()&&H())break;if(119===re()){if(C.hasPrecedingLineBreak())break;ne(),r=cr(r,Vt())}else r=sr(r,ge(),ir(n))}return r}function sr(e,t,r){var n=ve(204,e.pos);return n.left=e,n.operatorToken=t,n.right=r,xe(n)}function cr(e,t){var r=ve(212,e.pos);return r.expression=e,r.type=t,xe(r)}function ur(){var e=ve(202);return e.operator=re(),ne(),e.operand=_r(),xe(e)}function lr(){if(function(){switch(re()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 122:return!1;case 28:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=dr();return 41===re()?or(e.getBinaryOperatorPrecedence(re()),t):t}var r=re(),n=_r();if(41===re()){var i=e.skipTrivia(m,n.pos),a=n.end;194===n.kind?$(i,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):$(i,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function _r(){switch(re()){case 38:case 39:case 53:case 52:return ur();case 81:return e=ve(198),ne(),e.expression=_r(),xe(e);case 104:return function(){var e=ve(199);return ne(),e.expression=_r(),xe(e)}();case 106:return function(){var e=ve(200);return ne(),e.expression=_r(),xe(e)}();case 28:return function(){var e=ve(194);return de(28),e.type=Vt(),de(30),e.expression=_r(),xe(e)}();case 122:if(122===re()&&(Y()||ue(Ur)))return function(){var e=ve(201);return ne(),e.expression=_r(),xe(e)}();default:return dr()}var e}function dr(){if(44===re()||45===re())return(t=ve(202)).operator=re(),ne(),t.operand=pr(),xe(t);if(1===o.languageVariant&&28===re()&&ue(Je))return mr(!0);var t,r=pr();return e.Debug.assert(e.isLeftHandSideExpression(r)),44!==re()&&45!==re()||C.hasPrecedingLineBreak()?r:((t=ve(203,r.pos)).operand=r,t.operator=re(),ne(),xe(t))}function pr(){var t;if(92===re())if(ue(xt))o.flags|=524288,t=ge();else if(ue(St)){var r=C.getStartPos();ne(),ne();var n=ve(214,r);n.keywordToken=92,n.name=ke(),t=xe(n),o.flags|=1048576}else t=fr();else t=98===re()?function(){var t=ge();if(20===re()||24===re()||22===re())return t;var r=ve(189,t.pos);return r.expression=t,me(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=et(!0),xe(r)}():fr();return function(e){for(;;)if(e=Dr(e),28!==re()&&46!==re()){if(20!==re())return e;var t=ve(191,e.pos);t.expression=e,t.arguments=Tr(),e=xe(t)}else{var r=le(Cr);if(!r)return e;if(xr()){e=Sr(e,r);continue}var t=ve(191,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Tr(),e=xe(t)}}(t)}function fr(){return Dr(Er())}function mr(t){var r,n=function(e){var t=C.getStartPos();if(de(28),30===re()){var r=ve(265,t);return se(),xe(r)}var n,i=hr(),a=Tn(),o=(s=ve(268),s.properties=qe(13,br),xe(s));var s;30===re()?(n=ve(262,t),se()):(de(42),e?de(30):(de(30,void 0,!1),se()),n=ve(261,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,xe(n)}(t);if(262===n.kind)(i=ve(260,n.pos)).openingElement=n,i.children=yr(i.openingElement),i.closingElement=function(e){var t=ve(263);de(29),t.tagName=hr(),e?de(30):(de(30,void 0,!1),se());return xe(t)}(t),D(i.openingElement.tagName,i.closingElement.tagName)||Z(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(m,i.openingElement.tagName)),r=xe(i);else if(265===n.kind){var i;(i=ve(264,n.pos)).openingFragment=n,i.children=yr(i.openingFragment),i.closingFragment=function(t){var r=ve(266);de(29),e.tokenIsIdentifierOrKeyword(re())&&Z(hr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?de(30):(de(30,void 0,!1),se());return xe(r)}(t),r=xe(i)}else e.Debug.assert(261===n.kind),r=n;if(t&&28===re()){var a=le(function(){return mr(!0)});if(a){X(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ve(204,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=Se(27,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function gr(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?Z(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):Z(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(m,t.tagName)));case 29:case 7:return;case 11:case 12:return(n=ve(11)).text=C.getTokenValue(),n.containsOnlyTriviaWhiteSpaces=12===u,u=C.scanJsxToken(),xe(n);case 18:return vr(!1);case 28:return mr(!1);default:return e.Debug.assertNever(r)}var n}function yr(e){var t=[],r=te(),n=v;for(v|=16384;;){var i=gr(e,u=C.reScanJsxToken());if(!i)break;t.push(i)}return v=n,De(t,r)}function hr(){oe();for(var e=100===re()?ge():ke();pe(24);){var t=ve(189,e.pos);t.expression=e,t.name=et(!0),e=xe(t)}return e}function vr(e){var t=ve(270);if(de(18))return 19!==re()&&(t.dotDotDotToken=fe(25),t.expression=Qt()),e?de(19):(de(19,void 0,!1),se()),xe(t)}function br(){if(18===re())return function(){var e=ve(269);return de(18),de(25),e.expression=Yt(),de(19),xe(e)}();oe();var e=ve(267);if(e.name=ke(),59===re())switch(u=C.scanJsxAttributeValue()){case 10:e.initializer=nt();break;default:e.initializer=vr(!0)}return xe(e)}function Dr(t){for(;;){if(fe(24)){var r=ve(189,t.pos);r.expression=t,r.name=et(!0),t=xe(r)}else if(52!==re()||C.hasPrecedingLineBreak())if(G()||!pe(22)){if(!xr())return t;t=Sr(t,void 0)}else{var n=ve(190,t.pos);if(n.expression=t,23===re())n.argumentExpression=Se(72,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=U(Yt);e.isStringOrNumericLiteralLike(i)&&(i.text=Te(i.text)),n.argumentExpression=i}de(23),t=xe(n)}else{ne();var a=ve(213,t.pos);a.expression=t,t=xe(a)}}}function xr(){return 14===re()||15===re()}function Sr(e,t){var r=ve(193,e.pos);return r.tag=e,r.typeArguments=t,r.template=14===re()?nt():tt(),xe(r)}function Tr(){de(20);var e=Ye(11,Nr);return de(21),e}function Cr(){if(28===ae()){ne();var e=Ye(20,Vt);if(de(30))return e&&function(){switch(re()){case 20:case 14:case 15:case 24:case 21:case 23:case 57:case 26:case 56:case 33:case 35:case 34:case 36:case 54:case 55:case 51:case 49:case 50:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function Er(){switch(re()){case 8:case 9:case 10:case 14:return nt();case 100:case 98:case 96:case 102:case 87:return ge();case 20:return t=be(195),de(20),t.expression=U(Yt),de(21),xe(t);case 22:return Ar();case 18:return Pr();case 121:if(!ue(Kr))break;return wr();case 76:return bn(be(0),209);case 90:return wr();case 95:return function(){var t=C.getStartPos();if(de(95),pe(24)){var r=ve(214,t);return r.keywordToken=95,r.name=ke(),xe(r)}var n,i=Er();for(;;){i=Dr(i),n=le(Cr),xr()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=Sr(i,n),n=void 0);break}var a=ve(192,t);a.expression=i,a.typeArguments=n,(a.typeArguments||20===re())&&(a.arguments=Tr());return xe(a)}();case 42:case 64:if(13===(u=C.reScanSlashToken()))return nt();break;case 15:return tt()}var t;return Ee(e.Diagnostics.Expression_expected)}function kr(){return 25===re()?(e=ve(208),de(25),e.expression=Qt(),xe(e)):27===re()?ve(210):Qt();var e}function Nr(){return z(E,kr)}function Ar(){var e=ve(187);return de(22),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ye(15,kr),de(23),xe(e)}function Fr(){var e=be(0);if(fe(25))return e.kind=277,e.expression=Qt(),xe(e);if(e.decorators=mn(),e.modifiers=gn(),Pe(126))return pn(e,158);if(Pe(137))return pn(e,159);var t=fe(40),r=_e();if(e.name=Fe(),e.questionToken=fe(56),e.exclamationToken=fe(52),t||20===re()||28===re())return _n(e,t);if(r&&57!==re()){e.kind=276;var n=fe(59);n&&(e.equalsToken=n,e.objectAssignmentInitializer=U(Qt))}else e.kind=275,de(57),e.initializer=U(Qt);return xe(e)}function Pr(){var e=ve(188);return de(18),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ye(12,Fr,!0),de(19),xe(e)}function wr(){var t=G();t&&j(!1);var r=be(196);r.modifiers=gn(),de(90),r.asteriskToken=fe(40);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?K(20480,Ir):n?function(e){return K(4096,e)}(Ir):i?V(Ir):Ir(),ft(57,n|i,r),r.body=Mr(n|i),t&&j(!0),xe(r)}function Ir(){return _e()?Ee():void 0}function Or(e,t){var r=ve(218);return de(18,t)||e?(C.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=qe(1,Gr),de(19)):r.statements=Xe(),xe(r)}function Mr(e,t){var r=W();B(!!(1&e));var n=Y();J(!!(2&e));var i=G();i&&j(!1);var a=Or(!!(16&e),t);return i&&j(!0),B(r),J(n),a}function Lr(){var e=te();de(89);var t,r,n=fe(122);if(de(20),26!==re()&&(t=105===re()||111===re()||77===re()?sn(!0):K(2048,Yt)),n?de(147):pe(147)){var i=ve(227,e);i.awaitModifier=n,i.initializer=t,i.expression=U(Qt),de(21),r=i}else if(pe(93)){var a=ve(226,e);a.initializer=t,a.expression=U(Yt),de(21),r=a}else{var o=ve(225,e);o.initializer=t,de(26),26!==re()&&21!==re()&&(o.condition=U(Yt)),de(26),21!==re()&&(o.incrementor=U(Yt)),de(21),r=o}return r.statement=Gr(),xe(r)}function Rr(e){var t=ve(e);return de(229===e?73:78),ye()||(t.label=Ee()),he(),xe(t)}function Br(){return 74===re()?(e=ve(271),de(74),e.expression=U(Yt),de(57),e.statements=qe(3,Gr),xe(e)):function(){var e=ve(272);return de(80),de(57),e.statements=qe(3,Gr),xe(e)}();var e}function jr(){var e=ve(235);return de(103),e.tryBlock=Or(!1),e.catchClause=75===re()?function(){var e=ve(274);de(75),pe(20)?(e.variableDeclaration=on(),de(21)):e.variableDeclaration=void 0;return e.block=Or(!1),xe(e)}():void 0,e.catchClause&&88!==re()||(de(88),e.finallyBlock=Or(!1)),xe(e)}function Jr(){return ne(),e.tokenIsIdentifierOrKeyword(re())&&!C.hasPrecedingLineBreak()}function zr(){return ne(),76===re()&&!C.hasPrecedingLineBreak()}function Kr(){return ne(),90===re()&&!C.hasPrecedingLineBreak()}function Ur(){return ne(),(e.tokenIsIdentifierOrKeyword(re())||8===re()||9===re()||10===re())&&!C.hasPrecedingLineBreak()}function Vr(){for(;;)switch(re()){case 105:case 111:case 77:case 90:case 76:case 84:return!0;case 110:case 140:return ne(),!C.hasPrecedingLineBreak()&&_e();case 130:case 131:return $r();case 118:case 121:case 125:case 113:case 114:case 115:case 133:if(ne(),C.hasPrecedingLineBreak())return!1;continue;case 145:return ne(),18===re()||72===re()||85===re();case 92:return ne(),10===re()||40===re()||18===re()||e.tokenIsIdentifierOrKeyword(re());case 85:if(ne(),59===re()||40===re()||18===re()||80===re()||119===re())return!0;continue;case 116:ne();continue;default:return!1}}function qr(){return ue(Vr)}function Wr(){switch(re()){case 58:case 26:case 18:case 105:case 111:case 90:case 76:case 84:case 91:case 82:case 107:case 89:case 78:case 73:case 97:case 108:case 99:case 101:case 103:case 79:case 75:case 88:return!0;case 92:return qr()||ue(Tt);case 77:case 85:return qr();case 121:case 125:case 110:case 130:case 131:case 140:case 145:return!0;case 115:case 113:case 114:case 116:case 133:return qr()||!ue(Jr);default:return Gt()}}function Hr(){return ne(),_e()||18===re()||22===re()}function Gr(){switch(re()){case 26:return e=ve(220),de(26),xe(e);case 18:return Or(!1);case 105:return un(be(237));case 111:if(ue(Hr))return un(be(237));break;case 90:return ln(be(239));case 76:return vn(be(240));case 91:return function(){var e=ve(222);return de(91),de(20),e.expression=U(Yt),de(21),e.thenStatement=Gr(),e.elseStatement=pe(83)?Gr():void 0,xe(e)}();case 82:return function(){var e=ve(223);return de(82),e.statement=Gr(),de(107),de(20),e.expression=U(Yt),de(21),pe(26),xe(e)}();case 107:return function(){var e=ve(224);return de(107),de(20),e.expression=U(Yt),de(21),e.statement=Gr(),xe(e)}();case 89:return Lr();case 78:return Rr(228);case 73:return Rr(229);case 97:return function(){var e=ve(230);return de(97),ye()||(e.expression=U(Yt)),he(),xe(e)}();case 108:return function(){var e=ve(231);return de(108),de(20),e.expression=U(Yt),de(21),e.statement=K(8388608,Gr),xe(e)}();case 99:return function(){var e=ve(232);de(99),de(20),e.expression=U(Yt),de(21);var t=ve(246);return de(18),t.clauses=qe(2,Br),de(19),e.caseBlock=xe(t),xe(e)}();case 101:return function(){var e=ve(234);return de(101),e.expression=C.hasPrecedingLineBreak()?void 0:U(Yt),he(),xe(e)}();case 103:case 75:case 88:return jr();case 79:return function(){var e=ve(236);return de(79),he(),xe(e)}();case 58:return Xr();case 121:case 110:case 140:case 130:case 131:case 125:case 77:case 84:case 85:case 92:case 113:case 114:case 115:case 118:case 116:case 133:case 145:if(qr())return Xr()}var e;return function(){var e=be(0),t=U(Yt);return 72===t.kind&&pe(57)?(e.kind=233,e.label=t,e.statement=Gr()):(e.kind=221,e.expression=t,he()),xe(e)}()}function Yr(e){return 125===e.kind}function Xr(){var t=be(0);if(t.decorators=mn(),t.modifiers=gn(),e.some(t.modifiers,Yr)){for(var r=0,n=t.modifiers;r=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),l(i,t)){var o,s,c,_=[];return C.scanRange(t+3,n-5,function(){var e,r,n=1,u=t-Math.max(i.lastIndexOf("\n",t),0)+4;function l(t){e||(e=u),_.push(t),u+=t.length}for(I();O(5););O(4)&&(n=0,u=0);e:for(;;){switch(re()){case 58:0===n||1===n?(p(_),b(h(u)),n=0,e=void 0,u++):l(C.getTokenText());break;case 4:_.push(C.getTokenText()),n=0,u=0;break;case 40:var f=C.getTokenText();1===n||2===n?(n=2,l(f)):(n=1,u+=f.length);break;case 5:var m=C.getTokenText();2===n?_.push(m):void 0!==e&&u+m.length>e&&_.push(m.slice(e-u-1)),u+=m.length;break;case 1:break e;default:n=2,l(C.getTokenText())}I()}return d(_),p(_),(r=ve(296,t)).tags=o&&De(o,s,c),r.comment=_.length?_.join(""):void 0,xe(r,a)})}function d(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function p(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function f(){for(;;){if(I(),1===re())return!0;if(5!==re()&&4!==re())return!1}}function g(){if(5!==re()&&4!==re()||!ue(f))for(;5===re()||4===re();)I()}function y(){if(5!==re()&&4!==re()||!ue(f))for(var e=C.hasPrecedingLineBreak();e&&40===re()||5===re()||4===re();)4===re()?e=!0:40===re()&&(e=!1),I()}function h(t){e.Debug.assert(58===re());var n=C.getTokenPos();I();var i,a=M(void 0);switch(y(),a.escapedText){case"augments":case"extends":i=function(e,t){var r=ve(300,e);return r.tagName=t,r.class=function(){var e=pe(18),t=ve(211);t.expression=function(){for(var e=M();pe(24);){var t=ve(189,e.pos);t.expression=e,t.name=M(),e=xe(t)}return e}(),t.typeArguments=Tn();var r=xe(t);return e&&de(19),r}(),xe(r)}(n,a);break;case"class":case"constructor":i=function(e,t){var r=ve(301,e);return r.tagName=t,xe(r)}(n,a);break;case"this":i=function(e,t){var n=ve(306,e);return n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"enum":i=function(e,t){var n=ve(303,e);return n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"arg":case"argument":case"param":return T(n,a,2,t);case"return":case"returns":i=function(t,r){e.forEach(o,function(e){return 305===e.kind})&&$(r.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=ve(305,t);return n.tagName=r,n.typeExpression=D(),xe(n)}(n,a);break;case"template":i=function(t,n){var i;18===re()&&(i=r());var a=[],o=te();do{g();var s=ve(150);s.name=M(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),xe(s),g(),a.push(s)}while(O(27));var c=ve(308,t);return c.tagName=n,c.constraint=i,c.typeParameters=De(a,o),xe(c),c}(n,a);break;case"type":i=E(n,a);break;case"typedef":i=function(t,r,n){var i=D();y();var a,o=ve(309,t);if(o.tagName=r,o.fullName=k(),o.name=N(o.fullName),g(),o.comment=v(n),o.typeExpression=i,!i||S(i.type)){for(var s=void 0,c=void 0,u=void 0;s=le(function(){return F(n)});)if(c||(c=ve(297,t)),307===s.kind){if(u)break;u=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&169===i.type.kind&&(c.isArrayType=!0),o.typeExpression=u&&u.typeExpression&&!S(u.typeExpression.type)?u.typeExpression:xe(c),a=o.typeExpression.end)}return xe(o,a||void 0!==o.comment?C.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(n,a,t);break;case"callback":i=function(t,r,n){var i,a=ve(302,t);a.tagName=r,a.fullName=k(),a.name=N(a.fullName),g(),a.comment=v(n);var o=ve(298,t);o.parameters=[];for(;i=le(function(){return P(4,n)});)o.parameters=e.append(o.parameters,i);var s=le(function(){if(O(58)){var e=h(n);if(e&&305===e.kind)return e}});s&&(o.type=s);return a.typeExpression=xe(o),xe(a)}(n,a,t);break;default:i=function(e,t){var r=ve(299,e);return r.tagName=t,xe(r)}(n,a)}return i.comment||(i.comment=v(t+i.end-i.pos)),i}function v(t){var r,n=[],i=0;function a(e){r||(r=t),n.push(e),t+=e.length}var o=re();e:for(;;){switch(o){case 4:i>=1&&(i=0,n.push(C.getTokenText())),t=0;break;case 58:C.setTextPos(C.getTextPos()-1);case 1:break e;case 5:if(2===i)a(C.getTokenText());else{var s=C.getTokenText();void 0!==r&&t+s.length>r&&n.push(s.slice(r-t-1)),t+=s.length}break;case 18:i=2,ue(function(){return 58===I()&&e.tokenIsIdentifierOrKeyword(I())&&"link"===C.getTokenText()})&&(a(C.getTokenText()),I(),a(C.getTokenText()),I()),a(C.getTokenText());break;case 40:if(0===i){i=1,t+=1;break}default:i=2,a(C.getTokenText())}o=I()}return d(n),p(n),0===n.length?void 0:n.join("")}function b(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function D(){return y(),18===re()?r():void 0}function x(){if(14===re())return{name:Ce(!0),isBracketed:!1};var e=pe(22),t=function(){var e=M();pe(22)&&de(23);for(;pe(24);){var t=M();pe(22)&&de(23),e=Ze(e,t)}return e}();return e&&(g(),fe(59)&&Yt(),de(23)),{name:t,isBracketed:e}}function S(t){switch(t.kind){case 136:return!0;case 169:return S(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function T(t,r,n,i){var a=D(),o=!a;y();var s=x(),c=s.name,u=s.isBracketed;g(),o&&(a=D());var l=ve(1===n?310:304,t),_=v(i+C.getStartPos()-t),d=4!==n&&function(t,r,n,i){if(t&&S(t.type)){for(var a=ve(288,C.getTokenPos()),o=void 0,s=void 0,c=C.getStartPos(),u=void 0;o=le(function(){return P(n,i,r)});)304!==o.kind&&310!==o.kind||(u=e.append(u,o));if(u)return(s=ve(297,c)).jsDocPropertyTags=u,169===t.type.kind&&(s.isArrayType=!0),a.type=xe(s),xe(a)}}(a,c,n,i);return d&&(a=d,o=!0),l.tagName=r,l.typeExpression=a,l.name=c,l.isNameFirst=o,l.isBracketed=u,l.comment=_,xe(l)}function E(t,n){e.forEach(o,function(e){return 307===e.kind})&&$(n.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=ve(307,t);return i.tagName=n,i.typeExpression=r(!0),xe(i)}function k(t){var r=C.getTokenPos();if(e.tokenIsIdentifierOrKeyword(re())){var n=M();if(pe(24)){var i=ve(244,r);return t&&(i.flags|=4),i.name=n,i.body=k(!0),xe(i)}return t&&(n.isInJSDocNamespace=!0),n}}function N(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function A(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function F(e){return P(1,e)}function P(t,r,n){for(var i=!0,a=!1;;)switch(I()){case 58:if(i){var o=w(t,r);return!(o&&(304===o.kind||310===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!A(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 40:a&&(i=!1),a=!0;break;case 72:i=!1;break;case 1:return!1}}function w(t,r){e.Debug.assert(58===re());var n=C.getStartPos();I();var i,a=M();switch(g(),a.escapedText){case"type":return 1===t&&E(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&T(n,a,t,r)}function I(){return u=C.scanJSDocToken()}function O(e){return re()===e&&(I(),!0)}function M(t){if(!e.tokenIsIdentifierOrKeyword(re()))return Se(72,!t,t||e.Diagnostics.Identifier_expected);var r=C.getTokenPos(),n=C.getTextPos(),i=ve(72,r);return i.escapedText=e.escapeLeadingUnderscores(C.getTokenText()),xe(i,n),I(),i}}t.parseJSDocTypeExpressionForTests=function(e,t,n){F(e,7,void 0,1),o=M("file.js",7,1,!1),C.setText(e,t,n),u=C.scan();var i=r(),a=s;return P(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){F(e,7,void 0,1),o={languageVariant:0,text:e};var n=a(t,r),i=s;return P(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=u,c=s.length,l=k,_=a(t,r);return _&&(_.parent=e),65536&b&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(n=o.jsDocDiagnostics).push.apply(n,s)),u=i,s.length=c,k=l,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(T=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),_(t,u,l),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function c(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,n,u,l){if(c(t,n,u,l=l||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=s(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,u)}(t,u);c(t,n,m,l),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,n,o,s,c,u,l,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),_(t,p,f),e.hasJSDocNodes(t))for(var g=0,y=t.jsDoc;go)r(t,!0,c,u,l,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_/im,h=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function v(t,r,n){var i=2===r.kind&&y.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;n.push(r.substring(o,a))}}d(n)}else u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}}function p(e,t){return m(o,e,t)}function m(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function g(t){for(var r=[],n=1;n=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([u]).join(" -> "))),{raw:t||D(n,c)};var l=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=j(t.compilerOptions,n,a,i),c=z(t.typeAcquisition||t.typingOptions,n,a,i);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=U(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?F(i,n):n;o=R(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,n,i,a,o){var s,c,u,l=B(a),_={onSetValidOptionKeyValueInParent:function(t,r,n){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t);var o="compilerOptions"===t?l:"typeAcquisition"===t?s||(s=J(a)):c||(c=J(a));o[r.name]=function t(r,n,i){if(A(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,n,e)}),function(e){return!!e}):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return V(r,n,i)}(r,i,n)},onSetValidOptionKeyValueInRoot:function(r,s,c,l){switch(r){case"extends":var _=a?F(a,i):i;return void(u=R(c,n,_,o,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,a){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=x(t,o,!0,(void 0===r&&(r={name:void 0,type:"object",elementOptions:b([{name:"compilerOptions",type:"object",elementOptions:b(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{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])}),r),_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:J(a));return{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(n,i,a,o,c);if(l.extendedConfigPath){s=s.concat([u]);var _=function(t,r,n,i,a,o){var s,c=h(r,function(e){return n.readFile(e)});t&&(t.extendedSourceFiles=[c.fileName]);if(c.parseDiagnostics.length)return void o.push.apply(o,c.parseDiagnostics);var u=e.getDirectoryPath(r),l=L(void 0,c,n,u,e.getBaseFileName(r),a,o);t&&c.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,c.extendedSourceFiles);if(M(l)){var _=e.convertToRelativePath(u,i,e.identity),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_,t)},p=function(t){f[t]&&(f[t]=e.map(f[t],d))},f=l.raw;p("include"),p("exclude"),p("files")}return l}(n,l.extendedConfigPath,i,a,s,c);if(_&&M(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t)};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options)}}return l}function R(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_does_not_exist,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}function B(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function j(t,r,n,i){var a=B(i);return K(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function J(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function z(t,r,n,i){var o=J(i),s=a(t);return K(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,n),o}function K(t,r,n,i,a,o){if(r){var s=b(t);for(var c in r){var u=s.get(c);u?i[u.name]=U(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function U(t,r,n,i){if(T(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,function(e){return U(t.element,e,n,i)}),function(e){return!!e})}(t,r,n,i):e.isString(a)?V(t,n,r):q(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,S(t)))}function V(t,r,n){return t.isFilePath&&""===(n=e.normalizePath(e.combinePaths(r,n)))&&(n="."),n}function q(e,t,r){if(!A(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(c(e))}}function W(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.libs=n.map(function(e){return e[0]}),e.libMap=e.createMapFromEntries(n),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information}],e.optionDeclarations=e.commonOptionsWithBuild.concat([{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,esnext:7}),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation},{name:"incremental",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation},{name:"tsBuildInfoFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),e.buildOpts=e.commonOptionsWithBuild.concat([{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=a,e.createOptionNameMap=s,e.createCompilerDiagnosticForInvalidCustomType=c,e.parseCustomTypeOption=l,e.parseListTypeOption=_,e.parseCommandLine=function(t,r){return d(o,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],t,r)},e.getOptionFromName=p,e.parseBuildCommand=function(t){var r,n=d(function(){return r||(r=s(e.buildOpts))},[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],t),i=n.options,a=n.fileNames,o=n.errors,c=i;return 0===a.length&&a.push("."),c.clean&&c.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),c.clean&&c.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),c.clean&&c.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),c.watch&&c.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:c,projects:a,errors:o}},e.printVersion=function(){e.sys.write(g(e.Diagnostics.Version_0,e.version)+e.sys.newLine)},e.printHelp=function(t,r){void 0===r&&(r="");var n=[],i=g(e.Diagnostics.Syntax_Colon_0,"").length,a=g(e.Diagnostics.Examples_Colon_0,"").length,o=Math.max(i,a),s=F(o-i);s+="tsc "+r+"["+g(e.Diagnostics.options)+"] ["+g(e.Diagnostics.file)+"...]",n.push(g(e.Diagnostics.Syntax_Colon_0,s)),n.push(e.sys.newLine+e.sys.newLine);var c=F(o);n.push(g(e.Diagnostics.Examples_Colon_0,F(o-a)+"tsc hello.ts")+e.sys.newLine),n.push(c+"tsc --outFile file.js file.ts"+e.sys.newLine),n.push(c+"tsc @args.txt"+e.sys.newLine),n.push(c+"tsc --build tsconfig.json"+e.sys.newLine),n.push(e.sys.newLine),n.push(g(e.Diagnostics.Options_Colon)+e.sys.newLine),o=0;for(var u=[],l=[],_=e.createMap(),d=0,p=t;d";u.push(v),l.push(g(e.Diagnostics.Insert_command_line_options_and_files_from_a_file)),o=Math.max(v.length,o);for(var b=0;b0)for(var D=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=d.filter(function(t){return e.endsWith(t,".json")}),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),function(e){return"^"+e+"$"});o=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(t)})){var _=s(t);c.has(_)||l.has(_)||l.set(_,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;cr.length){var f=d.substring(r.length+1);n=(e.forEach(e.supportedJSExtensions,function(t){return e.tryRemoveExtension(f,t)})||f)+".d.ts"}else n="index.d.ts"}}e.endsWith(n,".d.ts")||(n=O(n));var y=g(l,a),h="string"==typeof l.name&&"string"==typeof l.version?{name:l.name,subModuleName:n,version:l.version}:void 0;return s&&(h?t(o,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,u,e.packageIdToString(h)):t(o,e.Diagnostics.Found_package_json_at_0,u)),{packageJsonContent:l,packageId:h,versionPaths:y}}c&&s&&t(o,e.Diagnostics.File_0_does_not_exist,u),a.failedLookupLocations.push(u)}function z(r,n,i,c,u,l){var _;if(u)switch(r){case s.JavaScript:case s.Json:_=m(u,n,c);break;case s.TypeScript:_=p(u,n,c)||m(u,n,c);break;case s.DtsOnly:_=p(u,n,c);break;case s.TSConfig:_=function(e,t,r){return d(e,"tsconfig",t,r)}(u,n,c);break;default:return e.Debug.assertNever(r)}var f=function(r,n,i,o){var c=B(n,i,o);if(c){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case s.JavaScript:return".js"===t||".jsx"===t;case s.TSConfig:case s.Json:return".json"===t;case s.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case s.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,c);if(u)return a(u);o.traceEnabled&&t(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}return P(r===s.DtsOnly?s.TypeScript:r,n,i,o,!1)},g=_?!e.directoryProbablyExists(e.getDirectoryPath(_),c.host):void 0,y=i||!e.directoryProbablyExists(n,c.host),h=e.combinePaths(n,r===s.TSConfig?"tsconfig":"index");if(l&&(!_||e.containsPath(n,_))){var v=e.getRelativePathFromDirectory(n,_||h,!1);c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.version,e.version,v);var b=H(r,v,n,l.paths,f,g||y,c);if(b)return o(b.value)}var D=_&&o(f(r,_,g,c));return D||L(r,h,y,c)}function K(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function U(e,t,r,n,i,a){return V(e,t,r,n,!1,i,a)}function V(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var o=Q(c,r,n,i);return o||Z(q(t,r,n,i,a))}})}function q(r,n,i,a,o){var c=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(c,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var l=o?void 0:W(r,n,c,u,a);if(l)return l;if(r===s.TypeScript||r===s.DtsOnly){var _=e.combinePaths(c,"@types"),d=u;return u&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),d=!1),W(s.DtsOnly,function(r,n){var i=Y(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,a),_,d,a)}}function W(r,i,o,s,c){var u,l,_,d=e.normalizePath(e.combinePaths(o,i)),p=J(d,"",!s,c);if(p){u=p.packageJsonContent,l=p.packageId,_=p.versionPaths;var f=L(r,d,!s,c);if(f)return a(f);var m=z(r,d,!s,c,u,_);return n(l,m)}var g=function(e,t,r,i){var a=L(e,t,r,i)||z(e,t,r,i,u,_);return n(l,a)},y=K(i),h=y.packageName,v=y.rest;if(""!==v){var b=e.combinePaths(o,h),D=J(b,v,!s,c);if(D&&(l=D.packageId,_=D.versionPaths),_){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,_.version,e.version,v);var x=s&&e.directoryProbablyExists(b,c.host),S=H(r,v,b,_.paths,g,!x,c);if(S)return S.value}}return g(r,d,!s,c)}function H(r,n,i,o,s,c,u){var l=e.matchPatternOrExact(e.getOwnKeys(o),n);if(l){var _=e.isString(l)?void 0:e.matchedText(l,n),d=e.isString(l)?l:e.patternText(l);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,d),{value:e.forEach(o[d],function(n){var o=_?n.replace("*",_):n,l=e.normalizePath(e.combinePaths(i,o));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var d=e.tryGetExtensionFromPath(l);if(void 0!==d){var p=B(l,c,u);if(void 0!==p)return a({path:p,ext:d})}return s(r,l,c||!e.directoryProbablyExists(e.getDirectoryPath(l),u.host),u)})}}}e.nodeModuleNameResolver=N,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=w,e.parsePackageName=K;var G="__";function Y(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,G);if(r!==t)return r.slice(1)}return t}function X(t){return e.stringContains(t,G)?"@"+t.replace(G,e.directorySeparator):t}function Q(r,n,i,a){var o,s=r&&r.get(i);if(s)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),(o=a.failedLookupLocations).push.apply(o,s.failedLookupLocations),{value:s.resolvedModule&&{path:s.resolvedModule.resolvedFileName,originalPath:s.resolvedModule.originalPath||!0,extension:s.resolvedModule.extension,packageId:s.resolvedModule.packageId}}}function $(t,n,i,a,o,c){var u=[],_={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:u},d=e.getDirectoryPath(n),p=f(s.TypeScript)||f(s.JavaScript);return l(p&&p.value,!1,u);function f(r){var n=x(r,t,d,M,_);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(d,t));return Z(M(r,i,!1,_))}var a=o&&o.getOrCreateCacheForModuleName(t,c),u=e.forEachAncestorDirectory(d,function(n){var i=Q(a,t,n,_);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Z(M(r,o,!1,_))});return u||(r===s.TypeScript?function(e,t,r){return V(s.DtsOnly,e,t,r,!0,void 0,void 0)}(t,d,_):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+Y(e)},e.mangleScopedPackageName=Y,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?X(r):t},e.unmangleScopedPackageName=X,e.classicNameResolver=$,e.loadModuleFromGlobalCache=function(n,i,a,o,c){var u=r(a,o);u&&t(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var _=[],d={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:_};return l(q(s.DtsOnly,n,c,d,!1),!0,_)}}(c||(c={})),function(e){var t;function r(t){return t.body?function t(n){switch(n.kind){case 241:case 242:return 0;case 243:if(e.isEnumConst(n))return 2;break;case 249:case 248:if(!e.hasModifier(n,1))return 0;break;case 245:var i=0;return e.forEachChild(n,function(r){var n=t(r);switch(n){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(n)}}),i;case 244:return r(n);case 72:if(n.isInJSDocNamespace)return 0}return 1}(t.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var n=e.identity,a=function(){var t,a,_,f,m,g,y,h,v,b,D,x,S,T,C,E,k,N,A,F,P,w,I,O,M=0,L={flags:1},R={flags:1},B=0;function j(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,n){t=r,a=n,_=e.getEmitScriptTarget(a),P=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,n),I=e.createUnderscoreEscapedMap(),M=0,O=t.isDeclarationFile,w=e.objectAllocator.getSymbolConstructor(),t.locals||(Pe(t),t.symbolCount=M,t.classifiableNames=I,function(){if(!v)return;for(var r=m,n=h,i=y,a=f,o=D,s=0,c=v;s=109&&r.originalKeywordKind<=117)||e.isIdentifierName(r)||4194304&r.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(j(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r)))}function Ee(r,n){if(n&&72===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function ke(e){P&&Ee(e,e.name)}function Ne(r){if(_<2&&284!==y.kind&&244!==y.kind&&!e.isFunctionLike(y)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Ae(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Fe(r,n,a,o){!function(r,n,a){var o=e.createFileDiagnostic(t,n.pos,n.end-n.pos,a);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,i({},o,{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:a.end},o)}function Pe(r){if(r){r.parent=f;var i=P;if(function(r){switch(r.kind){case 72:if(r.isInJSDocNamespace){for(var n=r.parent;n&&!e.isJSDocTypeAlias(n);)n=n.parent;Te(n,524288,67897832);break}case 100:return D&&(e.isExpression(r)||276===f.kind)&&(r.flowNode=D),Ce(r);case 189:case 190:D&&Z(r)&&(r.flowNode=D),e.isSpecialPropertyDeclaration(r)&&function(t){100===t.expression.kind?Re(t):e.isPropertyAccessEntityNameExpression(t)&&284===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Be(t,t.parent):je(t))}(r),e.isInJSFile(r)&&t.commonJsModuleIndicator&&e.isModuleExportsPropertyAccessExpression(r)&&!u(y,"module")&&q(t.locals,void 0,r.expression,134217729,67220414);break;case 204:var i=e.getAssignmentDeclarationKind(r);switch(i){case 1:Le(r);break;case 2:!function(r){if(!Me(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||m===t&&s(t,n))return;var i=e.exportAssignmentIsAlias(r)?2097152:1049092;q(t.symbol.exports,t.symbol,r,67108864|i,0)}(r);break;case 3:Be(r.left,r);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;Ke(t.expression,t,!1)}(r);break;case 4:Re(r);break;case 5:!function(r){var n=r.left,i=Ue(n.expression);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(i))return;r.left.parent=r,r.right.parent=r,e.isIdentifier(n.expression)&&m===t&&c(t,n.expression)?Le(r):je(n)}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){P&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ee(t,t.left)}(r);case 274:return function(e){P&&e.variableDeclaration&&Ee(e,e.variableDeclaration.name)}(r);case 198:return function(r){if(P&&72===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){P&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(j(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 203:return function(e){P&&Ee(e,e.operand)}(r);case 202:return function(e){P&&(44!==e.operator&&45!==e.operator||Ee(e,e.operand))}(r);case 231:return function(t){P&&Ae(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 233:return function(t){P&&a.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ae(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 178:return void(b=!0);case 163:break;case 150:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),q(r.locals,void 0,t,262144,67635688)):be(t,262144,67635688)}else if(176===t.parent.kind){var n=function(t){var r=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),q(n.locals,void 0,t,262144,67635688)):Se(t,262144,U(t))}else be(t,262144,67635688)}(r);case 151:return We(r);case 237:return qe(r);case 186:return r.flowNode=D,qe(r);case 154:case 153:return function(e){return He(e,4|(e.questionToken?16777216:0),0)}(r);case 275:case 276:return He(r,4,0);case 278:return He(r,8,68008959);case 160:case 161:case 162:return be(r,131072,0);case 156:case 155:return He(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:67212223);case 239:return function(r){t.isDeclarationFile||4194304&r.flags||e.isAsyncFunction(r)&&(F|=1024);ke(r),P?(Ne(r),Te(r,16,67219887)):be(r,16,67219887)}(r);case 157:return be(r,16384,0);case 158:return He(r,32768,67154879);case 159:return He(r,65536,67187647);case 165:case 294:case 298:case 166:return function(t){var r=J(131072,U(t));z(r,t,131072);var n=J(2048,"__type");z(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 168:case 297:case 181:return function(e){return Se(e,2048,"__type")}(r);case 188:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),P)for(var i=e.createUnderscoreEscapedMap(),a=0,o=r.properties;a147){var o=f;f=r;var _=he(r);0===_?H(r):function(t,r){var i=m,a=g,o=y;1&r?(197!==t.kind&&(g=m),m=y=t,32&r&&(m.locals=e.createSymbolTable()),ve(m)):2&r&&((y=t).locals=void 0);if(4&r){var s=n,c=D,u=x,l=S,_=T,d=N,p=A,f=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);f||(D={flags:2},144&r&&(D.container=t)),T=f||157===t.kind?re():void 0,x=void 0,S=void 0,N=void 0,A=!1,n=e.identity,H(t),t.flags&=-1409,!(1&D.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,A&&(t.flags|=256)),284===t.kind&&(t.flags|=F),T&&(ae(T,D),D=le(T),157===t.kind&&(t.returnFlowNode=D)),f||(D=c),x=u,S=l,T=_,N=d,A=p,n=s}else 64&r?(b=!1,H(t),t.flags=b?64|t.flags:-65&t.flags):H(t);m=i,g=a,y=o}(r,_),f=o}else if(!O&&0==(536870912&r.transformFlags)){B|=l(r,0);var o=f;1===r.kind&&(f=r),we(r),f=o}P=i}}function we(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=163&&e<=183)return-2;switch(e){case 191:case 192:case 187:return 536875008;case 244:return 537168896;case 151:return 536870912;case 197:return 537371648;case 196:case 239:return 537373696;case 238:return 536944640;case 240:case 209:return 536888320;case 157:return 537372672;case 156:case 158:case 159:return 537372672;case 120:case 135:case 146:case 132:case 138:case 136:case 123:case 139:case 106:case 150:case 153:case 155:case 160:case 161:case 162:case 241:case 242:return-2;case 188:return 536896512;case 274:return 536879104;case 184:case 185:return 536875008;case 194:case 212:case 313:case 195:case 98:return 536870912;case 189:case 190:default:return 536870912}}function p(t,r){r.parent=t,e.forEachChild(r,function(e){return p(r,e)})}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),a(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=s,e.computeTransformFlagsForNode=l,e.getTransformFlagsSubtreeExclusions=d}(c||(c={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]){d[t.id]=t;var r=y(t.symbol);if(!r){if(524288&t.flags){var n=t,a=n.objectFlags;4&a&&function(t){f(t.target),e.forEach(t.typeArguments,f)}(t),32&a&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&a&&(g(o=t),e.forEach(o.typeParameters,f),e.forEach(i(o),f),f(o.thisType)),24&a&&g(n)}var o;262144&t.flags&&function(e){f(u(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o0?e.createPropertyAccess(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?(_=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(_=e.createLiteral(+s)),_||((_=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(n,i-1),_)}(i,i.length-1)}(r,t,n)})},symbolToTypeParameterDeclarations:function(e,r,n,i){return t(r,n,i,function(t){return b(e,t)})},symbolToParameterDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return y(e,t)})},typeParameterToDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return g(e,t)})}};function t(t,r,i,a){e.Debug.assert(void 0===t||0==(8&t.flags));var o={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},getCurrentDirectory:n.getCurrentDirectory&&function(){return n.getCurrentDirectory()}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=a(o);return o.encounteredError?void 0:s}function a(t){return t.truncating?t.truncating:t.truncating=!(1&t.flags)&&t.approximateLength>e.defaultMaximumTruncationLength}function o(t,r){m&&m.throwIfCancellationRequested&&m.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,t){if(1&t.flags)return r.approximateLength+=3,e.createKeywordTypeNode(120);if(2&t.flags)return e.createKeywordTypeNode(143);if(4&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(138);if(8&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(135);if(64&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(146);if(16&t.flags)return r.approximateLength+=7,e.createKeywordTypeNode(123);if(1024&t.flags&&!(1048576&t.flags)){var i=On(t.symbol),g=S(i,r,67897832),y=Na(i)===t?g:M(g,e.createTypeReferenceNode(e.symbolName(t.symbol),void 0));return y}if(1056&t.flags)return S(t.symbol,r,67897832);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(256&t.flags)return r.approximateLength+=(""+t.value).length,e.createLiteralTypeNode(e.createLiteral(t.value));if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.createLiteralTypeNode(e.createLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,"true"===t.intrinsicName?e.createTrue():e.createFalse();if(8192&t.flags){if(!(1048576&r.flags)){if(ti(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,S(t.symbol,r,67220415);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.createTypeOperatorNode(142,e.createKeywordTypeNode(139))}if(16384&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(106);if(32768&t.flags)return r.approximateLength+=9,e.createKeywordTypeNode(141);if(65536&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(96);if(131072&t.flags)return r.approximateLength+=5,e.createKeywordTypeNode(132);if(4096&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(139);if(67108864&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(136);if(262144&t.flags&&t.isThisType)return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.createThis();var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),function(t){var n=t.typeArguments||e.emptyArray;if(t.target===$e||t.target===Ze){if(2&r.flags){var i=o(n[0],r);return e.createTypeReferenceNode(t.target===$e?"Array":"ReadonlyArray",[i])}var a=o(n[0],r),s=e.createArrayTypeNode(a);return t.target===$e?s:e.createTypeOperatorNode(133,s)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!ti(t.symbol,r.enclosingDeclaration))return I(t);var c=t.target.outerTypeParameters,l=0,_=void 0;if(c)for(var d=c.length;l0){var v=(t.target.typeParameters||e.emptyArray).length;h=u(n.slice(l,v),r)}var b=r.flags;r.flags|=16;var D=S(t.symbol,r,67897832,h);return r.flags=b,_?M(_,D):D}if(n.length>0){var x=Ms(t),T=u(n.slice(0,x),r),C=t.target.hasRestElement;if(T){for(var l=t.target.minLength;l0){var w=e.createUnionOrIntersectionTypeNode(1048576&t.flags?173:174,P);return w}r.encounteredError||262144&r.flags||(r.encounteredError=!0)}else r.encounteredError=!0;function I(t){var n,i=""+t.id,a=t.symbol;if(a){var o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags;if(n=(o?"+":"")+l(a),lm(a.valueDeclaration)){var c=t===pm(a)?67897832:67220415;return S(a,r,c)}if(32&a.flags&&!ta(a)&&!(209===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t=!!(8192&a.flags)&&e.some(a.declarations,function(t){return e.hasModifier(t,32)}),n=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,function(e){return 284===e.parent.kind||245===e.parent.kind}));if(t||n)return(!!(4096&r.flags)||r.visitedTypes&&r.visitedTypes.has(i))&&(!(8&r.flags)||ti(a,r.enclosingDeclaration))}())return S(a,r,67220415);if(r.visitedTypes&&r.visitedTypes.has(i)){var u=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 177!==e.kind});if(242===r.kind)return In(r)}}(t);return u?S(u,r,67897832):s(r)}r.visitedTypes||(r.visitedTypes=e.createMap()),r.symbolDepth||(r.symbolDepth=e.createMap());var _=r.symbolDepth.get(n)||0;if(_>10)return s(r);r.symbolDepth.set(n,_+1),r.visitedTypes.set(i,!0);var d=O(t);return r.visitedTypes.delete(i),r.symbolDepth.set(n,_),d}return O(t)}function O(t){if(bo(t))return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0;n=mo(t)?e.createTypeOperatorNode(o(go(t),r)):o(_o(t),r);var s=f(lo(t),r,n),c=o(po(t),r),u=e.createMappedTypeNode(i,s,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=Do(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length){var i=n.callSignatures[0],u=d(i,165,r);return u}if(1===n.constructSignatures.length&&!n.callSignatures.length){var i=n.constructSignatures[0],u=d(i,166,r);return u}}var l=r.flags;r.flags|=4194304;var p=function(t){if(a(r))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],i=0,o=t.callSignatures;i2)return[o(t[0],r),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),o(t[t.length-1],r)]}for(var i=[],s=0,c=0,u=t;c0)),a}function b(t,r){var n,i=eh(t);return 524384&i.flags&&(n=e.createNodeArray(e.map(da(t),function(e){return g(e,r)}))),n}function D(t,r,n){e.Debug.assert(t&&0<=r&&r1?g(a,a.length-1,1):void 0,c=i||D(a,0,r),u=x(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(F)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.createLiteralTypeNode(e.createLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s){var _=e.isIdentifier(s)?s:s.right;_.typeArguments=void 0}return e.createImportTypeNode(l,s,c,o)}var d=function t(r){return e.isIndexedAccessTypeNode(r.objectType)?t(r.objectType):r}(s),p=d.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(l,p,c,o),d.indexType)}var f=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.createTypeQueryNode(f);var _=e.isIdentifier(f)?f:f.right,m=_.typeArguments;return _.typeArguments=void 0,e.createTypeReferenceNode(f,m);function g(t,n,a){var o=n===t.length-1?i:D(t,n,r),s=t[n];0===n&&(r.flags|=16777216);var c=yi(s,r);r.approximateLength+=c.length+1,0===n&&(r.flags^=16777216);var u=t[n-1];if(!(16&r.flags)&&u&&qa(u)&&qa(u).get(s.escapedName)===s){var l=g(t,n-1,a);return e.isIndexedAccessTypeNode(l)?e.createIndexedAccessTypeNode(l,e.createLiteralTypeNode(e.createLiteral(c))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(l,o),e.createLiteralTypeNode(e.createLiteral(c)))}var _=e.setEmitFlags(e.createIdentifier(c,o),16777216);if(_.symbol=s,n>a){var l=g(t,n-1,a);return e.isEntityName(l)?e.createQualifiedName(l,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function T(t,r,n,i){var a=v(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=D(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=yi(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}}(),V=e.createSymbolTable(),q=Ir(4,"undefined");q.declarations=[];var W=Ir(1536,"globalThis",8);W.exports=V,W.valueDeclaration=e.createNode(72),W.valueDeclaration.escapedText="globalThis",V.set(W.escapedName,W);var H,G=Ir(4,"arguments"),Y=Ir(4,"require"),X={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+T},getTypeCount:function(){return S},isUndefinedSymbol:function(e){return e===q},isArgumentsSymbol:function(e){return e===G},isUnknownSymbol:function(e){return e===oe},getMergedSymbol:wn,getDiagnostics:Sh,getGlobalDiagnostics:function(){return Th(),cr.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){return(r=e.getParseTreeNode(r))?function(t,r){if(t=t.exportSymbol||t,72===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=Cg(r);if(Rn(Vr(r).resolvedSymbol)===t)return n}return aa(t)}(t,r):_e},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Wr(n.locals,r,67220415),o=Wr(qa(i.symbol),r,67220415);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:Na,getPropertiesOfType:Co,getPropertyOfType:function(t,r){return Ko(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return Ci(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Ho,getSignaturesOfType:Vo,getIndexTypeOfType:Go,getBaseTypes:va,getBaseTypeOfLiteralType:Xl,getWidenedType:h_,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Du(r):_e},getParameterType:Sm,getPromisedTypeOfPromise:Yg,getReturnTypeOfSignature:ps,getNullableType:c_,getNonNullableType:l_,typeToTypeNode:U.typeToTypeNode,indexInfoToIndexSignatureDeclaration:U.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:U.signatureToSignatureDeclaration,symbolToEntityName:U.symbolToEntityName,symbolToExpression:U.symbolToExpression,symbolToTypeParameterDeclarations:U.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:U.symbolToParameterDeclaration,typeParameterToDeclaration:U.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return(t=e.getParseTreeNode(t))?function(t,r){if(8388608&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!qr(t)&&o(t.locals,r),t.kind){case 284:if(!e.isExternalOrCommonJsModule(t))break;case 244:o(In(t).exports,2623475&r);break;case 243:o(In(t).exports,8&r);break;case 209:var n=t.name;n&&a(t.symbol,r);case 240:case 241:i||o(qa(In(t)),67897832&r);break;case 196:var s=t.name;s&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(G,r),i=e.hasModifier(t,32),t=t.parent}o(V,r)}(),n.delete("this"),Qo(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,r):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?Ph(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&276===e.kind)return yn(e.name,69317567)}(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?sn(e.parent.parent,e):yn(e.propertyName||e.name,70107135)}(r):void 0},getExportSymbolOfSymbol:function(e){return wn(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?wh(t):_e},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=function t(r){if(e.Debug.assert(188===r.kind||187===r.kind),227===r.parent.kind){var n=Ry(r.parent.expression,r.parent.awaitModifier);return og(r,n||_e)}if(204===r.parent.kind){var n=Cg(r.parent.right);return og(r,n||_e)}if(275===r.parent.kind){var i=t(r.parent.parent);return ig(i||_e,r.parent)}e.Debug.assert(187===r.parent.kind);var a=t(r.parent),o=By(a||_e,r.parent,!1,!1)||_e;return ag(r.parent,a,r.parent.elements.indexOf(r),o||_e)}(t.parent.parent);return r&&Ko(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return ui(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return li(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return ci(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return di(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return ui(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return li(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return ci(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return di(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:Oh,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Ur(t).containingType.types,function(e){return Ko(e,t.escapedName)});if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){for(var t,r=e;r=Ur(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r?xp(r):void 0},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?mp(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&_p(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&hp(r)},isContextSensitive:Wu,getFullyQualifiedName:gn,getResolvedSignature:function(e,t,r){return Q(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return Q(e,t,r,16)},getExpandedParameters:$a,hasEffectiveRestParameter:Nm,getConstantValue:function(t){var r=e.getParseTreeNode(t,ev);return r?tv(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 189:return Cf(e,98===e.expression.kind,t,h_(kg(e.expression)));case 148:return Cf(e,!1,t,h_(kg(e.left)));case 183:return Cf(e,!1,t,Du(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(t,r,n){return Cf(t,189===t.kind&&98===t.expression.kind,n.escapedName,r)&&(!(8192&n.flags)||(a=Vo(l_(Ci(i=r,n.escapedName)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=ls(e);return!t||rl(i,function(e,t,r){if(!e.typeParameters)return t;var n=T_(e.typeParameters,e,0);return B_(n.inferences,r,t),Ku(t,vs(e,W_(n)))}(e,t,i))})));var i,a}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?os(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Hh(r):void 0},getImmediateAliasedSymbol:jp,getAliasedSymbol:dn,getEmitResolver:function(e,t){return Sh(e,t),K},getExportsOfModule:En,getExportsAndPropertiesOfModule:function(t){var r=En(t),n=Sn(t);return n!==t&&e.addRange(r,Co(aa(n))),r},getSymbolWalker:e.createGetSymbolWalker(function(e){return ms(e)||ce},ds,ps,va,Do,aa,G_,Wo,ko,ch),getAmbientModules:function(){return We||(We=[],V.forEach(function(e,t){r.test(t)&&We.push(e)})),We},getJsxIntrinsicTagNamesAt:function(r){var n=Hp(t.IntrinsicElements,r);return n?Co(n):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&es(r)},tryGetMemberInModuleExports:function(t,r){return kn(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=kn(e,t);if(r)return r;var n=Sn(t);if(n!==t){var i=aa(n);return 131068&i.flags?void 0:Ko(i,e)}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return Zo(e,!1)},getApparentType:Bo,getUnionType:Ac,createAnonymousType:Yn,createSignature:Ya,createSymbol:Ir,createIndexInfo:Es,getAnyType:function(){return ce},getStringType:function(){return ye},getNumberType:function(){return he},createPromiseType:Mm,createArrayType:hc,getElementTypeOfArrayType:Kl,getBooleanType:function(){return Te},getFalseType:function(e){return e?be:De},getTrueType:function(e){return e?xe:Se},getVoidType:function(){return Ee},getUndefinedType:function(){return pe},getNullType:function(){return me},getESSymbolType:function(){return Ce},getNeverType:function(){return ke},isSymbolAccessible:ri,getObjectFlags:e.getObjectFlags,isArrayType:Jl,isTupleType:e_,isArrayLikeType:Ul,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some(function(t){var r=t.name&&Rc(t.name),n=r&&Ra(r)?Ka(r):void 0,i=void 0===n?void 0:Ci(e,n);return!!i&&Yl(i)&&!rl(wh(t),i)})},getAllPossiblePropertiesOfTypes:function(t){var r=Ac(t);if(!(1048576&r.flags))return Oh(r);for(var n=e.createSymbolTable(),i=0,a=t;i>",0,ce),Pt=Ya(void 0,void 0,void 0,e.emptyArray,ce,void 0,0,!1,!1),wt=Ya(void 0,void 0,void 0,e.emptyArray,_e,void 0,0,!1,!1),It=Ya(void 0,void 0,void 0,e.emptyArray,ce,void 0,0,!1,!1),Ot=Ya(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,!1,!1),Mt=Es(ye,!0),Lt=e.createMap(),Rt=e.createMap(),Bt=0,jt=0,Jt=0,zt=!1,Kt=hu(""),Ut=hu(0),Vt=hu({negative:!1,base10Value:"0"}),qt=[],Wt=[],Ht=[],Gt=0,Yt=10,Xt=[],Qt=[],$t=[],Zt=[],er=[],tr=[],rr=[],nr=[],ir=[],ar=[],or=[],sr=[],cr=e.createDiagnosticCollection(),ur=e.createMultiMap();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(Nt||(Nt={}));var lr,_r,dr,pr,fr,mr,gr,yr,hr,vr=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),br=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}),Dr=e.createMapFromTemplate({string:ye,number:he,bigint:ve,boolean:Te,symbol:Ce,undefined:pe}),xr=Ac(e.arrayFrom(vr.keys(),hu)),Sr=e.createMap(),Tr=e.createMap(),Cr=e.createMap(),Er=e.createMap(),kr=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.JSDocTypeReference=6]="JSDocTypeReference"}(dr||(dr={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"}(pr||(pr={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(fr||(fr={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(mr||(mr={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(gr||(gr={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(yr||(yr={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(hr||(hr={}));var Nr=e.createSymbolTable();Nr.set(q.escapedName,q);var Ar=e.and(mh,function(t){return!e.isAccessor(t)});return function(){for(var t=0,r=n.getSourceFiles();t=5||e.addRelatedInfo(a,e.length(a.relatedInformation)?e.createDiagnosticForNode(c,e.Diagnostics.and_here):e.createDiagnosticForNode(c,e.Diagnostics._0_was_also_declared_here,n))}}function zr(e,t){t.forEach(function(t,r){var n=e.get(r);e.set(r,n?Br(n,t):t)})}function Kr(t){var r=t.parent;if(r.symbol.declarations[0]===r)if(e.isGlobalScopeAugmentation(r))zr(V,r.symbol.exports);else{var n=bn(t,t,4194304&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!n)return;1920&(n=Sn(n)).flags?n=Br(n,r.symbol):Pr(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(r.symbol.declarations.length>1)}function Ur(e){if(33554432&e.flags)return e;var t=l(e);return Qt[t]||(Qt[t]={})}function Vr(e){var t=u(e);return $t[t]||($t[t]={flags:0})}function qr(t){return 284===t.kind&&!e.isExternalOrCommonJsModule(t)}function Wr(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=dn(i);if(a===oe||a.flags&n)return i}}}}function Hr(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r);if(i!==a){if(w&&(i.externalModuleIndicator||a.externalModuleIndicator)||!F.outFile&&!F.out||Y_(r)||4194304&t.flags)return!0;if(u(r,t))return!0;var o=n.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=r.pos){if(186===t.kind){var s=e.getAncestor(r,186);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=2&&e.isParameter(_)&&v.body&&l.valueDeclaration.pos>=v.body.pos&&l.valueDeclaration.end<=v.body.end?h=!1:1&l.flags&&(h=151===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter))}}else 175===t.kind&&(h=_===t.trueType);if(h)break e;l=void 0}switch(t.kind){case 284:if(!e.isExternalOrCommonJsModule(t))break;y=!0;case 244:var b=In(t).exports;if(284===t.kind||e.isAmbientModule(t)){if(l=b.get("default")){var D=e.getLocalSymbolForExportDefault(l);if(D&&l.flags&n&&D.escapedName===r)break e;l=void 0}var x=b.get(r);if(x&&2097152===x.flags&&e.getDeclarationOfKind(x,257))break}if("default"!==r&&(l=c(b,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 243:if(l=c(In(t).exports,r,8&n))break e;break;case 154:case 153:if(e.isClassLike(t.parent)&&!e.hasModifier(t,32)){var S=jn(t.parent);S&&S.locals&&c(S.locals,r,67220415&n)&&(p=t)}break;case 240:case 209:case 241:if(l=c(In(t).members||N,r,67897832&n)){if(!$r(l,t)){l=void 0;break}if(_&&e.hasModifier(_,32))return void Pr(g,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(209===t.kind&&32&n){var T=t.name;if(T&&r===T.escapedText){l=t.symbol;break e}}break;case 211:if(_===t.expression&&86===t.parent.token){var C=t.parent.parent;if(e.isClassLike(C)&&(l=c(In(C).members,r,67897832&n)))return void(i&&Pr(g,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 149:if(f=t.parent.parent,(e.isClassLike(f)||241===f.kind)&&(l=c(In(f).members,r,67897832&n)))return void Pr(g,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 197:if(F.target>=2)break;case 156:case 157:case 158:case 159:case 239:if(3&n&&"arguments"===r){l=G;break e}break;case 196:if(3&n&&"arguments"===r){l=G;break e}if(16&n){var E=t.name;if(E&&r===E.escapedText){l=t.symbol;break e}}break;case 152:t.parent&&151===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||240===t.parent.kind)&&(t=t.parent);break;case 309:case 302:t=e.getJSDocHost(t)}Xr(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(284===_.kind),_.commonJsModuleIndicator&&"exports"===r&&n&_.symbol.flags))return _.symbol;s||(l=c(V,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return Y;if(l){if(i){if(p){var k=p.name;return void Pr(g,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(k),Qr(a))}if(g&&(2&n||(32&n||384&n)&&67220415==(67220415&n))){var A=Rn(l);(2&A.flags||32&A.flags||384&A.flags)&&function(t,r){e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags));var n=e.find(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||243===t.kind||e.isInJSFile(t)&&!!e.getJSDocEnumTag(t)});if(void 0===n)return e.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");if(!(4194304&n.flags||Hr(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=Pr(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=Pr(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=Pr(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),F.preserveConstEnums&&(i=Pr(r,e.Diagnostics.Class_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(A,g)}if(l&&y&&67220415==(67220415&n)&&!(2097152&m.flags)){var P=wn(l);e.length(P.declarations)&&e.every(P.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})&&Pr(g,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}}return l}if(i&&(!g||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||Eh(t)||Y_(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=In(a.parent);if(!o)break;var s=aa(o);if(Ko(s,r))return Pr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Qr(n),ci(o)),!0;if(a===i&&!e.hasModifier(a,32)){var c=Na(o).thisType;if(Ko(c,r))return Pr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Qr(n)),!0}}a=a.parent}return!1}(g,r,a)||Zr(g)||function(t,r,n){var i=1920|(e.isInJSFile(t)?67220415:0);if(n===i){var a=_n(Gr(t,r,67897832&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText,c=Ko(Na(a),s);if(c)return Pr(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Pr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(67220415&n){if("any"===r||"string"===r||"number"===r||"boolean"===r||"never"===r)return Pr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=_n(Gr(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return Pr(t,a,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(111127&n){var i=_n(Gr(t,r,1024,void 0,void 0,!1));if(i)return Pr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){var i=_n(Gr(t,r,1536,void 0,void 0,!1));if(i)return Pr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)||function(t,r,n){if(67897448&n){var i=_n(Gr(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Pr(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)))){var w=void 0;if(u&&Gt=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Pr(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,a),i}if(F.esModuleInterop){var o=r.parent;if(e.isImportDeclaration(o)&&e.getNamespaceDeclarationNode(o)||e.isImportCall(o)){var s=aa(i),c=Uo(s,0);if(c&&c.length||(c=Uo(s,1)),c&&c.length){var u=ym(s,i,t),l=Ir(i.flags,i.escapedName);l.declarations=i.declarations?i.declarations.slice():[],l.parent=i.parent,l.target=i,l.originatingImport=o,i.valueDeclaration&&(l.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(l.constEnumOnlyModule=!0),i.members&&(l.members=e.cloneMap(i.members)),i.exports&&(l.exports=e.cloneMap(i.exports));var _=Do(u);return l.type=Yn(l,_.members,e.emptyArray,e.emptyArray,_.stringIndexInfo,_.numberIndexInfo),l}}}}return i}function Cn(e){return void 0!==e.exports.get("export=")}function En(e){return Qo(An(e))}function kn(e,t){var r=An(t);if(r)return r.get(e)}function Nn(e){return 32&e.flags?Va(e,"resolvedExports"):1536&e.flags?An(e):e.exports||N}function An(e){var t=Ur(e);return t.resolvedExports||(t.resolvedExports=Pn(e))}function Fn(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&_n(o)!==_n(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function Pn(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=e.cloneMap(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function _i(e){return void 0===e&&(e=0),9469291&e}function di(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),U.typeToTypeNode(t.type,r,70222336|_i(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function pi(e){return 8===e?"private":16===e?"protected":"public"}function fi(t){return t&&t.parent&&245===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function mi(t){return 284===t.kind||e.isAmbientModule(t)}function gi(t,r){var n=t.nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,F.target)||Lp(i)?i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+yi(n.symbol,r)+"]"}}function yi(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],mi)!==e.findAncestor(r.enclosingDeclaration,mi)))return"default";if(t.declarations&&t.declarations.length){var n=t.declarations[0],i=e.getNameOfDeclaration(n);if(i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(2048&e.getCheckFlags(t))&&t.nameType&&384&t.nameType.flags){var a=gi(t,r);if(void 0!==a)return a}return e.declarationNameToString(i)}if(n.parent&&237===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 209:case 196:case 197:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),209===n.kind?"(Anonymous class)":"(Anonymous function)"}}var o=gi(t,r);return void 0!==o?o:e.symbolName(t)}function hi(t){if(t){var r=Vr(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 302:case 309:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 186:return hi(t.parent.parent);case 237:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 244:case 240:case 241:case 242:case 239:case 243:case 248:if(e.isExternalModuleAugmentation(t))return!0;var r=Ti(t);return 1&e.getCombinedModifierFlags(t)||248!==t.kind&&284!==r.kind&&4194304&r.flags?hi(r):qr(r);case 154:case 153:case 158:case 159:case 156:case 155:if(e.hasModifier(t,24))return!1;case 157:case 161:case 160:case 162:case 151:case 245:case 165:case 166:case 168:case 164:case 169:case 170:case 173:case 174:case 177:return hi(t.parent);case 250:case 251:case 253:return!1;case 150:case 284:case 247:return!0;case 254:default:return!1}}()),r.isVisible}return!1}function vi(t,r){var n,i;return t.parent&&254===t.parent.kind?n=Gr(t,t.escapedText,70107135,void 0,t,!1):257===t.parent.kind&&(n=cn(t.parent,70107135)),n&&function t(n){e.forEach(n,function(n){var a=tn(n)||n;if(r?Vr(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,a)),e.isInternalModuleImportEqualsDeclaration(n)){var o=n.moduleReference,s=ch(o),c=Gr(n,s.escapedText,68009983,void 0,void 0,!1);c&&t(c.declarations)}})}(n.declarations),i}function bi(e,t){var r=Di(e,t);if(r>=0){for(var n=qt.length,i=r;i=0;r--){if(xi(qt[r],Ht[r]))return-1;if(qt[r]===e&&Ht[r]===t)return r}return-1}function xi(t,r){switch(r){case 0:return!!Ur(t).type;case 5:return!!Vr(t).resolvedEnumType;case 2:return!!Ur(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!Ur(t).resolvedJSDocType}return e.Debug.assertNever(r)}function Si(){return qt.pop(),Ht.pop(),Wt.pop()}function Ti(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 237:case 238:case 253:case 252:case 251:case 250:return!1;default:return!0}}).parent}function Ci(e,t){var r=Ko(e,t);return r?aa(r):void 0}function Ei(e){return e&&0!=(1&e.flags)}function ki(e){var t=In(e);return t&&Ur(t).type||Bi(e,!1)}function Ni(t){return 149===t.kind&&!e.isStringOrNumericLiteralLike(t.expression)}function Ai(t,r,n){if(131072&(t=Sd(t,function(e){return!(98304&e.flags)})).flags)return Oe;if(1048576&t.flags)return Td(t,function(e){return Ai(e,r,n)});var i=Ac(e.map(r,Rc));if(qc(t)||Wc(i)){if(131072&i.flags)return t;var a=Et||(Et=ec("Pick",524288,e.Diagnostics.Cannot_find_global_type_0)),o=Ct||(Ct=ec("Exclude",524288,e.Diagnostics.Cannot_find_global_type_0));return a&&o?Rs(a,[t,Rs(o,[Jc(t),i])]):_e}for(var s=e.createSymbolTable(),c=0,u=Co(t);c=2?gc(ce):at;var s=Dc(e.map(i,function(t){return e.isOmittedExpression(t)?ce:Vi(t,r,n)}),e.findLastIndex(i,function(t){return!e.isOmittedExpression(t)&&!Pp(t)},i.length-(o?2:1))+1,o);return r&&((s=Os(s)).pattern=t),s}(t,r,n)}function Wi(e,t){return Hi(Bi(e,!0),e,t)}function Hi(t,r,n){return t?(n&&D_(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==In(r)&&(t=Ce),h_(t)):(t=e.isParameter(r)&&r.dotDotDotToken?at:ce,n&&(Gi(r)||b_(r,t)),t)}function Gi(t){var r=e.getRootDeclaration(t);return Vg(151===r.kind?r.parent:r)}function Yi(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Du(r)}function Xi(t){var r=Ur(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=Na(On(t))).typeParameters?Is(r,e.map(r.typeParameters,function(e){return ce})):r;var r;if(t===Y)return ce;if(134217728&t.flags){var n=In(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),Yn(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o))return ce;if(e.isSourceFile(o)&&e.isJsonSourceFile(o)){if(!o.statements.length)return Oe;var s=Ql(kg(o.statements[0].expression));return 524288&s.flags?p_(s):s}if(!bi(t,0))return 512&t.flags?ra(t):ia(t);if(254===o.kind)a=Hi(dg(o.expression),o);else if(e.isInJSFile(o)&&(e.isCallExpression(o)||e.isBinaryExpression(o)||e.isPropertyAccessExpression(o)&&e.isBinaryExpression(o.parent)))a=ji(t);else if(e.isJSDocPropertyLikeTag(o)||e.isPropertyAccessExpression(o)||e.isIdentifier(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&t.flags)return ra(t);a=e.isBinaryExpression(o.parent)?ji(t):Yi(o)||ce}else if(e.isPropertyAssignment(o))a=Yi(o)||hg(o);else if(e.isJsxAttribute(o))a=Yi(o)||Vp(o);else if(e.isShorthandPropertyAssignment(o))a=Yi(o)||yg(o.name,0);else if(e.isObjectLiteralMethod(o))a=Yi(o)||vg(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o))a=Wi(o,!0);else if(e.isEnumDeclaration(o))a=ra(t);else{if(!e.isEnumMember(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(o)+" for "+e.Debug.showSymbol(t));a=na(t)}return Si()?a:512&t.flags?ra(t):ia(t)}(t);r.type||(r.type=n)}return r.type}function Qi(t){if(t)return 158===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function $i(e){var t=Qi(e);return t&&Du(t)}function Zi(e){return ls(os(e))}function ea(t){var r=Ur(t);return r.type||(r.type=function(t){var r,n=e.getDeclarationOfKind(t,158),i=e.getDeclarationOfKind(t,159);if(n&&e.isInJSFile(n)){var a=Oi(n);if(a)return a}if(!bi(t,0))return _e;var o=$i(n);if(o)r=o;else{var s=$i(i);s?r=s:n&&n.body?r=Bm(n):(i?wr(B,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ci(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),wr(B,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ci(t))),r=ce)}if(!Si()&&(r=ce,B)){var c=e.getDeclarationOfKind(t,158);Pr(c,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,ci(t))}return r}(t))}function ta(e){var t=ha(Da(e));return 8650752&t.flags?t:void 0}function ra(t){var r=Ur(t),n=r;if(!r.type){var i=e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=In(i);a&&(e.hasEntries(a.exports)||e.hasEntries(a.members))&&(r=t=Rr(t),e.hasEntries(a.exports)&&(t.exports=t.exports||e.createSymbolTable(),zr(t.exports,a.exports)),e.hasEntries(a.members)&&(t.members=t.members||e.createSymbolTable(),zr(t.members,a.members)))}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return ce;if(204===r.kind||189===r.kind&&204===r.parent.kind)return ji(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Sn(t);if(n!==t){if(!bi(t,0))return _e;var i=wn(t.exports.get("export=")),a=ji(i,i===n?void 0:n);return Si()?a:ia(t)}}var o=Vn(16,t);if(32&t.flags){var s=ta(t);return s?Mc([o,s]):o}return O&&16777216&t.flags?u_(o):o}(t)}return r.type}function na(e){var t=Ur(e);return t.type||(t.type=Ea(e))}function ia(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Pr(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ci(t)),_e):(B&&(151!==r.kind||r.initializer)&&Pr(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,ci(t)),ce)}function aa(t){return 1&e.getCheckFlags(t)?function(e){var t=Ur(e);if(!t.type){if(!bi(e,0))return t.type=_e;var r=Ku(aa(t.target),t.mapper);Si()||(r=ia(e)),t.type=r}return t.type}(t):4096&e.getCheckFlags(t)?function(e){return I_(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?Xi(t):9136&t.flags?ra(t):8&t.flags?na(t):98304&t.flags?ea(t):2097152&t.flags?function(e){var t=Ur(e);if(!t.type){var r=dn(e);t.type=67220415&r.flags?aa(r):_e}return t.type}(t):_e}function oa(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function sa(t){return 4&e.getObjectFlags(t)?t.target:t}function ca(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=sa(n);return i===r||e.some(va(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function ua(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=Po(e);return!!t&&ba(t)&&pa(t)}return _m(e)}function ma(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function ga(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Vo(t,1),function(t){return(a||i>=is(t.typeParameters))&&i<=e.length(t.typeParameters)})}function ya(t,r,n){var i=ga(t,r,n),a=e.map(r,Du);return e.sameMap(i,function(t){return e.some(t.typeParameters)?gs(t,a,e.isInJSFile(n)):t})}function ha(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=ma(t);if(!i)return t.resolvedBaseConstructorType=pe;if(!bi(t,1))return _e;var a=kg(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),kg(n.expression)),2621440&a.flags&&Do(a),!Si())return Pr(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ci(t.symbol)),t.resolvedBaseConstructorType=_e;if(!(1&a.flags||a===ge||fa(a))){var o=Pr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,li(a));if(262144&a.flags){var s=As(a),c=de;if(s){var u=Vo(s,1);u[0]&&(c=ps(u[0]))}e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ci(a.symbol),li(c)))}return t.resolvedBaseConstructorType=_e}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function va(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[hc(Ac(t.typeParameters||e.emptyArray),t.readonly)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Bo(ha(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=ma(t),a=Xs(i),o=_m(r)?r:r.symbol?Na(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}(o))n=Ls(i,r.symbol,a);else if(1&r.flags)n=r;else if(_m(r))n=!i.typeArguments&&dm(r.symbol)||ce;else{var s=ya(r,i.typeArguments,i);if(!s.length)return Pr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=ps(s[0])}n===_e?t.resolvedBaseTypes=e.emptyArray:ba(n)?t===n||ca(n,t)?(Pr(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,li(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[n]):(Pr(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,li(n)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r=a?8192:0);return i.type=n===o?hc(e):e,i});return e.concatenate(t.parameters.slice(0,r),s)}}return t.parameters}function Za(e,t,r,n,i){for(var a=0,o=e;a0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter;if(e.forEach(c,function(e){return e.thisParameter})){var _=Ac(e.map(c,function(e){return e.thisParameter?aa(e.thisParameter):ce}),2);l=d_(s.thisParameter,_)}(u=Qa(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var d=t[void 0!==n?n:0],p=d.slice(),f=function(t){if(t!==d){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=r.typeParameters&&e.some(p,function(e){return!!e.typeParameters})?void 0:e.map(p,function(t){return i=r,a=(n=t).declaration,o=function(e,t){for(var r=Em(e)>=Em(t)?e:t,n=r===e?t:e,i=Em(r),a=Nm(e)||Nm(t),o=a&&!Nm(r),s=new Array(i+(o?1:0)),c=0;c=km(r)&&c>=km(n),f=xm(e,c),m=xm(t,c),g=Ir(1|(p&&!d?16777216:0),f===m?f:"arg"+c);g.type=d?hc(_):_,s[c]=g}if(o){var y=Ir(1,"args");y.type=hc(Sm(n,i)),s[i]=y}return s}(n,i),s=function(e,t){if(!e||!t)return e||t;var r=Ac([aa(e),aa(t)],2);return d_(e,r)}(n.thisParameter,i.thisParameter),c=Math.max(n.minArgumentCount,i.minArgumentCount),u=n.hasRestParameter||i.hasRestParameter,l=n.hasLiteralTypes||i.hasLiteralTypes,(_=Ya(a,n.typeParameters||i.typeParameters,s,o,void 0,void 0,c,u,l)).unionSignatures=e.concatenate(n.unionSignatures||[n],[i]),_;var n,i,a,o,s,c,u,l,_})))return"break"}},m=0,g=t;m0}),n=e.map(t,pa);return r>0&&r===e.countWhere(n,function(e){return e})&&(n[n.indexOf(!0)]=!1),n}function so(t){for(var r,n,i=e.emptyArray,a=e.emptyArray,o=t.types,s=oo(o),c=e.countWhere(s,function(e){return e}),u=function(u){var l=t.types[u];if(!s[u]){var _=Vo(l,1);_.length&&c>0&&(_=e.map(_,function(e){var t=Xa(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=_&&o<=d){var p=d?hs(l,as(a,l.typeParameters,_,i)):Xa(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(u)),t.constructSignatures=c}}}function uo(t){return 131069&t.flags?t:4194304&t.flags?Jc(Bo(t.type)):16777216&t.flags?function(e){if(e.root.isDistributive){var t=uo(e.checkType);if(t!==e.checkType){var r=Cu(e.root.checkType,t);return zu(e,Nu(r,e.mapper))}}return e}(t):1048576&t.flags?Ac(e.sameMap(t.types,uo)):2097152&t.flags?Mc(e.sameMap(t.types,uo)):ke}function lo(e){return e.typeParameter||(e.typeParameter=ka(In(e.declaration.typeParameter)))}function _o(e){return e.constraintType||(e.constraintType=ko(lo(e))||_e)}function po(e){return e.templateType||(e.templateType=e.declaration.type?Ku(Li(Du(e.declaration.type),!!(4&yo(e))),e.mapper||A):_e)}function fo(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function mo(e){var t=fo(e);return 179===t.kind&&129===t.operator}function go(e){if(!e.modifiersType)if(mo(e))e.modifiersType=Ku(Du(fo(e).type),e.mapper||A);else{var t=_o($c(e.declaration)),r=t&&262144&t.flags?ko(t):t;e.modifiersType=r&&4194304&r.flags?Ku(r.type,e.mapper||A):Oe}return e.modifiersType}function yo(e){var t=e.declaration;return(t.readonlyToken?39===t.readonlyToken.kind?2:1:0)|(t.questionToken?39===t.questionToken.kind?8:4:0)}function ho(e){var t=yo(e);return 8&t?-1:4&t?1:0}function vo(e){var t=ho(e),r=go(e);return t||(bo(r)?ho(r):0)}function bo(t){return!!(32&e.getObjectFlags(t))&&Wc(_o(t))}function Do(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=La(t.target),n=e.concatenate(r.typeParameters,[r.thisType]);Ga(t,r,n,t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]))}(t):3&t.objectFlags?function(t){Ga(t,La(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=Ho(t.source,0),n=yo(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&Es(I_(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=Co(t.source);c=50)return Pr(h,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,t.immediateBaseConstraint=Je;k++;var n=function(e){if(262144&e.flags){var t=As(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){for(var r=e.types,n=[],a=0,o=r;a=7))||Oe:528&r.flags?rt:12288&r.flags?nc(P>=2):67108864&r.flags?Oe:4194304&r.flags?we:r}function jo(t,r){for(var n,i=e.createMap(),a=1048576&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,_=0,d=t.types;_=0),n>=km(r)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function ts(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&293===n.type.kind}function rs(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function ns(e){return{kind:0,type:e}}function is(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!m||_||$o(p)||(o=i.length)}if(!(158!==t.kind&&159!==t.kind||za(t)||c&&s)){var g=158===t.kind?159:158,y=e.getDeclarationOfKind(In(t),g);y&&(s=(r=Fv(y))&&r.symbol)}var h=157===t.kind?Da(wn(t.parent.symbol)):void 0,v=h?h.localTypeParameters:Xo(t),b=e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!cs(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=Ir(3,"args",16384);return o.type=a?hc(Du(a.type)):at,a&&r.pop(),r.push(o),!0}(t,i);n.resolvedSignature=Ya(t,v,s,i,void 0,void 0,o,b,a)}return n.resolvedSignature}function ss(t){var r=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0,n=r&&r.typeExpression&&Rf(Du(r.typeExpression));return n&&bs(n)}function cs(t){var r=Vr(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 72:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 154:case 156:case 158:case 159:return 149===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function us(t){if(!t)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(os(i))}}return r}function ls(e){if(e.thisParameter)return aa(e.thisParameter)}function _s(e){return void 0!==ds(e)}function ds(t){if(!t.resolvedTypePredicate){if(t.target){var r=ds(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,e.isIdentifierTypePredicate(o)?{kind:1,parameterName:o.parameterName,parameterIndex:o.parameterIndex,type:Ku(o.type,s)}:{kind:0,type:Ku(o.type,s)}):Ft}else if(t.unionSignatures)t.resolvedTypePredicate=function(t){for(var r,n=[],i=0,a=t;i1&&(t+=":"+a),n+=a}return t}function ws(t,r){for(var n=0,i=0,a=t;ia.length)){var u=c&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Pr(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,li(i,void 0,2),s,a.length),!c)return _e}return Is(i,e.concatenate(i.outerTypeParameters,as(n,a,s,c)))}return Gs(t,r)?i:_e}function Rs(t,r){var n=Na(t),i=Ur(t),a=i.typeParameters,o=Ps(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Ku(n,Eu(a,as(r,a,is(a),e.isInJSFile(t.valueDeclaration))))),s}function Bs(t){switch(t.kind){case 164:return t.typeName;case 211:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function js(e,t){return e&&yn(e,t)||oe}function Js(t,r){var n=Xs(t);if(r===oe)return _e;var i=Ks(t,r,n);if(i)return i;var a=e.isInJSFile(t)&&r.valueDeclaration&&e.getJSDocEnumTag(r.valueDeclaration);if(a){var o=Vr(a);if(!bi(a,5))return _e;var s=a.typeExpression?Du(a.typeExpression):_e;return Si()||(s=_e,Pr(t,e.Diagnostics.Enum_type_0_circularly_references_itself,ci(r))),o.resolvedEnumType=s}var c=Aa(r);if(c)return Gs(t,r)?262144&c.flags?Ws(c,t):gu(c):_e;if(!(67220415&r.flags&&Hs(t)))return _e;var u=zs(t,r,n);return u||(js(Bs(t),67897832),aa(r))}function zs(e,t,r){var n=aa(t),i=n.symbol&&n.symbol!==t&&Ks(e,n.symbol,r);if(i)return Ur(t).resolvedJSDocType=i}function Ks(t,r,n){if(96&r.flags){if(r.valueDeclaration&&r.valueDeclaration.parent&&e.isBinaryExpression(r.valueDeclaration.parent)){var i=zs(t,r,n);if(i)return i}return Ls(t,r,n)}if(524288&r.flags)return function(t,r,n){var i=Na(r),a=Ur(r).typeParameters;if(a){var o=e.length(t.typeArguments),s=is(a);return oa.length?(Pr(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ci(r),s,a.length),_e):Rs(r,n)}return Gs(t,r)?i:_e}(t,r,n);if(16&r.flags&&Hs(t)&&lm(r.valueDeclaration)){var a=Do(aa(r));if(1===a.callSignatures.length)return ps(a.callSignatures[0])}}function Us(e,t){if(3&t.flags)return e;var r=Jn(33554432);return r.typeVariable=e,r.substitute=t,r}function Vs(e){return 170===e.kind&&1===e.elementTypes.length}function qs(e,t,r){return Vs(t)&&Vs(r)?qs(e,t.elementTypes[0],r.elementTypes[0]):Zc(Du(t))===e?Du(r):void 0}function Ws(t,r){for(var n;r&&!e.isStatement(r)&&296!==r.kind;){var i=r.parent;if(175===i.kind&&r===i.trueType){var a=qs(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?Us(t,Mc(e.append(n,t))):t}function Hs(e){return!!(2097152&e.flags)&&(164===e.kind||183===e.kind)}function Gs(t,r){return!t.typeArguments||(Pr(t,e.Diagnostics.Type_0_is_not_generic,r?ci(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function Ys(t){var r=Vr(t);if(!r.resolvedType){var n=void 0,i=void 0,a=67897832;Hs(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Gs(t),ye;case"Number":return Gs(t),he;case"Boolean":return Gs(t),Te;case"Void":return Gs(t),Ee;case"Undefined":return Gs(t),pe;case"Null":return Gs(t),me;case"Function":case"function":return Gs(t),Ye;case"Array":case"array":return r&&r.length?void 0:at;case"Promise":case"promise":return r&&r.length?void 0:Mm(ce);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Du(r[0]),i=Es(Du(r[1]),!1);return Yn(void 0,N,e.emptyArray,e.emptyArray,n===ye?i:void 0,n===he?i:void 0)}return ce}return Gs(t),ce}}}(t),a|=67220415),i||(i=Js(t,n=js(Bs(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Xs(t){return e.map(t.typeArguments,Du)}function Qs(e){var t=Vr(e);return t.resolvedType||(t.resolvedType=gu(h_(kg(e.exprName)))),t.resolvedType}function $s(t,r){function n(e){for(var t=0,r=e.declarations;t=r?16777216:0),""+u,i?8:0);_.type=l,s.push(_)}}}var d=[];for(u=r;u<=c;u++)d.push(hu(u));var p=Ir(4,"length");p.type=n?he:Ac(d),s.push(p);var f=Vn(12);return f.typeParameters=o,f.outerTypeParameters=void 0,f.localTypeParameters=o,f.instantiations=e.createMap(),f.instantiations.set(Ps(f.typeParameters),f),f.target=f,f.typeArguments=f.typeParameters,f.thisType=qn(),f.thisType.isThisType=!0,f.thisType.constraint=f,f.declaredProperties=s,f.declaredCallSignatures=e.emptyArray,f.declaredConstructSignatures=e.emptyArray,f.declaredStringIndexInfo=void 0,f.declaredNumberIndexInfo=void 0,f.minLength=r,f.hasRestElement=n,f.readonly=i,f.associatedNames=a,f}(t,r,n,i,a)),s}function Dc(e,t,r,n,i){void 0===t&&(t=e.length),void 0===r&&(r=!1),void 0===n&&(n=!1);var a=e.length;if(1===a&&r)return hc(e[0],n);var o=bc(a,t,a>0&&r,n,i);return e.length?Is(o,e):o}function xc(t,r){var n=t.target;return n.hasRestElement&&(r=Math.min(r,Ms(t)-1)),Dc((t.typeArguments||e.emptyArray).slice(r),Math.max(0,n.minLength-r),n.hasRestElement,n.readonly,n.associatedNames&&n.associatedNames.slice(r))}function Sc(e){return e.id}function Tc(t,r){return e.binarySearch(t,r,Sc,e.compareValues)>=0}function Cc(t,r){var n=e.binarySearch(t,r,Sc,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Ec(t,r,n){var i=n.flags;if(1048576&i)return kc(t,r,n.types);if(!(131072&i||2097152&i&&function(e){for(var t=0,r=0,n=e.types;rt[a-1].id?~a:e.binarySearch(t,n,Sc,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function kc(e,t,r){for(var n=0,i=r;n0;)for(var o=t[--i],s=0,c=t;s(r?25e6:1e6))return Pr(h,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,tl(o,u)&&(!(1&e.getObjectFlags(sa(o)))||!(1&e.getObjectFlags(sa(u)))||nl(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}function Ac(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return ke;if(1===t.length)return t[0];var a=[],o=kc(a,0,t);if(0!==r){if(3&o)return 1&o?4194304&o?le:ce:de;switch(r){case 1:11136&o&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(128&i.flags&&4&r||256&i.flags&&8&r||2048&i.flags&&64&r||8192&i.flags&&4096&r||yu(i)&&Tc(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:if(!Nc(a,!(262144&o)))return _e}if(0===a.length)return 65536&o?2097152&o?me:ge:32768&o?2097152&o?pe:fe:ke}return Pc(a,66994211&o?0:65536,n,i)}function Fc(t,r){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(r)&&t.parameterIndex===r.parameterIndex:!e.isIdentifierTypePredicate(r)}function Pc(e,t,r,n){if(0===e.length)return ke;if(1===e.length)return e[0];var i=Ps(e),a=Z.get(i);return a||(a=Jn(1048576),Z.set(i,a),a.objectFlags=t|ws(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function wc(t,r,n){var i=n.flags;return 2097152&i?Ic(t,r,n.types):(hl(n)?8388608&r||(r|=8388608,t.push(n)):(r|=1835007&i,3&i?n===le&&(r|=4194304):!O&&98304&i||e.contains(t,n)||t.push(n)),r)}function Ic(e,t,r){for(var n=0,i=r;n0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(i,a),8388608&a&&524288&a&&e.orderedRemoveItemAt(i,e.findIndex(i,hl)),0===i.length)return de;if(1===i.length)return i[0];if(1048576&a){if(function(t){var r,n=e.findIndex(t,function(t){return!!(65536&e.getObjectFlags(t))});if(n<0)return!1;for(var i=n+1;i=0){if(n&&xd(t,function(e){return!e.target.hasRestElement})){var l=Vc(n);e_(t)?Pr(l,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,li(t),Ms(t),e.unescapeLeadingUnderscores(s)):Pr(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(s),li(t))}return Td(t,function(e){return t_(e)||pe})}}if(!(98304&r.flags)&&eg(r,12716)){if(131073&t.flags)return t;var _=eg(r,296)&&Ho(t,1)||Ho(t,0)||void 0;if(_)return n&&!eg(r,12)?Pr(l=Vc(n),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,li(r)):o&&_.isReadonly&&(e.isAssignmentTarget(o)||e.isDeleteTarget(o))&&Pr(o,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,li(t)),_.type;if(131072&r.flags)return ke;if(Kc(t))return ce;if(o&&!rg(t)){if(t.symbol===W&&void 0!==s&&W.exports.has(s)&&418&W.exports.get(s).flags)Pr(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(s),li(t));else if(B&&!F.suppressImplicitAnyIndexErrors)if(void 0!==s&&hf(s,t))Pr(o,e.Diagnostics.Property_0_is_a_static_member_of_type_1,s,li(t));else if(Go(t,1))Pr(o.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var d=void 0;void 0!==s&&(d=bf(s,t))?void 0!==d&&Pr(o.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,li(t),d):Pr(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,li(t))}return a}}return Kc(t)?ce:(n&&(l=Vc(n),384&r.flags?Pr(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,li(t)):12&r.flags?Pr(l,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,li(t),li(r)):Pr(l,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,li(r))),Ei(r)?r:a)}function Vc(e){return 190===e.kind?e.argumentExpression:180===e.kind?e.indexType:149===e.kind?e.expression:e}function qc(e){return Zm(e,59113472)}function Wc(e){return Zm(e,63176704)}function Hc(e){return 8388608&e.flags?function(e){if(e.simplified)return e.simplified===ze?e:e.simplified;e.simplified=ze;var t=Hc(e.objectType),r=Hc(e.indexType);if(1048576&r.flags)return e.simplified=Td(r,function(e){return Hc(Xc(t,e))});if(!(63176704&r.flags)){var n=Gc(t,r);if(n)return e.simplified=n}return bo(t)?e.simplified=Td(Yc(t,e.indexType),Hc):e.simplified=e}(e):e}function Gc(t,r){return 1048576&t.flags?Td(t,function(e){return Hc(Xc(e,r))}):2097152&t.flags?Mc(e.map(t.types,function(e){return Hc(Xc(e,r))})):void 0}function Yc(e,t){var r=Eu([lo(e)],[t]),n=Nu(e.mapper,r);return Ku(po(e),n)}function Xc(e,t,r,n){if(void 0===n&&(n=r?_e:de),e===le||t===le)return le;if(Wc(t)||(!r||180===r.kind)&&qc(e)){if(3&e.flags)return e;var i=e.id+","+t.id,a=re.get(i);return a||re.set(i,a=function(e,t){var r=Jn(8388608);return r.objectType=e,r.indexType=t,r}(e,t)),a}var o=Bo(e);if(1048576&t.flags&&!(16&t.flags)){for(var s=[],c=!1,u=0,l=t.types;u"+Sc(n)+"?"+Sc(i)+":"+Sc(a),s=ne.get(o);if(s)return s;var c=function(e,t,r,n,i,a){if(131072&a.flags&&Qu(Zc(i),Zc(r))){if(1&r.flags||rl(Vu(r),Vu(n)))return i;if(eu(r,n))return ke}else if(131072&i.flags&&Qu(Zc(a),Zc(r))){if(!(1&r.flags)&&rl(Vu(r),Vu(n)))return ke;if(1&r.flags||eu(r,n))return a}var o,s=Zm(r,63307776);if(e.inferTypeParameters){var c=T_(e.inferTypeParameters,void 0,0);s||B_(c.inferences,r,n,96),o=Nu(t,c.mapper)}var u=o?Ku(e.extendsType,o):n;if(!s&&!Zm(u,63307776)){if(3&u.flags)return i;if(1&r.flags)return Ac([Ku(e.trueType,o||t),a]);if(!rl(Uu(r),Uu(u)))return a;if(rl(Vu(r),Vu(u)))return Ku(e.trueType,o||t)}return function(e,t,r,n,i,a,o){var s=Zc(n),c=Jn(16777216);return c.root=e,c.checkType=s,c.extendsType=i,c.mapper=t,c.combinedMapper=r,c.trueType=a,c.falseType=o,c.aliasSymbol=e.aliasSymbol,c.aliasTypeArguments=Su(e.aliasTypeArguments,t),c}(e,t,o,r,n,i,a)}(e,t,r,n,i,a);return ne.set(o,c),c}function ru(t){var r;return t.locals&&t.locals.forEach(function(t){262144&t.flags&&(r=e.append(r,Na(t)))}),r}function nu(t){var r=Vr(t);if(!r.resolvedType){var n=Du(t.checkType),i=su(t),a=cu(i),o=la(t,!0),s=a?o:e.filter(o,function(e){return function(e,t){if(Lu(e,t))return!0;for(;t;){if(175===t.kind&&Lu(e,t.extendsType))return!0;t=t.parent}return!1}(e,t)}),c={node:t,checkType:n,extendsType:Du(t.extendsType),trueType:Du(t.trueType),falseType:Du(t.falseType),isDistributive:!!(262144&n.flags),inferTypeParameters:ru(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=tu(c,void 0),s&&(c.instantiations=e.createMap(),c.instantiations.set(Ps(s),r.resolvedType))}return r.resolvedType}function iu(t){var r=Vr(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Pr(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=oe,r.resolvedType=_e;if(!e.isLiteralImportTypeNode(t))return Pr(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=oe,r.resolvedType=_e;var n=t.isTypeOf?67220415:2097152&t.flags?68008959:67897832,i=vn(t,t.argument.literal);if(!i)return r.resolvedSymbol=oe,r.resolvedType=_e;var a=Sn(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?au(t,r,a,n):(Pr(t,67220415===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=oe,r.resolvedType=_e);else{for(var o=function t(r){return e.isIdentifier(r)?[r]:e.append(t(r.left),r.right)}(t.qualifier),s=a,c=void 0;c=o.shift();){var u=o.length?1920:n,l=Wr(Nn(wn(_n(s))),c.escapedText,u);if(!l)return Pr(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,gn(s),e.declarationNameToString(c)),r.resolvedType=_e;Vr(c).resolvedSymbol=l,Vr(c.parent).resolvedSymbol=l,s=l}au(t,r,s,n)}}return r.resolvedType}function au(e,t,r,n){var i=_n(r);return t.resolvedSymbol=i,t.resolvedType=67220415===n?aa(r):Js(e,i)}function ou(t){var r=Vr(t);if(!r.resolvedType){var n=su(t);if(0!==qa(t.symbol).size||n){var i=Vn(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=cu(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=hc(i)),r.resolvedType=i}else r.resolvedType=Re}return r.resolvedType}function su(t){return e.isTypeAlias(t.parent)?In(t.parent):void 0}function cu(e){return e?da(e):void 0}function uu(e){return!!(524288&e.flags)&&!bo(e)}function lu(t,r,n,i,a){if(1&t.flags||1&r.flags)return ce;if(2&t.flags||2&r.flags)return de;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&t.flags)return Td(t,function(e){return lu(e,r,n,i,a)});if(1048576&r.flags)return Td(r,function(e){return lu(t,e,n,i,a)});if(71307260&r.flags)return t;if(qc(t)||qc(r)){if(yl(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(uu(s)&&uu(r))return Mc(e.concatenate(o.slice(0,o.length-1),[lu(s,r,n,i,a)]))}return Mc([t,r])}var c,u,l=e.createSymbolTable(),_=e.createUnderscoreEscapedMap();t===Oe?(c=Ho(r,0),u=Ho(r,1)):(c=ao(Ho(t,0),Ho(r,0)),u=ao(Ho(t,1),Ho(r,1)));for(var d=0,p=Co(r);d=i,n)}),o=yo(r),s=4&o?0:8&o?Ms(t)-(t.target.hasRestElement?1:0):i,c=Bu(t.target.readonly,o);return e.contains(a,_e)?_e:Dc(a,s,t.target.hasRestElement,c,t.target.associatedNames)}(i,t,a):Ju(t,a)}return i})}return Ju(t,r)}(n,g):Ju(n,g),a.instantiations.set(f,m)}return m}return t}function Lu(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){var n=t.symbol.declarations[0].parent;if(e.findAncestor(r,function(e){return 218===e.kind?"quit":e===n}))return!!e.forEachChild(r,function r(n){switch(n.kind){case 178:return!!t.isThisType;case 72:return!t.isThisType&&e.isPartOfTypeNode(n)&&function(e){return!(148===e.kind||164===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName)}(n)&&Du(n)===t;case 167:return!0}return!!e.forEachChild(n,r)})}return!0}function Ru(e){var t=_o(e);if(4194304&t.flags){var r=Zc(t.type);if(262144&r.flags)return r}}function Bu(e,t){return!!(1&t)||!(2&t)&&e}function ju(e,t,r,n){var i=Nu(n,Eu([lo(e)],[t])),a=Ku(po(e.target||e),i),o=yo(e);return O&&4&o&&!rl(pe,a)?u_(a):O&&8&o&&r?ad(a,524288):a}function Ju(e,t){var r=Vn(64|e.objectFlags,e.symbol);if(32&e.objectFlags){r.declaration=e.declaration;var n=lo(e),i=wu(n);r.typeParameter=i,t=Nu(Cu(n,i),t),i.mapper=t}return r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Su(e.aliasTypeArguments,t),r}function zu(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,r),a=Ps(i),o=n.instantiations.get(a);return o||(o=function(e,t){if(e.isDistributive){var r=e.checkType,n=t(r);if(r!==n&&1179648&n.flags)return Td(n,function(n){return tu(e,Au(r,n,t))})}return tu(e,t)}(n,Eu(n.outerTypeParameters,i)),n.instantiations.set(a,o)),o}return t}function Ku(t,r){if(!t||!r||r===A)return t;if(50===E)return Pr(h,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),_e;E++;var n=function(e,t){var r=e.flags;if(262144&r)return t(e);if(524288&r){var n=e.objectFlags;if(16&n)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?Mu(e,t):e;if(32&n)return Mu(e,t);if(4&n){var i=e.typeArguments,a=Su(i,t);return a!==i?Is(e.target,a):e}return e}if(1048576&r&&!(131068&r)){var o=e.types,s=Su(o,t);return s!==o?Ac(s,1,e.aliasSymbol,Su(e.aliasTypeArguments,t)):e}if(2097152&r){var o=e.types,s=Su(o,t);return s!==o?Mc(s,e.aliasSymbol,Su(e.aliasTypeArguments,t)):e}if(4194304&r)return Jc(Ku(e.type,t));if(8388608&r)return Xc(Ku(e.objectType,t),Ku(e.indexType,t));if(16777216&r)return zu(e,Nu(e.mapper,t));if(33554432&r){var c=Ku(e.typeVariable,t);if(8650752&c.flags)return Us(c,Ku(e.substitute,t));var u=Ku(e.substitute,t);return 3&u.flags||tl(Vu(c),Vu(u))?c:u}return e}(t,r);return E--,n}function Uu(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Ku(e,Fu))}function Vu(e){return 262143&e.flags?e:e.restrictiveInstantiation?e.restrictiveInstantiation:(e.restrictiveInstantiation=Ku(e,Pu),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function qu(e,t){return e&&Es(Ku(e.type,t),e.isReadonly,e.declaration)}function Wu(t){switch(e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 196:case 197:case 156:return Hu(t);case 188:return e.some(t.properties,Wu);case 187:return e.some(t.elements,Wu);case 205:return Wu(t.whenTrue)||Wu(t.whenFalse);case 204:return 55===t.operatorToken.kind&&(Wu(t.left)||Wu(t.right));case 275:return Wu(t.initializer);case 195:return Wu(t.expression);case 268:return e.some(t.properties,Wu)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Wu);case 267:var r=t.initializer;return!!r&&Wu(r);case 270:var n=t.expression;return!!n&&Wu(n)}return!1}function Hu(t){if(t.typeParameters)return!1;if(e.some(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(197!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}return Gu(t)}function Gu(e){return!!e.body&&218!==e.body.kind&&Wu(e.body)}function Yu(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||kp(t)||e.isObjectLiteralMethod(t))&&Hu(t)}function Xu(t){if(524288&t.flags){var r=Do(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Vn(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(2097152&t.flags)return Mc(e.map(t.types,Xu));return t}function Qu(e,t){return Dl(e,t,Er)}function $u(e,t){return Dl(e,t,Er)?-1:0}function Zu(e,t){return Dl(e,t,Tr)?-1:0}function el(e,t){return Dl(e,t,Sr)?-1:0}function tl(e,t){return Dl(e,t,Sr)}function rl(e,t){return Dl(e,t,Tr)}function nl(t,r){return 1048576&t.flags?e.every(t.types,function(e){return nl(e,r)}):1048576&r.flags?e.some(r.types,function(e){return nl(t,e)}):58982400&t.flags?nl(Po(t)||Oe,r):r===Ge?!!(67633152&t.flags):r===Ye?!!(524288&t.flags)&&nd(t):ca(t,sa(r))}function il(e,t){return Dl(e,t,Cr)}function al(e,t){return il(e,t)||il(t,e)}function ol(e,t,r,n,i,a){return Sl(e,t,Tr,r,n,i,a)}function sl(e,t,r,n,i,a){return cl(e,t,Tr,r,n,i,a)}function cl(e,t,r,n,i,a,o){return!!Dl(e,t,r)||(!n||!ll(i,e,t,r,a))&&Sl(e,t,r,n,a,o)}function ul(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,ul))}function ll(t,r,n,o,s){if(!t||ul(n))return!1;if(!Sl(r,n,o,void 0)&&function(t,r,n,i,a){for(var o=Vo(r,0),s=Vo(r,1),c=0,u=[s,o];c1,g=Sd(p,Wl),y=Sd(p,function(e){return!Wl(e)});if(m)if(g!==ke){var h=Dc(qp(u,0));c=_l(function(t,r){var n,i,o,s,c;return a(this,function(a){switch(a.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,a.label=1;case 1:return iu)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Bf(t,r=Ds(r),void 0,s));var l=Em(t),_=Fm(t),d=Fm(r);if(_&&d&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!n&&M&&156!==p&&155!==p&&157!==p,m=-1,g=ls(t);if(g&&g!==Ee){var y=ls(r);if(y){if(!(D=!f&&s(g,y,!1)||s(y,g,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=D}}for(var h=_||d?Math.min(l,u):Math.max(l,u),v=_||d?h-1:-1,b=0;b0||Mh(r))&&!function(e,t,r){for(var n=0,i=Co(e);n0&&N(ps(p[0]),n,!1)||m.length>0&&N(ps(m[0]),n,!1)?E(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,li(r),li(n)):E(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,li(r),li(n))}return 0}var g=0,y=u,h=!!c;if(1048576&r.flags?g=i===Cr?I(r,n,o&&!(131068&r.flags)):function(e,t,r){for(var n=-1,i=0,a=e.types;i0||Vo(t,n=1).length>0)return e.find(r.types,function(e){return Vo(e,n).length>0})}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=u)}else Gl(c)&&1>=i&&(n=s,i=1)}return n}(t,r)||i[i.length-1],!0),0}function w(t,r){if(1048576&r.flags){var n=xo(t);if(n){var i=function(e,t){for(var r,n=0,i=e;n5?E(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,li(t),li(r),e.map(_.slice(0,4),function(e){return ci(e)}).join(", "),_.length-4):E(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,li(t),li(r),e.map(_,function(e){return ci(e)}).join(", "))}return 0}if(z_(r))for(var p=0,f=Co(t);p0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&t.flags)&&e.every(t.types,Cl)}function El(t,r,n){var i=Is(t,e.map(t.typeParameters,function(e){return e===r?n:e}));return i.objectFlags|=8192,i}function kl(t,r,n){void 0===t&&(t=e.emptyArray);var i=r.variances;if(!i){r.variances=e.emptyArray,i=[];for(var a=0,o=t;a":n+="-"+o.id}return n}function wl(e,t,r){if(r===Er&&e.id>t.id){var n=e;e=t,t=n}if(Fl(e)&&Fl(t)){var i=[];return Pl(e,i)+","+Pl(t,i)}return e.id+","+t.id}function Il(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5&&524288&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a=5)return!0}}return!1}function Rl(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(eh(t)!==eh(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Gm(t)!==Gm(r)?0:n(aa(t),aa(r))}function Bl(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Em(e),i=Em(t),a=km(e),o=km(t),s=Nm(e),c=Nm(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=bs(t),r=bs(r);var s=-1;if(!i){var c=ls(t);if(c){var u=ls(r);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=Em(r),_=0;_-1&&(Gr(a,a.name.escapedText,67897832,void 0,a.name.escapedText,!0)||a.name.originalKeywordKind&&e.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a);return void wr(B,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,e.declarationNameToString(a.name))}i=t.dotDotDotToken?B?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:B?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 186:if(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!B)return;break;case 294:return void Pr(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);case 239:case 156:case 155:case 158:case 159:case 196:case 197:if(B&&!t.name)return void Pr(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);i=B?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 181:return void(B&&Pr(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=B?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}wr(B,t,i,e.declarationNameToString(e.getNameOfDeclaration(t)),n)}}function D_(t,r){o&&B&&131072&e.getObjectFlags(r)&&(function t(r){var n=!1;if(131072&e.getObjectFlags(r)){if(1048576&r.flags)if(e.some(r.types,yl))n=!0;else for(var i=0,a=r.types;ie.target.minLength||!t_(t)&&(!!t_(e)||r_(t)1){var r=e.filter(t,z_);if(r.length){var n=h_(Ac(r,2));return e.concatenate(e.filter(t,function(e){return!z_(e)}),[n])}}return t}(t.candidates),o=(n=t.typeParameter,!!(i=ko(n))&&Zm(16777216&i.flags?No(i):i,4325372)),s=!o&&t.topLevel&&(t.isFixed||!P_(ps(r),t.typeParameter)),c=o?e.sameMap(a,gu):s?e.sameMap(a,Ql):a;return h_(28&t.priority?Ac(c,2):function(t){if(!O)return jl(t);var r=e.filter(t,function(e){return!(98304&e.flags)});return r.length?c_(jl(r),98304&i_(t)):Ac(t,2)}(c))}function V_(t,r){var n=t.inferences[r],i=n.inferredType;if(!i){var a=t.signature;if(a){var o=n.candidates?U_(n,a):void 0;if(n.contraCandidates){var s=K_(n);i=!o||131072&o.flags||!tl(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=Ne;else{var c=Lo(n.typeParameter);i=c?Ku(c,Nu(function(t,r){return function(n){return e.findIndex(t.inferences,function(e){return e.typeParameter===n})>=r?Oe:n}}(t,r),t.nonFixingMapper)):q_(!!(2&t.flags))}}else i=R_(n);n.inferredType=i;var u=ko(n.typeParameter);if(u){var l=Ku(u,t.nonFixingMapper);t.compareTypes(i,Ha(l,i))||(n.inferredType=i=l)}}return i}function q_(e){return e?ce:Oe}function W_(e){for(var t=[],r=0;r=n&&c-1){var l=a.filter(function(e){return void 0!==e}),_=c=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||274===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(n)&&e.getAncestor(r.valueDeclaration,238).parent===n){var c=function(t,r){return e.findAncestor(t,function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement})}(t.parent,n);if(c){var u=Vr(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(Vr(a).flags|=65536)}225===n.kind&&e.getAncestor(r.valueDeclaration,238).parent===n&&function(t,r){for(var n=t;195===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(202===n.parent.kind||203===n.parent.kind){var a=n.parent;i=44===a.operator||45===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}(t,n)&&(Vr(r.valueDeclaration).flags|=4194304),Vr(r.valueDeclaration).flags|=524288}i&&(Vr(r.valueDeclaration).flags|=262144)}}(t,r);var o=qd(aa(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return Pr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ci(r)),_e;if(Gm(i))return 3&i.flags?Pr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ci(r)):Pr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ci(r)),_e}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,p)}if(!a)return o;for(var u=151===e.getRootDeclaration(a).kind,l=jd(a),_=jd(t),d=_!==l,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&ld(t.parent.parent),m=134217728&r.flags;_!==l&&(196===_.kind||197===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Kd(i)||u&&!Jd(i));)_=jd(_);var g=u||c||d||f||m||o!==ue&&o!==ot&&(!O||0!=(3&o.flags)||Y_(t)||257===t.parent.kind)||213===t.parent.kind||237===a.kind&&a.exclamationToken||4194304&a.flags,y=Bd(t,o,g?u?function(e,t){return O&&151===t.kind&&t.initializer&&32768&a_(e)&&!(32768&a_(kg(t.initializer)))?ad(e,524288):e}(o,a):o:o===ue||o===ot?pe:u_(o),_,!g);if(Ld(t)||o!==ue&&o!==ot){if(!g&&!(32768&a_(o))&&32768&a_(y))return Pr(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ci(r)),o}else if(y===ue||y===ot)return B&&(Pr(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ci(r),li(y)),Pr(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ci(r),li(y))),ky(y);return s?Xl(y):y}function Gd(e,t){Vr(e).flags|=2,154===t.kind||157===t.kind?Vr(t.parent).flags|=4:Vr(t).flags|=4}function Yd(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Yd)}function Xd(e){var t=Vr(e);return void 0===t.hasSuperCall&&(t.superCall=Yd(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Qd(e){return ha(Na(In(e)))===ge}function $d(t,r,n){var i=r.parent;if(e.getClassExtendsHeritageElement(i)&&!Qd(i)){var a=Xd(r);(!a||a.end>t.pos)&&Pr(t,n)}}function Zd(t){var r=e.getThisContainer(t,!0),n=!1;switch(157===r.kind&&$d(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),197===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 244:Pr(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 243:Pr(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 157:tp(t,r)&&Pr(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 154:case 153:e.hasModifier(r,32)&&Pr(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 149:Pr(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&P<2&&Gd(t,r);var i=ep(t,!0,r);if(j){var a=aa(W);if(i===a&&n)Pr(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=Pr(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=ep(r);s&&s!==a&&e.addRelatedInfo(o,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||ce}function ep(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!cp(t)||e.getThisParameter(n))){var a=function(t){return 196===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:156===t.kind&&188===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:196===t.kind&&275===t.parent.kind&&188===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:196===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&a){var o=kg(a).symbol;if(o&&o.members&&16&o.flags&&(s=dm(o)))return Bd(t,s)}else if(i&&(196===n.kind||239===n.kind)&&e.getJSDocClassTag(n)){var s;if(s=dm(wn(n.symbol)))return Bd(t,s)}var c=Zi(n)||ap(n);if(c)return Bd(t,c)}if(e.isClassLike(n.parent)){var u,l=In(n.parent);return Bd(t,u=e.hasModifier(n,32)?aa(l):Na(l).thisType)}if(i&&(u=function(t){var r=e.getJSDocType(t);if(r&&294===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Du(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Du(i.typeExpression)}(n))&&u!==_e)return Bd(t,u);if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var _=In(n);return _&&aa(_)}if(r)return aa(W)}}function tp(t,r){return!!e.findAncestor(t,function(t){return e.isFunctionLikeDeclaration(t)?"quit":151===t.kind&&t.parent===r})}function rp(t){var r=191===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&197===n.kind;)n=e.getSuperContainer(n,!0),i=P<2;var a=0;if(!function(t){return!!t&&(r?157===t.kind:!(!e.isClassLike(t.parent)&&188!==t.parent.kind)&&(e.hasModifier(t,32)?156===t.kind||155===t.kind||158===t.kind||159===t.kind:156===t.kind||155===t.kind||158===t.kind||159===t.kind||154===t.kind||153===t.kind||157===t.kind))}(n)){var o=e.findAncestor(t,function(e){return e===n?"quit":149===e.kind});return o&&149===o.kind?Pr(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Pr(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||188===n.parent.kind)?Pr(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Pr(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),_e}if(r||157!==n.kind||$d(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(n,32)||r?512:256,Vr(t).flags|=a,156===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Vr(n).flags|=4096:Vr(n).flags|=2048),i&&Gd(t.parent,n),188===n.parent.kind)return P<2?(Pr(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_e):ce;var s=n.parent;if(!e.getClassExtendsHeritageElement(s))return Pr(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),_e;var c=Na(In(s)),u=c&&va(c)[0];return u?157===n.kind&&tp(t,n)?(Pr(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),_e):512===a?ha(c):Ha(u,c.thisType):_e}function np(t){return 4&e.getObjectFlags(t)&&t.target===it?t.typeArguments[0]:void 0}function ip(t){return Td(t,function(t){return 2097152&t.flags?e.forEach(t.types,np):np(t)})}function ap(t){if(197!==t.kind){if(Yu(t)){var r=Fp(t);if(r){var n=r.thisParameter;if(n)return aa(n)}}var i=e.isInJSFile(t);if(j||i){var a=function(e){return 156!==e.kind&&158!==e.kind&&159!==e.kind||188!==e.parent.kind?196===e.kind&&275===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=bp(a),s=a,c=o;c;){var u=ip(c);if(u)return Ku(u,A_(Sp(a)));if(275!==s.parent.kind)break;c=bp(s=s.parent.parent)}return o?l_(o):dg(a)}var l=t.parent;if(204===l.kind&&59===l.operatorToken.kind){var _=l.left;if(189===_.kind||190===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&G_(d)===p.symbol)return}return dg(d)}}}}}function op(t){var r=t.parent;if(Yu(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Wf(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Jf(i,a,i.length,ce,void 0);var o=Vr(n),s=o.resolvedSignature;o.resolvedSignature=Pt;var c=a=0}(r)?ps(r):void 0}function lp(e,t){var r=Wf(e).indexOf(t);return-1===r?void 0:_p(e,r)}function _p(t,r){var n=Vr(t).resolvedSignature===It?It:um(t);return e.isJsxOpeningLikeElement(t)&&0===r?Tp(n,t):Sm(n,r)}function dp(t){var r=t.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 59:if(t!==a)return;var o=function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return!1;var i=t.left,a=e.getEffectiveTypeAnnotationNode(n);if(a)return Du(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=Gr(o,o.escapedText,67220415,void 0,o.escapedText,!0);if(s){var c=e.getEffectiveTypeAnnotationNode(s.valueDeclaration);if(c){var u=pp(Du(c),i.name.escapedText);return u||!1}return!1}}return!e.isInJSFile(n)}return!0;case 2:case 4:if(!t.symbol)return!0;if(t.symbol.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(c){var u=Du(c);if(u)return u}}if(2===r)return!1;var l=t.left;if(!e.isObjectLiteralMethod(e.getThisContainer(l.expression,!1)))return!1;var _=Zd(l.expression);return _&&pp(_,l.name.escapedText)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(r);if(!o)return;return!0===o?Cg(n):o;case 55:var s=xp(r);return s||t!==a||e.isDefaultedExpandoInitializer(r)?s:Cg(n);case 54:case 27:return t===a?xp(r):void 0;default:return}}function pp(t,r){return Td(t,function(t){if(bo(t)){var n=_o(t),i=Po(n)||n,a=hu(e.unescapeLeadingUnderscores(r));if(rl(a,i))return Yc(t,a)}else if(3670016&t.flags){var o=Ko(t,r);if(o)return aa(o);if(e_(t)){var s=t_(t);if(s&&Lp(r)&&+r>=0)return s}return Lp(r)&&fp(t,1)||fp(t,0)}},!0)}function fp(e,t){return Td(e,function(e){return Wo(e,t)},!0)}function mp(e){var t=bp(e.parent);if(t){if(!za(e)){var r=pp(t,In(e).escapedName);if(r)return r}return Op(e.name)&&fp(t,1)||fp(t,0)}}function gp(e,t){return e&&(pp(e,""+t)||jy(e,void 0,!1,!1,!1))}function yp(t){var r=t.parent;return e.isJsxAttributeLike(r)?xp(t):e.isJsxElement(r)?function(e,t){var r=bp(e.openingElement.tagName),n=Qp(Yp(e));if(r&&!Ei(r)&&n&&""!==n){var i=e.children.indexOf(t),a=pp(r,n);return a&&Td(a,function(e){return Ul(e)?Xc(e,hu(i)):e},!0)}}(r,t):void 0}function hp(t){if(e.isJsxAttribute(t)){var r=bp(t.parent);if(!r||Ei(r))return;return pp(r,t.name.escapedText)}return xp(t.parent)}function vp(e){switch(e.kind){case 10:case 8:case 9:case 14:case 102:case 87:case 96:case 72:case 141:return!0;case 189:case 195:return vp(e.expression);case 270:return!e.expression||vp(e.expression)}return!1}function bp(t){var r=Dp(xp(t),t);if(r){var n=Td(r,Bo,!0);if(1048576&n.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return Tl(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&275===e.kind&&vp(e.initializer)&&ed(r,e.symbol.escapedName)}),function(e){return[function(){return kg(e.initializer)},e.symbol.escapedName]}),rl,r)}(t,n);if(e.isJsxAttributes(t))return function(t,r){return Tl(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&267===e.kind&&ed(r,e.symbol.escapedName)&&(!e.initializer||vp(e.initializer))}),function(e){return[e.initializer?function(){return kg(e.initializer)}:function(){return xe},e.symbol.escapedName]}),rl,r)}(t,n)}return n}}function Dp(t,r){if(t&&Zm(t,63176704)){var n=Sp(r);if(n&&n.returnMapper)return function t(r,n){return 63176704&r.flags?Ku(r,n):1048576&r.flags?Ac(e.map(r.types,function(e){return t(e,n)}),0):2097152&r.flags?Mc(e.map(r.types,function(e){return t(e,n)})):r}(t,n.returnMapper)}return t}function xp(t){if(!(8388608&t.flags)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 237:case 151:case 154:case 153:case 186:return function(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=sp(r);if(n)return n;if(e.isBindingPattern(r.name))return qi(r.name,!0,!1)}}(t);case 197:case 230:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var i=up(r);if(i){if(2&n){var a=Gg(i);return a&&Ac([a,Lm(a)])}return i}}}(t);case 207:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=up(r);if(i)return t.asteriskToken?i:Uy(i,0!=(2&n))}}(r);case 201:return function(e){var t=xp(e);if(t){var r=Qg(t);return r&&Ac([r,Lm(r)])}}(r);case 191:case 192:return lp(r,t);case 194:case 212:return e.isConstTypeReference(r.type)?void 0:Du(r.type);case 204:return dp(t);case 275:case 276:return mp(r);case 277:return bp(r.parent);case 187:var n=r;return gp(bp(n),e.indexOfNode(n.elements,t));case 205:return function(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?xp(t):void 0}(t);case 216:return e.Debug.assert(206===r.parent.kind),function(e,t){if(193===e.parent.kind)return lp(e.parent,t)}(r.parent,t);case 195:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?Du(i.typeExpression.type):xp(r);case 270:return yp(r);case 267:case 269:return hp(r);case 262:case 261:return function(t){return e.isJsxOpeningElement(t)&&t.parent.contextualType?t.parent.contextualType:_p(t,0)}(r)}}}function Sp(t){var r=e.findAncestor(t,function(e){return!!e.inferenceContext});return r&&r.inferenceContext}function Tp(r,n){return 0!==Kf(n)?function(e,r){var n=wm(e,Oe);n=Cp(r,Yp(r),n);var i=Hp(t.IntrinsicAttributes,r);return i!==_e&&(n=no(i,n)),n}(r,n):function(r,n){var i,a=Yp(n),o=(i=a,Xp(t.ElementAttributesPropertyNameContainer,i)),s=void 0===o?wm(r,Oe):""===o?ps(r):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n=2)return Is(s,u=as([c,i],s.typeParameters,2,e.isInJSFile(r)));if(e.length(s.aliasTypeArguments)>=2){var u=as([c,i],s.aliasTypeArguments,2,e.isInJSFile(r));return Rs(s.aliasSymbol,u)}}return i}function Ep(t,r){var n=Vo(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n0&&208===i[a-1].kind,y=a-(g?1:0),h=void 0;if(c&&y>0)return(m=Os(Dc(s,y,g))).pattern=t,m;if(h=Ip(s,u,g,a,l))return h;if(n)return Dc(s,y,g)}return hc(s.length?Ac(s,2):O?Ae:fe,l)}function Ip(t,r,n,i,a){if(void 0===i&&(i=t.length),void 0===a&&(a=!1),a||r&&Dd(r,ql)){var o=i-(n?1:0),s=r&&r.pattern;if(!n&&s&&(185===s.kind||187===s.kind))for(var c=s.elements,u=i;u0&&(o=lu(o,w(),t.symbol,f,u),a=[],n=e.createSymbolTable(),g=!1,y=!1),!zp(S=kg(b.expression)))return Pr(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),_e;o=lu(o,S,t.symbol,f,u),h=v+1;continue}e.Debug.assert(158===b.kind||159===b.kind),hh(b)}!x||8576&x.flags?n.set(D.escapedName,D):rl(x,Pe)&&(rl(x,he)?y=!0:g=!0,i&&(m=!0)),a.push(D)}if(c)for(var N=0,A=Co(s);N0&&(o=lu(o,w(),t.symbol,f,u)),o):w();function w(){var r=g?Bp(t,h,a,0):void 0,o=y?Bp(t,h,a,1):void 0,s=Yn(t.symbol,n,e.emptyArray,e.emptyArray,r,o);return s.objectFlags|=262272|f,p&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),i&&(s.pattern=t),s}}function zp(t){return!!(126615555&t.flags||117632&a_(t)&&zp(o_(t))||3145728&t.flags&&e.every(t.types,zp))}function Kp(t){return!e.stringContains(t,"-")}function Up(t){return 72===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Vp(e,t){return e.initializer?yg(e.initializer,t):xe}function qp(e,t){for(var r=[],n=0,i=e.children;n0&&(o=lu(o,S(),i.symbol,u,!1),a=e.createSymbolTable()),Ei(m=dg(p.expression,r))&&(s=!0),zp(m)?o=lu(o,m,i.symbol,u,!1):n=n?Mc([n,m]):m}s||a.size>0&&(o=lu(o,S(),i.symbol,u,!1));var y=260===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var h=qp(y,r);if(!s&&l&&""!==l){c&&Pr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(l));var v=bp(t.attributes),b=v&&pp(v,l),D=Ir(33554436,l);D.type=1===h.length?h[0]:Ip(h,b,!1)||hc(Ac(h)),D.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(l),void 0,void 0,void 0),D.valueDeclaration.parent=i,D.valueDeclaration.symbol=D;var x=e.createSymbolTable();x.set(l,D),o=lu(o,Yn(i.symbol,x,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,u,!1)}}return s?ce:n&&o!==Me?Mc([n,o]):n||(o===Me?S():o);function S(){u|=z;var t=Yn(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=262272|u,t}}(t.parent,r)}function Hp(e,t){var r=Yp(t),n=r&&Nn(r),i=n&&Wr(n,e,67897832);return i?Na(i):_e}function Gp(r){var n=Vr(r);if(!n.resolvedSymbol){var i=Hp(t.IntrinsicElements,r);if(i!==_e){if(!e.isIdentifier(r.tagName))return e.Debug.fail();var a=Ko(i,r.tagName.escapedText);return a?(n.jsxFlags|=1,n.resolvedSymbol=a):Go(i,0)?(n.jsxFlags|=2,n.resolvedSymbol=i.symbol):(Pr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+t.IntrinsicElements),n.resolvedSymbol=oe)}return B&&Pr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(t.IntrinsicElements)),n.resolvedSymbol=oe}return n.resolvedSymbol}function Yp(e){var r=e&&Vr(e);if(r&&r.jsxNamespace)return r.jsxNamespace;if(!r||!1!==r.jsxNamespace){var n=Fr(e),i=Gr(e,n,1920,void 0,n,!1);if(i){var a=_n(Wr(Nn(_n(i)),t.JSX,1920));if(a)return r&&(r.jsxNamespace=a),a;r&&(r.jsxNamespace=!1)}}return ec(t.JSX,1920,void 0)}function Xp(t,r){var n=r&&Wr(r.exports,t,67897832),i=n&&Na(n),a=i&&Co(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&Pr(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Qp(e){return Xp(t.ElementChildrenAttributeNameContainer,e)}function $p(r,n){var i=Hp(t.IntrinsicElements,n);if(i!==_e){var a=r.value,o=Ko(i,e.escapeLeadingUnderscores(a));if(o)return aa(o);var s=Go(i,0);return s||void 0}return ce}function Zp(t){e.Debug.assert(Up(t.tagName));var r=Vr(t);if(!r.resolvedJsxElementAttributesType){var n=Gp(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=aa(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=ks(n,0).type:r.resolvedJsxElementAttributesType=_e}return r.resolvedJsxElementAttributesType}function ef(e){var r=Hp(t.ElementClass,e);if(r!==_e)return r}function tf(e){return Hp(t.Element,e)}function rf(e){var t=tf(e);if(t)return Ac([t,me])}function nf(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){Dv(t,t.typeArguments);for(var r=e.createUnderscoreEscapedMap(),n=0,i=t.attributes.properties;n=0)return _>=km(n)&&(Nm(n)||_s)return!1;if(o||a>=c)return!0;for(var d=a;d=i&&r.length<=n}function Rf(e){if(524288&e.flags){var t=Do(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Bf(t,r,n,i){var a=T_(t.typeParameters,t,0,i),o=Am(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return x_(s?Iu(r,s):r,t,function(e,t){B_(a.inferences,e,t)}),n||S_(r,t,function(e,t){B_(a.inferences,e,t,8)}),gs(t,W_(a),e.isInJSFile(r.declaration))}function jf(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Tp(t,e),a=_g(e.attributes,i,n,r);return B_(n.inferences,a,i),W_(n)}(t,r,i,a);if(152!==t.kind){var o=xp(t);if(o){var s=Ku(o,A_(function(t,r){return void 0===r&&(r=0),t&&C_(e.map(t.inferences,N_),t.signature,t.flags|r,t.compareTypes)}(Sp(t),1))),c=Rf(s),u=c&&c.typeParameters?Ss(ys(c,c.typeParameters)):s,l=ps(r);B_(a.inferences,u,l,8),a.returnMapper=A_(function(t){var r=e.filter(t.inferences,xg);return r.length?C_(e.map(r,N_),t.signature,t.flags,t.compareTypes):void 0}(a))}}var _=ls(r);if(_){var d=Vf(t),p=d?kg(d):Ee;B_(a.inferences,p,_)}for(var f=Fm(r),m=f?Math.min(Em(r)-1,n.length):n.length,g=0;g=n-1){var o=t[n-1];if(wf(o))return 215===o.kind?hc(o.type):Dd(s=_g(o.expression,i,a,0),function(e){return!(63176705&e.flags||Jl(e)||e_(e))})?hc(Go(s,1)||_e):s}for(var s,c=Go(i,1)||ce,u=Zm(c,4325372),l=[],_=-1,d=r;d0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=i.length;if(a&&wf(i[a-1])&&If(i)===a-1){var o=i[a-1],s=dg(o.expression);if(e_(s)){var c=s.typeArguments||e.emptyArray,u=s.target.hasRestElement?c.length-1:-1,l=e.map(c,function(e,t){return qf(o,e,t===u)});return e.concatenate(i.slice(0,a-1),l)}}return i}function Hf(t,r){switch(t.parent.kind){case 240:case 209:return 1;case 154:return 2;case 156:case 158:case 159:return 0===P||r.parameters.length<=2?2:3;case 151:return 3;default:return e.Debug.fail()}}function Gf(t,r,n){for(var i,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,u=n.length,l=0,_=r;l<_.length;l++){var d=_[l],p=km(d),f=Em(d);ps&&(s=p),u-1;u<=o&&v&&u--;var b=y||v?y&&v?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&km(i)>u&&i.declaration){var D=i.declaration.parameters[i.thisParameter?u+1:u];D&&(g=e.createDiagnosticForNode(D,e.isBindingPattern(D.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,D.name?e.isBindingPattern(D.name)?void 0:e.idText(ch(D.name)):u))}if(au&&S?n.indexOf(S):o))}}else m=e.createNodeArray(n.slice(o));m.pos=e.first(m).pos,m.end=e.last(m).end,m.end===m.pos&&m.end++;var T=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),m,b,h,u);return g?e.addRelatedInfo(T,g):T}function Yf(t,r,n,i,a){var s,c=193===t.kind,u=152===t.kind,l=e.isJsxOpeningLikeElement(t),_=!n;u||(s=t.typeArguments,(c||l||98!==t.expression.kind)&&e.forEach(s,gh));var d=n||[];if(function(t,r){var n,i,a,o,s=0,c=-1;e.Debug.assert(!r.length);for(var u=0,l=t;u1&&(g=x(d,Sr,b)),g||(g=x(d,Tr,b)),g)return g;if(_)if(p)Uf(t,y,p,Tr,0,!0);else if(f)cr.add(Gf(t,[f],y));else if(m)zf(m,t.typeArguments,!0,a);else{var D=e.filter(r,function(e){return Lf(e,s)});0===D.length?cr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=is((_=r[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,d):o0),i||1===r.length||r.some(function(e){return!!e.typeParameters})?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===H?n.length:H),a=r[i],o=a.typeParameters;if(!o)return a;var s=Af(t)?t.typeArguments:void 0,c=s?hs(a,function(e,t,r){for(var n=e.map(wh);n.length>t.length;)n.pop();for(;n.length=0&&Pr(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=_f(t.expression);if(a===Ne)return Ot;if((a=Bo(a))===_e)return Pf(t);if(Ei(a))return t.typeArguments&&Pr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ff(t);var o=Vo(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Na(n.parent.symbol);if(!Nh(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=wh(s);if(function t(r,n){var i=va(n);if(!e.length(i))return!1;var a=i[0];if(2097152&a.flags){for(var o=a.types,s=oo(o),c=0,u=0,l=a.types;u0)return e.parameters.length-1+r}}return e.minArgumentCount}function Nm(e){if(e.hasRestParameter){var t=aa(e.parameters[e.parameters.length-1]);return!e_(t)||t.target.hasRestElement}return!1}function Am(e){if(e.hasRestParameter){var t=aa(e.parameters[e.parameters.length-1]);return e_(t)?function(e){var t=t_(e);return t&&hc(t)}(t):t}}function Fm(e){var t=Am(e);return!t||Jl(t)||Ei(t)?void 0:t}function Pm(e){return wm(e,ke)}function wm(e,t){return e.parameters.length>0?Sm(e,0):t}function Im(t,r){t.typeParameters=r.typeParameters,r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=d_(r.thisParameter,void 0)),Om(t.thisParameter,aa(r.thisParameter)));for(var n=t.parameters.length-(t.hasRestParameter?1:0),i=0;i1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!Sg(e,a))return a}}function Cg(t,r){var n=e.skipParentheses(t);if(191!==n.kind||98===n.expression.kind||e.isRequireCall(n,!0)||mm(n)){if(e.isAssertionExpression(n)&&!e.isConstTypeReference(n.type))return Du(n.type)}else{var i=Rf(_f(n.expression));if(i&&!i.typeParameters)return ps(i)}return r?dg(t):kg(t)}function Eg(e){var t=Vr(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=ce;var n=t.contextFreeType=kg(e,4);return e.contextualType=r,n}function kg(t,r,n){var i=h;h=t;var a=bg(t,function(t,r,n){switch(t.kind){case 72:return Hd(t);case 100:return Zd(t);case 98:return rp(t);case 96:return ge;case 14:case 10:return mu(hu(t.text));case 8:return zv(t),mu(hu(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&P<7&&jv(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext));}(t),mu(function(t){return hu({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 102:return xe;case 87:return be;case 206:return function(t){return e.forEach(t.templateSpans,function(t){Zm(kg(t.expression),12288)&&Pr(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),ye}(t);case 13:return nt;case 187:return wp(t,r,n);case 188:return Jp(t,r);case 189:return ff(t);case 148:return mf(t);case 190:return kf(t);case 191:if(92===t.expression.kind)return gm(t);case 192:return fm(t,r);case 193:return function(e){return Dv(e,e.typeArguments),P<2&&pv(e,65536),ps(um(e))}(t);case 195:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return n?vm(n,n.typeExpression.type,t.expression,r):kg(t.expression,r)}(t,r);case 209:return function(e){return $y(e),hh(e),aa(In(e))}(t);case 196:case 197:return Vm(t,r);case 199:return function(e){return kg(e.expression),xr}(t);case 194:case 212:return function(e){return vm(e,e.type,e.expression)}(t);case 213:return function(e){return l_(kg(e.expression))}(t);case 214:return bm(t);case 198:return function(t){kg(t.expression);var r=e.skipParentheses(t.expression);if(189!==r.kind&&190!==r.kind)return Pr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Te;var n=Rn(Vr(r).resolvedSymbol);return n&&Gm(n)&&Pr(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Te}(t);case 200:return function(e){return kg(e.expression),fe}(t);case 201:return function(t){return o&&(16384&t.flags||Rv(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),cp(t)&&Pr(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),Xg(kg(t.expression),t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t);case 202:return function(t){var r=kg(t.operand);if(r===Ne)return Ne;switch(t.operand.kind){case 8:switch(t.operator){case 39:return mu(hu(-t.operand.text));case 38:return mu(hu(+t.operand.text))}break;case 9:if(39===t.operator)return mu(hu({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 38:case 39:case 53:return pf(r,t.operand),Zm(r,12288)&&Pr(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),38===t.operator?(Zm(r,2112)&&Pr(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),li(r)),he):$m(r);case 52:Oy(t.operand);var n=12582912&id(r);return 4194304===n?be:8388608===n?xe:Te;case 44:case 45:return Wm(t.operand,pf(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Qm(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),$m(r)}return _e}(t);case 203:return function(t){var r=kg(t.operand);return r===Ne?Ne:(Wm(t.operand,pf(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Qm(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),$m(r))}(t);case 204:return cg(t,r);case 205:return function(e,t){return Oy(e.condition),Ac([kg(e.whenTrue,t),kg(e.whenFalse,t)],2)}(t,r);case 208:return function(e,t){return P<2&&F.downlevelIteration&&pv(e,1536),By(kg(e.expression,t),e.expression,!1,!1)}(t,r);case 210:return fe;case 207:return lg(t);case 215:return t.type;case 270:return function(t,r){if(t.expression){var n=kg(t.expression,r);return t.dotDotDotToken&&n!==ce&&!Jl(n)&&Pr(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return _e}(t,r);case 260:case 261:return function(e,t){return hh(e),tf(e)||ce}(t);case 264:return function(t){return nf(t.openingFragment),2===F.jsx&&(F.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&Pr(t,F.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),qp(t),tf(t)||ce}(t);case 268:return Wp(t,r);case 262:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return _e}(t,r,n),r);return rg(a)&&function(t,r){if(189===t.parent.kind&&t.parent.expression===t||190===t.parent.kind&&t.parent.expression===t||(72===t.kind||148===t.kind)&&Ah(t)||167===t.parent.kind&&t.parent.exprName===t||Pr(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),F.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags));var n=r.symbol.valueDeclaration;4194304&n.flags&&Pr(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,a),h=i,a}function Ng(t){t.expression&&Rv(t.expression,e.Diagnostics.Type_expected),gh(t.constraint),gh(t.default);var r=ka(In(t));Po(r),function(e){return Mo(e)!==ze}(r)||Pr(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,li(r));var n=ko(r),i=Lo(r);n&&i&&ol(i,Ha(n,i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),o&&Gy(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Ag(t){mv(t),Ny(t);var r=e.getContainingFunction(t);e.hasModifier(t,92)&&(157===r.kind&&e.nodeIsPresent(r.body)||Pr(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Pr(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Pr(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),157!==r.kind&&161!==r.kind&&166!==r.kind||Pr(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),197===r.kind&&Pr(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||rl(aa(t.symbol),st)||Pr(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Fg(t,r,n){for(var i=0,a=t.elements;i=2||F.noEmit||!e.hasRestParameter(t)||4194304&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===G.escapedName&&Pr(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var n=e.getEffectiveReturnTypeNode(t);if(B&&!n)switch(t.kind){case 161:Pr(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 160:Pr(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var i=e.getFunctionFlags(t);if(1==(5&i)){var a=Du(n);if(a===Ee)Pr(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Uy(a,0!=(2&i))||ce;ol(2&i?mc(s):yc(s),a,n)}}else 2==(3&i)&&function(t,r){var n=Du(r);if(P>=2){if(n===_e)return;var i=ic(!0);if(i!==Be&&!oa(n,i))return void Pr(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(t){Zg(t&&e.getEntityNameFromTypeNode(t))}(r),n===_e)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Pr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,li(n));var o=yn(a,67220415,!0),s=o?aa(o):_e;if(s===_e)return void(72===a.kind&&"Promise"===a.escapedText&&sa(n)===ic(!1)?Pr(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Pr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=mt||(mt=tc("PromiseConstructorLike",0,!0))||Oe;if(c===Oe)return void Pr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!ol(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=a&&ch(a),l=Wr(t.locals,u.escapedText,67220415);if(l)return void Pr(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}Xg(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)}(t,n)}162!==t.kind&&294!==t.kind&&sy(t)}}function wg(t){for(var r=e.createMap(),n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=Ts(In(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&Pr(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));sr.push(t.id);var l=Qg(u,r,n);if(sr.pop(),!l)return;return i.awaitedTypeOfType=l}var _=Ci(t,"then");if(!(_&&Vo(_,0).length>0))return i.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Pr(r,n)}}function $g(t){var r=ps(um(t));if(!(1&r.flags)){var n,i,a=im(t);switch(t.parent.kind){case 240:n=Ac([aa(In(t.parent)),Ee]);break;case 151:n=Ee,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 154:n=Ee,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 156:case 158:case 159:n=Ac([fc(wh(t.parent)),Ee]);break;default:return e.Debug.fail()}ol(r,n,t,a,function(){return i})}}function Zg(e){if(e){var t=ch(e),r=2097152|(72===e.kind?67897832:1920),n=Gr(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&Bn(n)&&!Wh(dn(n))&&fn(n)}}function ey(t){var r=ty(t);r&&e.isEntityName(r)&&Zg(r)}function ty(e){if(e)switch(e.kind){case 174:case 173:return ry(e.types);case 175:return ry([e.trueType,e.falseType]);case 177:return ty(e.type);case 164:return e.typeName}}function ry(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015||F.noEmit)&&(Dy(t,r,"require")||Dy(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ti(t);284===n.kind&&e.isExternalOrCommonJsModule(n)&&Pr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Cy(t,r){if(!(P>=4||F.noEmit)&&Dy(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ti(t);284===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&Pr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function Ey(t){if(151===e.getRootDeclaration(t).kind){var r=e.getContainingFunction(t);!function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(189===i.kind)return n(i.expression);if(72!==i.kind)return e.forEachChild(i,n);var a=Gr(i,i.escapedText,69317567,void 0,void 0,!1);if(a&&a!==oe&&a.valueDeclaration)if(a.valueDeclaration!==t){var o=e.getEnclosingBlockScopeContainer(a.valueDeclaration);if(o===r){if(151===a.valueDeclaration.kind||186===a.valueDeclaration.kind){if(a.valueDeclaration.pos1&&e.some(c.declarations,function(r){return r!==t&&e.isVariableLike(r)&&!Fy(r,t)})&&Pr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var _=ky(Wi(t));u===_e||_===_e||Qu(u,_)||67108864&c.flags||Ay(u,t,_),t.initializer&&sl(dg(t.initializer),_,t,t.initializer,void 0),Fy(t,c.valueDeclaration)||Pr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}154!==t.kind&&153!==t.kind&&(Hg(t),237!==t.kind&&186!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(237!==t.kind||t.initializer)){var r=In(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Gr(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&sf(n)){var i=e.getAncestor(n.valueDeclaration,238),a=219===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(218===a.kind&&e.isFunctionLike(a.parent)||245===a.kind||244===a.kind||284===a.kind)){var o=ci(n);Pr(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Ty(t,t.name),Cy(t,t.name))}}}function Ay(t,r,n){var i=e.getNameOfDeclaration(r);Pr(i,154===r.kind||153===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,e.declarationNameToString(i),li(t),li(n))}function Fy(t,r){return 151===t.kind&&237===r.kind||237===t.kind&&151===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedModifierFlags(t,504)===e.getSelectedModifierFlags(r,504)}function Py(t){return function(t){if(226!==t.parent.parent.kind&&227!==t.parent.parent.kind)if(4194304&t.flags)Ov(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return jv(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return jv(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(219!==t.parent.parent.kind||!t.type||t.initializer||4194304&t.flags))return jv(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);F.module===e.ModuleKind.ES2015||F.module===e.ModuleKind.ESNext||F.module===e.ModuleKind.System||F.noEmit||4194304&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||function t(r){if(72===r.kind){if("__esModule"===e.idText(r))return jv(r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=r.elements,i=0,a=n;i=1&&Py(t.declarations[0])}function Ry(e,t){return By(_f(e),e,!0,void 0!==t)}function By(e,t,r,n){return Ei(e)?e:jy(e,t,r,n,!0)||ce}function jy(t,r,n,i,a){if(t!==ke){var o=P>=2,s=!o&&F.downlevelIteration;if(o||s||i){var c=Jy(t,o?r:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(n){if(1048576&u.flags){var d=t.types,p=e.filter(d,function(e){return!(132&e.flags)});p!==d&&(u=Ac(p,2))}else 132&u.flags&&(u=ke);if((_=u!==t)&&(P<1&&r&&(Pr(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),131072&u.flags))return ye}if(!Ul(u)){if(r&&!l){var f=!!Jy(t,void 0,i,!0,a);Pr(r,!n||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: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:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,li(u))}return _?ye:void 0}var m=Go(u,1);return _&&m?132&m.flags?ye:Ac([m,ye],2):m}zy(r,t,i)}function Jy(t,r,n,i,a){if(!Ei(t))return Td(t,function(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(oa(t,oc(!1))||oa(t,cc(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return n?o.iteratedTypeOfAsyncIterable=Qg(o.iteratedTypeOfIterable):o.iteratedTypeOfIterable;if(oa(t,uc(!1))||oa(t,_c(!1)))return n?o.iteratedTypeOfAsyncIterable=Qg(t.typeArguments[0]):o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&Ci(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||(i?Ci(t,e.getPropertyNameForKnownSymbolName("iterator")):void 0);if(!Ei(c)){var u=c?Vo(c,0):void 0;if(e.some(u)){var l=Ky(Ac(e.map(u,ps),2),r,!!s);return a&&r&&l&&ol(t,s?function(e){return pc(oc(!0),[e])}(l):gc(l),r),l?n?o.iteratedTypeOfAsyncIterable=s?l:Qg(l):o.iteratedTypeOfIterable=l:void 0}r&&(zy(r,t,n),r=void 0)}})}function zy(t,r,n){Pr(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,li(r))}function Ky(t,r,n){if(!Ei(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(oa(t,(n?sc:lc)(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=Ci(t,"next");if(!Ei(a)){var o=a?Vo(a,0):e.emptyArray;if(0!==o.length){var s=Ac(e.map(o,ps),2);if(!(Ei(s)||n&&Ei(s=Gg(s,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)))){var c=s&&Ci(s,"value");if(c)return n?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;r&&Pr(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else r&&Pr(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function Uy(e,t){if(!Ei(e))return Jy(e,void 0,t,!t,!1)||Ky(e,void 0,t)}function Vy(t){Jv(t)||function(t){for(var r=t;r;){if(e.isFunctionLike(r))return jv(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 233:if(t.label&&r.label.escapedText===t.label.escapedText){var n=228===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&jv(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 232:if(229===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var i=229===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return jv(t,i)}var i=229===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;jv(t,i)}(t)}function qy(t,r){var n=2==(3&e.getFunctionFlags(t))?Yg(r):r;return!!n&&Zm(n,16387)}function Wy(t){Jv(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!Lv(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);cr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&kg(t.expression)}function Hy(t){var r,n=Cs(t.symbol,1),i=Cs(t.symbol,0),a=Go(t,0),o=Go(t,1);if(a||o){e.forEach(xo(t),function(e){var r=aa(e);p(e,r,t,i,a,0),p(e,r,t,n,o,1)});var s=t.symbol.valueDeclaration;if(1&e.getObjectFlags(t)&&e.isClassLike(s))for(var c=0,u=s.members;cn)return!1;for(var l=0;l1)return Rv(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(109===o.token),n)return Rv(o,e.Diagnostics.implements_clause_already_seen);n=!0}Sv(o)}})(t)||hv(t.typeParameters,r)}(t),iy(t),t.name&&(Gy(t.name,e.Diagnostics.Class_name_cannot_be_0),Ty(t,t.name),Cy(t,t.name),4194304&t.flags||(r=t.name,1===P&&"Object"===r.escapedText&&w!==e.ModuleKind.ES2015&&w!==e.ModuleKind.ESNext&&Pr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[w]))),Yy(e.getEffectiveTypeParameterDeclarations(t)),Hg(t);var n=In(t),i=Na(n),a=Ha(i),s=aa(n);Qy(n),function(t){var r;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(r||(r={}));for(var n=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a>s;case 48:return a>>>s;case 46:return a<1&&_(t,!!F.preserveConstEnums||!!F.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r1)for(var o=0,s=n;o=0)n.hasRestParameter&&i.parameterIndex===n.parameters.length-1?Pr(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):ol(i.type,aa(n.parameters[i.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(a){for(var o=!1,s=0,c=r.parameters;s0),n.length>1&&Pr(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=ay(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=ay(a.expression);o&&i.escapedText!==o.escapedText&&Pr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Pr(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 309:case 302:return function(t){t.typeExpression||Pr(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&Gy(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),gh(t.typeExpression)}(t);case 308:return function(e){gh(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(o&&271===s.kind){var l=kg(s.expression),_=Yl(l),d=i;_&&a||(l=_?Xl(l):l,d=Xl(i)),sg(d,l)||fl(l,d,s.expression,void 0)}e.forEach(s.statements,gh)}),t.caseBlock.locals&&sy(t.caseBlock)}(t);case 233:return function(t){Jv(t)||e.findAncestor(t.parent,function(r){return e.isFunctionLike(r)?"quit":233===r.kind&&r.label.escapedText===t.label.escapedText&&(jv(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)}),gh(t.statement)}(t);case 234:return Wy(t);case 235:return function(t){Jv(t),by(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)Rv(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)Rv(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!=(2&r.flags)&&jv(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}by(r.block)}t.finallyBlock&&by(t.finallyBlock)}(t);case 237:return Py(t);case 186:return wy(t);case 240:return function(t){t.name||e.hasModifier(t,512)||Rv(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),$y(t),e.forEach(t.members,gh),sy(t)}(t);case 241:return nh(t);case 242:return function(t){mv(t),Gy(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Yy(t.typeParameters),gh(t.type),sy(t)}(t);case 243:return function(t){if(o){mv(t),Gy(t.name,e.Diagnostics.Enum_name_cannot_be_0),Ty(t,t.name),Cy(t,t.name),Hg(t),ih(t);var r=In(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Pr(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var i=!1;e.forEach(r.declarations,function(t){if(243!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Pr(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}(t);case 244:return oh(t);case 249:return function(t){if(!dh(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!mv(t)&&e.hasModifiers(t)&&Rv(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),uh(t))){var r=t.importClause;r&&(r.name&&_h(r),r.namedBindings&&(251===r.namedBindings.kind?_h(r.namedBindings):vn(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,_h)))}}(t);case 248:return function(t){if(!dh(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(mv(t),e.isInternalModuleImportEqualsDeclaration(t)||uh(t)))if(_h(t),e.hasModifier(t,1)&&pn(t),259!==t.moduleReference.kind){var r=dn(In(t));if(r!==oe){if(67220415&r.flags){var n=ch(t.moduleReference);1920&yn(n,67221439).flags||Pr(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}67897832&r.flags&&Gy(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else w>=e.ModuleKind.ES2015&&!(4194304&t.flags)&&jv(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 255:return function(t){if(!dh(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!mv(t)&&e.hasModifiers(t)&&Rv(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||uh(t)))if(t.exportClause){e.forEach(t.exportClause.elements,ph);var r=245===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&245===t.parent.kind&&!t.moduleSpecifier&&4194304&t.flags;284===t.parent.kind||r||n||Pr(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=vn(t,t.moduleSpecifier);i&&Cn(i)&&Pr(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ci(i)),w!==e.ModuleKind.System&&w!==e.ModuleKind.ES2015&&w!==e.ModuleKind.ESNext&&pv(t,32768)}}(t);case 254:return function(t){if(!dh(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=284===t.parent.kind?t.parent:t.parent.parent;244!==r.kind||e.isAmbientModule(r)?(!mv(t)&&e.hasModifiers(t)&&Rv(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),72===t.expression.kind?(pn(t),e.getEmitDeclarations(F)&&vi(t.expression,!0)):dg(t.expression),fh(r),4194304&t.flags&&!e.isEntityNameExpression(t.expression)&&jv(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||4194304&t.flags||(w>=e.ModuleKind.ES2015?jv(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):w===e.ModuleKind.System&&jv(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):t.isExportEquals?Pr(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Pr(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 220:case 236:return void Jv(t);case 258:!function(e){iy(e)}(t)}}(t),h=r}}function yh(t){e.isInJSFile(t)||jv(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function hh(t){var r=Vr(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||e.createMap();var n=""+u(t);r.deferredNodes.set(n,t)}}function vh(t){var r=h;switch(h=t,t.kind){case 196:case 197:case 156:case 155:!function(t){e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=qm(t,r);if(0==(1&r)&&Um(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||ps(os(t)),218===t.body.kind)gh(t.body);else{var i=kg(t.body);n&&sl(2==(3&r)?Xg(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,n,t.body,t.body)}}(t);break;case 158:case 159:Lg(t);break;case 209:!function(t){e.forEach(t.members,gh),sy(t)}(t);break;case 261:!function(e){nf(e)}(t);break;case 260:!function(e){nf(e.openingElement),Up(e.closingElement.tagName)?Gp(e.closingElement):kg(e.closingElement.tagName),qp(e)}(t)}h=r}function bh(t){e.performance.mark("beforeCheck"),function(t){var r=Vr(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,F))return;!function(t){4194304&t.flags&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),bh),cr.getDiagnostics()}(t)}finally{m=void 0}}function Th(){if(!o)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Ch(e){switch(e.kind){case 150:case 240:case 241:case 242:case 243:return!0;default:return!1}}function Eh(e){for(;148===e.parent.kind;)e=e.parent;return 164===e.parent.kind}function kh(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function Nh(e,t){return!!kh(e,function(e){return e===t})}function Ah(e){return void 0!==function(e){for(;148===e.parent.kind;)e=e.parent;return 248===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:254===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Fh(t){if(e.isDeclarationName(t))return In(t.parent);if(e.isInJSFile(t)&&189===t.parent.kind&&t.parent===t.parent.parent.left){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return In(t.parent);case 4:case 2:case 5:return In(t.parent.parent)}}(t);if(r)return r}if(254===t.parent.kind&&e.isEntityNameExpression(t)){var n=yn(t,70107135,!0);if(n&&n!==oe)return n}else if(!e.isPropertyAccessExpression(t)&&Ah(t)){var i=e.getAncestor(t,248);return e.Debug.assert(void 0!==i),mn(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&183===r.kind&&r.qualifier===t)return r}(t);if(a){Du(a);var o=Vr(t).resolvedSymbol;return o===oe?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;189===e.parent.kind;)e=e.parent;return 211===e.parent.kind}(t)){var s=0;211===t.parent.kind?(s=67897832,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=67220415)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?yn(t,s):void 0;if(c)return c}if(304===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(150===t.parent.kind&&308===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(72===t.kind){if(e.isJSXTagName(t)&&Up(t)){var l=Gp(t.parent);return l===oe?void 0:l}return yn(t,67220415,!1,!0)}if(189===t.kind||148===t.kind){var _=Vr(t);return _.resolvedSymbol?_.resolvedSymbol:(189===t.kind?ff(t):mf(t),_.resolvedSymbol)}}else if(Eh(t))return yn(t,s=164===t.parent.kind?67897832:1920,!1,!0);return 163===t.parent.kind?yn(t,1):void 0}function Ph(t){if(284===t.kind)return e.isExternalModule(t)?wn(t.symbol):void 0;var r=t.parent,n=r.parent;if(!(8388608&t.flags)){if(d(t)){var i=In(r);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?jp(i):i}if(e.isLiteralComputedPropertyDeclarationName(t))return In(r.parent);if(72===t.kind){if(Ah(t))return Fh(t);if(186===r.kind&&184===n.kind&&t===r.propertyName){var a=Ko(wh(n),t.escapedText);if(a)return a}}switch(t.kind){case 72:case 189:case 148:return Fh(t);case 100:var o=e.getThisContainer(t,!1);if(e.isFunctionLike(o)){var s=os(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(t))return kg(t).symbol;case 178:return bu(t).symbol;case 98:return kg(t).symbol;case 124:var c=t.parent;return c&&157===c.kind?c.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(249===t.parent.kind||255===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return vn(t,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===t)return In(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===t?Cg(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(n)?Du(n.objectType):void 0;return u&&Ko(u,e.escapeLeadingUnderscores(t.text));case 80:case 90:case 37:case 76:return In(t.parent);case 183:return e.isLiteralImportTypeNode(t)?Ph(t.argument.literal):void 0;case 85:return e.isExportAssignment(t.parent)?e.Debug.assertDefined(t.parent.symbol):void 0;default:return}}}function wh(t){if(8388608&t.flags)return _e;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&Da(In(i.class));if(e.isPartOfTypeNode(t)){var o=Du(t);return a?Ha(o,a.thisType):o}if(e.isExpressionNode(t))return Ih(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(va(a));return s?Ha(s,a.thisType):_e}if(Ch(t))return Na(n=In(t));if(72===(r=t).kind&&Ch(r.parent)&&r.parent.name===r)return(n=Ph(t))?Na(n):_e;if(e.isDeclaration(t))return aa(n=In(t));if(d(t))return(n=Ph(t))?aa(n):_e;if(e.isBindingPattern(t))return Bi(t.parent,!0)||_e;if(Ah(t)&&(n=Ph(t))){var c=Na(n);return c!==_e?c:aa(n)}return _e}function Ih(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),gu(Cg(t))}function Oh(t){t=Bo(t);var r=e.createSymbolTable(Co(t)),n=Vo(t,0).length?Xe:Vo(t,1).length?Qe:void 0;return n&&e.forEach(Co(n),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),Hn(r)}function Mh(t){return e.typeHasCallOrConstructSignatures(t,X)}function Lh(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r)return!(189===r.parent.kind&&r.parent.name===r)&&cv(r)===G}return!1}function Rh(t){var r=vn(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Cn(r),i=Ur(r=Sn(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(67220415&r.flags):e.forEachEntry(An(r),function(e){return(e=_n(e))&&!!(67220415&e.flags)})),i.exportsSomeValue}function Bh(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=cv(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=wn(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=On(i);if(o){if(512&o.flags&&284===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&In(t)===o})}}}}function jh(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=cv(r);if(ln(n,67220415))return rn(n)}}function Jh(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=Ur(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=Vr(t.valueDeclaration);if(Gr(n.parent,t.escapedName,67220415,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=218===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function zh(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=cv(r);if(n&&Jh(n))return n.valueDeclaration}}}function Kh(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=In(r);if(n)return Jh(n)}return!1}function Uh(t){switch(t.kind){case 248:case 250:case 251:case 253:case 257:return qh(In(t)||oe);case 255:var r=t.exportClause;return!!r&&e.some(r.elements,Uh);case 254:return!t.expression||72!==t.expression.kind||qh(In(t)||oe)}return!1}function Vh(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||284!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&qh(In(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function qh(e){var t=dn(e);return t===oe||!!(67220415&t.flags)&&(F.preserveConstEnums||!Wh(t))}function Wh(e){return ng(e)||!!e.constEnumOnlyModule}function Hh(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=us(In(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Gh(t){return!(!O||es(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasModifier(t,92))}function Yh(t){return O&&es(t)&&!t.initializer&&e.hasModifier(t,92)}function Xh(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=In(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Nn(n),function(t){return 67220415&t.flags&&e.isPropertyAccessExpression(t.valueDeclaration)})}function Qh(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=In(r);return n&&Co(aa(n))||e.emptyArray}function $h(e){return Vr(e).flags||0}function Zh(e){return ih(e.parent),Vr(e).enumMemberValue}function ev(e){switch(e.kind){case 278:case 189:case 190:return!0}return!1}function tv(t){if(278===t.kind)return Zh(t);var r=Vr(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Zh(n)}}function rv(e){return!!(524288&e.flags)&&Vo(e,0).length>0}function nv(t,r){var n=e.getParseTreeNode(t,e.isEntityName);if(!n)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var i=yn(n,67220415,!0,!1,r),a=yn(n,67897832,!0,!1,r);if(i&&i===a){var o=ac(!1);if(o&&i===o)return e.TypeReferenceSerializationKind.Promise;var s=aa(i);if(s&&fa(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.Unknown;var c=Na(a);return c===_e?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:eg(c,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:eg(c,528)?e.TypeReferenceSerializationKind.BooleanType:eg(c,296)?e.TypeReferenceSerializationKind.NumberLikeType:eg(c,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:eg(c,132)?e.TypeReferenceSerializationKind.StringLikeType:e_(c)?e.TypeReferenceSerializationKind.ArrayLikeType:eg(c,12288)?e.TypeReferenceSerializationKind.ESSymbolType:rv(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Jl(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function iv(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.createToken(120);var s=In(o),c=!s||133120&s.flags?_e:Ql(aa(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=u_(c)),U.typeToTypeNode(c,r,1024|n,i)}function av(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.createToken(120);var o=os(a);return U.typeToTypeNode(ps(o),r,1024|n,i)}function ov(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.createToken(120);var o=h_(Ih(a));return U.typeToTypeNode(o,r,1024|n,i)}function sv(t){return V.has(e.escapeLeadingUnderscores(t))}function cv(t,r){var n=Vr(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Ti(a))}return Gr(i,t.escapedText,70366143,void 0,void 0,!0)}function uv(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=cv(r);if(n)return Rn(n).valueDeclaration}}}function lv(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&yu(aa(In(t)))}function _v(t,r){return function(t,r,n){return(1024&t.flags?U.symbolToExpression(t.symbol,67220415,r,void 0,n):t===xe?e.createTrue():t===be&&e.createFalse())||e.createLiteral(t.value)}(aa(In(t)),t,r)}function dv(t){var r=244===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=bn(r,r,void 0);if(n)return e.getDeclarationOfKind(n,284)}function pv(t,r){if((g&r)!==r&&F.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,F)&&!(4194304&t.flags)){var i=(c=t,y||(y=Dn(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||oe),y);if(i!==oe)for(var a=r&~g,o=1;o<=65536;o<<=1)if(a&o){var s=fv(o);Wr(i.exports,e.escapeLeadingUnderscores(s),67220415)||Pr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}g|=r}}var c}function fv(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function mv(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 156!==t.kind||e.nodeIsPresent(t.body)?Rv(t,e.Diagnostics.Decorators_are_not_valid_here):Rv(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(158===t.kind||159===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return Rv(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 158:case 159:case 157:case 154:case 153:case 156:case 155:case 162:case 244:case 249:case 248:case 255:case 254:case 196:case 197:case 151:return!1;default:if(245===t.parent.kind||284===t.parent.kind)return!1;switch(t.kind){case 239:return gv(t,121);case 240:return gv(t,118);case 241:case 219:case 242:return!0;case 243:return gv(t,77);default:return e.Debug.fail(),!1}}}(t)?Rv(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function yv(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&Bv(t[0],t.end-",".length,",".length,r)}function hv(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return Bv(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function vv(t){if(P>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)}));if(e.length(n)){e.forEach(n,function(t){e.addRelatedInfo(Pr(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var i=n.map(function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,[Pr(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)].concat(i)),!0}}}var a;return!1}function bv(t){var r=e.getSourceFileOfNode(t);return mv(t)||hv(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function xv(t){return function(t){if(t)for(var r=0,n=t;r1){var i=226===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 Rv(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=226===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 jv(a.name,i)}if(a.type)return jv(a,i=226===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 Fv(t){if(t.parameters.length===(158===t.kind?1:2))return e.getThisParameter(t)}function Pv(t,r){if(function(t){return e.isDynamicName(t)&&!Ba(t)}(t))return jv(t,r)}function wv(t){if(bv(t))return!0;if(156===t.kind){if(188===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||121!==e.first(t.modifiers).kind))return Rv(t,e.Diagnostics.Modifiers_cannot_appear_here);if(kv(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(Nv(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return Bv(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Ev(t))return!0}if(e.isClassLike(t.parent)){if(4194304&t.flags)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(156===t.kind&&!t.body)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(241===t.parent.kind)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(168===t.parent.kind)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Iv(e){return 10===e.kind||8===e.kind||202===e.kind&&39===e.operator&&8===e.operand.kind}function Ov(t){var r,n=t.initializer;if(n){var i=!(Iv(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&Iv(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&dg(t).flags)}(n)||102===n.kind||87===n.kind||(r=n,9===r.kind||202===r.kind&&39===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return jv(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return jv(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return jv(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function Mv(t){var r=t.declarations;return!!yv(t.declarations)||!t.declarations.length&&Bv(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function Lv(e){return e.parseDiagnostics.length>0}function Rv(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!Lv(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return cr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function Bv(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!Lv(c)&&(cr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function jv(t,r,n,i,a){return!Lv(e.getSourceFileOfNode(t))&&(cr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function Jv(t){if(4194304&t.flags){if(e.isAccessor(t.parent))return Vr(t).hasReportedStatementInAmbientContext=!0;if(!Vr(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return Vr(t).hasReportedStatementInAmbientContext=Rv(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(218===t.parent.kind||245===t.parent.kind||284===t.parent.kind){var r=Vr(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=Rv(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function zv(t){if(32&t.numericLiteralFlags){var r=void 0;if(P>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,182)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,278)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&39===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return jv(n?t.parent:t,r,i)}}return!1}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(t||(t={}))}(c||(c={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Xt(t,r),Vt(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0===e)return e;var r=t(e.kind);for(var n in r.flags|=e.flags,Xt(r,e),e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function a(t,r){if("number"==typeof t)return o(t+"");if("object"===f(t)&&"base10Value"in t)return s(e.pseudoBigIntToString(t)+"n");if("boolean"==typeof t)return t?g():y();if(e.isString(t)){var n=c(t);return r&&(n.singleQuote=!0),n}return i=t,(a=c(e.getTextOfIdentifierOrLiteral(i))).textSourceNode=i,a;var i,a}function o(e,r){void 0===r&&(r=0);var n=t(8);return n.text=e,n.numericLiteralFlags=r,n}function s(e){var r=t(9);return r.text=e,r}function c(e){var r=t(10);return r.text=e,r}function u(r,i){var a=t(72);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createBigIntLiteral=s,e.createStringLiteral=c,e.createRegularExpressionLiteral=function(e){var r=t(13);return r.text=e,r},e.createIdentifier=u,e.updateIdentifier=function(t,n){return t.typeArguments!==n?r(u(e.idText(t),n),t):t};var l,_,d=0;function p(e){var t=u(e);return t.autoGenerateFlags=19,t.autoGenerateId=d,d++,t}function m(e){return t(e)}function g(){return t(102)}function y(){return t(87)}function h(e){return m(e)}function v(e,r){var n=t(148);return n.left=e,n.right=zt(r),n}function b(r){var n=t(149);return n.expression=function(t){return e.isCommaSequence(t)?ue(t):t}(r),n}function D(e,r,n){var i=t(150);return i.name=zt(e),i.constraint=r,i.default=n,i}function x(r,n,i,a,o,s,c){var u=t(151);return u.decorators=Kt(r),u.modifiers=Kt(n),u.dotDotDotToken=i,u.name=zt(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function S(r){var n=t(152);return n.expression=e.parenthesizeForAccess(r),n}function T(e,r,n,i,a){var o=t(153);return o.modifiers=Kt(e),o.name=zt(r),o.questionToken=n,o.type=i,o.initializer=a,o}function C(e,r,n,i,a,o){var s=t(154);return s.decorators=Kt(e),s.modifiers=Kt(r),s.name=zt(n),s.questionToken=void 0!==i&&56===i.kind?i:void 0,s.exclamationToken=void 0!==i&&52===i.kind?i:void 0,s.type=a,s.initializer=o,s}function E(e,t,r,n,i){var a=w(155,e,t,r);return a.name=zt(n),a.questionToken=i,a}function k(e,r,i,a,o,s,c,u,l){var _=t(156);return _.decorators=Kt(e),_.modifiers=Kt(r),_.asteriskToken=i,_.name=zt(a),_.questionToken=o,_.typeParameters=Kt(s),_.parameters=n(c),_.type=u,_.body=l,_}function N(e,r,i,a){var o=t(157);return o.decorators=Kt(e),o.modifiers=Kt(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function A(e,r,i,a,o,s){var c=t(158);return c.decorators=Kt(e),c.modifiers=Kt(r),c.name=zt(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function F(e,r,i,a,o){var s=t(159);return s.decorators=Kt(e),s.modifiers=Kt(r),s.name=zt(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function P(e,r,i,a){var o=t(162);return o.decorators=Kt(e),o.modifiers=Kt(r),o.parameters=n(i),o.type=a,o}function w(e,r,n,i,a){var o=t(e);return o.typeParameters=Kt(r),o.parameters=Kt(n),o.type=i,o.typeArguments=Kt(a),o}function I(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(w(e.kind,t,n,i),e):e}function O(e,r){var n=t(163);return n.parameterName=zt(e),n.type=r,n}function M(r,n){var i=t(164);return i.typeName=zt(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function L(e){var r=t(167);return r.exprName=e,r}function R(e){var r=t(168);return r.members=n(e),r}function B(r){var n=t(169);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function j(e){var r=t(170);return r.elementTypes=n(e),r}function J(r){var n=t(171);return n.type=e.parenthesizeArrayTypeMember(r),n}function z(e){var r=t(172);return r.type=e,r}function K(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function U(e,t){return e.types!==t?r(K(e.kind,t),e):e}function V(r,n,i,a){var o=t(175);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function q(e){var r=t(176);return r.typeParameter=e,r}function W(e,r,n,i){var a=t(183);return a.argument=e,a.qualifier=r,a.typeArguments=Kt(n),a.isTypeOf=i,a}function H(e){var r=t(177);return r.type=e,r}function G(r,n){var i=t(179);return i.operator="number"==typeof r?r:129,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function Y(r,n){var i=t(180);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function X(e,r,n,i){var a=t(181);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function Q(e){var r=t(182);return r.literal=e,r}function $(e){var r=t(184);return r.elements=n(e),r}function Z(e){var r=t(185);return r.elements=n(e),r}function ee(e,r,n,i){var a=t(186);return a.dotDotDotToken=e,a.propertyName=zt(r),a.name=zt(n),a.initializer=i,a}function te(r,i){var a=t(187);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function re(e,r){var i=t(188);return i.properties=n(e),r&&(i.multiLine=!0),i}function ne(r,n){var i=t(189);return i.expression=e.parenthesizeForAccess(r),i.name=zt(n),qt(i,131072),i}function ie(r,n){var i,o=t(190);return o.expression=e.parenthesizeForAccess(r),o.argumentExpression=(i=n,e.isString(i)||"number"==typeof i?a(i):i),o}function ae(r,i,a){var o=t(191);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Kt(i),o.arguments=e.parenthesizeListElements(n(a)),o}function oe(r,i,a){var o=t(192);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Kt(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function se(r,n,i){var a=t(193);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=Kt(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function ce(r,n){var i=t(194);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function ue(e){var r=t(195);return r.expression=e,r}function le(e,r,i,a,o,s,c){var u=t(196);return u.modifiers=Kt(e),u.asteriskToken=r,u.name=zt(i),u.typeParameters=Kt(a),u.parameters=n(o),u.type=s,u.body=c,u}function _e(r,i,a,o,s,c){var u=t(197);return u.modifiers=Kt(r),u.typeParameters=Kt(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||m(37),u.body=e.parenthesizeConciseBody(c),u}function de(r){var n=t(198);return n.expression=e.parenthesizePrefixOperand(r),n}function pe(r){var n=t(199);return n.expression=e.parenthesizePrefixOperand(r),n}function fe(r){var n=t(200);return n.expression=e.parenthesizePrefixOperand(r),n}function me(r){var n=t(201);return n.expression=e.parenthesizePrefixOperand(r),n}function ge(r,n){var i=t(202);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function ye(r,n){var i=t(203);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function he(r,n,i){var a,o=t(204),s="number"==typeof(a=n)?m(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,r,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function ve(r,n,i,a,o){var s=t(205);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:m(56),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:m(57),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function be(e,r){var i=t(206);return i.head=e,i.templateSpans=n(r),i}function De(e,r){var n=t(207);return n.asteriskToken=e&&40===e.kind?e:void 0,n.expression=e&&40!==e.kind?e:r,n}function xe(r){var n=t(208);return n.expression=e.parenthesizeExpressionForList(r),n}function Se(e,r,i,a,o){var s=t(209);return s.decorators=void 0,s.modifiers=Kt(e),s.name=zt(r),s.typeParameters=Kt(i),s.heritageClauses=Kt(a),s.members=n(o),s}function Te(r,n){var i=t(211);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=Kt(r),i}function Ce(e,r){var n=t(212);return n.expression=e,n.type=r,n}function Ee(r){var n=t(213);return n.expression=e.parenthesizeForAccess(r),n}function ke(e,r){var n=t(214);return n.keywordToken=e,n.name=r,n}function Ne(e,r){var n=t(216);return n.expression=e,n.literal=r,n}function Ae(e,r){var i=t(218);return i.statements=n(e),r&&(i.multiLine=r),i}function Fe(r,n){var i=t(219);return i.decorators=void 0,i.modifiers=Kt(r),i.declarationList=e.isArray(n)?Ge(n):n,i}function Pe(r){var n=t(221);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function we(e,t){return e.expression!==t?r(Pe(t),e):e}function Ie(e,r,n){var i=t(222);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function Oe(e,r){var n=t(223);return n.statement=e,n.expression=r,n}function Me(e,r){var n=t(224);return n.expression=e,n.statement=r,n}function Le(e,r,n,i){var a=t(225);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=i,a}function Re(e,r,n){var i=t(226);return i.initializer=e,i.expression=r,i.statement=n,i}function Be(e,r,n,i){var a=t(227);return a.awaitModifier=e,a.initializer=r,a.expression=n,a.statement=i,a}function je(e){var r=t(228);return r.label=zt(e),r}function Je(e){var r=t(229);return r.label=zt(e),r}function ze(e){var r=t(230);return r.expression=e,r}function Ke(e,r){var n=t(231);return n.expression=e,n.statement=r,n}function Ue(r,n){var i=t(232);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function Ve(e,r){var n=t(233);return n.label=zt(e),n.statement=r,n}function qe(e){var r=t(234);return r.expression=e,r}function We(e,r,n){var i=t(235);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function He(r,n,i){var a=t(237);return a.name=zt(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function Ge(e,r){void 0===r&&(r=0);var i=t(238);return i.flags|=3&r,i.declarations=n(e),i}function Ye(e,r,i,a,o,s,c,u){var l=t(239);return l.decorators=Kt(e),l.modifiers=Kt(r),l.asteriskToken=i,l.name=zt(a),l.typeParameters=Kt(o),l.parameters=n(s),l.type=c,l.body=u,l}function Xe(e,r,i,a,o,s){var c=t(240);return c.decorators=Kt(e),c.modifiers=Kt(r),c.name=zt(i),c.typeParameters=Kt(a),c.heritageClauses=Kt(o),c.members=n(s),c}function Qe(e,r,i,a,o,s){var c=t(241);return c.decorators=Kt(e),c.modifiers=Kt(r),c.name=zt(i),c.typeParameters=Kt(a),c.heritageClauses=Kt(o),c.members=n(s),c}function $e(e,r,n,i,a){var o=t(242);return o.decorators=Kt(e),o.modifiers=Kt(r),o.name=zt(n),o.typeParameters=Kt(i),o.type=a,o}function Ze(e,r,i,a){var o=t(243);return o.decorators=Kt(e),o.modifiers=Kt(r),o.name=zt(i),o.members=n(a),o}function et(e,r,n,i,a){void 0===a&&(a=0);var o=t(244);return o.flags|=532&a,o.decorators=Kt(e),o.modifiers=Kt(r),o.name=n,o.body=i,o}function tt(e){var r=t(245);return r.statements=n(e),r}function rt(e){var r=t(246);return r.clauses=n(e),r}function nt(e){var r=t(247);return r.name=zt(e),r}function it(e,r,n,i){var a=t(248);return a.decorators=Kt(e),a.modifiers=Kt(r),a.name=zt(n),a.moduleReference=i,a}function at(e,r,n,i){var a=t(249);return a.decorators=Kt(e),a.modifiers=Kt(r),a.importClause=n,a.moduleSpecifier=i,a}function ot(e,r){var n=t(250);return n.name=e,n.namedBindings=r,n}function st(e){var r=t(251);return r.name=e,r}function ct(e){var r=t(252);return r.elements=n(e),r}function ut(e,r){var n=t(253);return n.propertyName=e,n.name=r,n}function lt(r,n,i,a){var o=t(254);return o.decorators=Kt(r),o.modifiers=Kt(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(59,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function _t(e,r,n,i){var a=t(255);return a.decorators=Kt(e),a.modifiers=Kt(r),a.exportClause=n,a.moduleSpecifier=i,a}function dt(e){var r=t(256);return r.elements=n(e),r}function pt(e,r){var n=t(257);return n.propertyName=zt(e),n.name=zt(r),n}function ft(e){var r=t(259);return r.expression=e,r}function mt(e,r){var n=t(e);return n.tagName=u(r),n}function gt(e,r,i){var a=t(260);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function yt(e,r,n){var i=t(261);return i.tagName=e,i.typeArguments=Kt(r),i.attributes=n,i}function ht(e,r,n){var i=t(262);return i.tagName=e,i.typeArguments=Kt(r),i.attributes=n,i}function vt(e){var r=t(263);return r.tagName=e,r}function bt(e,r,i){var a=t(264);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function Dt(e,r){var n=t(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!r,n}function xt(e,r){var n=t(267);return n.name=e,n.initializer=r,n}function St(e){var r=t(268);return r.properties=n(e),r}function Tt(e){var r=t(269);return r.expression=e,r}function Ct(e,r){var n=t(270);return n.dotDotDotToken=e,n.expression=r,n}function Et(r,i){var a=t(271);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function kt(e){var r=t(272);return r.statements=n(e),r}function Nt(e,r){var i=t(273);return i.token=e,i.types=n(r),i}function At(r,n){var i=t(274);return i.variableDeclaration=e.isString(r)?He(r):r,i.block=n,i}function Ft(r,n){var i=t(275);return i.name=zt(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function Pt(r,n){var i=t(276);return i.name=zt(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function wt(r){var n=t(277);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function It(r,n){var i=t(278);return i.name=zt(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Ot(e,r){var n=t(313);return n.expression=e,n.original=r,Vt(n,r),n}function Mt(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(314===t.kind)return t.elements;if(e.isBinaryExpression(t)&&27===t.operatorToken.kind)return[t.left,t.right]}return t}function Lt(r){var i=t(314);return i.elements=n(e.sameFlatMap(r,Mt)),i}function Rt(t,r){void 0===r&&(r=e.emptyArray);var n=e.createNode(285);return n.prepends=r,n.sourceFiles=t,n}function Bt(){return l||(l=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper],function(e){return e.name}))}function jt(t,r){var n=e.createNode(function(t){switch(t){case"prologue":return 279;case"prepend":return 280;case"internal":return 282;case"text":return 281;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+t+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(t)}}(t.kind),t.pos,t.end);return n.parent=r,n.data=t.data,n}function Jt(t,r){var n=e.createNode(283,t.pos,t.end);return n.parent=r,n.data=t.data,n.section=t,n}function zt(t){return e.isString(t)?u(t):t}function Kt(e){return e?n(e):void 0}function Ut(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(284===t.kind)return t.emitNode={annotatedNodes:[t]};Ut(e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(t)))).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Vt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function qt(e,t){return Ut(e).flags=t,e}function Wt(e){var t=e.emitNode;return t&&t.leadingComments}function Ht(e,t){return Ut(e).leadingComments=t,e}function Gt(e){var t=e.emitNode;return t&&t.trailingComments}function Yt(e,t){return Ut(e).trailingComments=t,e}function Xt(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);l&&(r.helpers=e.addRange(r.helpers,l));void 0!==_&&(r.startsOnNewLine=_);return r}(n,t.emitNode))}return t}e.createTempVariable=function(e,t){var r=u("");return r.autoGenerateFlags=1,r.autoGenerateId=d,d++,e&&e(r),t&&(r.autoGenerateFlags|=8),r},e.createLoopVariable=function(){var e=u("");return e.autoGenerateFlags=2,e.autoGenerateId=d,d++,e},e.createUniqueName=function(e){var t=u(e);return t.autoGenerateFlags=3,t.autoGenerateId=d,d++,t},e.createOptimisticUniqueName=p,e.createFileLevelUniqueName=function(e){var t=p(e);return t.autoGenerateFlags|=32,t},e.getGeneratedNameForNode=function(t,r){var n=u(t&&e.isIdentifier(t)?e.idText(t):"");return n.autoGenerateFlags=4|r,n.autoGenerateId=d,n.original=t,d++,n},e.createToken=m,e.createSuper=function(){return t(98)},e.createThis=function(){return t(100)},e.createNull=function(){return t(96)},e.createTrue=g,e.createFalse=y,e.createModifier=h,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(h(85)),2&e&&t.push(h(125)),512&e&&t.push(h(80)),2048&e&&t.push(h(77)),4&e&&t.push(h(115)),8&e&&t.push(h(113)),16&e&&t.push(h(114)),128&e&&t.push(h(118)),32&e&&t.push(h(116)),64&e&&t.push(h(133)),256&e&&t.push(h(121)),t},e.createQualifiedName=v,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(v(t,n),e):e},e.createComputedPropertyName=b,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(b(t),e):e},e.createTypeParameterDeclaration=D,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(D(t,n,i),e):e},e.createParameter=x,e.updateParameter=function(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(x(t,n,i,a,o,s,c),e):e},e.createDecorator=S,e.updateDecorator=function(e,t){return e.expression!==t?r(S(t),e):e},e.createPropertySignature=T,e.updatePropertySignature=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(T(t,n,i,a,o),e):e},e.createProperty=C,e.updateProperty=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&56===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&52===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(C(t,n,i,a,o,s),e):e},e.createMethodSignature=E,e.updateMethodSignature=function(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(E(t,n,i,a,o),e):e},e.createMethod=k,e.updateMethod=function(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(k(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=N,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(N(t,n,i,a),e):e},e.createGetAccessor=A,e.updateGetAccessor=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(A(t,n,i,a,o,s),e):e},e.createSetAccessor=F,e.updateSetAccessor=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(F(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return w(160,e,t,r)},e.updateCallSignature=function(e,t,r,n){return I(e,t,r,n)},e.createConstructSignature=function(e,t,r){return w(161,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return I(e,t,r,n)},e.createIndexSignature=P,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(P(t,n,i,a),e):e},e.createSignatureDeclaration=w,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=O,e.updateTypePredicateNode=function(e,t,n){return e.parameterName!==t||e.type!==n?r(O(t,n),e):e},e.createTypeReferenceNode=M,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(M(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return w(165,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return I(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return w(166,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return I(e,t,r,n)},e.createTypeQueryNode=L,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(L(t),e):e},e.createTypeLiteralNode=R,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(R(t),e):e},e.createArrayTypeNode=B,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(B(t),e):e},e.createTupleTypeNode=j,e.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?r(j(t),e):e},e.createOptionalTypeNode=J,e.updateOptionalTypeNode=function(e,t){return e.type!==t?r(J(t),e):e},e.createRestTypeNode=z,e.updateRestTypeNode=function(e,t){return e.type!==t?r(z(t),e):e},e.createUnionTypeNode=function(e){return K(173,e)},e.updateUnionTypeNode=function(e,t){return U(e,t)},e.createIntersectionTypeNode=function(e){return K(174,e)},e.updateIntersectionTypeNode=function(e,t){return U(e,t)},e.createUnionOrIntersectionTypeNode=K,e.createConditionalTypeNode=V,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(V(t,n,i,a),e):e},e.createInferTypeNode=q,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(q(t),e):e},e.createImportTypeNode=W,e.updateImportTypeNode=function(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(W(t,n,i,a),e):e},e.createParenthesizedType=H,e.updateParenthesizedType=function(e,t){return e.type!==t?r(H(t),e):e},e.createThisTypeNode=function(){return t(178)},e.createTypeOperatorNode=G,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(G(e.operator,t),e):e},e.createIndexedAccessTypeNode=Y,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(Y(t,n),e):e},e.createMappedTypeNode=X,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(X(t,n,i,a),e):e},e.createLiteralTypeNode=Q,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?r(Q(t),e):e},e.createObjectBindingPattern=$,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r($(t),e):e},e.createArrayBindingPattern=Z,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(Z(t),e):e},e.createBindingElement=ee,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(ee(t,n,i,a),e):e},e.createArrayLiteral=te,e.updateArrayLiteral=function(e,t){return e.elements!==t?r(te(t,e.multiLine),e):e},e.createObjectLiteral=re,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(re(t,e.multiLine),e):e},e.createPropertyAccess=ne,e.updatePropertyAccess=function(t,n,i){return t.expression!==n||t.name!==i?r(qt(ne(n,i),e.getEmitFlags(t)),t):t},e.createElementAccess=ie,e.updateElementAccess=function(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(ie(t,n),e):e},e.createCall=ae,e.updateCall=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(ae(t,n,i),e):e},e.createNew=oe,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(oe(t,n,i),e):e},e.createTaggedTemplate=se,e.updateTaggedTemplate=function(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(se(t,n,i),e):e},e.createTypeAssertion=ce,e.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?r(ce(t,n),e):e},e.createParen=ue,e.updateParen=function(e,t){return e.expression!==t?r(ue(t),e):e},e.createFunctionExpression=le,e.updateFunctionExpression=function(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(le(t,n,i,a,o,s,c),e):e},e.createArrowFunction=_e,e.updateArrowFunction=function(e,t,n,i,a,o,s){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==i||e.type!==a||e.equalsGreaterThanToken!==o||e.body!==s?r(_e(t,n,i,a,o,s),e):e},e.createDelete=de,e.updateDelete=function(e,t){return e.expression!==t?r(de(t),e):e},e.createTypeOf=pe,e.updateTypeOf=function(e,t){return e.expression!==t?r(pe(t),e):e},e.createVoid=fe,e.updateVoid=function(e,t){return e.expression!==t?r(fe(t),e):e},e.createAwait=me,e.updateAwait=function(e,t){return e.expression!==t?r(me(t),e):e},e.createPrefix=ge,e.updatePrefix=function(e,t){return e.operand!==t?r(ge(e.operator,t),e):e},e.createPostfix=ye,e.updatePostfix=function(e,t){return e.operand!==t?r(ye(t,e.operator),e):e},e.createBinary=he,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(he(t,i||e.operatorToken,n),e):e},e.createConditional=ve,e.updateConditional=function(e,t,n,i,a,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==i||e.colonToken!==a||e.whenFalse!==o?r(ve(t,n,i,a,o),e):e},e.createTemplateExpression=be,e.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?r(be(t,n),e):e},e.createTemplateHead=function(e){var r=t(15);return r.text=e,r},e.createTemplateMiddle=function(e){var r=t(16);return r.text=e,r},e.createTemplateTail=function(e){var r=t(17);return r.text=e,r},e.createNoSubstitutionTemplateLiteral=function(e){var r=t(14);return r.text=e,r},e.createYield=De,e.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(De(t,n),e):e},e.createSpread=xe,e.updateSpread=function(e,t){return e.expression!==t?r(xe(t),e):e},e.createClassExpression=Se,e.updateClassExpression=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?r(Se(t,n,i,a,o),e):e},e.createOmittedExpression=function(){return t(210)},e.createExpressionWithTypeArguments=Te,e.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Te(t,n),e):e},e.createAsExpression=Ce,e.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?r(Ce(t,n),e):e},e.createNonNullExpression=Ee,e.updateNonNullExpression=function(e,t){return e.expression!==t?r(Ee(t),e):e},e.createMetaProperty=ke,e.updateMetaProperty=function(e,t){return e.name!==t?r(ke(e.keywordToken,t),e):e},e.createTemplateSpan=Ne,e.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?r(Ne(t,n),e):e},e.createSemicolonClassElement=function(){return t(217)},e.createBlock=Ae,e.updateBlock=function(e,t){return e.statements!==t?r(Ae(t,e.multiLine),e):e},e.createVariableStatement=Fe,e.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Fe(t,n),e):e},e.createEmptyStatement=function(){return t(220)},e.createExpressionStatement=Pe,e.updateExpressionStatement=we,e.createStatement=Pe,e.updateStatement=we,e.createIf=Ie,e.updateIf=function(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(Ie(t,n,i),e):e},e.createDo=Oe,e.updateDo=function(e,t,n){return e.statement!==t||e.expression!==n?r(Oe(t,n),e):e},e.createWhile=Me,e.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?r(Me(t,n),e):e},e.createFor=Le,e.updateFor=function(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Le(t,n,i,a),e):e},e.createForIn=Re,e.updateForIn=function(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(Re(t,n,i),e):e},e.createForOf=Be,e.updateForOf=function(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(Be(t,n,i,a),e):e},e.createContinue=je,e.updateContinue=function(e,t){return e.label!==t?r(je(t),e):e},e.createBreak=Je,e.updateBreak=function(e,t){return e.label!==t?r(Je(t),e):e},e.createReturn=ze,e.updateReturn=function(e,t){return e.expression!==t?r(ze(t),e):e},e.createWith=Ke,e.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?r(Ke(t,n),e):e},e.createSwitch=Ue,e.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?r(Ue(t,n),e):e},e.createLabel=Ve,e.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?r(Ve(t,n),e):e},e.createThrow=qe,e.updateThrow=function(e,t){return e.expression!==t?r(qe(t),e):e},e.createTry=We,e.updateTry=function(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(We(t,n,i),e):e},e.createDebuggerStatement=function(){return t(236)},e.createVariableDeclaration=He,e.updateVariableDeclaration=function(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(He(t,n,i),e):e},e.createVariableDeclarationList=Ge,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?r(Ge(t,e.flags),e):e},e.createFunctionDeclaration=Ye,e.updateFunctionDeclaration=function(e,t,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(Ye(t,n,i,a,o,s,c,u),e):e},e.createClassDeclaration=Xe,e.updateClassDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Xe(t,n,i,a,o,s),e):e},e.createInterfaceDeclaration=Qe,e.updateInterfaceDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Qe(t,n,i,a,o,s),e):e},e.createTypeAliasDeclaration=$e,e.updateTypeAliasDeclaration=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.type!==o?r($e(t,n,i,a,o),e):e},e.createEnumDeclaration=Ze,e.updateEnumDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(Ze(t,n,i,a),e):e},e.createModuleDeclaration=et,e.updateModuleDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(et(t,n,i,a,e.flags),e):e},e.createModuleBlock=tt,e.updateModuleBlock=function(e,t){return e.statements!==t?r(tt(t),e):e},e.createCaseBlock=rt,e.updateCaseBlock=function(e,t){return e.clauses!==t?r(rt(t),e):e},e.createNamespaceExportDeclaration=nt,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?r(nt(t),e):e},e.createImportEqualsDeclaration=it,e.updateImportEqualsDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r(it(t,n,i,a),e):e},e.createImportDeclaration=at,e.updateImportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(at(t,n,i,a),e):e},e.createImportClause=ot,e.updateImportClause=function(e,t,n){return e.name!==t||e.namedBindings!==n?r(ot(t,n),e):e},e.createNamespaceImport=st,e.updateNamespaceImport=function(e,t){return e.name!==t?r(st(t),e):e},e.createNamedImports=ct,e.updateNamedImports=function(e,t){return e.elements!==t?r(ct(t),e):e},e.createImportSpecifier=ut,e.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(ut(t,n),e):e},e.createExportAssignment=lt,e.updateExportAssignment=function(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(lt(t,n,e.isExportEquals,i),e):e},e.createExportDeclaration=_t,e.updateExportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.exportClause!==i||e.moduleSpecifier!==a?r(_t(t,n,i,a),e):e},e.createNamedExports=dt,e.updateNamedExports=function(e,t){return e.elements!==t?r(dt(t),e):e},e.createExportSpecifier=pt,e.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(pt(t,n),e):e},e.createExternalModuleReference=ft,e.updateExternalModuleReference=function(e,t){return e.expression!==t?r(ft(t),e):e},e.createJSDocTypeExpression=function(e){var r=t(288);return r.type=e,r},e.createJSDocTypeTag=function(e,t){var r=mt(307,"type");return r.typeExpression=e,r.comment=t,r},e.createJSDocReturnTag=function(e,t){var r=mt(305,"returns");return r.typeExpression=e,r.comment=t,r},e.createJSDocParamTag=function(e,t,r,n){var i=mt(304,"param");return i.typeExpression=r,i.name=e,i.isBracketed=t,i.comment=n,i},e.createJSDocComment=function(e,r){var n=t(296);return n.comment=e,n.tags=r,n},e.createJsxElement=gt,e.updateJsxElement=function(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(gt(t,n,i),e):e},e.createJsxSelfClosingElement=yt,e.updateJsxSelfClosingElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(yt(t,n,i),e):e},e.createJsxOpeningElement=ht,e.updateJsxOpeningElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(ht(t,n,i),e):e},e.createJsxClosingElement=vt,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?r(vt(t),e):e},e.createJsxFragment=bt,e.createJsxText=Dt,e.updateJsxText=function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?r(Dt(t,n),e):e},e.createJsxOpeningFragment=function(){return t(265)},e.createJsxJsxClosingFragment=function(){return t(266)},e.updateJsxFragment=function(e,t,n,i){return e.openingFragment!==t||e.children!==n||e.closingFragment!==i?r(bt(t,n,i),e):e},e.createJsxAttribute=xt,e.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?r(xt(t,n),e):e},e.createJsxAttributes=St,e.updateJsxAttributes=function(e,t){return e.properties!==t?r(St(t),e):e},e.createJsxSpreadAttribute=Tt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?r(Tt(t),e):e},e.createJsxExpression=Ct,e.updateJsxExpression=function(e,t){return e.expression!==t?r(Ct(e.dotDotDotToken,t),e):e},e.createCaseClause=Et,e.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?r(Et(t,n),e):e},e.createDefaultClause=kt,e.updateDefaultClause=function(e,t){return e.statements!==t?r(kt(t),e):e},e.createHeritageClause=Nt,e.updateHeritageClause=function(e,t){return e.types!==t?r(Nt(e.token,t),e):e},e.createCatchClause=At,e.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(At(t,n),e):e},e.createPropertyAssignment=Ft,e.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?r(Ft(t,n),e):e},e.createShorthandPropertyAssignment=Pt,e.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(Pt(t,n),e):e},e.createSpreadAssignment=wt,e.updateSpreadAssignment=function(e,t){return e.expression!==t?r(wt(t),e):e},e.createEnumMember=It,e.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?r(It(t,n),e):e},e.updateSourceFileNode=function(e,i,a,o,s,c,u){if(e.statements!==i||void 0!==a&&e.isDeclarationFile!==a||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==u&&e.libReferenceDirectives!==u||void 0!==c&&e.hasNoDefaultLib!==c){var l=t(284);return l.flags|=e.flags,l.statements=n(i),l.endOfFileToken=e.endOfFileToken,l.fileName=e.fileName,l.path=e.path,l.text=e.text,l.isDeclarationFile=void 0===a?e.isDeclarationFile:a,l.referencedFiles=void 0===o?e.referencedFiles:o,l.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,l.hasNoDefaultLib=void 0===c?e.hasNoDefaultLib:c,l.libReferenceDirectives=void 0===u?e.libReferenceDirectives:u,void 0!==e.amdDependencies&&(l.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(l.moduleName=e.moduleName),void 0!==e.languageVariant&&(l.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(l.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(l.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(l.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(l.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(l.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(l.identifiers=e.identifiers),void 0!==e.nodeCount&&(l.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(l.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(l.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(l.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(l.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(l.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(l.lineMap=e.lineMap),void 0!==e.classifiableNames&&(l.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(l.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(l.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(l.imports=e.imports),void 0!==e.moduleAugmentations&&(l.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(l.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(l.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(l.localJsxNamespace=e.localJsxNamespace),r(l,e)}return e},e.getMutableClone=function(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},e.createNotEmittedStatement=function(e){var r=t(312);return r.original=e,Vt(r,e),r},e.createEndOfDeclarationMarker=function(e){var r=t(316);return r.emitNode={},r.original=e,r},e.createMergeDeclarationMarker=function(e){var r=t(315);return r.emitNode={},r.original=e,r},e.createPartiallyEmittedExpression=Ot,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?r(Ot(t,e.original),e):e},e.createCommaList=Lt,e.updateCommaList=function(e,t){return e.elements!==t?r(Lt(t),e):e},e.createBundle=Rt,e.createUnparsedSourceFile=function(t,r,n){var i,a,o=function(){var t=e.createNode(286);return t.prologues=e.emptyArray,t.referencedFiles=e.emptyArray,t.libReferenceDirectives=e.emptyArray,t.getLineAndCharacterOfPosition=function(r){return e.getLineAndCharacterOfPosition(t,r)},t}();if(e.isString(t))o.fileName="",o.text=t,o.sourceMapPath=r,o.sourceMapText=n;else if(e.Debug.assert("js"===r||"dts"===r),o.fileName=("js"===r?t.javascriptPath:t.declarationPath)||"",o.sourceMapPath="js"===r?t.javascriptMapPath:t.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===r?t.javascriptText:t.declarationText}},sourceMapText:{get:function(){return"js"===r?t.javascriptMapText:t.declarationMapText}}}),t.buildInfo&&t.buildInfo.bundle&&(o.oldFileOfCurrentEmit=t.oldFileOfCurrentEmit,e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(t,r){var n,i;e.Debug.assert(!!t.oldFileOfCurrentEmit);for(var a=0,o=r.sections;a0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.setOriginalNode=Xt}(c||(c={})),function(e){function t(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function n(t,n,i){return t?function t(n,i){if(e.isQualifiedName(n)){var a=t(n.left,i),o=e.createIdentifier(e.idText(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccess(a,o)}return r(e.idText(n),i)}(t,i):e.createPropertyAccess(r(n,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function a(t,r){var n=e.skipParentheses(t);switch(n.kind){case 72:return r;case 100:case 8:case 9:case 10:return!1;case 187:return 0!==n.elements.length;case 188:return n.properties.length>0;default:return!0}}function o(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function s(e,t,r){return c(e,t,r,8192)}function c(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function u(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function l(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function _(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=r.length;ae.getOperatorPrecedence(204,27)?t:e.setTextRange(e.createParen(t),t)}function y(t){return 175===t.kind?e.createParenthesizedType(t):t}function h(t){switch(t.kind){case 173:case 174:case 165:case 166:return e.createParenthesizedType(t)}return y(t)}function v(e,t){for(;;){switch(e.kind){case 203:e=e.operand;continue;case 204:e=e.left;continue;case 205:e=e.condition;continue;case 193:e=e.tag;continue;case 191:if(t)return e;case 212:case 190:case 189:case 213:case 313:e=e.expression;continue}return e}}function b(e){return 204===e.kind&&27===e.operatorToken.kind||314===e.kind}function D(e,t){switch(void 0===t&&(t=7),e.kind){case 195:return 0!=(1&t);case 194:case 212:case 213:return 0!=(2&t);case 313:return 0!=(4&t)}return!1}function x(t,r){var n;void 0===r&&(r=7);do{n=t,1&r&&(t=e.skipParentheses(t)),2&r&&(t=S(t)),4&r&&(t=e.skipPartiallyEmittedExpressions(t))}while(n!==t);return t}function S(t){for(;e.isAssertionExpression(t)||213===t.kind;)t=t.expression;return t}function T(t,r,n){return void 0===n&&(n=7),t&&D(t,n)&&(!(195===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i)))?function(t,r){switch(t.kind){case 195:return e.updateParen(t,r);case 194:return e.updateTypeAssertion(t,t.type,r);case 212:return e.updateAsExpression(t,r,t.type);case 213:return e.updateNonNullExpression(t,r);case 313:return e.updatePartiallyEmittedExpression(t,r)}}(t,T(t.expression,r)):r;var i}function C(t){return e.setStartsOnNewLine(t,!0)}function E(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function k(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function N(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?N(t.left):e.isSpreadElement(t)?N(t.expression):t;switch(t.kind){case 275:return N(t.initializer);case 276:return t.name;case 277:return N(t.expression)}}function A(e){var t=e.kind;return 10===t||8===t}function F(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=M(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function P(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=M(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function w(e){switch(e.kind){case 185:case 187:return O(e);case 184:case 188:return I(e)}}function I(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,P)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function O(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,F)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function M(t){return e.isBindingPattern(t)?w(t):(e.Debug.assertNode(t,e.isExpression),t)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)},e.createFunctionApply=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)},e.createArraySlice=function(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)},e.createArrayConcat=function(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)},e.createMathPow=function(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)},e.createExpressionForJsxElement=function(t,r,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];C(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(n(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(r(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'},e.createValuesHelper=function(t,r,n){return t.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(i("__values"),void 0,[r]),n)},e.readHelper={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 };'},e.createReadHelper=function(t,r,n,a){return t.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)},e.spreadHelper={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=function(t,r,n){return t.requestEmitHelper(e.readHelper),t.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(i("__spread"),void 0,r),n)},e.createForOfBindingStatement=function(t,r){if(e.isVariableDeclarationList(t)){var n=e.first(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,233===n.statement.kind?t(r,n.statement):r);return i&&i(n),a},e.createCallBinding=function(t,r,n,i){void 0===i&&(i=!1);var o,s,c=x(t,7);if(e.isSuperProperty(c))o=e.createThis(),s=c;else if(98===c.kind)o=e.createThis(),s=n<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))o=e.createVoidZero(),s=m(c);else switch(c.kind){case 189:a(c.expression,i)?(o=e.createTempVariable(r),s=e.createPropertyAccess(e.setTextRange(e.createAssignment(o,c.expression),c.expression),c.name),e.setTextRange(s,c)):(o=c.expression,s=c);break;case 190:a(c.expression,i)?(o=e.createTempVariable(r),s=e.createElementAccess(e.setTextRange(e.createAssignment(o,c.expression),c.expression),c.argumentExpression),e.setTextRange(s,c)):(o=c.expression,s=c);break;default:o=e.createVoidZero(),s=m(t)}return{target:s,thisArg:o}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(r){if(e.isQualifiedName(r)){var n=t(r.left),i=e.getMutableClone(r.right);return e.setTextRange(e.createPropertyAccess(n,i),r)}return e.getMutableClone(r)},e.createExpressionForPropertyName=o,e.createExpressionForObjectLiteralElementLike=function(r,n,i){switch(n.kind){case 158:case 159:return function(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),s=a.firstAccessor,c=a.getAccessor,u=a.setAccessor;if(r===s){var l=[];if(c){var _=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(_,c),e.setOriginalNode(_,c);var d=e.createPropertyAssignment("get",_);l.push(d)}if(u){var p=e.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body);e.setTextRange(p,u),e.setOriginalNode(p,u);var f=e.createPropertyAssignment("set",p);l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,o(r.name),e.createObjectLiteral(l,i)]),s);return e.aggregateTransformFlags(m)}}(r.properties,n,i,!!r.multiLine);case 275:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),r.initializer),r),r))}(n,i);case 276:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.getSynthesizedClone(r.name)),r),r))}(n,i);case 156:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}(n,i)}},e.getInternalName=function(e,t,r){return c(e,t,r,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,r){return c(e,t,r,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=s,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,r){return c(e,t,r)},e.getExternalModuleOrNamespaceExportName=function(t,r,n,i){return t&&e.hasModifier(r,1)?u(t,c(r),n,i):s(r,n,i)},e.getNamespaceMemberName=u,e.convertToFunctionBody=function(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)},e.convertFunctionDeclarationToExpression=function(t){if(!t.body)return e.Debug.fail();var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r},e.addPrologue=function(e,t,r,n){return d(e,t,_(e,t,r),n)},e.addStandardPrologue=_,e.addCustomPrologue=d,e.findUseStrictPrologue=p,e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&l(r)},e.ensureUseStrict=function(t){return p(t)?t:e.setTextRange(e.createNodeArray([C(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)},e.parenthesizeBinaryOperand=function(t,r,n,i){return 195===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,r,n,i){var a=e.getOperatorPrecedence(204,t),o=e.getOperatorAssociativity(204,t),s=e.skipPartiallyEmittedExpressions(r);if(!n&&197===r.kind&&a>4)return!0;var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!n&&1===o&&207===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(function(e){return 40===e||50===e||49===e||51===e}(t))return!1;if(38===t){var u=i?f(i):0;if(e.isLiteralKind(u)&&u===f(s))return!1}}var l=e.getExpressionAssociativity(s);return 0===l}}(t,r,n,i)?e.createParen(r):r},e.parenthesizeForConditionalHead=function(t){var r=e.getOperatorPrecedence(205,56),n=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(n);return-1===e.compareValues(i,r)?e.createParen(t):t},e.parenthesizeSubexpressionOfConditionalExpression=function(t){return b(e.skipPartiallyEmittedExpressions(t))?e.createParen(t):t},e.parenthesizeDefaultExpression=function(t){var r=e.skipPartiallyEmittedExpressions(t),n=b(r);if(!n)switch(v(r,!1).kind){case 209:case 196:n=!0}return n?e.createParen(t):t},e.parenthesizeForNew=function(t){var r=v(t,!0);switch(r.kind){case 191:return e.createParen(t);case 192:return r.arguments?t:e.createParen(t)}return m(t)},e.parenthesizeForAccess=m,e.parenthesizePostfixOperand=function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizePrefixOperand=function(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizeListElements=function(t){for(var r,n=0;ns-i)&&(a=s-i),(i>0||a0&&d<=147||178===d)return s;switch(d){case 72:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 148:return e.updateQualifiedName(s,r(s.left,c,e.isEntityName),r(s.right,c,e.isIdentifier));case 149:return e.updateComputedPropertyName(s,r(s.expression,c,e.isExpression));case 150:return e.updateTypeParameterDeclaration(s,r(s.name,c,e.isIdentifier),r(s.constraint,c,e.isTypeNode),r(s.default,c,e.isTypeNode));case 151:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.dotDotDotToken,_,e.isToken),r(s.name,c,e.isBindingName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 152:return e.updateDecorator(s,r(s.expression,c,e.isExpression));case 153:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 154:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 155:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken));case 156:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 157:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 158:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 159:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 160:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 161:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 162:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 163:return e.updateTypePredicateNode(s,r(s.parameterName,c),r(s.type,c,e.isTypeNode));case 164:return e.updateTypeReferenceNode(s,r(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 165:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 166:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 167:return e.updateTypeQueryNode(s,r(s.exprName,c,e.isEntityName));case 168:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 169:return e.updateArrayTypeNode(s,r(s.elementType,c,e.isTypeNode));case 170:return e.updateTupleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 171:return e.updateOptionalTypeNode(s,r(s.type,c,e.isTypeNode));case 172:return e.updateRestTypeNode(s,r(s.type,c,e.isTypeNode));case 173:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 174:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 175:return e.updateConditionalTypeNode(s,r(s.checkType,c,e.isTypeNode),r(s.extendsType,c,e.isTypeNode),r(s.trueType,c,e.isTypeNode),r(s.falseType,c,e.isTypeNode));case 176:return e.updateInferTypeNode(s,r(s.typeParameter,c,e.isTypeParameterDeclaration));case 183:return e.updateImportTypeNode(s,r(s.argument,c,e.isTypeNode),r(s.qualifier,c,e.isEntityName),n(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 177:return e.updateParenthesizedType(s,r(s.type,c,e.isTypeNode));case 179:return e.updateTypeOperatorNode(s,r(s.type,c,e.isTypeNode));case 180:return e.updateIndexedAccessTypeNode(s,r(s.objectType,c,e.isTypeNode),r(s.indexType,c,e.isTypeNode));case 181:return e.updateMappedTypeNode(s,r(s.readonlyToken,_,e.isToken),r(s.typeParameter,c,e.isTypeParameterDeclaration),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode));case 182:return e.updateLiteralTypeNode(s,r(s.literal,c,e.isExpression));case 184:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 185:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 186:return e.updateBindingElement(s,r(s.dotDotDotToken,_,e.isToken),r(s.propertyName,c,e.isPropertyName),r(s.name,c,e.isBindingName),r(s.initializer,c,e.isExpression));case 187:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 188:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 189:return e.updatePropertyAccess(s,r(s.expression,c,e.isExpression),r(s.name,c,e.isIdentifier));case 190:return e.updateElementAccess(s,r(s.expression,c,e.isExpression),r(s.argumentExpression,c,e.isExpression));case 191:return e.updateCall(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 192:return e.updateNew(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 193:return e.updateTaggedTemplate(s,r(s.tag,c,e.isExpression),n(s.typeArguments,c,e.isExpression),r(s.template,c,e.isTemplateLiteral));case 194:return e.updateTypeAssertion(s,r(s.type,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 195:return e.updateParen(s,r(s.expression,c,e.isExpression));case 196:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 197:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),r(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 198:return e.updateDelete(s,r(s.expression,c,e.isExpression));case 199:return e.updateTypeOf(s,r(s.expression,c,e.isExpression));case 200:return e.updateVoid(s,r(s.expression,c,e.isExpression));case 201:return e.updateAwait(s,r(s.expression,c,e.isExpression));case 202:return e.updatePrefix(s,r(s.operand,c,e.isExpression));case 203:return e.updatePostfix(s,r(s.operand,c,e.isExpression));case 204:return e.updateBinary(s,r(s.left,c,e.isExpression),r(s.right,c,e.isExpression),r(s.operatorToken,c,e.isToken));case 205:return e.updateConditional(s,r(s.condition,c,e.isExpression),r(s.questionToken,c,e.isToken),r(s.whenTrue,c,e.isExpression),r(s.colonToken,c,e.isToken),r(s.whenFalse,c,e.isExpression));case 206:return e.updateTemplateExpression(s,r(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 207:return e.updateYield(s,r(s.asteriskToken,_,e.isToken),r(s.expression,c,e.isExpression));case 208:return e.updateSpread(s,r(s.expression,c,e.isExpression));case 209:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 211:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 212:return e.updateAsExpression(s,r(s.expression,c,e.isExpression),r(s.type,c,e.isTypeNode));case 213:return e.updateNonNullExpression(s,r(s.expression,c,e.isExpression));case 214:return e.updateMetaProperty(s,r(s.name,c,e.isIdentifier));case 216:return e.updateTemplateSpan(s,r(s.expression,c,e.isExpression),r(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 218:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 219:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),r(s.declarationList,c,e.isVariableDeclarationList));case 221:return e.updateExpressionStatement(s,r(s.expression,c,e.isExpression));case 222:return e.updateIf(s,r(s.expression,c,e.isExpression),r(s.thenStatement,c,e.isStatement,e.liftToBlock),r(s.elseStatement,c,e.isStatement,e.liftToBlock));case 223:return e.updateDo(s,r(s.statement,c,e.isStatement,e.liftToBlock),r(s.expression,c,e.isExpression));case 224:return e.updateWhile(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateFor(s,r(s.initializer,c,e.isForInitializer),r(s.condition,c,e.isExpression),r(s.incrementor,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 226:return e.updateForIn(s,r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 227:return e.updateForOf(s,r(s.awaitModifier,c,e.isToken),r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 228:return e.updateContinue(s,r(s.label,c,e.isIdentifier));case 229:return e.updateBreak(s,r(s.label,c,e.isIdentifier));case 230:return e.updateReturn(s,r(s.expression,c,e.isExpression));case 231:return e.updateWith(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateSwitch(s,r(s.expression,c,e.isExpression),r(s.caseBlock,c,e.isCaseBlock));case 233:return e.updateLabel(s,r(s.label,c,e.isIdentifier),r(s.statement,c,e.isStatement,e.liftToBlock));case 234:return e.updateThrow(s,r(s.expression,c,e.isExpression));case 235:return e.updateTry(s,r(s.tryBlock,c,e.isBlock),r(s.catchClause,c,e.isCatchClause),r(s.finallyBlock,c,e.isBlock));case 237:return e.updateVariableDeclaration(s,r(s.name,c,e.isBindingName),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 238:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 239:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 240:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 241:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 242:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),r(s.type,c,e.isTypeNode));case 243:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 244:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.body,c,e.isModuleBody));case 245:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 246:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 247:return e.updateNamespaceExportDeclaration(s,r(s.name,c,e.isIdentifier));case 248:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.moduleReference,c,e.isModuleReference));case 249:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.importClause,c,e.isImportClause),r(s.moduleSpecifier,c,e.isExpression));case 250:return e.updateImportClause(s,r(s.name,c,e.isIdentifier),r(s.namedBindings,c,e.isNamedImportBindings));case 251:return e.updateNamespaceImport(s,r(s.name,c,e.isIdentifier));case 252:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 253:return e.updateImportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 254:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.expression,c,e.isExpression));case 255:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.exportClause,c,e.isNamedExports),r(s.moduleSpecifier,c,e.isExpression));case 256:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 257:return e.updateExportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 259:return e.updateExternalModuleReference(s,r(s.expression,c,e.isExpression));case 260:return e.updateJsxElement(s,r(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),r(s.closingElement,c,e.isJsxClosingElement));case 261:return e.updateJsxSelfClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 262:return e.updateJsxOpeningElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 263:return e.updateJsxClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression));case 264:return e.updateJsxFragment(s,r(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),r(s.closingFragment,c,e.isJsxClosingFragment));case 267:return e.updateJsxAttribute(s,r(s.name,c,e.isIdentifier),r(s.initializer,c,e.isStringLiteralOrJsxExpression));case 268:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 269:return e.updateJsxSpreadAttribute(s,r(s.expression,c,e.isExpression));case 270:return e.updateJsxExpression(s,r(s.expression,c,e.isExpression));case 271:return e.updateCaseClause(s,r(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 272:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 273:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 274:return e.updateCatchClause(s,r(s.variableDeclaration,c,e.isVariableDeclaration),r(s.block,c,e.isBlock));case 275:return e.updatePropertyAssignment(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 276:return e.updateShorthandPropertyAssignment(s,r(s.name,c,e.isIdentifier),r(s.objectAssignmentInitializer,c,e.isExpression));case 277:return e.updateSpreadAssignment(s,r(s.expression,c,e.isExpression));case 278:return e.updateEnumMember(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 284:return e.updateSourceFileNode(s,i(s.statements,c,u));case 313:return e.updatePartiallyEmittedExpression(s,r(s.expression,c,e.isExpression));case 314:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(c||(c={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=147)return i;if(u>=163&&u<=182)return i;var l=i;switch(n.kind){case 217:case 220:case 210:case 236:case 312:break;case 148:l=t(n.left,a,l),l=t(n.right,a,l);break;case 149:l=t(n.expression,a,l);break;case 151:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 152:l=t(n.expression,a,l);break;case 153:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 154:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 157:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 158:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 159:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 184:case 185:l=s(n.elements,c,l);break;case 186:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 187:l=s(n.elements,c,l);break;case 188:l=s(n.properties,c,l);break;case 189:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 190:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 191:case 192:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 193:l=t(n.tag,a,l),l=s(n.typeArguments,c,l),l=t(n.template,a,l);break;case 194:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 196:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 197:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 195:case 198:case 199:case 200:case 201:case 207:case 208:case 213:l=t(n.expression,a,l);break;case 202:case 203:l=t(n.operand,a,l);break;case 204:l=t(n.left,a,l),l=t(n.right,a,l);break;case 205:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 206:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 209:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 211:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 212:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 216:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 218:l=s(n.statements,c,l);break;case 219:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 221:l=t(n.expression,a,l);break;case 222:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 223:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 224:case 231:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 225:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 226:case 227:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 230:case 234:l=t(n.expression,a,l);break;case 232:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 233:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 235:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 237:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 238:l=s(n.declarations,c,l);break;case 239:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 240:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 243:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 244:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 245:l=s(n.statements,c,l);break;case 246:l=s(n.clauses,c,l);break;case 248:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 249:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 250:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 251:l=t(n.name,a,l);break;case 252:case 256:l=s(n.elements,c,l);break;case 253:case 257:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 254:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 255:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 259:l=t(n.expression,a,l);break;case 260:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 264:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 261:case 262:l=t(n.tagName,a,l),l=s(n.typeArguments,a,l),l=t(n.attributes,a,l);break;case 268:l=s(n.properties,c,l);break;case 263:l=t(n.tagName,a,l);break;case 267:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 269:case 270:l=t(n.expression,a,l);break;case 271:l=t(n.expression,a,l);case 272:l=s(n.statements,c,l);break;case 273:l=s(n.types,c,l);break;case 274:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 275:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 276:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 277:l=t(n.expression,a,l);break;case 278:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 284:l=s(n.statements,c,l);break;case 313:l=t(n.expression,a,l);break;case 314:l=s(n.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=function(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&211!==t.kind)return 0;return n(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,r)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),_();for(var u,l=[],p=a(n.mappings),f=p.next(),m=f.value,g=f.done;!(g||s&&(m.generatedLine>s.line||m.generatedLine===s.line&&m.generatedCharacter>s.character));c=p.next(),m=c.value,g=c.done,c)if(!o||!(m.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),_(),(function(e,t){return!P||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),C=t,E=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,A=a,w=!0,void 0!==o&&(F=o,I=!0)),d()}function B(){if(P&&(!T||h!==C||v!==E||b!==k||D!==N||x!==A||S!==F)){if(_(),h=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function _(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(e){for(var n=e.getLineCount()-1;n>=0;n--){var i=e.getLineText(n),a=t.exec(i);if(a)return a[1];if(!i.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,y=e.getNormalizedAbsolutePath(r.file,m),h=t.getSourceFileLike(y),v=r.sources.map(function(t){return e.getNormalizedAbsolutePath(t,g)}),b=e.createMapFromEntries(v.map(function(e,r){return[t.getCanonicalFileName(e),r]}));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&c(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:y,pos:o.generatedPosition}}};function D(n){var i,a,s=void 0!==h?e.getPositionOfLineAndCharacter(h,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function x(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,D);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=x();n0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i=1)||12288&g.transformFlags||12288&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(h)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=n(t,s,h);e.isComputedPropertyName(h)&&(l=e.append(l,y.argumentExpression)),r(t,g,y,g)}else u=e.append(u,g)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;if(t.level<1&&t.downlevelIteration)o=i(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s);else if(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression)){var d=!e.isDeclarationBindingElement(n)||0!==_;o=i(t,o,d,s)}for(var p=0;p<_;p++){var f=l[p];if(t.level>=1)if(8192&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(m))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){var g=e.createArraySlice(o,p);r(t,f,g,f)}}else{var g=e.createElementAccess(o,p);r(t,f,g,f)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a);if(u)for(var y=0,h=u;y0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,J)}(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Be(t)?n|=8:function(t){return je(t)&&e.hasModifier(t,512)}(t)?n|=32:Je(t)&&(n|=16),S<=1&&7&n&&(n|=128),n}(n,o);128&c&&t.startLexicalEnvironment();var u=n.name||(5&c?e.getGeneratedNameForNode(n):void 0),l=2&c?function(t,r,n){var i=e.moveRangePastDecorators(t),a=function(t){if(16777216&b.getNodeCheckFlags(t)){He();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return p[e.getOriginalNodeId(t)]=r,v(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),c=U(t,0!=(64&n)),u=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(n,u,c):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),U(t,0!=(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(n,u,c),_=[l];if(e.some(m)&&_.push(e.createExpressionStatement(e.inlineExpressions(m))),m=a,1&c&&X(_,o,128&c?e.getInternalName(n):e.getLocalName(n)),ne(_,n,!1),ne(_,n,!0),function(r,n){var a=function(r){var n=function(t){var r=t.decorators,n=ee(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(r),a=re(r,r,n);if(a){var o=p&&p[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=i(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}(n);a&&r.push(e.setOriginalNode(e.createExpressionStatement(a),n))}(_,n),128&c){var d=e.createTokenRange(e.skipTrivia(r.text,n.members.end),19),f=e.getInternalName(n),g=e.createPartiallyEmittedExpression(f);g.end=d.end,e.setEmitFlags(g,1536);var y=e.createReturn(g);y.pos=d.pos,e.setEmitFlags(y,1920),_.push(y),e.insertStatementsAfterStandardPrologue(_,t.endLexicalEnvironment());var h=e.createImmediatelyInvokedArrowFunction(_);e.setEmitFlags(h,33554432);var D=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,h)]));e.setOriginalNode(D,n),e.setCommentRange(D,n),e.setSourceMapRange(D,e.moveRangePastDecorators(n)),e.startOnNewLine(D),_=[D]}return 8&c?Ke(_,n):(128&c||2&c)&&(32&c?_.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&c&&_.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),_.length>1&&(_.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(l,4194304|e.getEmitFlags(l))),e.singleOrMany(_)}(n);case 209:return function(r){if(!K(r))return e.visitEachChild(r,A,t);var n=m;m=void 0;var i=W(r,!0),a=e.visitNodes(r.heritageClauses,A,e.isHeritageClause),o=U(r,e.some(a,function(e){return 86===e.token})),s=e.createClassExpression(void 0,r.name,void 0,a,o);if(e.setOriginalNode(s,r),e.setTextRange(s,r),e.some(i)||e.some(m)){var c=[],u=16777216&b.getNodeCheckFlags(r),l=e.createTempVariable(v,!!u);if(u){He();var _=e.getSynthesizedClone(l);_.autoGenerateFlags&=-9,p[e.getOriginalNodeId(r)]=_}return e.setEmitFlags(s,65536|e.getEmitFlags(s)),c.push(e.startOnNewLine(e.createAssignment(l,s))),e.addRange(c,e.map(m,e.startOnNewLine)),m=n,e.addRange(c,function(t,r){for(var n=[],i=0,a=t;i=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,P,t,0,n))}function J(e){return void 0!==e.decorators&&e.decorators.length>0}function z(e){return!!(1024&e.transformFlags)}function K(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,z)||e.some(t.members,z)}function U(r,n){var i=[],a=function(r,n){var i=e.getFirstConstructorWithBody(r),a=e.forEach(r.members,G),o=i&&1024&i.transformFlags&&e.forEach(i.parameters,V);if(!a&&!o)return e.visitEachChild(i,A,t);var s=function(r){return e.visitParameterList(r&&r.parameters,A,t)||[]}(i),c=function(t,r,n){var i=[],a=0;if(y(),r){a=function(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,A);if(i===n.length)return i;var a=n[i];return 221===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,A,e.isStatement)),i+1):i}return 0}(r,i);var o=function(t){return e.filter(t.parameters,V)}(r);e.addRange(i,e.map(o,q))}else n&&i.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=W(t,!1);return X(i,s,e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,A,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,h()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}(r,i,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),i||r),i))}(r,n);return a&&i.push(a),e.addRange(i,e.visitNodes(r.members,M,e.isClassElement)),e.setTextRange(e.createNodeArray(i),r.members)}function V(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function q(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function W(t,r){return e.filter(t.members,r?H:G)}function H(e){return Y(e,!0)}function G(e){return Y(e,!1)}function Y(t,r){return 154===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function X(t,r,n){for(var i=0,a=r;i0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s0?154===n.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(n));return e.setEmitFlags(u,1536),u}}function ae(t){return e.visitNode(t.expression,A,e.isExpression)}function oe(r,n){var i;if(r){i=[];for(var a=0,s=r;a= 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 };'},e.metadataHelper={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 };'},e.paramHelper={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(c||(c={})),function(e){var t;function r(t,r,n){var i=0!=(4096&t.getNodeCheckFlags(r)),a=[];return n.forEach(function(t,r){var n=e.unescapeLeadingUnderscores(r),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),n),4)))),i&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),n),4),e.createIdentifier("v"))))),a.push(e.createPropertyAssignment(n,e.createObjectLiteral(o)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(a,!0)]))],2))}function n(t,r,n,i){t.requestEmitHelper(e.awaiterHelper);var a=e.createFunctionExpression(void 0,e.createToken(40),void 0,void 0,[],void 0,i);return(a.emitNode||(a.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),n?e.createExpressionFromEntityName(n):e.createVoidZero(),a])}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var i,a,o,s,c=t.resumeLexicalEnvironment,u=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,_=t.getEmitResolver(),d=t.getCompilerOptions(),p=e.getEmitScriptTarget(d),f=0,m=[],g=t.onEmitNode,y=t.onSubstituteNode;return t.onEmitNode=function(t,r,n){if(1&i&&function(e){var t=e.kind;return 240===t||157===t||156===t||158===t||159===t}(r)){var a=6144&_.getNodeCheckFlags(r);if(a!==f){var o=f;return f=a,g(t,r,n),void(f=o)}}else if(i&&m[e.getNodeId(r)]){var o=f;return f=0,g(t,r,n),void(f=o)}g(t,r,n)},t.onSubstituteNode=function(t,r){return r=y(t,r),1===t&&f?function(t){switch(t.kind){case 189:return N(t);case 190:return A(t);case 191:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?N(r):A(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r},e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,h,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function h(r){if(0==(32&r.transformFlags))return r;switch(r.kind){case 121:return;case 201:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,h,e.isExpression)),t),t)}(r);case 156:return function(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,h,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,h,t),void 0,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 239:return function(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,h,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,h,t),void 0,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 196:return function(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,h,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,h,t),void 0,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 197:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,h,e.isModifier),void 0,e.visitParameterList(r.parameters,h,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 189:return o&&e.isPropertyAccessExpression(r)&&98===r.expression.kind&&o.set(r.name.escapedText,!0),e.visitEachChild(r,h,t);case 190:return o&&98===r.expression.kind&&(s=!0),e.visitEachChild(r,h,t);default:return e.visitEachChild(r,h,t)}}function v(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 219:return function(r){if(D(r.declarationList)){var n=x(r.declarationList,!1);return n?e.createExpressionStatement(n):void 0}return e.visitEachChild(r,h,t)}(r);case 225:return function(t){var r=t.initializer;return e.updateFor(t,D(r)?x(r,!1):e.visitNode(t.initializer,h,e.isForInitializer),e.visitNode(t.condition,h,e.isExpression),e.visitNode(t.incrementor,h,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 226:return function(t){return e.updateForIn(t,D(t.initializer)?x(t.initializer,!0):e.visitNode(t.initializer,h,e.isForInitializer),e.visitNode(t.expression,h,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 227:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,h,e.isToken),D(t.initializer)?x(t.initializer,!0):e.visitNode(t.initializer,h,e.isForInitializer),e.visitNode(t.expression,h,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 274:return function(r){var n,i=e.createUnderscoreEscapedMap();if(b(r.variableDeclaration,i),i.forEach(function(t,r){a.has(r)&&(n||(n=e.cloneMap(a)),n.delete(r))}),n){var o=a;a=n;var s=e.visitEachChild(r,v,t);return a=o,s}return e.visitEachChild(r,v,t)}(r);case 218:case 232:case 246:case 271:case 272:case 235:case 223:case 224:case 222:case 231:case 233:return e.visitEachChild(r,v,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return h(r)}function b(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);else for(var i=0,a=n.elements;i=2&&6144&_.getNodeCheckFlags(l);if(P&&(0==(1&i)&&(i|=1,t.enableSubstitution(191),t.enableSubstitution(189),t.enableSubstitution(190),t.enableEmitNotification(240),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(157),t.enableEmitNotification(219)),e.hasEntries(o))){var w=r(_,l,o);m[e.getNodeId(w)]=!0,e.insertStatementsAfterStandardPrologue(A,[w])}var I=e.createBlock(A,!0);e.setTextRange(I,l.body),P&&s&&(4096&_.getNodeCheckFlags(l)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(l)&&e.addEmitHelper(I,e.asyncSuperHelper)),S=I}return a=v,g||(o=T,s=C),S}function k(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,v,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,v,e.isConciseBody))}function N(t){return 98===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function A(t){return 98===t.expression.kind?(r=t.argumentExpression,n=t,4096&f?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),"value"),n):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=r,e.awaiterHelper={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:e.helperString(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(o(["\n const "," = (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 const "," = (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);"]),"_superIndex")}}(c||(c={})),function(e){var t;function r(t,r){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(e.assignHelper),e.createCall(e.getHelperName("__assign"),void 0,r))}function n(t,r){return t.requestEmitHelper(e.awaitHelper),e.createCall(e.getHelperName("__await"),void 0,[r])}function i(t,r,n){return t.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2018=function(t){var a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&d&&function(e){var t=e.kind;return 240===t||157===t||156===t||158===t||159===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==y){var a=y;return y=i,_(t,r,n),void(y=a)}}else if(d&&h[e.getNodeId(r)]){var a=y;return y=0,_(t,r,n),void(y=a)}_(t,r,n)};var d,p,f=t.onSubstituteNode;t.onSubstituteNode=function(t,r){return r=f(t,r),1===t&&y?function(t){switch(t.kind){case 189:return N(t);case 190:return A(t);case 191:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?N(r):A(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r};var m,g,y=0,h=[];return e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,v,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function v(e){return x(e,!1)}function b(e){return x(e,!0)}function D(e){if(121!==e.kind)return e}function x(a,o){if(0==(16&a.transformFlags))return a;switch(a.kind){case 201:return function(r){return 2&p&&1&p?e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.visitNode(r.expression,v,e.isExpression))),r),r):e.visitEachChild(r,v,t)}(a);case 207:return function(r){if(2&p&&1&p){if(r.asteriskToken){var a=e.visitNode(r.expression,v,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.updateYield(r,r.asteriskToken,function(t,r,n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}(t,i(t,a,a),a)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(T(r.expression?e.visitNode(r.expression,v,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,v,t)}(a);case 230:return function(r){return 2&p&&1&p?e.updateReturn(r,T(r.expression?e.visitNode(r.expression,v,e.isExpression):e.createVoidZero())):e.visitEachChild(r,v,t)}(a);case 233:return function(r){if(2&p){var n=e.unwrapInnermostStatementOfLabel(r);return 227===n.kind&&n.awaitModifier?S(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,v,t),r)}return e.visitEachChild(r,v,t)}(a);case 188:return function(n){if(8192&n.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i=2&&6144&c.getNodeCheckFlags(r);if(p){0==(1&d)&&(d|=1,t.enableSubstitution(191),t.enableSubstitution(189),t.enableSubstitution(190),t.enableEmitNotification(240),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(157),t.enableEmitNotification(219));var f=e.createSuperAccessVariableStatement(c,r,m);h[e.getNodeId(f)]=!0,e.insertStatementsAfterStandardPrologue(n,[f])}n.push(_),e.insertStatementsAfterStandardPrologue(n,o());var y=e.updateBlock(r.body,n);return p&&g&&(4096&c.getNodeCheckFlags(r)?e.addEmitHelper(y,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(r)&&e.addEmitHelper(y,e.asyncSuperHelper)),m=s,g=u,y}function E(t){a();var r=0,n=[],i=e.visitNode(t.body,v,e.isConciseBody);e.isBlock(i)&&(r=e.addPrologue(n,i.statements,!1,v)),e.addRange(n,k(void 0,t));var s=o();if(r>0||e.some(n)||e.some(s)){var c=e.convertToFunctionBody(i,!0);return e.insertStatementsAfterStandardPrologue(n,s),e.addRange(n,c.statements.slice(r)),e.updateBlock(c,e.setTextRange(e.createNodeArray(n),c.statements))}return i}function k(r,n){for(var i=0,a=n.parameters;i 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 };'},e.asyncDelegator={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) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'}}(c||(c={})),function(e){e.transformES2019=function(t){return e.chainBundle(function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)});function r(n){if(0==(8&n.transformFlags))return n;switch(n.kind){case 274:return function(n){return n.variableDeclaration?e.visitEachChild(n,r,t):e.updateCatchClause(n,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(n.block,r,e.isBlock))}(n);default:return e.visitEachChild(n,r,t)}}}}(c||(c={})),function(e){e.transformESNext=function(t){return e.chainBundle(function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)});function r(n){return 0==(4&n.transformFlags)?n:(n.kind,e.visitEachChild(n,r,t))}}}(c||(c={})),function(e){e.transformJsx=function(r){var n,i=r.getCompilerOptions();return e.chainBundle(function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,a,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i});function a(t){return 2&t.transformFlags?function(t){switch(t.kind){case 260:return s(t,!1);case 261:return c(t,!1);case 264:return u(t,!1);case 270:return m(t);default:return e.visitEachChild(t,a,r)}}(t):t}function o(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 100:return function(t){return 1&s&&16&i?e.setTextRange(e.createFileLevelUniqueName("_this"),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&s&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 186:case 240:case 243:case 237:return e.parent.name===e&&p.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=g(3968,64),n=[],i=[];c();var o=e.addStandardPrologue(n,t.statements,!1);return o=e.addCustomPrologue(n,t.statements,o,v),e.addRange(i,e.visitNodes(t.statements,v,e.isStatement,o)),a&&i.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.mergeLexicalEnvironment(n,l()),F(n,t),y(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(e.concatenate(n,i)),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s});function g(e,t){var r=i;return i=8191&(i&~e|t),r}function y(e,t,r){i=-8192&(i&~t|r)|e}function h(e){return 0!=(4096&i)&&230===e.kind&&!e.expression}function v(n){return function(t){return 0!=(128&t.transformFlags)||void 0!==o||4096&i&&(e.isStatement(t)||218===t.kind)||e.isIterationStatement(t,!1)&&ne(t)||0!=(33554432&e.getEmitFlags(t))}(n)?function(n){switch(n.kind){case 116:return;case 240:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,x(t));e.setOriginalNode(r,t);var n=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 209:return function(e){return x(e)}(n);case 151:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 239:return function(r){var n=o;o=void 0;var a=g(8094,65),s=e.visitParameterList(r.parameters,v,t),c=B(r),u=8192&i?e.getLocalName(r):r.name;return y(a,24576,0),o=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,v,e.isModifier),r.asteriskToken,u,void 0,s,void 0,c)}(n);case 197:return function(r){2048&r.transformFlags&&(i|=16384);var n=o;o=void 0;var a=g(8064,66),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,v,t),void 0,B(r));return e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),16384&i&&Ce(),y(a,0,0),o=n,s}(n);case 196:return function(r){var n=262144&e.getEmitFlags(r)?g(8086,69):g(8094,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,v,t),c=B(r),u=8192&i?e.getLocalName(r):r.name;return y(n,24576,0),o=a,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,s,void 0,c)}(n);case 237:return K(n);case 72:return function(t){return o?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&p.isArgumentsLocalBinding(t)?o.argumentsName||(o.argumentsName=e.createUniqueName("arguments")):t:t}(n);case 238:return function(r){if(3&r.flags||65536&r.transformFlags){3&r.flags&&Te();var n=e.flatMap(r.declarations,1&r.flags?z:K),i=e.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),65536&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,v,t,0,e.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(n),e.visitNode(a,v,e.isExpression))),1048576)),!0)}function N(t,r,n,i){i=e.visitNode(i,v,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function A(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=72===o.name.kind?e.getMutableClone(o.name):e.createTempVariable(void 0);e.setEmitFlags(s,48);var c=72===o.name.kind?e.getSynthesizedClone(o.name):s,u=n.parameters.length-1,l=e.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(s,void 0,e.createArrayLiteral([]))])),o),1048576));var _=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(l,void 0,e.createLiteral(u))]),o),e.setTextRange(e.createLessThan(l,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),o),e.setTextRange(e.createPostfixIncrement(l),o),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(c,0===u?l:e.createSubtract(l,e.createLiteral(u))),e.createElementAccess(e.createIdentifier("arguments"),l))),o))]));return e.setEmitFlags(_,1048576),e.startOnNewLine(_),a.push(_),72!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(o,v,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function F(t,r){return!!(16384&i&&197!==r.kind)&&(P(t,r,e.createThis()),!0)}function P(t,r,n){Ce();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function w(t,r,n){if(8192&i){var a=void 0;switch(r.kind){case 197:return t;case 156:case 158:case 159:a=e.createVoidZero();break;case 157:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 239:case 196:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),94,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function I(t){return e.setTextRange(e.createEmptyStatement(),t)}function O(t,r,n){var i=e.getCommentRange(r),a=e.getSourceMapRange(r),o=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,v,e.isPropertyName),r.name),s=R(r,r,void 0,n);e.setEmitFlags(s,1536),e.setSourceMapRange(s,a);var c=e.setTextRange(e.createExpressionStatement(e.createAssignment(o,s)),r);return e.setOriginalNode(c,r),e.setCommentRange(c,i),e.setEmitFlags(c,48),c}function M(t,r,n){var i=e.createExpressionStatement(L(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function L(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.getMutableClone(t);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.createExpressionForPropertyName(e.visitNode(a.name,v,e.isPropertyName));e.setEmitFlags(u,1552),e.setSourceMapRange(u,a.name);var l=[];if(o){var _=R(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var d=e.createPropertyAssignment("get",_);e.setCommentRange(d,e.getCommentRange(o)),l.push(d)}if(s){var p=R(s,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("set",p);e.setCommentRange(f,e.getCommentRange(s)),l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var m=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[c,u,e.createObjectLiteral(l,!0)]);return i&&e.startOnNewLine(m),m}function R(r,n,a,s){var c=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.hasModifier(r,32)?g(8094,73):g(8094,65),l=e.visitParameterList(r.parameters,v,t),_=B(r);return 8192&i&&!a&&(239===r.kind||196===r.kind)&&(a=e.getGeneratedNameForNode(r)),y(u,24576,0),o=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,a,void 0,l,void 0,_),n),r)}function B(t){var n,i,a,o=!1,s=!1,c=[],_=[],d=t.body;if(u(),e.isBlock(d)&&(a=e.addStandardPrologue(c,d.statements,!1)),o=E(_,t)||o,o=A(_,t,!1)||o,e.isBlock(d))a=e.addCustomPrologue(_,d.statements,a,v),n=d.statements,e.addRange(_,e.visitNodes(d.statements,v,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(197===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var f=e.visitNode(d,v,e.isExpression),m=e.createReturn(f);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),_.push(m),i=d}if(e.mergeLexicalEnvironment(c,l()),w(c,t,!1),F(c,t),e.some(c)&&(o=!0),_.unshift.apply(_,c),e.isBlock(d)&&e.arrayIsEqualTo(_,d.statements))return d;var g=e.createBlock(e.setTextRange(e.createNodeArray(_),n),o);return e.setTextRange(g,t.body),!o&&s&&e.setEmitFlags(g,1),i&&e.setTokenSourceMapRange(g,19,i),e.setOriginalNode(g,t.body),g}function j(r,n){if(!n)switch(r.expression.kind){case 195:return e.updateParen(r,j(r.expression,!1));case 204:return e.updateParen(r,J(r.expression,!1))}return e.visitEachChild(r,v,t)}function J(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,v,t,0,n):e.visitEachChild(r,v,t)}function z(r){var n=r.name;if(e.isBindingPattern(n))return K(r);if(!r.initializer&&function(e){var t=p.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(2048&i)&&(!p.isDeclarationWithCollidingName(e)||n&&!r&&0==(3072&i))}(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,v,t)}function K(r){var n,i=g(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,v,t,0,void 0,0!=(32&i)):e.visitEachChild(r,v,t),y(i,0,0),n}function U(t){o.labels.set(e.idText(t.label),!0)}function V(t){o.labels.set(e.idText(t.label),!1)}function q(r,n,a,s,u){var _=g(r,n),d=function(r,n,a){if(!ne(r)){var s=void 0;o&&(s=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var u=a?a(r,n,void 0):e.restoreEnclosingLabel(e.visitEachChild(r,v,t),n,o&&V);return o&&(o.allowedNonLabeledJumps=s),u}var _=function(t){var r;switch(t.kind){case 225:case 226:case 227:var n=t.initializer;n&&238===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=te(t),c=0,u=r.declarations;c=73&&r<=108)return e.setTextRange(e.createLiteral(t),t)}}}(c||(c={})),function(e){var t,r,n,i,a;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(a||(a={})),e.transformGenerators=function(t){var r,n,i,a,o,s,c,u,l,_,d=t.resumeLexicalEnvironment,p=t.endLexicalEnvironment,f=t.hoistFunctionDeclaration,m=t.hoistVariableDeclaration,g=t.getCompilerOptions(),y=e.getEmitScriptTarget(g),h=t.getEmitResolver(),v=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=v(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=h.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var b,D,x,S,T,C,E,k,N,A,F,P,w=1,I=0,O=0;return e.chainBundle(function(r){if(r.isDeclarationFile||0==(256&r.transformFlags))return r;var n=e.visitEachChild(r,M,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function M(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 223:case 224:return function(r){return a?(re(),r=e.visitEachChild(r,M,t),ie(),r):e.visitEachChild(r,M,t)}(r);case 232:return function(r){return a&&$({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,M,t),a&&ae(),r}(r);case 233:return function(r){return a&&$({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,M,t),a&&oe(),r}(r);default:return L(r)}}(r):i?L(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 239:return R(t);case 196:return B(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):256&n?e.visitEachChild(r,M,t):r}function L(r){switch(r.kind){case 239:return R(r);case 196:return B(r);case 158:case 159:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,M,t),i=n,a=o,r}(r);case 219:return function(t){if(131072&t.transformFlags)V(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?e.inlineExpressions(e.map(c,q)):void 0,e.visitNode(r.condition,M,e.isExpression),e.visitNode(r.incrementor,M,e.isExpression),e.visitNode(r.statement,M,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,M,t);return a&&ie(),r}(r);case 226:return function(r){a&&re();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i0)return me(n,r)}return e.visitEachChild(r,M,t)}(r);case 228:return function(r){if(a){var n=de(r.label&&e.idText(r.label));if(n>0)return me(n,r)}return e.visitEachChild(r,M,t)}(r);case 230:return function(t){return r=e.visitNode(t.expression,M,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[fe(2),r]:[fe(2)])),n);var r,n}(r);default:return 131072&r.transformFlags?function(r){switch(r.kind){case 204:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(W(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return function(t){var r=X(),n=Y();return he(n,e.visitNode(t.left,M,e.isExpression),t.left),54===t.operatorToken.kind?De(r,n,t.left):be(r,n,t.left),he(n,e.visitNode(t.right,M,e.isExpression),t.right),Q(r),n}(r);if(27===r.operatorToken.kind)return function(t){var r=[];return n(t.left),n(t.right),e.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(W(t)&&r.length>0&&(xe(1,[e.createExpressionStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,M,e.isExpression)))}}(r);var n=e.getMutableClone(r);return n.left=G(e.visitNode(r.left,M,e.isExpression)),n.right=e.visitNode(r.right,M,e.isExpression),n}return e.visitEachChild(r,M,t)}(r);case 1:return function(r){var n,i=r.left,a=r.right;if(W(a)){var o=void 0;switch(i.kind){case 189:o=e.updatePropertyAccess(i,G(e.visitNode(i.expression,M,e.isLeftHandSideExpression)),i.name);break;case 190:o=e.updateElementAccess(i,G(e.visitNode(i.expression,M,e.isLeftHandSideExpression)),G(e.visitNode(i.argumentExpression,M,e.isExpression)));break;default:o=e.visitNode(i,M,e.isExpression)}var s=r.operatorToken.kind;return(n=s)>=60&&n<=71?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(G(o),function(e){switch(e){case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 43;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50;case 71:return 51}}(s),e.visitNode(a,M,e.isExpression)),r)),r):e.updateBinary(r,o,e.visitNode(a,M,e.isExpression))}return e.visitEachChild(r,M,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 205:return function(r){if(W(r.whenTrue)||W(r.whenFalse)){var n=X(),i=X(),a=Y();return De(n,e.visitNode(r.condition,M,e.isExpression),r.condition),he(a,e.visitNode(r.whenTrue,M,e.isExpression),r.whenTrue),ve(i),Q(n),he(a,e.visitNode(r.whenFalse,M,e.isExpression),r.whenFalse),Q(i),a}return e.visitEachChild(r,M,t)}(r);case 207:return function(r){var n,i=X(),a=e.visitNode(r.expression,M,e.isExpression);if(r.asteriskToken){var o=0==(8388608&e.getEmitFlags(r.expression))?e.createValuesHelper(t,a,r):a;!function(e,t){xe(7,[e],t)}(o,r)}else!function(e,t){xe(6,[e],t)}(a,r);return Q(i),n=r,e.setTextRange(e.createCall(e.createPropertyAccess(S,"sent"),void 0,[]),n)}(r);case 187:return function(e){return J(e.elements,void 0,void 0,e.multiLine)}(r);case 188:return function(t){var r=t.properties,n=t.multiLine,i=H(r),a=Y();he(a,e.createObjectLiteral(e.visitNodes(r,M,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,function(r,i){W(i)&&r.length>0&&(ye(e.createExpressionStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,M,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r},[],i);return o.push(n?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(r);case 190:return function(r){if(W(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=G(e.visitNode(r.expression,M,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,M,e.isExpression),n}return e.visitEachChild(r,M,t)}(r);case 191:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,W)){var n=e.createCallBinding(r.expression,m,y,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(G(e.visitNode(i,M,e.isLeftHandSideExpression)),a,J(r.arguments),r),r)}return e.visitEachChild(r,M,t)}(r);case 192:return function(r){if(e.forEach(r.arguments,W)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),m),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(G(e.visitNode(i,M,e.isExpression)),a,J(r.arguments,e.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,M,t)}(r);default:return e.visitEachChild(r,M,t)}}(r):262400&r.transformFlags?e.visitEachChild(r,M,t):r}}function R(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,M,t),void 0,j(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,M,t),i=n,a=o}return i?void f(r):r}function B(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,M,t),void 0,j(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,M,t),i=n,a=o}return r}function j(t){var r=[],n=i,f=a,m=o,g=s,y=c,h=u,v=l,T=_,C=w,E=b,k=D,N=x,A=S;i=!0,a=!1,o=void 0,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,w=1,b=void 0,D=void 0,x=void 0,S=e.createTempVariable(void 0),d();var F=e.addPrologue(r,t.statements,!1,M);z(t.statements,F);var P=Se();return e.insertStatementsAfterStandardPrologue(r,p()),r.push(e.createReturn(P)),i=n,a=f,o=m,s=g,c=y,u=h,l=v,_=T,w=C,b=E,D=k,x=N,S=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function J(t,r,n,i){var a,o=H(t);if(o>0){a=Y();var s=e.visitNodes(t,M,e.isExpression,0,o);he(a,e.createArrayLiteral(r?[r].concat(s):s)),r=void 0}var c=e.reduceLeft(t,function(t,n){if(W(n)&&t.length>0){var o=void 0!==a;a||(a=Y()),he(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,M,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(c):c,i),n)}function z(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?ve(r,t):ye(t)}(i);case 229:return function(t){var r=_e(t.label?e.idText(t.label):void 0);r>0?ve(r,t):ye(t)}(i);case 230:return function(t){xe(8,[e.visitNode(t.expression,M,e.isExpression)],t)}(i);case 231:return function(t){var r,n,i;W(t)?(r=G(e.visitNode(t.expression,M,e.isExpression)),n=X(),i=X(),Q(n),$({kind:1,expression:r,startLabel:n,endLabel:i}),K(t.statement),e.Debug.assert(1===te()),Q(Z().endLabel)):ye(e.visitNode(t,M,e.isStatement))}(i);case 232:return function(t){if(W(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=($({kind:2,isScript:!1,breakLabel:p=X()}),p),a=G(e.visitNode(t.expression,M,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(e.createCaseClause(e.visitNode(u.expression,M,e.isExpression),[me(o[c],u.expression)]))}else d++}_.length&&(ye(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}ve(s>=0?o[s]:i);for(var c=0;c0);l++)u.push(q(i));u.length&&(ye(e.createExpressionStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function q(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,M,e.isExpression)),t)}function W(e){return!!e&&0!=(131072&e.transformFlags)}function H(e){for(var t=e.length,r=0;r=0;r--){var n=u[r];if(!ce(n))break;if(n.labelText===e)return!0}return!1}function _e(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(ce(r=u[t])&&r.labelText===e)return r.breakLabel;if(se(r)&&le(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(se(r=u[t]))return r.breakLabel}return 0}function de(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(ue(r=u[t])&&le(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(ue(r=u[t]))return r.continueLabel}return 0}function pe(t){if(void 0!==t&&t>0){void 0===_&&(_=[]);var r=e.createLiteral(-1);return void 0===_[t]?_[t]=[r]:_[t].push(r),r}return e.createOmittedExpression()}function fe(t){var r=e.createLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function me(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([fe(3),pe(t)])),r)}function ge(){xe(0)}function ye(e){e?xe(1,[e]):ge()}function he(e,t,r){xe(2,[e,t],r)}function ve(e,t){xe(3,[e],t)}function be(e,t,r){xe(4,[e,t],r)}function De(e,t,r){xe(5,[e,t],r)}function xe(e,t,r){void 0===b&&(b=[],D=[],x=[]),void 0===l&&Q(X());var n=b.length;b[n]=e,D[n]=t,x[n]=r}function Se(){I=0,O=0,T=void 0,C=!1,E=!1,k=void 0,N=void 0,A=void 0,F=void 0,P=void 0;var r=function(){if(b){for(var t=0;t0)),524288))}function Te(e){(function(e){if(!E)return!0;if(!l||!_)return!1;for(var t=0;t=0;r--){var n=P[r];N=[e.createWith(n.expression,e.createBlock(N))]}if(F){var i=F.startLabel,a=F.catchLabel,o=F.finallyLabel,s=F.endLabel;N.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(S,"trys"),"push"),void 0,[e.createArrayLiteral([pe(i),pe(a),pe(o),pe(s)])]))),F=void 0}t&&N.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(S,"label"),e.createLiteral(O+1))))}k.push(e.createCaseClause(e.createLiteral(O),N||[])),N=void 0}function Ee(e){if(l)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 };'}}(c||(c={})),function(e){e.transformModule=function(n){var i=n.startLexicalEnvironment,a=n.endLexicalEnvironment,o=n.hoistVariableDeclaration,s=n.getCompilerOptions(),c=n.getEmitResolver(),u=n.getEmitHost(),l=e.getEmitScriptTarget(s),_=e.getEmitModuleKind(s),d=n.onSubstituteNode,p=n.onEmitNode;n.onSubstituteNode=function(t,r){return(r=d(t,r)).id&&g[r.id]?r:1===t?function(t){switch(t.kind){case 72:return H(t);case 204:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=G(t.left);if(r){for(var n=t,i=0,a=r;i=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t),t)],l>=2?2:0))));if(L(t)){var a=e.getOriginalNodeId(t);v[a]=R(v[a],t)}else r=R(r,t);return e.singleOrMany(r)}(t);case 248:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),_!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(t.name,I(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,I(t))],l>=2?2:0)),t),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(e.getExportName(t),e.getLocalName(t))),t),t))),L(t)){var n=e.getOriginalNodeId(t);v[n]=B(v[n],t)}else r=B(r,t);return e.singleOrMany(r)}(t);case 255:return function(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var i=[];_!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,I(t))])),t),t));for(var a=0,o=t.exportClause.elements;a(e.isExportName(r)?1:0);return!1}(t.left)?e.flattenDestructuringAssignment(t,A,n,0,!1,O):e.visitEachChild(t,A,n)}(t):e.visitEachChild(t,A,n):t}function F(t,r){var i,a=e.createUniqueName("resolve"),o=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,a),e.createParameter(void 0,void 0,void 0,o)],u=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),a,o]))]);l>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var _=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return s.esModuleInterop?(n.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(_,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):_}function P(t,r){var i,a=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),o=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return s.esModuleInterop&&(n.requestEmitHelper(e.importStarHelper),o=e.createCall(e.getHelperName("__importStar"),void 0,[o])),l>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,o):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(o)])),r&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(a,"then"),void 0,[i])}function w(t,r){return!s.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?(n.requestEmitHelper(e.importStarHelper),e.createCall(e.getHelperName("__importStar"),void 0,[r])):e.getImportNeedsImportDefaultHelper(t)?(n.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getHelperName("__importDefault"),void 0,[r])):r}function I(t){var r=e.getExternalModuleNameLiteral(t,f,u,c,s),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function O(t,r,n){var i=G(t);if(i){for(var a=e.isExportName(t)?r:e.createAssignment(t,r),o=0,s=i;o0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,function(e){return t(e,n)})}e.getDeclarationDiagnostics=function(t,r,n){if(n&&e.isSourceFileJS(n))return[];var a=t.getCompilerOptions();return e.transformNodes(r,t,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJS),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,c,u,l,_,d,p,f,m,g,y=function(){return e.Debug.fail("Diagnostic emitted without context")},h=y,v=!0,b=!1,D=!1,x=!1,S=!1,T=t.getEmitHost(),C={trackSymbol:function(e,t,r){if(262144&e.flags)return;w(E.isSymbolAccessible(e,t,r,!0)),P(E.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"this"))},reportInaccessibleUniqueSymbolError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(p),r))},moduleResolverHost:T,trackReferencedAmbientModule:function(t,r){var n=E.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return P(n);var i=e.getSourceFileOfNode(t);m.set(""+e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){b||(d||(d=[])).push(e)}},E=t.getEmitResolver(),k=t.getCompilerOptions(),N=e.getNewLineCharacter(k),A=k.noResolve,F=k.stripInternal;return function(r){if(284===r.kind&&(r.isDeclarationFile||e.isSourceFileJS(r)))return r;if(285===r.kind){b=!0,m=e.createMap(),g=e.createMap();var n=!1,a=e.createBundle(e.map(r.sourceFiles,function(r){if(!r.isDeclarationFile&&!e.isSourceFileJS(r)){if(n=n||r.hasNoDefaultLib,f=r,i=r,u=void 0,_=!1,l=e.createMap(),h=y,x=!1,S=!1,I(r,m),O(r,g),e.isExternalModule(r)){D=!1,v=!1;var a=e.visitNodes(r.statements,Q),o=e.updateSourceFileNode(r,[e.createModuleDeclaration([],[e.createModifier(125)],e.createLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),e.createModuleBlock(e.setTextRange(e.createNodeArray(H(a)),r.statements)))],!0,[],[],!1,[]);return o}v=!0;var s=e.visitNodes(r.statements,Q);return e.updateSourceFileNode(r,H(s),!0,[],[],!1,[])}}),e.mapDefined(r.prepends,function(t){if(287===t.kind){var r=e.createUnparsedSourceFile(t,"dts",F);return n=n||!!r.hasNoDefaultLib,I(r,m),P(r.typeReferenceDirectives),O(r,g),r}return t}));a.syntheticFileReferences=[],a.syntheticTypeReferences=L(),a.syntheticLibReferences=M(),a.hasNoDefaultLib=n;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,T,!0).declarationFilePath)),s=B(a.syntheticFileReferences,o);return m.forEach(s),a}v=!0,x=!1,S=!1,i=r,f=r,h=y,b=!1,D=!1,_=!1,u=void 0,l=e.createMap(),c=void 0,m=I(f,e.createMap()),g=O(f,e.createMap());var p=[],C=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,T,!0).declarationFilePath)),E=B(p,C),k=e.visitNodes(r.statements,Q),N=e.setTextRange(e.createNodeArray(H(k)),r.statements);m.forEach(E);var A=e.filter(N,e.isAnyImportSyntax);e.isExternalModule(r)&&(!D||x&&!S)&&(N=e.setTextRange(e.createNodeArray(N.concat([e.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0)])),N));var w=e.updateSourceFileNode(r,N,!0,p,L(),r.hasNoDefaultLib,M());return w.exportedModulesFromDeclarationEmit=d,w;function M(){return e.map(e.arrayFrom(g.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function L(){return c?e.mapDefined(e.arrayFrom(c.keys()),R):[]}function R(t){if(A)for(var r=0,n=A;r1){var a=n.slice(1),o=e.guessIndentation(a);r=[n[0]].concat(e.map(a,function(e){return e.slice(o)})).join(N)}e.addSyntheticLeadingComment(i,t.kind,r,t.hasTrailingNewLine)}},u=0,l=o;u0?e.parameters[0].type:void 0}e.transformDeclarations=i}(c||(c={})),function(e){var t,r;function n(e,t){return t}function i(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.getTransformers=function(t,r){var n=t.jsx,i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&r.before),o.push(e.transformTypeScript),2===n&&o.push(e.transformJsx),i<7&&o.push(e.transformESNext),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&r.after),o},e.noEmitSubstitution=n,e.noEmitNotification=i,e.transformNodes=function(t,r,a,o,s,c){for(var u,l,_,d=new Array(317),p=[],f=[],m=0,g=!1,y=n,h=i,v=0,b=[],D={getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),p[m]=u,f[m]=l,m++,u=void 0,l=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is already suspended."),g=!0},resumeLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(g,"Lexical environment is not suspended."),g=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),(u||l)&&(l&&(t=l.slice()),u)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));t?t.push(r):t=[r]}return u=p[--m],l=f[m],0===m&&(p=[],f=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);u?u.push(r):u=[r]},hoistFunctionDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),l?l.push(t):l=[t]},requestEmitHelper:function(t){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),_=e.append(_,t)},readEmitHelpers:function(){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed.");var t=_;return _=void 0,t},enableSubstitution:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=1},enableEmitNotification:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=2},isSubstitutionEnabled:k,isEmitNotificationEnabled:N,get onSubstituteNode(){return y},set onSubstituteNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),y=t},get onEmitNode(){return h},set onEmitNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),h=t},addDiagnostic:function(e){b.push(e)}},x=0,S=o;x"],e[8192]=["[","]"],e}(),i={pos:-1,end:-1};function a(t,r,n,i,a,s){void 0===i&&(i=!1);var u=e.isArray(n)?n:e.getSourceFilesToEmit(t,n),l=t.getCompilerOptions();if(l.outFile||l.out){var _=t.getPrependNodes();if(u.length||_.length){var d=e.createBundle(u,_);if(m=r(c(d,t,i),d))return m}}else{if(!a)for(var p=0,f=u;p"),St(),de(e.type),qt(e)}(n);case 294:return function(e){vt("function"),lt(e,e.parameters),yt(":"),de(e.type)}(n);case 166:return function(e){Vt(e),vt("new"),St(),ut(e,e.typeParameters),lt(e,e.parameters),St(),yt("=>"),St(),de(e.type),qt(e)}(n);case 167:return function(e){vt("typeof"),St(),de(e.exprName)}(n);case 168:return function(t){yt("{");var r=1&e.getEmitFlags(t)?768:32897;dt(t,t.members,524288|r),yt("}")}(n);case 169:return function(e){de(e.elementType),yt("["),yt("]")}(n);case 170:return function(e){yt("["),dt(e,e.elementTypes,528),yt("]")}(n);case 171:return function(e){de(e.type),yt("?")}(n);case 173:return function(e){dt(e,e.types,516)}(n);case 174:return function(e){dt(e,e.types,520)}(n);case 175:return function(e){de(e.checkType),St(),vt("extends"),St(),de(e.extendsType),St(),yt("?"),St(),de(e.trueType),St(),yt(":"),St(),de(e.falseType)}(n);case 176:return function(e){vt("infer"),St(),de(e.typeParameter)}(n);case 177:return function(e){yt("("),de(e.type),yt(")")}(n);case 211:return function(e){fe(e.expression),ct(e,e.typeArguments)}(n);case 178:return void vt("this");case 179:return function(e){Ft(e.operator,vt),St(),de(e.type)}(n);case 180:return function(e){de(e.objectType),yt("["),de(e.indexType),yt("]")}(n);case 181:return function(t){var r=e.getEmitFlags(t);yt("{"),1&r?St():(Ct(),Et());t.readonlyToken&&(de(t.readonlyToken),133!==t.readonlyToken.kind&&vt("readonly"),St());yt("["),me(0,t.typeParameter)(3,t.typeParameter),yt("]"),t.questionToken&&(de(t.questionToken),56!==t.questionToken.kind&&yt("?"));yt(":"),St(),de(t.type),ht(),1&r?St():(Ct(),kt());yt("}")}(n);case 182:return function(e){fe(e.literal)}(n);case 183:return function(e){e.isTypeOf&&(vt("typeof"),St());vt("import"),yt("("),de(e.argument),yt(")"),e.qualifier&&(yt("."),de(e.qualifier));ct(e,e.typeArguments)}(n);case 289:return void yt("*");case 290:return void yt("?");case 291:return function(e){yt("?"),de(e.type)}(n);case 292:return function(e){yt("!"),de(e.type)}(n);case 293:return function(e){de(e.type),yt("=")}(n);case 172:case 295:return function(e){yt("..."),de(e.type)}(n);case 184:return function(e){yt("{"),dt(e,e.elements,525136),yt("}")}(n);case 185:return function(e){yt("["),dt(e,e.elements,524880),yt("]")}(n);case 186:return function(e){de(e.dotDotDotToken),e.propertyName&&(de(e.propertyName),yt(":"),St());de(e.name),nt(e.initializer,e.name.end,e)}(n);case 216:return function(e){fe(e.expression),de(e.literal)}(n);case 217:return void ht();case 218:return function(e){Ee(e,!e.multiLine&&Jt(e))}(n);case 219:return function(e){tt(e,e.modifiers),de(e.declarationList),ht()}(n);case 220:return ke(!1);case 221:return function(t){fe(t.expression),(!e.isJsonSourceFile(a)||e.nodeIsSynthesized(t.expression))&&ht()}(n);case 222:return function(e){var t=Fe(91,e.pos,vt,e);St(),Fe(20,t,yt,e),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.thenStatement),e.elseStatement&&(Pt(e),Fe(83,e.thenStatement.end,vt,e),222===e.elseStatement.kind?(St(),de(e.elseStatement)):ot(e,e.elseStatement))}(n);case 223:return function(t){Fe(82,t.pos,vt,t),ot(t,t.statement),e.isBlock(t.statement)?St():Pt(t);Ne(t,t.statement.end),yt(";")}(n);case 224:return function(e){Ne(e,e.pos),ot(e,e.statement)}(n);case 225:return function(e){var t=Fe(89,e.pos,vt,e);St();var r=Fe(20,t,yt,e);Ae(e.initializer),r=Fe(26,e.initializer?e.initializer.end:r,yt,e),at(e.condition),r=Fe(26,e.condition?e.condition.end:r,yt,e),at(e.incrementor),Fe(21,e.incrementor?e.incrementor.end:r,yt,e),ot(e,e.statement)}(n);case 226:return function(e){var t=Fe(89,e.pos,vt,e);St(),Fe(20,t,yt,e),Ae(e.initializer),St(),Fe(93,e.initializer.end,vt,e),St(),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.statement)}(n);case 227:return function(e){var t=Fe(89,e.pos,vt,e);St(),function(e){e&&(de(e),St())}(e.awaitModifier),Fe(20,t,yt,e),Ae(e.initializer),St(),Fe(147,e.initializer.end,vt,e),St(),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.statement)}(n);case 228:return function(e){Fe(78,e.pos,vt,e),it(e.label),ht()}(n);case 229:return function(e){Fe(73,e.pos,vt,e),it(e.label),ht()}(n);case 230:return function(e){Fe(97,e.pos,vt,e),at(e.expression),ht()}(n);case 231:return function(e){var t=Fe(108,e.pos,vt,e);St(),Fe(20,t,yt,e),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.statement)}(n);case 232:return function(e){var t=Fe(99,e.pos,vt,e);St(),Fe(20,t,yt,e),fe(e.expression),Fe(21,e.expression.end,yt,e),St(),de(e.caseBlock)}(n);case 233:return function(e){de(e.label),Fe(57,e.label.end,yt,e),St(),de(e.statement)}(n);case 234:return function(e){Fe(101,e.pos,vt,e),at(e.expression),ht()}(n);case 235:return function(e){Fe(103,e.pos,vt,e),St(),de(e.tryBlock),e.catchClause&&(Pt(e),de(e.catchClause));e.finallyBlock&&(Pt(e),Fe(88,(e.catchClause||e.tryBlock).end,vt,e),St(),de(e.finallyBlock))}(n);case 236:return function(e){Nt(79,e.pos,vt),ht()}(n);case 237:return function(e){de(e.name),rt(e.type),nt(e.initializer,e.type?e.type.end:e.name.end,e)}(n);case 238:return function(t){vt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),St(),dt(t,t.declarations,528)}(n);case 239:return function(e){Pe(e)}(n);case 240:return function(e){Be(e)}(n);case 241:return function(e){st(e,e.decorators),tt(e,e.modifiers),vt("interface"),St(),de(e.name),ut(e,e.typeParameters),dt(e,e.heritageClauses,512),St(),yt("{"),dt(e,e.members,129),yt("}")}(n);case 242:return function(e){st(e,e.decorators),tt(e,e.modifiers),vt("type"),St(),de(e.name),ut(e,e.typeParameters),St(),yt("="),St(),de(e.type),ht()}(n);case 243:return function(e){tt(e,e.modifiers),vt("enum"),St(),de(e.name),St(),yt("{"),dt(e,e.members,145),yt("}")}(n);case 244:return function(e){tt(e,e.modifiers),512&~e.flags&&(vt(16&e.flags?"namespace":"module"),St());de(e.name);var t=e.body;if(!t)return ht();for(;244===t.kind;)yt("."),de(t.name),t=t.body;St(),de(t)}(n);case 245:return function(t){Vt(t),e.forEach(t.statements,Ht),Ee(t,Jt(t)),qt(t)}(n);case 246:return function(e){Fe(18,e.pos,yt,e),dt(e,e.clauses,129),Fe(19,e.clauses.end,yt,e,!0)}(n);case 247:return function(e){var t=Fe(85,e.pos,vt,e);St(),t=Fe(119,t,vt,e),St(),t=Fe(131,t,vt,e),St(),de(e.name),ht()}(n);case 248:return function(e){tt(e,e.modifiers),Fe(92,e.modifiers?e.modifiers.end:e.pos,vt,e),St(),de(e.name),St(),Fe(59,e.name.end,yt,e),St(),function(e){72===e.kind?fe(e):de(e)}(e.moduleReference),ht()}(n);case 249:return function(e){tt(e,e.modifiers),Fe(92,e.modifiers?e.modifiers.end:e.pos,vt,e),St(),e.importClause&&(de(e.importClause),St(),Fe(144,e.importClause.end,vt,e),St());fe(e.moduleSpecifier),ht()}(n);case 250:return function(e){de(e.name),e.name&&e.namedBindings&&(Fe(27,e.name.end,yt,e),St());de(e.namedBindings)}(n);case 251:return function(e){var t=Fe(40,e.pos,yt,e);St(),Fe(119,t,vt,e),St(),de(e.name)}(n);case 252:return function(e){je(e)}(n);case 253:return function(e){Je(e)}(n);case 254:return function(e){var t=Fe(85,e.pos,vt,e);St(),e.isExportEquals?Fe(59,t,bt,e):Fe(80,t,vt,e);St(),fe(e.expression),ht()}(n);case 255:return function(e){var t=Fe(85,e.pos,vt,e);St(),e.exportClause?de(e.exportClause):t=Fe(40,t,yt,e);if(e.moduleSpecifier){St();var r=e.exportClause?e.exportClause.end:t;Fe(144,r,vt,e),St(),fe(e.moduleSpecifier)}ht()}(n);case 256:return function(e){je(e)}(n);case 257:return function(e){Je(e)}(n);case 258:return;case 259:return function(e){vt("require"),yt("("),fe(e.expression),yt(")")}(n);case 11:return function(e){p.writeLiteral(e.text)}(n);case 262:case 265:return function(t){yt("<"),e.isJsxOpeningElement(t)&&(ze(t.tagName),ct(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&St(),de(t.attributes));yt(">")}(n);case 263:case 266:return function(t){yt("")}(n);case 267:return function(e){de(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",yt,e.initializer,de)}(n);case 268:return function(e){dt(e,e.properties,262656)}(n);case 269:return function(e){yt("{..."),fe(e.expression),yt("}")}(n);case 270:return function(e){e.expression&&(yt("{"),de(e.dotDotDotToken),fe(e.expression),yt("}"))}(n);case 271:return function(e){Fe(74,e.pos,vt,e),St(),fe(e.expression),Ke(e,e.statements,e.expression.end)}(n);case 272:return function(e){var t=Fe(80,e.pos,vt,e);Ke(e,e.statements,t)}(n);case 273:return function(e){St(),Ft(e.token,vt),St(),dt(e,e.types,528)}(n);case 274:return function(e){var t=Fe(75,e.pos,vt,e);St(),e.variableDeclaration&&(Fe(20,t,yt,e),de(e.variableDeclaration),Fe(21,e.variableDeclaration.end,yt,e),St());de(e.block)}(n);case 275:return function(t){de(t.name),yt(":"),St();var r=t.initializer;if(fr&&0==(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);fr(n.pos)}fe(r)}(n);case 276:return function(e){de(e.name),e.objectAssignmentInitializer&&(St(),yt("="),St(),fe(e.objectAssignmentInitializer))}(n);case 277:return function(e){e.expression&&(Fe(25,e.pos,yt,e),fe(e.expression))}(n);case 278:return function(e){de(e.name),nt(e.initializer,e.name.end,e)}(n);case 304:case 310:return function(e){qe(e.tagName),He(e.typeExpression),St(),e.isBracketed&&yt("[");de(e.name),e.isBracketed&&yt("]");We(e.comment)}(n);case 305:case 307:case 306:case 303:return qe((i=n).tagName),He(i.typeExpression),void We(i.comment);case 300:return function(e){qe(e.tagName),St(),yt("{"),de(e.class),yt("}"),We(e.comment)}(n);case 308:return function(e){qe(e.tagName),He(e.constraint),St(),dt(e,e.typeParameters,528),We(e.comment)}(n);case 309:return function(e){qe(e.tagName),e.typeExpression&&(288===e.typeExpression.kind?He(e.typeExpression):(St(),yt("{"),I("Object"),e.typeExpression.isArrayType&&(yt("["),yt("]")),yt("}")));e.fullName&&(St(),de(e.fullName));We(e.comment),e.typeExpression&&297===e.typeExpression.kind&&Ue(e.typeExpression)}(n);case 302:return function(e){qe(e.tagName),e.name&&(St(),de(e.name));We(e.comment),Ve(e.typeExpression)}(n);case 298:return Ve(n);case 297:return Ue(n);case 301:case 299:return function(e){qe(e.tagName),We(e.comment)}(n);case 296:return function(e){if(I("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r=1&&!e.isJsonSourceFile(a)?64:0;dt(t,t.properties,526226|i|n),r&&kt()}(n);case 189:return function(r){var n=!1,i=!1,o=e.skipTrivia(a.text,r.expression.end,!1,!0),s=e.skipTrivia(a.text,o),c=s+1;if(!(131072&e.getEmitFlags(r))){var u=e.createToken(24);u.pos=r.expression.end,u.end=c,n=jt(r,r.expression,u),i=jt(r,u,r.name)}fe(r.expression),It(n,!1);var l=o!==s;!n&&function(r,n){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var i=Ut(r,!0);return!r.numericLiteralFlags&&!e.stringContains(i,e.tokenToString(24))&&(!n||t.removeComments)}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var a=e.getConstantValue(r);return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a&&t.removeComments}}(r.expression,l)&&yt(".");Fe(24,r.expression.end,yt,r),It(i,!1),de(r.name),Ot(n,i)}(n);case 190:return function(e){fe(e.expression),Fe(22,e.expression.end,yt,e),fe(e.argumentExpression),Fe(23,e.argumentExpression.end,yt,e)}(n);case 191:return function(e){fe(e.expression),ct(e,e.typeArguments),pt(e,e.arguments,2576)}(n);case 192:return function(e){Fe(95,e.pos,vt,e),St(),fe(e.expression),ct(e,e.typeArguments),pt(e,e.arguments,18960)}(n);case 193:return function(e){fe(e.tag),ct(e,e.typeArguments),St(),fe(e.template)}(n);case 194:return function(e){yt("<"),de(e.type),yt(">"),fe(e.expression)}(n);case 195:return function(e){var t=Fe(20,e.pos,yt,e);fe(e.expression),Fe(21,e.expression?e.expression.end:t,yt,e)}(n);case 196:return function(e){Yt(e.name),Pe(e)}(n);case 197:return function(e){st(e,e.decorators),tt(e,e.modifiers),Ie(e,Ce)}(n);case 198:return function(e){Fe(81,e.pos,vt,e),St(),fe(e.expression)}(n);case 199:return function(e){Fe(104,e.pos,vt,e),St(),fe(e.expression)}(n);case 200:return function(e){Fe(106,e.pos,vt,e),St(),fe(e.expression)}(n);case 201:return function(e){Fe(122,e.pos,vt,e),St(),fe(e.expression)}(n);case 202:return function(e){Ft(e.operator,bt),function(e){var t=e.operand;return 202===t.kind&&(38===e.operator&&(38===t.operator||44===t.operator)||39===e.operator&&(39===t.operator||45===t.operator))}(e)&&St();fe(e.operand)}(n);case 203:return function(e){fe(e.operand),Ft(e.operator,bt)}(n);case 204:return function(e){var t=27!==e.operatorToken.kind,r=jt(e,e.left,e.operatorToken),n=jt(e,e.operatorToken,e.right);fe(e.left),It(r,t),dr(e.operatorToken.pos),At(e.operatorToken,93===e.operatorToken.kind?vt:bt),fr(e.operatorToken.end,!0),It(n,!0),fe(e.right),Ot(r,n)}(n);case 205:return function(e){var t=jt(e,e.condition,e.questionToken),r=jt(e,e.questionToken,e.whenTrue),n=jt(e,e.whenTrue,e.colonToken),i=jt(e,e.colonToken,e.whenFalse);fe(e.condition),It(t,!0),de(e.questionToken),It(r,!0),fe(e.whenTrue),Ot(t,r),It(n,!0),de(e.colonToken),It(i,!0),fe(e.whenFalse),Ot(n,i)}(n);case 206:return function(e){de(e.head),dt(e,e.templateSpans,262144)}(n);case 207:return function(e){Fe(117,e.pos,vt,e),de(e.asteriskToken),at(e.expression)}(n);case 208:return function(e){Fe(25,e.pos,yt,e),fe(e.expression)}(n);case 209:return function(e){Yt(e.name),Be(e)}(n);case 210:return;case 212:return function(e){fe(e.expression),e.type&&(St(),vt("as"),St(),de(e.type))}(n);case 213:return function(e){fe(e.expression),bt("!")}(n);case 214:return function(e){Nt(e.keywordToken,e.pos,yt),yt("."),de(e.name)}(n);case 260:return function(e){de(e.openingElement),dt(e,e.children,262144),de(e.closingElement)}(n);case 261:return function(e){yt("<"),ze(e.tagName),ct(e,e.typeArguments),St(),de(e.attributes),yt("/>")}(n);case 264:return function(e){de(e.openingFragment),dt(e,e.children,262144),de(e.closingFragment)}(n);case 313:return function(e){fe(e.expression)}(n);case 314:return function(e){pt(e,e.elements,528)}(n)}}function ve(e,t){ge(1,t)(e,T(e,t))}function be(r){var n=!1,i=285===r.kind?r:void 0;if(!i||P!==e.ModuleKind.None){for(var o=i?i.prepends.length:0,s=i?i.sourceFiles.length+o:1,c=0;c'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"no-default-lib"}),Ct()}if(a&&a.moduleName&&(xt('/// '),Ct()),a&&a.amdDependencies)for(var o=0,s=a.amdDependencies;o'):xt('/// '),Ct()}for(var u=0,l=t;u'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"reference",data:_.fileName}),Ct()}for(var d=0,f=r;d'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"type",data:_.fileName}),Ct()}for(var m=0,g=n;m'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"lib",data:_.fileName}),Ct()}}function Ye(t){var r=t.statements;Vt(t),e.forEach(t.statements,Ht),be(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&Ge(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),dt(t,r,1,-1===n?r.length:n),qt(t)}function Xe(t,r,n,i){for(var a=!!r,o=0;o=i.length||0===s;if(u&&32768&a)return C&&C(i),void(E&&E(i));if(15360&a&&(yt(function(e){return n[15360&e][0]}(a)),u&&!c&&fr(i.pos,!0)),C&&C(i),u)1&a?Ct():256&a&&!(524288&a)&&St();else{var l=0==(262144&a),_=l;Mt(r,i,a)?(Ct(),_=!1):256&a&&St(),128&a&&Et();for(var d=void 0,p=void 0,f=!1,m=0;m=0&&xr(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&xr(u,i);return i}(i,t,n,r,Ft)}function At(t,r){k&&k(t),r(e.tokenToString(t.kind)),N&&N(t)}function Ft(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Pt(t){1&e.getEmitFlags(t)?St():Ct()}function wt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i0||o>0)&&a!==o&&(c||cr(a,s),(!c||a>=0&&0!=(512&n))&&(J=a),(!u||o>=0&&0!=(1024&n))&&(z=o,238===r.kind&&(K=o))),e.forEach(e.getSyntheticLeadingComments(r),ir),H();var p=ge(2,r);2048&n?(V=!0,p(t,r),V=!1):p(t,r),W(),e.forEach(e.getSyntheticTrailingComments(r),ar),(a>0||o>0)&&a!==o&&(J=l,z=_,K=d,!u&&s&&function(e){yr(e,pr)}(o)),H()}function ir(e){2===e.kind&&p.writeLine(),or(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function ar(e){p.isAtStartOfLine()||p.writeSpace(" "),or(e),e.hasTrailingNewLine&&p.writeLine()}function or(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,p,0,r.length,F)}function sr(t,r,n){W();var i,o,s=r.pos,c=r.end,u=e.getEmitFlags(t),l=V||c<0||0!=(1024&u);s<0||0!=(512&u)||(i=r,(o=e.emitDetachedComments(a.text,_e(),p,hr,i,F,V))&&(v?v.push(o):v=[o])),H(),2048&u&&!V?(V=!0,n(t),V=!1):n(t),W(),l||(cr(r.end,!0),U&&!p.isAtStartOfLine()&&p.writeLine()),H()}function cr(e,t){U=!1,t?gr(e,_r):0===e&&gr(e,ur)}function ur(t,r,n,i,o){(function(t,r){return e.isRecognizedTripleSlashComment(a.text,t,r)})(t,r)&&_r(t,r,n,i,o)}function lr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function _r(t,r,n,i,o){lr(a.text,t)&&(U||(e.emitNewLineBeforeLeadingCommentOfPosition(_e(),p,o,t),U=!0),Dr(t),e.writeCommentRange(a.text,_e(),p,t,r,F),Dr(r),i?p.writeLine():3===n&&p.writeSpace(" "))}function dr(e){V||-1===e||cr(e,!0)}function pr(t,r,n,i){lr(a.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Dr(t),e.writeCommentRange(a.text,_e(),p,t,r,F),Dr(r),i&&p.writeLine())}function fr(e,t){V||(W(),yr(e,t?pr:mr),H())}function mr(t,r,n,i){Dr(t),e.writeCommentRange(a.text,_e(),p,t,r,F),Dr(r),i?p.writeLine():p.writeSpace(" ")}function gr(t,r){!a||-1!==J&&t===J||(function(t){return void 0!==v&&e.last(v).nodePos===t}(t)?function(t){var r=e.last(v).detachedCommentEndPos;v.length-1?v.pop():v=void 0;e.forEachLeadingCommentRange(a.text,r,t,r)}(r):e.forEachLeadingCommentRange(a.text,t,r,t))}function yr(t,r){a&&(-1===z||t!==z&&t!==K)&&e.forEachTrailingCommentRange(a.text,t,r)}function hr(t,r,n,i,o,s){lr(a.text,i)&&(Dr(i),e.writeCommentRange(t,r,n,i,o,s),Dr(o))}function vr(t,r){var n=ge(3,r);if(e.isUnparsedSource(r)||e.isUnparsedPrepend(r))n(t,r);else if(e.isUnparsedNode(r)){var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(r.parent);i&&g&&g.appendSourceMap(p.getLine(),p.getColumn(),i,r.parent.sourceMapPath,r.parent.getLineAndCharacterOfPosition(r.pos),r.parent.getLineAndCharacterOfPosition(r.end)),n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=void 0===c?y:c,l=e.getEmitFlags(r);312!==r.kind&&0==(16&l)&&o>=0&&xr(u,br(u,o)),64&l?(B=!0,n(t,r),B=!1):n(t,r),312!==r.kind&&0==(32&l)&&s>=0&&xr(u,s)}}function br(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Dr(t){if(!(B||e.positionIsSynthesized(t)||Tr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;g.addMapping(p.getLine(),p.getColumn(),j,n,i,void 0)}}function xr(e,t){if(e!==y){var r=y;Sr(e),Dr(t),Sr(r)}else Dr(t)}function Sr(e){B||(y=e,Tr(e)||(j=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(j,e.text)))}function Tr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getOutputPathForBuildInfo=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=l,e.getOutputDeclarationFileName=d,e.getAllProjectOutputs=function(t,r){var n,i=function(e){return e&&(n||(n=[])).push(e)};if(t.options.outFile||t.options.out){var a=s(t.options,!1),c=a.jsFilePath,u=a.sourceMapFilePath,l=a.declarationFilePath,_=a.declarationMapPath,f=a.buildInfoPath;i(c),i(u),i(l),i(_),i(f)}else{for(var m=0,g=t.fileNames;me.getRootLength(t)&&!function(e){return!!a.has(e)||!!n.directoryExists(e)&&(a.set(e,!0),!0)}(t)&&(s(e.getDirectoryPath(t)),_.createDirectory?_.createDirectory(t):n.createDirectory(t))}function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var u=e.getNewLineCharacter(t,function(){return n.newLine}),l=n.realpath&&function(e){return n.realpath(e)},_={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=_.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(t){return e.combinePaths(c(),e.getDefaultLibFileName(t))},writeFile:function(r,a,o,c){try{e.performance.mark("beforeIOWrite"),s(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&n.createHash&&n.getModifiedTime?function(t,r,a){i||(i=e.createMap());var o=n.createHash(r),s=n.getModifiedTime(t);if(s){var c=i.get(t);if(c&&c.byteOrderMark===a&&c.hash===o&&c.mtime.getTime()===s.getTime())return}n.writeFile(t,r,a);var u=n.getModifiedTime(t)||e.missingFileModifiedTime;i.set(t,{hash:o,byteOrderMark:a,mtime:u})}(r,a,o):n.writeFile(r,a,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){c&&c(e.message)}},getCurrentDirectory:e.memoize(function(){return n.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return u},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+u)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:l,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)}};return _}function c(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+D(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+n}return n}e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0})},e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=a,e.createCompilerHost=o,e.createCompilerHostWorker=s,e.changeCompilerHostLikeToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,u=e.createMap(),l=e.createMap(),_=e.createMap(),d=e.createMap(),p=function(e,r){var n=i.call(t,r);return u.set(e,void 0!==n&&n),n};t.readFile=function(n){var a=r(n),o=u.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?p(a,n):i.call(t,n)};var f=n?function(t,i,a,o){var s=r(t),c=d.get(s);if(c)return c;var u=n(t,i,a,o);return u&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&d.set(s,u),u}:void 0;return t.fileExists=function(e){var n=r(e),i=l.get(n);if(void 0!==i)return i;var o=a.call(t,e);return l.set(n,!!o),o},c&&(t.writeFile=function(e,n,i,a,o){var s=r(e);l.delete(s);var _=u.get(s);if(void 0!==_&&_!==n)u.delete(s),d.delete(s);else if(f){var p=d.get(s);p&&p.text!==n&&d.delete(s)}c.call(t,e,n,i,a,o)}),o&&s&&(t.directoryExists=function(e){var n=r(e),i=_.get(n);if(void 0!==i)return i;var a=o.call(t,e);return _.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);_.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:f,readFileWithCache:function(e){var t=r(e),n=u.get(t);return void 0!==n?!1!==n?n:void 0:p(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return e.getEmitDeclarations(t.getCompilerOptions())&&e.addRange(i,t.getDeclarationDiagnostics(r,n)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n=4,D=(m+1+"").length;b&&(D=Math.max(d.length,D));for(var x="",S=c;S<=m;S++){x+=o.getNewLine(),b&&c+10||s.length>0)return{diagnostics:e.concatenate(c,s),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var u=Je().getEmitResolver(A.outFile||A.out?void 0:r,i);e.performance.mark("beforeEmit");var l=a?[]:e.getTransformers(A,o),_=e.emitFiles(u,Re(n),r,a,l,o&&o.afterDeclarations);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),_}(_,t,r,n,i,a)})},getCurrentDirectory:function(){return $},getNodeCount:function(){return Je().getNodeCount()},getIdentifierCount:function(){return Je().getIdentifierCount()},getSymbolCount:function(){return Je().getSymbolCount()},getTypeCount:function(){return Je().getTypeCount()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return L},isSourceFileFromExternalLibrary:je,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!A.noLib)return!1;var r=W.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return A.lib?e.some(A.lib,function(n){return r(t.fileName,e.combinePaths(X,n))}):r(t.fileName,Y())},dropDiagnosticsProducingTypeChecker:function(){y=void 0},getSourceFileFromReference:function(e,t){return at(n(t.fileName,e.fileName),function(e){return de.get(Oe(e))||void 0})},getLibFileFromReference:function(t){var r=t.fileName.toLocaleLowerCase(),n=e.libMap.get(r);if(n)return Ue(e.combinePaths(X,n))},sourceFileToPackageName:le,redirectTargetsMap:_e,isEmittedFile:function(t){if(A.noEmit)return!1;var r=Oe(t);if(Ve(r))return!1;var n=A.outFile||A.out;if(n)return Ot(r,n)||Ot(r,e.removeFileExtension(n)+".d.ts");if(A.declarationDir&&e.containsPath(A.declarationDir,r,$,!W.useCaseSensitiveFileNames()))return!0;if(A.outDir)return e.containsPath(A.outDir,r,$,!W.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!Ve(i+".ts")||!!Ve(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return F||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return U&&e.resolveModuleNameFromCache(t,r,U)},getProjectReferences:function(){return P},getResolvedProjectReferences:function(){return oe},getProjectReferenceRedirect:lt,getResolvedProjectReferenceToRedirect:_t,getResolvedProjectReferenceByPath:ft,forEachResolvedProjectReference:dt,emitBuildInfo:function(t){e.Debug.assert(!A.out&&!A.outFile),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,Re(t),void 0,!1,void 0,void 0,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),r}},function(){if(A.strictPropertyInitialization&&!e.getStrictOptionValue(A,"strictNullChecks")&&kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),A.isolatedModules&&(e.getEmitDeclarations(A)&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,E(A),"isolatedModules"),A.noEmitOnError&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),A.out&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),A.outFile&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),A.inlineSourceMap&&(A.sourceMap&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),A.mapRoot&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),A.paths&&void 0===A.baseUrl&&kt(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),A.composite&&(!1===A.declaration&&kt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===A.incremental&&kt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration")),A.tsBuildInfoFile&&(e.isIncrementalCompilation(A)||kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite")),a=A.noEmit||A.suppressOutputPathCheck?void 0:e.getOutputPathForBuildInfo(A),pt(P,oe,function(t,r,n){var i=(n?n.commandLine.projectReferences:P)[r],o=n&&n.sourceFile;if(t){var s=t.commandLine.options;if(!s.composite){var c=n?n.commandLine.fileNames:D;c.length&&At(o,r,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path)}if(i.prepend){var u=s.outFile||s.out;u?W.fileExists(u)||At(o,r,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,u,i.path):At(o,r,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!n&&a&&a===e.getOutputPathForBuildInfo(s)&&(At(o,r,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,a,i.path),te.set(Oe(a),!0))}else At(o,r,e.Diagnostics.File_0_not_found,i.path)}),A.composite)for(var t=D.map(Oe),r=0,n=m;r1})&&kt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!A.noEmit&&A.allowJs&&e.getEmitDeclarations(A)&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",E(A)),A.checkJs&&!A.allowJs&&Q.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),A.emitDeclarationOnly&&(e.getEmitDeclarations(A)||kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),A.noEmit&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),A.emitDecoratorMetadata&&!A.experimentalDecorators&&kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),A.jsxFactory?(A.reactNamespace&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(A.jsxFactory,_)||Nt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFactory)):A.reactNamespace&&!e.isIdentifierText(A.reactNamespace,_)&&Nt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,A.reactNamespace),!A.noEmit&&!A.suppressOutputPathCheck){var v=Re(),b=e.createMap();e.forEachEmittedFile(v,function(e){A.emitDeclarationOnly||x(e.jsFilePath,b),x(e.declarationFilePath,b)})}function x(t,r){if(t){var n,i=Oe(t);de.has(i)&&(A.configFilePath||(n=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),n=e.chainDiagnosticMessages(n,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),It(t,e.createCompilerDiagnosticFromMessageChain(n)));var a=W.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();r.has(a)?It(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),_;function Ie(t){if(e.containsPath(X,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Oe(t){return e.toPath(t,$,bt)}function Me(){if(void 0===g){var t=e.filter(m,function(t){return e.sourceFileMayBeEmitted(t,A,je,_t)});A.rootDir&&xt(t,A.rootDir)?g=e.getNormalizedAbsolutePath(A.rootDir,$):A.composite&&A.configFilePath?xt(t,g=e.getDirectoryPath(e.normalizeSlashes(A.configFilePath))):(r=t,g=a(e.mapDefined(r,function(e){return e.isDeclarationFile?void 0:e.fileName}),$,bt)),g&&g[g.length-1]!==e.directorySeparator&&(g+=e.directorySeparator)}var r;return g}function Le(t,r,n){if(0===me&&!n.ambientModuleNames.length)return V(t,r,void 0,_t(n.originalFileName));var i,a,o,s=w&&w.getSourceFile(r);if(s!==n&&n.resolvedModules){for(var c=[],u=0,l=t;u0;){var s=n.text.slice(a[o-1],a[o]),c=r.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function Qe(e,t){return Ze(e,t,M,$e)}function $e(t,r){return He(function(){var n=Je().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Re(e.noop),n,t)})}function Ze(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a)return a;var o=i(t,r)||e.emptyArray;return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function et(e,t){return e.isDeclarationFile?[]:Qe(e,t)}function tt(t,r,n){ot(e.normalizePath(t),r,n,void 0)}function rt(e,t){return e.fileName===t.fileName}function nt(e,t){return 72===e.kind?72===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function it(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(A.importHelpers&&(A.isolatedModules||o)&&!t.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),s.parent=c,c.parent=t,r=[s]}for(var u=0,l=t.statements;u0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(v,y,t,r,Oe(t),l);return _e.add(v.path,t),ut(b,r,u),le.set(r,c.name),p.push(b),b}y&&(ue.set(h,y),le.set(r,c.name))}if(ut(y,r,u),y){if(z.set(r,j>0),y.path=r,y.resolvedPath=Oe(t),y.originalFileName=l,W.useCaseSensitiveFileNames()){var D=r.toLowerCase(),x=pe.get(D);x?st(t,x.fileName,a,o,s):pe.set(D,y)}G=G||y.hasNoDefaultLib&&!i,A.noResolve||(mt(y,n),gt(y)),A.noLib||ht(y),Dt(y),n?d.push(y):p.push(y)}return y}function ut(e,t,r){r?(de.set(r,e),de.set(t,e||!1)):de.set(t,e)}function lt(t){if(oe&&oe.length&&!e.fileExtensionIs(t,".d.ts")&&e.fileExtensionIsOneOf(t,e.supportedTSExtensions)){var r=_t(t);if(r){var n=r.commandLine.options.outFile||r.commandLine.options.out;return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(t,r.commandLine,!W.useCaseSensitiveFileNames())}}}function _t(t){void 0===ce&&(ce=e.createMap(),dt(function(e,t){e&&Oe(A.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return ce.set(Oe(e),t)})}));var r=ce.get(Oe(t));return r&&ft(r)}function dt(e){return pt(P,oe,function(t,r,n){var i=Oe(C((n?n.commandLine.projectReferences:P)[r]));return e(t,i)})}function pt(t,r,n,i){var a;return function t(r,n,i,o,s){if(s){var c=s(r,i);if(c)return c}return e.forEach(n,function(r,n){if(!e.contains(a,r)){var c=o(r,n,i);if(c)return c;if(r)return(a||(a=[])).push(r),t(r.commandLine.projectReferences,r.references,r,o,s)}})}(t,r,void 0,n,i)}function ft(e){if(se)return se.get(e)||void 0}function mt(t,r){e.forEach(t.referencedFiles,function(e){ot(n(e.fileName,t.originalFileName),r,!1,void 0,t,e.pos,e.end)})}function gt(t){var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(r)for(var n=q(r,t.originalFileName,_t(t.originalFileName)),i=0;iB,_=u&&!k(A,a)&&!A.noResolve&&ir&&(Q.add(e.createDiagnosticForNodeInSourceFile(A.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&Q.add(e.createCompilerDiagnostic(n,i,a,o))}function Ct(t,r,n,i){for(var a=!0,o=0,s=Et();or?Q.add(e.createDiagnosticForNodeInSourceFile(t||A.configFile,o.elements[r],n,i,a)):Q.add(e.createCompilerDiagnostic(n,i,a))}function Ft(t,r,n,i,a,o,s){var c=Pt();(!c||!wt(c,t,r,n,i,a,o,s))&&Q.add(e.createCompilerDiagnostic(i,a,o,s))}function Pt(){if(void 0===K){K=null;var t=e.getTsConfigObjectLiteralExpression(A.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c0)for(var d=0,p=r.referencedFiles;d1&&x(D)}return o;function x(t){for(var n=0,i=t.declarations;n0?(l=s(p.outputFiles[0].text),c&&l!==_&&function(t,n,i){if(!n)return void i.set(t.path,!1);var a;n.forEach(function(t){var n;(n=r(t))&&(a||(a=e.createMap()),a.set(n,!0))}),i.set(t.path,a||!1)}(i,p.exportedModulesFromDeclarationEmit,c)):l=_}return a.set(i.path,l),!_||l!==_}function l(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function _(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function d(t){return function(t){return e.some(t.moduleAugmentations,function(t){return e.isGlobalScopeAugmentation(t.parent)})}(t)||!e.isExternalModule(t)&&!function(t){for(var r=0,n=t.statements;r0;){var m=f.pop();if(!l.has(m)){var g=r.getSourceFileByPath(m);l.set(m,g),g&&u(t,r,g,i,a,o,s)&&f.push.apply(f,_(t,g.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:p(e,t,r)})(t,r,f,l,i,a,s);return o||c(t,l),m},t.updateSignaturesFromCache=c,t.updateExportedFilesMapFromCache=function(t,r){r&&(e.Debug.assert(!!t.exportedModulesMap),r.forEach(function(e,r){e?t.exportedModulesMap.set(r,e):t.exportedModulesMap.delete(r)}))},t.getAllDependencies=function(t,r,n){var i,a=r.getCompilerOptions();if(a.outFile||a.out)return l(t,r);if(!t.referencedMap||d(n))return l(t,r);for(var o=e.createMap(),s=[n.path];s.length;){var c=s.pop();if(!o.has(c)){o.set(c,!0);var u=t.referencedMap.get(c);if(u)for(var _=u.keys(),p=_.next(),f=p.value,m=p.done;!m;f=(i=_.next()).value,m=i.done,i)s.push(f)}}return e.arrayFrom(e.mapDefinedIterator(o.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(c||(c={})),function(e){function t(t,n,i){var a=e.BuilderState.create(t,n,i);a.program=t;var o=t.getCompilerOptions();a.compilerOptions=o,o.outFile||o.out||o.isolatedModules||(a.semanticDiagnosticsPerFile=e.createMap()),a.changedFilesSet=e.createMap();var s=e.BuilderState.canReuseOldState(a.referencedMap,i),c=s?i.compilerOptions:void 0,u=s&&i.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,c);if(s){if(!i.currentChangedFilePath){var l=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||l&&l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var _=i.changedFilesSet;u&&e.Debug.assert(!_||!e.forEachKey(_,function(e){return i.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),_&&e.copyEntries(_,a.changedFilesSet),o.outFile||o.out||!i.affectedFilesPendingEmit||(a.affectedFilesPendingEmit=i.affectedFilesPendingEmit,a.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex)}var d=a.referencedMap,p=s?i.referencedMap:void 0,f=u&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach(function(n,o){var c,l,_,g;if(!s||!(c=i.fileInfos.get(o))||c.version!==n.version||(_=l=d&&d.get(o),g=p&&p.get(o),_!==g&&(void 0===_||void 0===g||_.size!==g.size||e.forEachKey(_,function(e){return!g.has(e)})))||l&&e.forEachKey(l,function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)}))a.changedFilesSet.set(o,!0);else if(u){var y=t.getSourceFileByPath(o);if(y.isDeclarationFile&&!f)return;if(y.hasNoDefaultLib&&!m)return;var h=i.semanticDiagnosticsPerFile.get(o);h&&(a.semanticDiagnosticsPerFile.set(o,i.hasReusableDiagnostic?function(t,n){return t.length?t.map(function(t){var i=r(t,n);i.reportsUnnecessary=t.reportsUnnecessary,i.source=t.source;var a=t.relatedInformation;return i.relatedInformation=a?a.length?a.map(function(e){return r(e,n)}):e.emptyArray:void 0,i}):e.emptyArray}(h,t):h),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=e.createMap()),a.semanticDiagnosticsFromOldState.set(o,!0))}}),!c||c.outDir===o.outDir&&c.declarationDir===o.declarationDir&&(c.outFile||c.out)===(o.outFile||o.out)||(a.affectedFilesPendingEmit=e.concatenate(a.affectedFilesPendingEmit,t.getSourceFiles().map(function(e){return e.path})),void 0===a.affectedFilesPendingEmitIndex&&(a.affectedFilesPendingEmitIndex=0),e.Debug.assert(void 0===a.seenAffectedFiles),a.seenAffectedFiles=e.createMap()),a}function r(t,r){var n=t.file,a=t.messageText;return i({},t,{file:n&&r.getSourceFileByPath(n),messageText:void 0===a||e.isString(a)?a:function e(t,r){return i({},t,{next:t.next&&e(t.next,r)})}(a,r)})}function n(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function a(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,s=t.affectedFilesIndex;s0;a--)if(0===(i=t.indexOf(e.directorySeparator,i)+1))return!1;return!0}function O(t,r){if(E(x,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,l()),e.Debug.assert(t.length===r.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r);var n=r.indexOf(e.directorySeparator,x.length+1);return-1!==n?{dir:t.substr(0,n),dirPath:r.substr(0,n)}:{dir:D,dirPath:x,nonRecursive:!1}}return M(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,l())),e.getDirectoryPath(r))}function M(t,r){for(;e.pathContainsNodeModules(r);)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(P(r))return I(e.getDirectoryPath(r))?{dir:t,dirPath:r}:void 0;var n,i,a=!0;if(void 0!==x)for(;!E(r,x);){var o=e.getDirectoryPath(r);if(o===r)break;a=!1,n=r,i=t,r=o,t=e.getDirectoryPath(t)}return I(r)?{dir:i||t,dirPath:n||r,nonRecursive:a}:void 0}function L(t){return e.fileExtensionIsOneOf(t,h)}function R(t,r){r.failedLookupLocations&&r.failedLookupLocations.length&&(r.refCount?r.refCount++:(r.refCount=1,e.isExternalModuleNameRelative(t)?B(r):u.add(t,r)))}function B(t){e.Debug.assert(!!t.refCount);for(var n=!1,i=0,a=t.failedLookupLocations;i1),v.set(s,l-1))),u===x?n=!0:U(u)}}n&&U(x)}}function U(e){b.get(e).refCount--}function V(e,t){var r=e.get(t);r&&(r.forEach(K),e.delete(t))}function q(e){V(d,e),V(g,e)}function W(t,r,n){var i=e.createMap();t.forEach(function(t,a){var s=e.getDirectoryPath(a),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&r(t,n)&&(t.isInvalidated=!0,(o||(o=e.createMap())).set(a,!0)))})})}function H(t){var n;n=r.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,d.size>n||g.size>n?c=!0:(W(d,t,T),W(g,t,C))}function G(n,i){var a;if(i)a=function(e){return E(n,r.toPath(e))};else{if(t(n))return!1;var s=e.getDirectoryPath(n);if(w(n)||P(n)||w(s)||P(s))a=function(t){return r.toPath(t)===n||e.startsWith(r.toPath(t),n)};else{if(!L(n)&&!v.has(n))return!1;if(e.isEmittedFileOfProgram(r.getCurrentProgram(),n))return!1;a=function(e){return r.toPath(e)===n}}}var u=o&&o.size;return H(function(t){return e.some(t.failedLookupLocations,a)}),c||o&&o.size!==u}function Y(){e.clearMap(S,e.closeFileWatcher)}function X(e,t){return r.watchTypeRootsDirectory(t,function(n){var i=r.toPath(n);_&&_.addOrDeleteFileOrDirectory(n,i),r.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!c){if(E(x,t))return x;var r=M(e,t);return r&&b.has(r.dirPath)?r.dirPath:void 0}}(t,e);a&&G(i,a===i)&&r.onInvalidatedResolution()},1)}function Q(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),i=r.toPath(n);return i===x||I(i)}}}(c||(c={})),function(e){!function(t){var r,n;function i(t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return t=n.imports,e.firstDefined(t,function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSOrJsonFileExtension(r):void 0})?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}var t}()}}function a(t,r,n,i,a,c,u){var l=o(r,i),_=d(a,r,n,l.getCanonicalFileName,i,c);return e.firstDefined(_,function(e){return f(e,l,i,t)})||s(n,l,t,u)}function o(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(t)}}function s(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory,s=i.ending,u=i.relativePreference,l=n.baseUrl,_=n.paths,d=n.rootDirs,f=d&&function(t,r,n,i){var a=m(r,t,i);if(void 0===a)return;var o=m(n,t,i),s=void 0!==o?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,a,i)):a;return e.removeFileExtension(s)}(d,t,o,a)||g(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!l||0===u)return f;var v=y(t,l,a);if(!v)return f;var b=g(v,s,n),D=_&&p(e.removeFileExtension(v),b,_),x=void 0===D?b:D;return 1===u?x:(2!==u&&e.Debug.assertNever(u),h(x)||c(f)=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function f(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory;if(n.fileExists&&n.readFile){var s=function(t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var o=0,s=0,c=0;for(;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(t);if(s){var c=t.substring(0,s.packageRootIndex),u=e.combinePaths(c,"package.json"),l=n.fileExists(u)?JSON.parse(n.readFile(u)):void 0,_=l&&l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(_){var d=t.slice(s.packageRootIndex+1),f=p(e.removeFileExtension(d),g(d,0,i),_.paths);void 0!==f&&(t=e.combinePaths(t.slice(0,s.packageRootIndex),f))}var m=function(t){if(l){var r=l.typings||l.types||l.main;if(r){var i=e.toPath(r,c,a);if(e.removeFileExtension(i)===e.removeFileExtension(a(t)))return c}}var o=e.removeFileExtension(t);if("/index"===a(o.substring(s.fileNameIndex))&&!function(t,r){if(!t.fileExists)return;for(var n=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);n0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:s.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(t){return f(e.sys,i,t)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,o},e.getErrorCountForSummary=a,e.getWatchErrorSummaryDiagnosticMessage=o,e.getErrorSummaryText=s,e.emitFilesAndReportErrors=c;var u={close:e.noop};function l(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||i(t),watchFile:e.maybeBind(t,t.watchFile)||function(){return u},watchDirectory:e.maybeBind(t,t.watchDirectory)||function(){return u},setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function _(t,r){var n=t.getSourceFile,i=r.createHash||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],a=0;ae.getRootLength(n)&&!t.directoryExists(n)){var i=e.getDirectoryPath(n);r(i),t.createDirectory&&t.createDirectory(n)}}(e.getDirectoryPath(e.normalizePath(r))),t.writeFile(r,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=_,e.createProgramHost=d,e.createWatchCompilerHostOfConfigFile=function(e,t,n,i,a,o){var s=a||r(n),c=p(n,i,s,o);return c.onUnRecoverableConfigFileDiagnostic=function(e){return f(n,s,e)},c.configFileName=e,c.optionsToExtend=t,c},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,n,i,a,o,s){var c=p(n,i,a||r(n),o);return c.rootFiles=e,c.options=t,c.projectReferences=s,c},e.readBuilderProgram=m,e.createIncrementalCompilerHost=g,e.performIncrementalCompilation=function(t){var n=t.system||e.sys,i=t.host||(t.host=g(t.options,n)),a=function(t){var r=t.rootNames,n=t.options,i=t.configFileParsingDiagnostics,a=t.projectReferences,o=t.host,s=t.createProgram;o=o||g(n),s=s||e.createEmitAndSemanticDiagnosticsBuilderProgram;var c=m(n,function(e){return o.readFile(e)});return s(r,n,o,c,i,a)}(t),o=c(a,t.reportDiagnostic||r(n),function(e){return i.trace&&i.trace(e)},t.reportErrorSummary||t.options.pretty?function(e){return n.write(s(e,n.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(c||(c={})),function(e){e.createWatchCompilerHost=function(t,r,n,i,a,o,s){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions(t,r,n,i,a,o,s):e.createWatchCompilerHostOfConfigFile(t,r,n,i,a,o)},e.createWatchProgram=function(t){var r,n,i,a,o,s,c,u,l=e.createMap(),_=!1,d=!1,p=t.useCaseSensitiveFileNames(),f=t.getCurrentDirectory(),m=t.configFileName,g=t.optionsToExtend,y=void 0===g?{}:g,h=t.createProgram,v=t.rootFiles,b=t.options,D=t.projectReferences,x=!1,S=!1,T=void 0===m?void 0:e.createCachedDirectoryStructureHost(t,f,p);T&&t.onCachedDirectoryStructureHostCreate&&t.onCachedDirectoryStructureHostCreate(T);var C=T||t,E=e.parseConfigHostFromCompilerHostLike(t,C),k=U();m&&t.configFileParsingResult&&(ee(t.configFileParsingResult),k=U()),X(e.Diagnostics.Starting_compilation_in_watch_mode),m&&!t.configFileParsingResult&&(k=e.getNewLineCharacter(y,function(){return t.getNewLine()}),e.Debug.assert(!v),Z(),k=U());var N,A=e.createWatchFactory(t,b),F=A.watchFile,P=A.watchFilePath,w=A.watchDirectory,I=A.writeLog,O=e.createGetCanonicalFileName(p);I("Current directory: "+f+" CaseSensitiveFileNames: "+p),m&&(N=F(t,m,function(){e.Debug.assert(!!m),n=e.ConfigFileProgramReloadLevel.Full,Q()},e.PollingInterval.High,"Config file"));var M=e.createCompilerHostFromProgramHost(t,function(){return b},C);e.setGetSourceFileAsHashVersioned(M,t);var L=M.getSourceFile;M.getSourceFile=function(e){for(var t=[],r=1;re?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(t,r){return function(n){var i=r?"["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function _(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||l(t),a}function d(t){var r={};return e.commonOptionsWithBuild.forEach(function(e){r[e.name]=t[e.name]}),r}function p(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}function f(t,n,i,a){switch(n.type){case r.OutOfDateWithSelf:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,i(t),i(n.outOfDateOutputFileName),i(n.newerInputFileName));case r.OutOfDateWithUpstream:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,i(t),i(n.outOfDateOutputFileName),i(n.newerProjectName));case r.OutputMissing:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,i(t),i(n.missingOutputFileName));case r.UpToDate:if(void 0!==n.newestInputFileTime)return a(e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,i(t),i(n.newestInputFileName||""),i(n.oldestOutputFileName||""));break;case r.OutOfDateWithPrepend:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,i(t),i(n.newerProjectName));case r.UpToDateWithUpstreamTypes:return a(e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,i(t));case r.UpstreamOutOfDate:return a(e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,i(t),i(n.upstreamProjectName));case r.UpstreamBlocked:return a(e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,i(t),i(n.upstreamProjectName));case r.Unbuildable:return a(e.Diagnostics.Failed_to_parse_file_0_Colon_1,i(t),n.reason);case r.TsVersionOutputOfDate:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,i(t),n.version,e.version);case r.ContainerOnly:case r.ComputingUpstream:break;default:e.assertType(n)}}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(t||(t={})),function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly"}(r=e.UpToDateStatusType||(e.UpToDateStatusType={})),e.createBuilderStatusReporter=l,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=_(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=_(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(l,_,m){var g,y=l,h=l.getCurrentDirectory(),v=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),b=e.parseConfigHostFromCompilerHostLike(l),D=m,x=d(D),S=a(G),T=a(G),C=a(G),E=e.createMap(),k=function(e){return l.trace&&l.trace(e)},N=function(e){return l.readFile(e)},A=x,F=e.createCompilerHostFromProgramHost(l,function(){return A});e.setGetSourceFileAsHashVersioned(F,l);var P,w=a(G),I=a(G),O=a(G),M=a(G),L=a(G),R=[],B=0,j=!1,J=e.createWatchFactory(l,D),z=J.watchFile,K=J.watchFilePath,U=J.watchDirectory,V=J.writeLog,q=a(G),W=a(G),H=a(G);return{buildAllProjects:function(){D.watch&&Q(e.Diagnostics.Starting_compilation_in_watch_mode);var n=N,i=F.getSourceFile,a=e.changeCompilerHostLikeToUseCache(l,G,function(){for(var e=[],t=0;to&&(a=d,o=p)}if(!t.fileNames.length&&!e.canJsonReportNoInutFiles(t.raw))return{type:r.ContainerOnly};for(var f,m=e.getAllProjectOutputs(t,!l.useCaseSensitiveFileNames()),g="(none)",y=i,h="(none)",v=n,b=n,D=!1,x=0,S=m;xv&&(v=k,h=E),u(E)){var A=T.getValue(E);if(void 0!==A)b=c(A,b);else{var F=l.getModifiedTime(E)||e.missingFileModifiedTime;b=c(b,F)}}}var P,I=!1,O=!1;if(t.projectReferences){C.setValue(t.options.configFilePath,{type:r.ComputingUpstream});for(var M=0,L=t.projectReferences;M4)return a(-1!==r.indexOf(e),n);r.push(e),n.push(t);var o=i();return n.pop(),r.pop(),o}));var r,n}function i(t,r,n){return n(r,t,function(){if("function"==typeof r)return function(t,r,n){var a=function(t,r){var n=t.prototype;return"object"!==f(n)||null===n?e.emptyArray:e.mapDefined(c(n),function(e){var t=e.key,n=e.value;return"constructor"===t?void 0:i(t,n,r)})}(t,n),o=e.flatMap(c(t),function(e){var t=e.key,r=e.value;return i(t,r,n)}),s=e.cast(Function.prototype.toString.call(t),e.isString),l=e.stringContains(s,"{ [native code] }")?function(t){return e.tryCast(u(t,"length"),e.isNumber)||0}(t):s;return{kind:2,name:r,source:l,namespaceMembers:o,prototypeMembers:a}}(r,t,n);if("object"===f(r)){var o=function(t,r,n){return e.isArray(r)?{name:t,kind:1,inner:r.length&&i("element",e.first(r),n)||_(t)}:e.forEachEntry(a(),function(e,n){return r instanceof e?{kind:0,name:t,typeName:n}:void 0})}(t,r,n);if(void 0!==o)return o;var s=c(r),d=Object.getPrototypeOf(r)!==Object.prototype,p=e.flatMap(s,function(e){return i(e.key,e.value,n)});return{kind:3,name:t,hasNontrivialPrototype:d,members:p}}return{kind:0,name:t,typeName:l(r)?"any":f(r)}},function(e,r){return _(t," "+(e?"Circular reference":"Too-deep object hierarchy")+" from "+r.join("."))})}!function(e){e[e.Const=0]="Const",e[e.Array=1]="Array",e[e.FunctionOrClass=2]="FunctionOrClass",e[e.Object=3]="Object"}(e.ValueKind||(e.ValueKind={})),e.inspectModule=function(r){return t(e.removeFileExtension(e.getBaseFileName(r)),function(e){try{return n()}catch(e){return}}())},e.inspectValue=t;var a=e.memoize(function(){for(var t=e.createMap(),n=0,i=c(r);n=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&rn?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty";case 3:return"Package name '"+r+"' should be less than "+n+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(c||(c={})),function(e){var t;function r(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.emptyOptions={},function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),e.getDefaultFormatCodeSettings=r,e.testFormatSettings=r("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(c||(c={})),function(e){function t(t){switch(t.kind){case 237:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 151:case 186:case 154:case 153:case 275:case 276:case 156:case 155:case 157:case 158:case 159:case 239:case 196:case 197:case 274:case 267:return 1;case 150:case 241:case 242:case 168:return 2;case 309:return void 0===t.name?3:2;case 278:case 240:return 3;case 244:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 243:case 252:case 253:case 248:case 249:case 254:case 255:return 7;case 284:return 5}return 7}function r(t){for(;148===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e,t){var r=i(e);return!!r&&!!r.parent&&t(r.parent)&&r.parent.expression===r}function i(e){return s(e)?e.parent:e}function a(t){return 72===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 72===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&189===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(7,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){return 284===n.kind?1:254===n.parent.kind||259===n.parent.kind?7:r(n)?function(t){var r=148===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&248===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 100:return!e.isExpressionNode(t);case 178:return!0}switch(t.parent.kind){case 164:return!0;case 183:return!t.parent.isTypeOf;case 211:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(148===t.parent.kind){for(;t.parent&&148===t.parent.kind;)t=t.parent;r=t.right===e}return 164===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(189===t.parent.kind){for(;t.parent&&189===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&211===t.parent.kind&&273===t.parent.parent.kind){var n=t.parent.parent.parent;return 240===n.kind&&109===t.parent.parent.token||241===n.kind&&86===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):e.isLiteralTypeNode(n.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t){return n(t,e.isCallExpression)},e.isNewExpressionTarget=function(t){return n(t,e.isNewExpression)},e.isCallOrNewExpressionTarget=function(t){return n(t,e.isCallOrNewExpression)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(233===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isTagName=function(t){return e.isJSDocTag(t.parent)&&t.parent.tagName===t},e.isRightSideOfQualifiedName=function(e){return 148===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 244===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 72===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 154:case 153:case 275:case 278:case 156:case 155:case 158:case 159:case 244:return e.getNameOfDeclaration(t.parent)===t;case 190:return t.parent.argumentExpression===t;case 149:return!0;case 182:return 180===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 284:case 156:case 155:case 239:case 196:case 158:case 159:case 240:case 241:case 243:case 244:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 284:return e.isExternalModule(r)?"module":"script";case 244:return"module";case 240:case 209:return"class";case 241:return"interface";case 242:case 302:case 309:return"type";case 243:return"enum";case 237:return o(r);case 186:return o(e.getRootDeclaration(r));case 197:case 239:case 196:return"function";case 158:return"getter";case 159:return"setter";case 156:case 155:return"method";case 154:case 153:return"property";case 162:return"index";case 161:return"construct";case 160:return"call";case 157:return"constructor";case 150:return"type parameter";case 278:return"enum member";case 151:return e.hasModifier(r,92)?"property":"parameter";case 248:case 253:case 257:case 251:return"alias";case 204:var n=e.getAssignmentDeclarationKind(r),i=r.right;switch(n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=t(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertType(n),""}case 72:return e.isImportClause(r.parent)?"alias":"";default:return""}function o(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 100:return!0;case 72:return e.identifierIsThisKeyword(t)&&151===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*=r.end}function d(e,t,r,n){return Math.max(e,r)t)break;var u=c.getEnd();if(t=t||!A(u,r)||T(u);if(_){var d=S(s,c,r);return d&&x(d,r)}return a(u)}}e.Debug.assert(void 0!==n||284===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var p=S(s,s.length,r);return p&&x(p,r)}(n||r);return e.Debug.assert(!(a&&T(a))),a}function D(t){return e.isToken(t)&&!T(t)}function x(e,t){if(D(e))return e;var r=e.getChildren(t),n=S(r,r.length,t);return n&&x(n,t)}function S(t,r,n){for(var i=r-1;i>=0;i--){if(T(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(A(t[i],n))return t[i]}}function T(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function C(e,t,r){for(var n=e.kind,i=0;;){var a=b(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function E(t,r,n){var i=n.getTypeAtLocation(t);return(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=r})}function k(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 28:if(!(n=b(n.getFullStart(),r))||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 48:i=3;break;case 47:i=2;break;case 30:i++;break;case 19:if(!(n=C(n,18,r)))return;break;case 21:if(!(n=C(n,20,r)))return;break;case 23:if(!(n=C(n,22,r)))return;break;case 27:a++;break;case 37:case 72:case 10:case 8:case 9:case 102:case 87:case 104:case 86:case 129:case 24:case 50:case 56:case 57:break;default:if(e.isTypeNode(n))break;return}n=b(n.getFullStart(),r)}}function N(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function A(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function F(e,t,r){var n=N(e,t,void 0);return!!n&&r===c.test(e.text.substring(n.pos,n.end))}function P(e,t){return{span:e,newText:t}}function w(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function I(t,r,n,i){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0):void 0,"string"==typeof n?O(n,i):n)}function O(t,r){return e.createLiteral(t,0===r)}function M(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function L(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&72===r.kind?r.escapedText:void 0})}function R(t,r,n,i){var a=e.createMap();return function t(o){if(!(96&o.flags&&e.addToSeen(a,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))})})}(t)}function B(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function j(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.rangeContainsRangeExclusive=function(e,t){return l(e,t.pos)&&l(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=l,e.startEndContainsRange=_,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return d(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return d(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=d,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rt.end||e.pos===t.end;return i&&A(e,n)?r(e):void 0})}(r)},e.findPrecedingToken=b,e.isInString=function(t,r,n){if(void 0===n&&(n=b(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(in.getStart(t)},e.isInJSXText=function(t,r){var n=h(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(28!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.findPrecedingMatchingToken=C,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=k(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==E(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=E,e.getPossibleTypeArgumentsInfo=k,e.isInComment=N,e.hasDocComment=function(t,r){var n=h(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedModifierFlags(t):0,n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),4194304&t.flags&&n.push("declare"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 164===t.kind||191===t.kind?t.typeArguments:e.isFunctionLike(t)||240===t.kind||241===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=71},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!e.noEmit},e.hostUsesCaseSensitiveFileNames=w,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(w(t))},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?I(e,t,r,n):void 0},e.makeImport=I,e.makeStringLiteral=O,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=M,e.getQuotePreference=function(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?M(n,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=L(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=L,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getPropertySymbolsFromBaseTypes=R,e.isMemberSymbolInBaseType=function(e,t){return R(e.parent,e.name,t,function(e){return!0})||!1},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!B(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})},e.insertImport=function(t,r,n){var i=e.findLast(r.statements,e.isAnyImportSyntax);i?t.insertNodeAfter(r,i,n):t.insertNodeAtTopOfFile(r,n,!0)},e.textSpansEqual=j,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&j(e.textSpan,t.textSpan)}}(c||(c={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&151===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var r=function(){var t,r,a,o,s=10*e.defaultMaximumTruncationLength;d();var u=function(t){return _(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return o>s&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(i(" ",e.SymbolDisplayPartKind.space)),t.push(i("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return _(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return _(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return _(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return _(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return _(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(o>s)return;l(),o+=e.length,t.push(n(e,r))},writeLine:function(){if(o>s)return;o+=1,t.push(c()),r=!0},write:u,writeComment:u,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:d,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function l(){if(!(o>s)&&r){var n=e.getIndentString(a);n&&(o+=n.length,t.push(i(n,e.SymbolDisplayPartKind.space))),r=!1}}function _(e,r){o>s||(l(),o+=e.length,t.push(i(e,r)))}function d(){t=[],r=!0,a=0,o=0}}();function n(r,n){return i(r,function(r){var n=r.flags;if(3&n)return t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&n)return e.SymbolDisplayPartKind.propertyName;if(32768&n)return e.SymbolDisplayPartKind.propertyName;if(65536&n)return e.SymbolDisplayPartKind.propertyName;if(8&n)return e.SymbolDisplayPartKind.enumMemberName;if(16&n)return e.SymbolDisplayPartKind.functionName;if(32&n)return e.SymbolDisplayPartKind.className;if(64&n)return e.SymbolDisplayPartKind.interfaceName;if(384&n)return e.SymbolDisplayPartKind.enumName;if(1536&n)return e.SymbolDisplayPartKind.moduleName;if(8192&n)return e.SymbolDisplayPartKind.methodName;if(262144&n)return e.SymbolDisplayPartKind.typeParameterName;if(524288&n)return e.SymbolDisplayPartKind.aliasName;if(2097152&n)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(n))}function i(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}e.symbolPart=n,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?o(t):a(r)},e.textPart=o;var s="\r\n";function c(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function u(e){try{return e(r),r.displayParts()}finally{r.clear()}}function l(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&_(e)?e.substring(1,t-1):e}function _(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function d(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function p(e){return 0!=(33554432&e.flags)}function f(e,t){void 0===t&&(t=!0);var r=e&&g(e);return r&&!t&&y(r),r}function m(t,r,n,i,a){var o;if(void 0===r&&(r=!0),e.isIdentifier(t)&&n&&i){var s=i.getSymbolAtLocation(t),c=s&&n.get(String(e.getSymbolId(s)));c&&(o=e.createIdentifier(c.text))}return o||(o=g(t,n,i,a)),o&&!r&&y(o),a&&o&&a(t,o),o}function g(t,r,n,i){var a=r||n||i?e.visitEachChild(t,function(e){return m(e,!0,r,n,i)},e.nullTransformationContext):e.visitEachChild(t,f,e.nullTransformationContext);if(a===t){var o=e.getSynthesizedClone(t);return e.isStringLiteral(o)?o.textSourceNode=t:e.isNumericLiteral(o)&&(o.numericLiteralFlags=t.numericLiteralFlags),e.setTextRange(o,t)}return a.parent=void 0,a}function y(e){h(e),v(e)}function h(e){b(e,512,D)}function v(t){b(t,1024,e.getLastChild)}function b(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&b(i,r,n)}function D(e){return e.forEachChild(function(e){return e})}function x(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function S(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function T(e){switch(e){case 35:case 33:case 36:case 34:return!0;default:return!1}}function C(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=c,e.mapToDisplayParts=u,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),u(function(i){e.writeType(t,r,17408|n,i)})},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),u(function(a){e.writeSymbol(t,r,n,8|i,a)})},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,u(function(i){e.writeSignature(t,r,n,void 0,i)})},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.stripQuotes=l,e.startsWithQuote=_,e.scriptKindIs=function(t,r){for(var n=[],i=2;i-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=f,e.getSynthesizedDeepCloneWithRenames=m,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.createNodeArray(t.map(function(e){return f(e,r)}),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=y,e.suppressLeadingTrivia=h,e.suppressTrailingTrivia=v,e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n=t+"_"+i;return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s=0),o},e.copyLeadingComments=function(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,x(r,n,i,a,e.addSyntheticLeadingComment))},e.copyTrailingComments=function(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,x(r,n,i,a,e.addSyntheticTrailingComment))},e.copyTrailingAsLeadingComments=function(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,x(r,n,i,a,e.addSyntheticLeadingComment))},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 192:return t.getContextualType(r);case 204:var n=r,i=n.left,a=n.operatorToken,o=n.right;return T(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 271:return r.expression===e?C(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){if(/^\d+$/.test(t))return t;var n=r.quotePreference||"auto",i=JSON.stringify(t);switch(n){case"auto":case"double":return i;case"single":return"'"+l(i).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(n)}},e.isEqualityOperatorKind=T,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 206:case 193:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=C,e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:{readFile:n.readFile,fileExists:n.fileExists,directoryExists:n.directoryExists,getSourceFiles:r.getSourceFiles,getCurrentDirectory:r.getCurrentDirectory,getCommonSourceDirectory:r.getCommonSourceDirectory}});return a?s:void 0}}(c||(c={})),function(e){e.createClassifier=function(){var o=e.createScanner(7,!1);function s(i,s,c){var u=0,l=0,_=[],d=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),p=d.prefix,f=d.pushTemplate;i=p+i;var m=p.length;f&&_.push(15),o.setText(i);var g=0,y=[],h=0;do{u=o.scan(),e.isTrivia(u)||(D(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(u),y),v>=i.length){var b=r(o,u,e.lastOrUndefined(_));void 0!==b&&(g=b)}}while(1!==u);function D(){switch(u){case 42:case 64:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 28:72===l&&h++;break;case 30:h>0&&h--;break;case 120:case 138:case 135:case 123:case 139:h>0&&!c&&(u=72);break;case 15:_.push(u);break;case 18:_.length>0&&_.push(u);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(u=o.reScanTemplateToken())?_.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;24===l?u=72:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 126:case 137:case 124:case 116:return!0;default:return!1}}(l,u)&&(u=72)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([72,10,8,9,13,100,44,45,21,23,19,102,87],function(e){return e},function(){return!0});function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 40:case 42:case 43:case 38:case 39:case 46:case 47:case 48:case 28:case 30:case 31:case 32:case 94:case 93:case 119:case 33:case 34:case 35:case 36:case 49:case 51:case 50:case 54:case 55:case 70:case 69:case 71:case 66:case 67:case 68:case 60:case 61:case 62:case 64:case 65:case 59:case 27:return!0;default:return!1}}(t)||function(e){switch(e){case 38:case 39:case 53:case 52:case 44:case 45:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=71)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 72:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 244:case 240:case 241:case 239:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(r,n,i){var a=r.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&function(e,t,r){s.push(e),s.push(t-e),s.push(r)}(u.getStart(n),u.getEnd(),_)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((28===t||30===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(59===t&&(237===n.kind||154===n.kind||151===n.kind||267===n.kind))return 5;if(204===n.kind||202===n.kind||203===n.kind||205===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return 267===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(72===t){if(r)switch(r.parent.kind){case 240:return r.parent.name===r?11:void 0;case 150:return r.parent.name===r?15:void 0;case 241:return r.parent.name===r?13:void 0;case 243:return r.parent.name===r?12:void 0;case 244:return r.parent.name===r?14:void 0;case 151:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function h(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);se.parameters.length)){var a=r.getParameterType(e,t.argumentIndex);return n=n||!!(4&a.flags),c(a,i)}}),isNewIdentifier:n}}(y,i):h()}case 249:case 255:case 259:return{kind:0,paths:d(t,r,a,o,i)};default:return h()}function h(){return{kind:2,types:c(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function s(t){return t&&{kind:1,symbols:t.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(t)}}function c(t,r){return void 0===r&&(r=e.createMap()),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return c(e,r)}):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function u(e,t,r){return{name:e,kind:t,extension:r}}function l(e){return u(e,"directory",void 0)}function _(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),7)?void 0:e.createTextSpan(r+i,a)}(t,r);return n.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}})}function d(t,r,n,i,a){return _(r.text,r.getStart(t)+1,function(t,r,n,i,a){var o=e.normalizeSlashes(r.text),s=t.path,c=e.getDirectoryPath(s);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(o)||!n.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?function(t,r,n,i,a){var o=p(n);return n.rootDirs?function(t,r,n,i,a,o,s){var c=a.project||o.getCurrentDirectory(),u=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),l=function(t,r,n,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}).concat([n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,c,n,u);return e.flatMap(l,function(e){return m(r,e,i,o,s)})}(n.rootDirs,t,r,o,n,i,a):m(t,r,o,i,a)}(o,c,n,i,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],l=p(n);if(o){var _=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(_,o));m(t,d,l,i,void 0,c),s&&g(c,t,d,l.extensions,s,i)}for(var f=y(t),h=0,D=function(t,r,n){var i=n.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(r){return e.startsWith(r,t)});if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,f,a);h=e.pos&&r<=e.end});if(s){var c=t.text.slice(s.pos,r),u=D.exec(c);if(u){var l=u[1],d=u[2],f=u[3],g=e.getDirectoryPath(t.path),h="path"===d?m(f,g,p(n,!0),i,t.path):"types"===d?v(i,n,g,y(f),p(n)):e.Debug.fail();return _(f,s.pos+l.length,h)}}}(r,i,c,u);return f&&n(f)}if(e.isInString(r,i,a))return a&&e.isStringLiteralLike(a)?function(r,i,a,o,s){if(void 0!==r)switch(r.kind){case 0:return n(r.paths);case 1:var c=[];return t.getCompletionEntriesFromSymbols(r.symbols,c,i,i,a,7,o,4,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,entries:c};case 2:var c=r.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,entries:c};default:return e.Debug.assertNever(r)}}(o(r,a,i,s,c,u),r,s,l,d):void 0},r.getStringLiteralCompletionDetails=function(r,n,a,s,c,u,l,_){if(s&&e.isStringLiteralLike(s)){var d=o(n,s,a,c,u,l);return d&&function(r,n,a,o,s,c){switch(a.kind){case 0:var u=e.find(a.paths,function(e){return e.name===r});return u&&t.createCompletionDetails(r,i(u.extension),u.kind,[e.textPart(r)]);case 1:var u=e.find(a.symbols,function(e){return e.name===r});return u&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(a.types,function(e){return e.value===r})?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(a)}}(r,s,d,n,c,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(a||(a={}));var D=/^(\/\/\/\s*"),kind:"class",kindModifiers:void 0,sortText:"0"};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[C]}}var k=[];if(s(t,n)){var N=m(c,k,p,t,r,n.target,i,u,o,f,b,v,h);!function(t,r,n,i,a){e.getNameTable(t).forEach(function(t,o){if(t!==r){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(n,s)&&e.isIdentifierText(s,i)&&a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(t,p.pos,N,n.target,k)}else{if(!(d||c&&0!==c.length||0!==g))return;m(c,k,p,t,r,n.target,i,u,o,f,b,v,h)}if(0!==g)for(var A=e.arrayToSet(k,function(e){return e.name}),F=0,P=function(t,r){if(!r)return E(t);var n=t+6+1;return T[n]||(T[n]=E(t).filter(function(t){return!function(e){switch(e){case 118:case 120:case 146:case 123:case 125:case 84:case 145:case 109:case 127:case 110:case 128:case 129:case 130:case 131:case 132:case 135:case 136:case 113:case 114:case 115:case 133:case 138:case 139:case 140:case 142:case 143:return!0;default:return!1}}(e.stringToToken(t.name))}))}(g,!D&&e.isSourceFileJS(t));F=t.pos;case 24:return 185===n;case 57:return 186===n;case 22:return 185===n;case 20:return 274===n||re(n);case 18:return 243===n;case 28:return 240===n||209===n||241===n||242===n||e.isFunctionLikeKind(n);case 116:return 154===n&&!e.isClassLike(r.parent);case 25:return 151===n||!!r.parent&&185===r.parent.kind;case 115:case 113:case 114:return 151===n&&!e.isConstructorDeclaration(r.parent);case 119:return 253===n||257===n||251===n;case 126:case 137:return!w(t);case 76:case 84:case 110:case 90:case 105:case 92:case 111:case 77:case 117:case 140:return!0;case 40:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(N(A(t))&&w(t))return!1;if(te(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(A(t))||ne(t)))return!1;switch(A(t)){case 118:case 76:case 77:case 125:case 84:case 90:case 110:case 111:case 113:case 114:case 115:case 116:case 105:case 117:return!0;case 121:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==g||a>g.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(30===e.kind&&e.parent){if(262===e.parent.kind)return!0;if(263===e.parent.kind||261===e.parent.kind)return!!e.parent.parent&&260===e.parent.parent.kind}return!1}(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),i}(h))return void r("Returning an empty list because completion was requested in an invalid position.");var M=h.parent;if(24===h.kind)switch(S=!0,M.kind){case 189:if((x=(b=M).expression).end===h.pos&&e.isCallExpression(x)&&x.getChildCount(n)&&21!==e.last(x.getChildren(n)).kind)return;break;case 148:x=M.left;break;case 244:x=M.name;break;case 183:case 214:x=M;break;default:return}else if(1===n.languageVariant){if(M&&189===M.kind&&(h=M,M=M.parent),l.parent===O)switch(l.kind){case 30:260!==l.parent.kind&&262!==l.parent.kind||(O=l);break;case 42:261===l.parent.kind&&(O=l)}switch(M.kind){case 263:42===h.kind&&(C=!0,O=h);break;case 204:if(!I(M))break;case 261:case 260:case 262:28===h.kind&&(T=!0,O=h);break;case 267:switch(g.kind){case 59:E=!0;break;case 72:M!==g.parent&&!M.initializer&&e.findChildOfKind(M,59,n)&&(E=g)}}}}var L=e.timestamp(),R=5,B=!1,j=0,J=[],z=[];if(S)!function(){R=2;var t=e.isLiteralImportTypeNode(x),r=d||t&&!x.isTypeOf||e.isPartOfTypeNode(x.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(x)||!r&&e.isPossiblyTypeArgumentPosition(h,n,c);if(e.isEntityName(x)||t){var a=e.isModuleDeclaration(x.parent);a&&(B=!0);var o=c.getSymbolAtLocation(x);if(o&&1920&(o=e.skipAlias(o,c)).flags){for(var s=e.Debug.assertEachDefined(c.getExportsOfModule(o),"getExportsOfModule() should all be defined"),u=function(e){return c.isValidPropertyAccess(t?x:x.parent,e.name)},l=function(e){return Z(e)},_=a?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===x.parent})}:i?function(e){return l(e)||u(e)}:r?l:u,p=0,f=s;p0&&(J=function(t,r){if(0===r.length)return t;for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i=0&&!c(r,n[a],107);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(r,e.getFirstToken(),73,78)}),r}function l(e){var t=s(e);if(t)switch(t.kind){case 225:case 226:case 227:case 223:case 224:return u(t);case 232:return _(t)}}function _(t){var r=[];return c(r,t.getFirstToken(),99),e.forEach(t.caseBlock.clauses,function(n){c(r,n.getFirstToken(),74,80),e.forEach(i(n),function(e){o(t,e)&&c(r,e.getFirstToken(),73)})}),r}function d(t,r){var n=[];(c(n,t.getFirstToken(),103),t.catchClause&&c(n,t.catchClause.getFirstToken(),75),t.finallyBlock)&&c(n,e.findChildOfKind(t,88,r),88);return n}function p(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||284===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),function(t){a.push(e.findChildOfKind(t,101,r))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,97,r))}),a}}function f(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,97,r))}),e.forEach(n(i.body),function(t){a.push(e.findChildOfKind(t,101,r))}),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach(function(e){c(n,e,121)}),e.forEachChild(r,function(t){g(t,function(t){e.isAwaitExpression(t)&&c(n,t.getFirstToken(),122)})}),n}}function g(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return g(e,r)})}t.getDocumentHighlights=function(t,n,i,a,o){var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,h=[y.openingElement,y.closingElement].map(function(e){return r(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}}(a,s,t,n,o)||function(t,n){var i=function(t,n){switch(t.kind){case 91:case 83:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],91);for(var a=i.length-1;a>=0&&!c(n,i[a],83);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),u.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 97:return y(t.parent,e.isReturnStatement,f);case 101:return y(t.parent,e.isThrowStatement,p);case 103:case 75:case 88:var i=75===t.kind?t.parent.parent:t.parent;return y(i,e.isTryStatement,d);case 99:return y(t.parent,e.isSwitchStatement,_);case 74:case 80:return y(t.parent.parent.parent,e.isSwitchStatement,_);case 73:case 78:return y(t.parent,e.isBreakOrContinueStatement,l);case 89:case 107:case 82:return y(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 124:return s(e.isConstructorDeclaration,[124]);case 126:case 137:return s(e.isAccessor,[126,137]);case 122:return y(t.parent,e.isAwaitExpression,m);case 121:return h(m(t));case 117:return h(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,function(t){g(t,function(t){e.isYieldExpression(t)&&c(n,t.getFirstToken(),117)})}),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 245:case 284:case 218:case 271:case 272:return 128&r&&e.isClassDeclaration(t)?t.members.concat([t]):n.statements;case 157:case 156:case 239:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 240:case 209:var i=n.members;if(28&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&r)return i.concat([n]);return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),function(t){return e.findModifier(t,a)}))):void 0}var a,o;function s(r,i){return y(t.parent,r,function(t){return e.mapDefined(t.symbol.declarations,function(t){return r(t)?e.find(t.getChildren(n),function(t){return e.contains(i,t.kind)}):void 0})})}function y(e,t,r){return t(e)?h(r(e,n)):void 0}function h(e){return e&&e.map(function(e){return r(e,n)})}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(s,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(c||(c={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=e.createMap(),o=e.createGetCanonicalFileName(!!t);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,o,s,c,u,l){var _=e.getOrUpdate(a,o,e.createMap),d=_.get(r),p=6===l?100:n.target||1;!d&&i&&((f=i.getDocument(o,r))&&(e.Debug.assert(u),d={sourceFile:f,languageServiceRefCount:0},_.set(r,d)));if(d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot)),i&&i.setDocument(o,r,d.sourceFile)),u&&d.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,s,p,c,!1,l);i&&i.setDocument(o,r,f),d={sourceFile:f,languageServiceRefCount:1},_.set(r,d)}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function l(t,r){var n=e.Debug.assertDefined(a.get(r)),i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,n,o),i,r(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,n,o),i,r(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,n,o),r(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]})},reportStats:function(){var t=e.arrayFrom(a.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return a.get(e).forEach(function(e,r){t.push({name:r,refCount:e.languageServiceRefCount})}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(t){return e.sourceFileAffectingCompilerOptions.map(function(r){return e.getCompilerOptionValue(t,r)}).join("|")}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(c||(c={})),function(e){!function(t){function r(t,r){return e.forEach(284===t.kind?t.statements:t.body.statements,function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)})}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),7)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),7)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function v(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(y(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0});return[{definition:{type:1,node:n},references:o}]}function b(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),D(e,e,t,r,n)}function D(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=h(t,r.text,e);a0)return n}switch(t.kind){case 284:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 197:case 239:case 196:case 240:case 209:return 512&e.getModifierFlags(t)?"default":I(t);case 157:return"constructor";case 161:return"new()";case 160:return"()";case 162:return"[]";default:return""}}function E(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:w(t.node),spans:N(t),nameSpan:t.name&&P(t.name),childItems:e.map(t.children,E)}}function k(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:w(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[P(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return e.declarationNameToString(t.name);if(e.isVariableDeclaration(r))return e.declarationNameToString(r.name);if(e.isBinaryExpression(r)&&59===r.operatorToken.kind)return u(r.left).replace(a,"");if(e.isPropertyAssignment(r))return u(r.name);if(512&e.getModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var i=function t(r){if(e.isIdentifier(r))return r.text;if(e.isPropertyAccessExpression(r)){var n=t(r.expression),i=r.name.text;return void 0===n?i:n+"."+i}return}(r.expression);if(void 0!==i)return i+"("+e.mapDefined(r.arguments,function(t){return e.isStringLiteralLike(t)?t.getText(n):void 0}).join(", ")+") callback"}return""}t.getNavigationBarItems=function(t,i){r=i,n=t;try{return e.map((a=d(t),o=[],function t(r){if(function(t){switch(l(t)){case 240:case 209:case 243:case 241:case 244:case 284:case 242:case 309:case 302:return!0;case 157:case 156:case 158:case 159:case 237:return r(t);case 197:case 239:case 196:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 245:case 284:case 156:case 157:return!0;default:return r(e)}}(t);default:return!1}function r(t){return e.some(t.children,function(e){var t=l(e);return 237!==t&&186!==t})}}(r)&&(o.push(r),r.children))for(var n=0,i=r.children;n0?i[0]:u[0],D=0===v.length?d?void 0:e.createNamedImports(e.emptyArray):0===u.length?e.createNamedImports(v):e.updateNamedImports(u[0].importClause.namedBindings,v);return l.push(a(b,d,D)),l}function i(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=0,i=e;n...");case 261:case 262:return function(e){if(0!==e.properties.length)return a(e.getStart(r),e.getEnd(),"code")}(t.attributes)}var i,s,c;function u(t,r){return void 0===r&&(r=18),l(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function l(n,i,a,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===s&&(s=18);var c=e.findChildOfKind(t,s,r),u=18===s?19:23,l=e.findChildOfKind(t,u,r);if(c&&l){var _=e.createTextSpanFromBounds(a?c.getFullStart():c.getStart(r),l.getEnd());return o(_,"code",e.createTextSpanFromNode(n,r),i)}}}(c,t);u&&n.push(u),s--,e.isIfStatement(c)&&c.elseStatement&&e.isIfStatement(c.elseStatement)?(p(c.expression),p(c.thenStatement),s++,p(c.elseStatement),s--):c.forEachChild(p),s++}}}(t,r,s),function(t,r){for(var i=[],a=t.getLineStarts(),s=0;s1&&o.push(a(c,u,"comment"))}}function a(t,r,n){return o(e.createTextSpanFromBounds(t,r),n)}function o(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(c||(c={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,function(t,n){return d(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"===f(a))return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,p=n(i,o);_0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),y=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==y)return r(t.camelCase,y)}}}function a(e,t,r){if(C(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,7))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,7))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function m(e){return l(e)||_(e)||p(e)||95===e||36===e}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return v(e,!1)}function h(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a0&&(t.push(g(e.substr(r,n))),n=0)}return n>0&&t.push(g(e.substr(r,n))),t}(t)};var t});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=h}(c||(c={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function m(){var t=e.scanner.getToken();return 125===t&&(130===(t=_())&&10===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(92===t){if(20===(t=_())){if(10===(t=_()))return p(),!0}else{if(10===t)return p(),!0;if(72===t||e.isKeyword(t))if(144===(t=_())){if(10===(t=_()))return p(),!0}else if(59===t){if(h(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&144===(t=_())&&10===(t=_())&&p()}else 40===t&&119===(t=_())&&(72===(t=_())||e.isKeyword(t))&&144===(t=_())&&10===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(85===t){if(f(),18===(t=_())){for(t=_();19!==t&&1!==t;)t=_();19===t&&144===(t=_())&&10===(t=_())&&p()}else if(40===t)144===(t=_())&&10===(t=_())&&p();else if(92===t&&(72===(t=_())||e.isKeyword(t))&&59===(t=_())&&h(!0))return!0;return!0}return!1}function h(t){var r=t?_():e.scanner.getToken();return 134===r&&(20===(r=_())&&10===(r=_())&&p(),!0)}function v(){var t=e.scanner.getToken();if(72===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10===t&&p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)m()||g()||y()||n&&(h(!1)||v())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,D=i;b=0&&i.length>a+1),i[a+1]}(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:function(e,t){for(var r=0,n=0,i=e.getChildren();n0&&27===e.last(r).kind&&n++;return n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,n);if(!s)return;var u=s.list,l=s.argumentIndex,_=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===u.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:l,argumentCount:_}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?c(i,0,n):void 0;if(e.isTemplateHead(t)&&193===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(206===p.kind),c(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return c(f,l=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.left)?s(t.left)+1:2}function c(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:function(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();if(206===n.kind){var o=e.last(n.templateSpans);0===o.literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1))}return e.createTextSpan(i,a-i)}(t,n),argumentIndex:r,argumentCount:i}}function u(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function l(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,c,_){var g=t.getTypeChecker(),y=e.findTokenOnLeftOfPosition(r,n);if(y){var h=!!c&&"characterTyped"===c.kind;if(!h||!e.isInString(r,n,y)&&!e.isInComment(r,n)){var v=!!c&&"invoked"===c.kind,b=function(t,r,n,i,c){for(var u=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.showSyntaxKind(t)+", parent: "+e.Debug.showSyntaxKind(t.parent)});var c=function(t,r,n,i){return function(t,r,n,i){var o=function(t,r,n){if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 195:case 156:case 196:case 197:var o=a(t,r);if(!o)return;var c=o.argumentIndex,u=o.argumentCount,l=o.argumentsSpan,_=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return _&&{contextualType:_,argumentIndex:c,argumentCount:u,argumentsSpan:l};case 204:var d=function t(r){return e.isBinaryExpression(r.parent)?t(r.parent):r}(i),p=n.getContextualType(d),f=20===t.kind?0:s(i)-1,m=s(d);return p&&{contextualType:p,argumentIndex:f,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,n,i);if(o){var c,u=o.contextualType,l=o.argumentIndex,_=o.argumentCount,d=o.argumentsSpan,p=u.getCallSignatures();return 1!==p.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(p),node:t,symbol:(c=u.symbol,"__type"===c.name&&e.firstDefined(c.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0})||c)},argumentsSpan:d,argumentIndex:l,argumentCount:_}}}(t,0,n,i)||o(t,r,n)}(t,r,n,i);if(c)return{value:c}},l=t;!e.isSourceFile(l)&&(c||!e.isBlock(l));l=l.parent){var _=u(l);if("object"===f(_))return _.value}}(y,n,r,g,v);if(b){_.throwIfCancellationRequested();var D=function(t,r,n,a,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 28:return i(t,n,r.expression);default:return!1}}(a,s.node,n))return;var u=[],l=r.getResolvedSignatureForSignatureHelp(s.node,u,c);return 0===u.length?void 0:{kind:0,candidates:u,resolvedSignature:l};case 1:var _=s.called;if(o&&!i(a,n,e.isIdentifier(_)?_.parent:_))return;var u=e.getPossibleGenericSignatures(_,c,r);if(0!==u.length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,g,r,y,h);return _.throwIfCancellationRequested(),D?g.runWithCancellationToken(_,function(t){return 0===D.kind?d(D.candidates,D.resolvedSignature,b,r,t):function(t,r,n,i){var a=r.argumentCount,o=r.argumentsSpan,s=r.invocation,c=r.argumentIndex,u=i.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t);return u?{items:[function(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map(function(e){return m(e,n,i,a,s)}),u=t.getDocumentationComment(n),l=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:o.concat([e.punctuationPart(28)]),suffixDisplayParts:[e.punctuationPart(30)],separatorDisplayParts:p,parameters:c,documentation:u,tags:l}}(t,u,i,l(s),n)],applicableSpan:o,selectedItemIndex:0,argumentIndex:c,argumentCount:a}:void 0}(D.symbol,b,r,t)}):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=u(t.invocation),a=e.isIdentifier(i)?i.text:e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),function(r){return e.firstDefined(r.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,function(e){return d(a,a[0],t,r,e)})})})}}(b,t,_):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var _=70246400;function d(t,r,n,i,a){var o=n.isTypeParameterList,s=n.argumentCount,c=n.argumentsSpan,d=n.invocation,f=n.argumentIndex,g=l(d),y=2===d.kind?d.symbol:a.getSymbolAtLocation(u(d)),h=y?e.symbolToDisplayParts(a,y,void 0,void 0):e.emptyArray,v=t.map(function(t){return function(t,r,n,i,a,o){var s=(n?function(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map(function(e){return m(e,r,n,i,o)}),c=e.mapToDisplayParts(function(a){var s=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,_)]:[],c=e.createNodeArray(s.concat(r.getExpandedParameters(t).map(function(e){return r.symbolToParameterDeclaration(e,n,_)})));o.writeList(2576,c,i,a)});return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(28)],suffix:[e.punctuationPart(30)].concat(c)}}:function(t,r,n,i){var a=r.hasEffectiveRestParameter(t),o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts(function(a){if(t.typeParameters&&t.typeParameters.length){var s=e.createNodeArray(t.typeParameters.map(function(e){return r.typeParameterToDeclaration(e,n)}));o.writeList(53776,s,i,a)}}),c=r.getExpandedParameters(t).map(function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.symbolToParameterDeclaration(t,n,_);a.writeNode(4,o,i,e)}),s=r.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s}}(t,r,n,i,o)});return{isVariadic:a,parameters:c,prefix:s.concat([e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}})(t,i,a,o),c=s.isVariadic,u=s.parameters,l=s.prefix,d=s.suffix,f=r.concat(l),g=d.concat(function(t,r,n){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)})}(t,a,i)),y=t.getDocumentationComment(i),h=t.getJsDocTags();return{isVariadic:c,prefixDisplayParts:f,suffixDisplayParts:g,separatorDisplayParts:p,parameters:u,documentation:y,tags:h}}(t,h,o,a,g,i)});0!==f&&e.Debug.assertLessThan(f,s);var b=t.indexOf(r);return e.Debug.assert(-1!==b),{items:v,applicableSpan:c,selectedItemIndex:b,argumentIndex:f,argumentCount:s}}var p=[e.punctuationPart(27),e.spacePart()];function m(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.typeParameterToDeclaration(t,n);a.writeNode(4,o,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(c||(c={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings)return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=e.createMap(),a=e.createMap();return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)){var n=c(r.fileName);if(n){var i=s(r.fileName).getSourcePosition(r);return i&&i!==r?t(i)||i:void 0}}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)&&c(i.fileName)){var a=t.getProgram(),o=a.getCompilerOptions(),u=o.outFile||o.out,l=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,a.getCompilerOptions(),n,a.getCommonSourceDirectory(),r);if(void 0!==l){var _=s(l,i.fileName).getGeneratedPosition(i);return _===i?void 0:_}}},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var _=l(n);s=_&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(_.text,e.getLineStarts(_)),function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0})}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function u(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}function l(e){return t.getSourceFileLike?t.getSourceFileLike(e):c(e)||u(e)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var u=c[1];return r(n,e.base64decode(e.sys,u),i)}s=void 0}}var l=[];s&&l.push(s),l.push(i+".map");for(var _=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),d=0,p=l;d0&&u.push(e.createDiagnosticForNode(e.isVariableDeclaration(a.parent)?a.parent.name:a,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{if(e.isVariableStatement(a)&&a.parent===i&&2&a.declarationList.flags&&1===a.declarationList.declarations.length){var p=a.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&u.push(e.createDiagnosticForNode(p,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(a)&&u.push(e.createDiagnosticForNode(a.name||a,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(a)&&function(r,i,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&(i=t.body,!!e.forEachReturnStatement(i,n))&&function(e,t){var r=t.getTypeAtLocation(e),n=t.getSignaturesOfType(r,0),i=n.length?t.getReturnTypeOfSignature(n[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,r);var i})(r,i)&&!t.has(s(r))&&a.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(a,l,u),a.forEachChild(r)}(i),e.getAllowSyntheticDefaultImports(a.getCompilerOptions()))for(var d=0,p=i.imports;d0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?n(i,a,c):"",b=!1,D=100===c.kind&&e.isInExpressionContext(c);if(100===c.kind&&!D)return{displayParts:[e.keywordPart(100)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var x=void 0;if(p=D?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&189===c.parent.kind){var S=c.parent.name;(S===c||S&&0===S.getFullWidth())&&(c=c.parent)}var T=void 0;if(e.isCallOrNewExpression(c)?T=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?T=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(T=c.parent),T){x=i.getResolvedSignature(T,[]);var C=192===T.kind||e.isCallExpression(T)&&98===T.expression.kind,E=C?p.getConstructSignatures():p.getCallSignatures();if(e.contains(E,x.target)||e.contains(E,x)||(x=E.length?E[0]:void 0),x){switch(C&&32&h?(v="constructor",H(p.symbol,v)):2097152&h?(G(v="alias"),y.push(e.spacePart()),C&&(y.push(e.keywordPart(95)),y.push(e.spacePart())),W(a)):H(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(57)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(i,p.symbol,s,void 0,5)),y.push(e.lineBreakPart())),C&&(y.push(e.keywordPart(95)),y.push(e.spacePart())),Y(x,E,262144);break;default:Y(x,E)}b=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||124===c.kind&&157===c.parent.kind){var k=c.parent;e.find(a.declarations,function(e){return e===(124===c.kind?k.parent:k)})&&(E=157===k.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures(),x=i.isImplementationOfOverload(k)?E[0]:i.getSignatureFromDeclaration(k),157===k.kind?(v="constructor",H(p.symbol,v)):H(160!==k.kind||2048&p.symbol.flags||4096&p.symbol.flags?a:p.symbol,v),Y(x,E),b=!0)}}if(32&h&&!b&&!D&&(V(),e.getDeclarationOfKind(a,209)?G("local class"):y.push(e.keywordPart(76)),y.push(e.spacePart()),W(a),X(a,o)),64&h&&2&u&&(U(),y.push(e.keywordPart(110)),y.push(e.spacePart()),W(a),X(a,o)),524288&h&&2&u&&(U(),y.push(e.keywordPart(140)),y.push(e.spacePart()),W(a),X(a,o),y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(U(),e.some(a.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(y.push(e.keywordPart(77)),y.push(e.spacePart())),y.push(e.keywordPart(84)),y.push(e.spacePart()),W(a)),1536&h&&!D){U();var N=(J=e.getDeclarationOfKind(a,244))&&J.name&&72===J.name.kind;y.push(e.keywordPart(N?131:130)),y.push(e.spacePart()),W(a)}if(262144&h&&2&u)if(U(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),W(a),a.parent)q(),W(a.parent,s),X(a.parent,s);else{var A=e.getDeclarationOfKind(a,150);if(void 0===A)return e.Debug.fail();(J=A.parent)&&(e.isFunctionLikeKind(J.kind)?(q(),x=i.getSignatureFromDeclaration(J),161===J.kind?(y.push(e.keywordPart(95)),y.push(e.spacePart())):160!==J.kind&&J.name&&W(J.symbol),e.addRange(y,e.signatureToDisplayParts(i,x,o,32))):242===J.kind&&(q(),y.push(e.keywordPart(140)),y.push(e.spacePart()),W(J.symbol),X(J.symbol,o)))}if(8&h&&(v="enum member",H(a,"enum member"),278===(J=a.declarations[0]).kind)){var F=i.getConstantValue(J);void 0!==F&&(y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(U(),!b){var P=i.getAliasedSymbol(a);if(P!==a&&P.declarations&&P.declarations.length>0){var w=P.declarations[0],I=e.getNameOfDeclaration(w);if(I){var O=e.isModuleWithStringLiteralName(w)&&e.hasModifier(w,2),M="default"!==a.name&&!O,L=t(i,P,e.getSourceFileOfNode(w),w,I,u,M?a:P);y.push.apply(y,L.displayParts),y.push(e.lineBreakPart()),m=L.documentation,g=L.tags}}}switch(a.declarations[0].kind){case 247:y.push(e.keywordPart(85)),y.push(e.spacePart()),y.push(e.keywordPart(131));break;case 254:y.push(e.keywordPart(85)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?59:80));break;case 257:y.push(e.keywordPart(85));break;default:y.push(e.keywordPart(92))}y.push(e.spacePart()),W(a),e.forEach(a.declarations,function(t){if(248===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),y.push(e.keywordPart(134)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),W(n,s))}return!0}})}if(!b)if(""!==v){if(p)if(D?(U(),y.push(e.keywordPart(100))):H(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||D)if(y.push(e.punctuationPart(57)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var R=e.mapToDisplayParts(function(t){var r=i.typeParameterToDeclaration(p,s);K().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(y,R)}else e.addRange(y,e.typeToDisplayParts(i,p,s));else(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v)&&(E=p.getNonNullableType().getCallSignatures()).length&&Y(E[0],E)}else v=r(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,function(e){return 284===e.kind})))for(var B=0,j=a.declarations;B0))break}}return 0===_.length&&m&&(_=m),0===d.length&&g&&(d=g),{displayParts:y,documentation:_,symbolKind:v,tags:0===d.length?void 0:d};function K(){return f||(f=e.createPrinter({removeComments:!0})),f}function U(){y.length&&y.push(e.lineBreakPart()),V()}function V(){l&&(G("alias"),y.push(e.spacePart()))}function q(){y.push(e.spacePart()),y.push(e.keywordPart(93)),y.push(e.spacePart())}function W(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(y,n),16777216&a.flags&&y.push(e.punctuationPart(56))}function H(t,r){U(),r&&(G(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(y.push(e.spacePart()),W(t)))}function G(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function Y(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(38)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(21)));var a=t.getDocumentationComment(i);_=0===a.length?void 0:a,d=t.getJsDocTags()}function X(t,r){var n=e.mapToDisplayParts(function(n){var a=i.symbolToTypeParameterDeclarations(t,r);K().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)});e.addRange(y,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(c||(c={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.composite=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=r):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return r.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===c?e.Debug.fail("Output generation failed"):{outputText:c,diagnostics:i,sourceMapText:u}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,function(t){return"object"===f(t.type)&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,function(e){return e===i})||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a>=a;return r}(f,p),0,n),c[u]=(d=1+((l=f)>>(_=p)&o),e.Debug.assert((d&o)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(o<<_)|d<<_)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*a]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*a]="ContextRulesSpecific",e[e.ContextRulesAny=3*a]="ContextRulesAny",e[e.NoContextRulesSpecific=4*a]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*a]="NoContextRulesAny"}(i||(i={}))}(e.formatting||(e.formatting={}))}(c||(c={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 240:case 241:return e.rangeContainsRange(t.members,r);case 244:var n=t.body;return!!n&&245===n.kind&&e.rangeContainsRange(n.statements,r);case 284:case 218:case 245:return e.rangeContainsRange(t.statements,r);case 274:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function _(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)})}function d(r,n,i,a,o,s,c,u,l){var _,d,f,m,g=s.options,y=s.getRule,h=new t.FormattingContext(l,c,g),v=-1,b=[];if(o.advance(),o.isOnToken()){var D=l.getLineAndCharacterOfPosition(n.getStart(l)).line,x=D;n.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,d,p){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var f=T(i,s,d,p);var y=a;e.forEachChild(i,function(e){b(e,-1,i,f,s,c,!1)},function(r){!function(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 157:case 239:case 196:case 156:case 155:case 197:if(e.typeParameters===t)return 28;if(e.parameters===t)return 20;break;case 191:case 192:if(e.typeArguments===t)return 28;if(e.arguments===t)return 20;break;case 164:if(e.typeArguments===t)return 28;break;case 168:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken();){var d=o.readTokenInfo(n);if(d.token.end>r.pos)break;if(d.token.kind===c){_=l.getLineAndCharacterOfPosition(d.token.pos).line,D(d,n,s,n);var p=void 0;if(-1!==v)p=v;else{var f=e.getLineStartPositionForPosition(d.token.pos,l);p=t.SmartIndenter.findFirstNonWhitespaceColumn(f,d.token.pos,l,g)}u=T(n,a,p,g.indentSize)}else D(d,n,s,n)}for(var m=-1,y=0;yi.end)break;D(h,i,f,i)}function b(a,s,c,u,_,d,p,f){var h=a.getStart(l),b=l.getLineAndCharacterOfPosition(h).line,x=b;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var S=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(S=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,g);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(g);return _>u?_:u}}return-1}(h,a.end,_,r,s))&&(s=S),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endh)break;D(T,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)&&11!==a.kind){var T=o.readTokenInfo(a);return e.Debug.assert(T.token.end===a.end,"Token end is child end"),D(T,i,u,a),s}var C=152===a.kind?b:d,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===r?{indentation:r===m?v:a.getIndentation(),delta:Math.min(g.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===m?{indentation:v,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,b,S,i,u,C);if(n(a,y,b,x,E.indentation,E.delta),11===a.kind){var k={pos:a.getStart(),end:a.getEnd()};A(k,E.indentation,!0,!1)}return y=i,f&&187===c.kind&&-1===s&&(s=E.indentation),s}function D(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&E(t.leadingTrivia,n,y,i);var p=0,f=e.rangeContainsRange(r,t.token),g=l.getLineAndCharacterOfPosition(t.token.pos);if(f){var h=u(t.token),b=_;if(p=k(t.token,g,n,y,i),!h)if(0===p){var D=b&&l.getLineAndCharacterOfPosition(b.end).line;d=c&&g.line!==D}else d=1===p}if(t.trailingTrivia&&E(t.trailingTrivia,n,y,i),d){var x=f&&!u(t.token)?i.getIndentationForToken(g.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,x,a);S=C(t.leadingTrivia,T,S,function(e){return N(e.pos,T,!1)})}-1!==x&&S&&(N(t.token.pos,x,1===p),m=g.line,v=x)}o.advance(),y=n}}(n,n,D,x,i,a)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(C(S,i,!1,function(e){return k(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}),function(){var e=_?_.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;F(t,n+1,_)}())}return b;function T(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 83:case 107:case 58:return!1;case 42:case 30:switch(a.kind){case 262:case 263:case 261:return!1}break;case 22:case 23:if(181!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 240:return 76;case 241:return 110;case 239:return 90;case 243:return 243;case 158:return 126;case 159:return 137;case 156:if(t.asteriskToken)return 40;case 154:case 151:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){r.parent&&t.SmartIndenter.shouldIndentChildNode(g,r.parent,r,l)&&(i+=e?g.indentSize:-g.indentSize,a=t.SmartIndenter.shouldIndentChildNode(g,r)?g.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(g,r,e,l,!0)?a:0}}function C(t,n,i,a){for(var o=0,s=t;o0){var S=p(x,g);I(b,D.character,S)}else w(b,D.character)}}}}else i||N(r.pos,n,!1)}function F(t,r,n){for(var i=t;io)){var s=P(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),w(s,o+1-s))}}}function P(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function w(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function I(t,r,n){(r||n)&&b.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},r)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}var m=s(l,e,i),y=m.line===t.line||d(l,e,t.line,i);if(p){var h=g(e,i,u,!y);if(-1!==h)return h+n;if(-1!==(h=c(e,l,t,y,i,u)))return h+n}x(u,l,e,i,o)&&!y&&(n+=u.indentSize);var v=_(l,e,t.line,i);l=(e=l).parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):m}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(284===r.kind||!i)?h(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(222===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,83,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 164:return a(n.typeArguments);case 188:return a(n.properties);case 187:return a(n.elements);case 168:return a(n.members);case 239:case 196:case 197:case 156:case 155:case 160:case 157:case 166:case 161:return a(n.typeParameters)||a(n.parameters);case 240:case 209:case 241:case 242:case 308:return a(n.typeParameters);case 192:case 191:return a(n.typeArguments)||a(n.arguments);case 238:return a(n.declarations);case 252:case 256:return a(n.elements);case 184:case 185:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,n,i);a=l(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&204!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var h=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return h&&!e.rangeContainsRange(h,c)?m(h,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&x(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t),m=0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0;return o(d,p,void 0,m,t,!0,c)}var y=g(d,t,c,!0);if(-1!==y)return y;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){return o(e,r.getLineAndCharacterOfPosition(e.getStart(r)),t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=D,r.shouldIndentChildNode=x}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(c||(c={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function a(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function o(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var s,c;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll"}(s=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(c=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var l,_={leadingTriviaOption:s.Exclude,trailingTriviaOption:c.Exclude};function d(e,t,r,n){return{pos:p(e,t,n),end:f(e,r,n)}}function p(t,r,n){var i=n.leadingTriviaOption;if(i===s.Exclude)return r.getStart(t);var a=r.getFullStart(),o=r.getStart(t);if(a===o)return o;var c=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(o,t)===c)return i===s.IncludeAll?a:o;var l=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+l,t);return _=u(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function f(t,r,n){var i=r.end,a=n.trailingTriviaOption;if(a===c.Exclude||e.isExpression(r)&&a!==c.Include)return i;var o=e.skipTrivia(t.text,i,!0);return o===i||a!==c.Include&&!e.isLineBreak(t.text.charCodeAt(o-1))?i:o}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&188===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(l||(l={}));var g,y=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.deleteRange=function(e,t){this.changes.push({kind:l.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:s.IncludeAll});var i=p(e,t,n),a=f(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:s.IncludeAll});var i=p(e,t,n),a=void 0===r?e.text.length:p(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=_),this.replaceRange(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=_),this.replaceRange(e,d(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=_),this.replaceRangeWithNodes(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,d(e,t,t,_),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=_),this.replaceRangeWithNodes(e,d(e,t,r,i),n,i)},t.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n"})},t.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,[n].concat(r.body.statements))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,r.body.statements.concat([n]))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=p(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(t,r,n){var a=r.getStart(t),o=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,t),a,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,b(r).pos,n,i({indentation:o},this.getInsertNodeAtStartPrefixSuffix(t,r)))},t.prototype.getInsertNodeAtStartPrefixSuffix=function(t,r){var n=e.isObjectLiteralExpression(r)?",":"";if(0===b(r).length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t})){var i=e.positionsAreOnSameLine.apply(void 0,v(r,t).concat([t]));return{prefix:this.newLineCharacter,suffix:n+(i?this.newLineCharacter:"")}}return{prefix:"",suffix:n+this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:n}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&149===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.createToken(26)),f(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return i({},n,{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 240:case 244:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 237:case 10:case 72:return{prefix:", "};case 275:return{suffix:","+this.newLineCharacter};case 85:return{prefix:" "};case 151:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),197===r.kind){var i=e.findChildOfKind(r,37,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(90),e.createIdentifier(n)],{joiner:" "}),k(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(21))),218!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(18),e.createToken(97)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,196===r.kind?90:76,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&m(r,s)){var c=e.getLineAndCharacterOfPosition(t,u(t.text,i[a+1].getFullStart())),l=e.getLineAndCharacterOfPosition(t,s.end),_=void 0,d=void 0;l.line===c.line?(d=s.end,_=function(e){for(var t="",r=0;r=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function x(t){var n=e.visitEachChild(t,x,e.nullTransformationContext,S,x),i=e.nodeIsSynthesized(n)?n:Object.create(n);return i.pos=r(t),i.end=a(t),i}function S(t,n,i,o,s){var c=e.visitNodes(t,n,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=a(t),u}t.ChangeTracker=y,t.getNewFileText=function(e,t,r,n){return g.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map(function(e){return n(e,t,a).text}).join(a),c=e.createSourceFile("any file name",s,7,!0,r);return D(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=new C(n),a="\n"===n?1:0;return e.createPrinter({newLine:a,neverAsciiEscape:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:x(t)}}t.getTextChangesFromChanges=function(t,r,i,a){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),c=function(t){e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(s[t].range)+" and "+JSON.stringify(s[t+1].range)})},u=0;u-1,"Parameter not found in parent parameter list.");var s=e.createParameter(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||237===t.kind||153===t.kind||154===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.createToken(20));for(var o=0,s=n.parameters;ot&&(n?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return n?i.createArrayType(u):u}}function c(t,r){for(var n=[],i=0;i0)return T;var C=f(s.checker.getTypeAtLocation(t),s.checker).getReturnType(),E=e.getSynthesizedDeepClone(h),k=s.checker.getPromisedTypeOfPromise(C)?e.createAwait(E):E;if(c)return[e.createReturn(k)];var N=d(r,k,s);return r&&r.types.push(C),N;default:i=!1}return e.emptyArray}function f(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function m(t,r,n){for(var i=[],a=0,o=r;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)})}return i}function g(t,r){var n,i=0,a=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=o(t.parameters[0].name)):e.isIdentifier(t)&&(n=o(t));if(n&&"undefined"!==n.identifier.text)return n;function o(t){var n,o=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return o&&r.synthNamesMap.get(e.getSymbolId(o).toString())||{identifier:t,types:a,numberOfAssignmentsOriginal:i}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){i=!0;var o=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n)});return i?[t.createCodeFixAction(r,o,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,r.file,r.start,e.program.getTypeChecker(),e)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(l.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),l.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,r.right),d([e.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.createToken(85),e.createToken(77)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(85),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,s);var f,m;return!1}(r,i,h,p,g)}default:return!1}}function a(e){return d(void 0,e)}function o(t){return d([e.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function c(t,r,n){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function u(t,r,n,i){return"default"===r?e.makeImport(e.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[l(r,t)],n,i)}function l(t,r){return e.createImportSpecifier(void 0!==t&&t!==r?e.createIdentifier(t):void 0,e.createIdentifier(r))}function _(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,n)],2))}function d(t,r){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===r?void 0:e.createLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,c=a.program,u=a.preferences,l=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,r,a,o,c){var u={original:(_=t,d=e.createMultiMap(),function t(r,n){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 189:return t.name!==e;case 186:case 253:return t.propertyName!==e;default:return!0}}(r)&&n(r),r.forEachChild(function(e){return t(e,n)})}(_,function(e){return d.add(e.text,e)}),d),additional:e.createMap()},l=function(t,r,i){var a=e.createMap();return n(t,function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(t.name.text,t,67220415,!0))&&a.set(o,s("_"+o,i))}),a}(t,r,u);var _,d;!function(t,r,i){n(t,function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.createIdentifier(r.get(o)||o))}})}(t,l,a);for(var p=!1,f=0,m=t.statements;f0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach(function(e){t.deleteModifier(r,e)}):(t.delete(r,n),function(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,function(e){var i=n.parent.parameters.indexOf(n);e.arguments.length>i&&t.delete(r,e.arguments[i])})}(t,r,n,a,i)))}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,g=i.program,y=g.getTypeChecker(),h=g.getSourceFiles(),v=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(v))return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,v)}),e.Diagnostics.Remove_template_tag)];if(28===v.kind)return[c(T=e.textChanges.ChangeTracker.with(i,function(e){return u(e,m,v)}),e.Diagnostics.Remove_type_parameters)];var b=l(v);if(b)return[c(T=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b)}),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var D=e.textChanges.ChangeTracker.with(i,function(e){return _(v,e,m,y,h,!1)});if(D.length)return[c(D,e.Diagnostics.Remove_destructuring)];var x=e.textChanges.ChangeTracker.with(i,function(e){return d(m,v,e)});if(x.length)return[c(x,e.Diagnostics.Remove_variable_statement)];var S=[];if(127===v.kind){var T=e.textChanges.ChangeTracker.with(i,function(e){return s(e,m,v)}),C=e.cast(v.parent,e.isInferTypeNode).typeParameter.name.text;S.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,C],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var E=e.textChanges.ChangeTracker.with(i,function(e){return f(m,v,e,y,h,!1)});if(E.length){C=e.isComputedPropertyName(v.parent)?v.parent:v;S.push(c(E,[e.Diagnostics.Remove_declaration_for_Colon_0,C.getText(m)]))}}var k=e.textChanges.ChangeTracker.with(i,function(e){return p(e,o,m,v)});return k.length&&S.push(t.createCodeFixAction(r,k,[e.Diagnostics.Prefix_0_with_an_underscore,v.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,g=m.getTypeChecker(),y=m.getSourceFiles();return t.codeFixAll(r,o,function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:p(t,o.code,c,m);break;case i:if(127===m.kind)break;var h=l(m);h?t.delete(c,h):e.isJSDocTemplateTag(m)?t.delete(c,m):28===m.kind?u(t,c,m):_(m,t,c,g,y,!0)||d(c,m,t)||f(c,m,t,g,y,!0);break;case a:127===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isStatement);e.Debug.assert(o.getStart(r)===a.getStart(r));var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements))switch(s.kind){case 222:if(s.elseStatement){if(e.isBlock(o.parent))break;return void t.replaceNode(r,o,e.createBlock(e.emptyArray))}case 224:case 225:return void t.delete(r,s)}if(e.isBlock(o.parent)){var c=n+i,u=e.Debug.assertDefined(function(e,t){for(var r,n=0,i=e;nh.length)D(l.getSignatureFromDeclaration(u[u.length-1]),f,d,a(s));else e.Debug.assert(u.length===h.length),c(function(t,r,n,o,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_=c.parameters.length&&(!p.hasRestParameter||c.hasRestParameter)&&(c=p)}var f=c.parameters.length-(c.hasRestParameter?1:0),m=c.parameters.map(function(e){return e.name}),g=i(f,m,void 0,u,!1);if(l){var y=e.createArrayTypeNode(e.createKeywordTypeNode(120)),h=e.createParameter(void 0,void 0,e.createToken(25),m[f]||"rest",f>=u?e.createToken(56):void 0,y,void 0);g.push(h)}return function(t,r,n,i,o,s,c){return e.createMethod(void 0,t,void 0,r,n?e.createToken(56):void 0,i,o,s,a(c))}(o,r,n,void 0,g,void 0,s)}(h,d,g,f,s))}}function D(t,i,a,s){var u=function(t,n,i,a,o,s,c){var u=t.program.getTypeChecker().signatureToSignatureDeclaration(n,156,i,257,r(t));if(!u)return;return u.decorators=void 0,u.modifiers=a,u.name=o,u.questionToken=s?e.createToken(56):void 0,u.body=c,u}(o,t,n,i,a,g,s);u&&c(u)}}function i(t,r,n,i,a){for(var o=[],s=0;s=i?e.createToken(56):void 0,a?void 0:n&&n[s]||e.createKeywordTypeNode(120),void 0);o.push(c)}return o}function a(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}function o(t,r){return e.createPropertyAssignment(e.createStringLiteral(t),r)}function s(t,r){return e.find(t.properties,function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r})}t.createMissingMemberNodes=function(e,t,r,i,a){for(var o=e.symbol.members,s=0,c=t;s0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&230===a.kind&&s){var u=f(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===u.length?e.createReturn(u[0].name):e.createReturn(e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=f(r,n);1===_.length?l.push(e.createReturn(_[0].name)):l.push(e.createReturn(e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),A=N.body,F=N.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(A),e.isClassLike(r)){var P=v?[]:[e.createToken(113)];o.facts&i.InStaticRegion&&P.push(e.createToken(116)),o.facts&i.IsAsyncFunction&&P.push(e.createToken(121)),k=e.createMethod(void 0,P.length?P:void 0,o.facts&i.IsGenerator?e.createToken(40):void 0,b,void 0,T,D,c,A)}else k=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(121)]:void 0,o.facts&i.IsGenerator?e.createToken(40):void 0,b,T,D,c,A);var w=e.textChanges.ChangeTracker.fromContext(s),I=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}((m(o.range)?e.last(o.range):o.range).end,r);I?w.insertNodeBefore(s.file,I,k,!0):w.insertNodeAtEndOfScope(s.file,r,k);var O=[],M=function(t,r,n){var a=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(r,o,h),L=e.createCall(M,C,x);if(o.facts&i.IsGenerator&&(L=e.createYield(e.createToken(40),L)),o.facts&i.IsAsyncFunction&&(L=e.createAwait(L)),a.length&&!u)if(e.Debug.assert(!F),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length){var R=a[0];O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(R.name),e.getSynthesizedDeepClone(R.type),L)],R.parent.flags)))}else{for(var B=[],j=[],J=a[0].parent.flags,z=!1,K=0,U=a;K0);for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(b,r);m.insertNodeBefore(o.file,D,h,!0),m.replaceNode(o.file,t,v)}else{var x=e.createVariableDeclaration(l,p,f),S=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(S){m.insertNodeBefore(o.file,S,x);var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}else if(221===t.parent.kind&&r===e.findAncestor(t,_)){var T=e.createVariableStatement(void 0,e.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,T)}else{var T=e.createVariableStatement(void 0,e.createVariableDeclarationList([x],2)),D=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(var i=(n||t).parent;;i=i.parent){if(g(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):e.Debug.assertDefined(a)}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r);if(0===D.pos?m.insertNodeAtTopOfFile(o.file,T,!1):m.insertNodeBefore(o.file,D,T,!1),221===t.parent.kind)m.delete(o.file,t.parent);else{var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}}}var C=m.getChanges(),E=t.getSourceFile().fileName,k=e.getRenameLocation(C,E,l,!0);return{renameFilename:E,renameLocation:k,edits:C}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function l(t,r){var a=r.length;if(0===a)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(t,r.start),t,r),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o!==s){if(!g(o.parent))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};for(var l=[],_=0,d=o.parent.statements;_=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else u|=i.UsesThis}if(e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 239:case 240:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope))}return!1}var p=_;switch(a.kind){case 222:case 235:_=0;break;case 218:a.parent&&235===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 271:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 178:case 100:u|=i.UsesThis;break;case 233:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 229:case 228:var f=a.label;f?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(229===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 201:u|=i.IsAsyncFunction;break;case 207:u|=i.IsGenerator;break;case 230:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=p}(t),o}}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,r){var a=r.file,o=function(t){var r=m(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(151===(r=r.parent).kind&&(r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(r)&&(o.push(r),284===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],g=[],y=[],h=e.createMap(),v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var D=t.range,x=e.first(D).getStart(),S=e.last(D).end;l=e.createFileDiagnostic(o,x,S-x,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var T=0,C=r;T=u)return m;if(N.set(m,u),y){for(var h=0,v=d;h0){for(var O=e.createMap(),M=0,L=F;void 0!==L&&M=0)return;var i=e.isIdentifier(n)?q(n):s.getSymbolAtLocation(n);if(i){var a=e.find(y,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(n,r)})}for(var K=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(m(t.range)||0===v.length),s&&!m(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else if(o&&r>0){var c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),g[r].push(c)}else if(u){var c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),g[r].push(c)}},U=0;Un.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,function(e){return e.end>n.end},a);if(-1===s||!(0===s||i[s].getStart(r)=i&&e.every(t,function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)})}(t.parameters,r))return!1;switch(t.kind){case 239:case 156:return!!t.name&&!!t.body&&!r.isImplementationOfOverload(t);case 157:return e.isClassDeclaration(t.parent)?!!t.body&&!!t.parent.name&&!r.isImplementationOfOverload(t):_(t.parent.parent)&&!!t.body&&!r.isImplementationOfOverload(t);case 196:case 197:return _(t.parent)}return!1}(o,n)&&e.rangeContainsRange(o,a))||o.body&&e.rangeContainsRange(o.body,a)?void 0:o}function _(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function d(t){return t.length>0&&e.isThis(t[0].name)}function p(t){return d(t)&&(t=e.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function f(t,r){var n=p(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,function(t,r){var i,a,o=g(n[r]),s=(i=o,a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.createShorthandPropertyAssignment(i):e.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),m(t,s),s});if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.createPropertyAssignment(g(e.last(n)),e.createArrayLiteral(s));o.push(c)}return e.createObjectLiteral(o,!1)}function m(t,r){var n=t.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i310});return n.kind<148?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<148?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 239:case 196:case 156:case 155:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 240:case 209:case 241:case 242:case 243:case 244:case 248:case 257:case 253:case 250:case 251:case 158:case 159:case 168:r(a),e.forEachChild(a,i);break;case 151:if(!e.hasModifier(a,92))break;case 237:case 186:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 278:case 154:case 153:r(a);break;case 255:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 249:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(251===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 204:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}}),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),g=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function y(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!h(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[h(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function h(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function v(){return{target:1,jsx:1}}e.toEditorSettings=y,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=v,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var b=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function k(t){var r=function(t){switch(t.kind){case 10:case 8:if(149===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 72:return!e.isObjectLiteralElement(t.parent)||188!==t.parent.parent.kind&&268!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function N(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,function(n){return e.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)});if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,function(e){return e.getProperty(a)}):s}e.ThrottledCancellationToken=E,e.createLanguageService=function(t,r,n){var a;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),void 0===n&&(n=!1);var o,s,c=new D(t),u=0,l=new C(t.getCancellationToken&&t.getCancellationToken()),_=t.getCurrentDirectory();function d(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var p=e.hostUsesCaseSensitiveFileNames(t),f=e.createGetCanonicalFileName(p),m=e.getSourceMapper({useCaseSensitiveFileNames:function(){return p},getCurrentDirectory:function(){return _},getProgram:v,fileExists:t.fileExists&&function(e){return t.fileExists(e)},readFile:t.readFile&&function(e,r){return t.readFile(e,r)},getDocumentPositionMapper:t.getDocumentPositionMapper&&function(e,r){return t.getDocumentPositionMapper(e,r)},getSourceFileLike:t.getSourceFileLike&&function(e){return t.getSourceFileLike(e)},log:d});function g(e){var t=o.getSourceFile(e);if(!t)throw new Error("Could not find sourceFile: '"+e+"' in "+(o&&JSON.stringify(o.getSourceFiles().map(function(e){return e.fileName})))+".");return t}function h(){if(e.Debug.assert(!n),t.getProjectVersion){var i=t.getProjectVersion();if(i){if(s===i&&!t.hasChangedAutomaticTypeDirectiveNames)return;s=i}}var a=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==a&&(d("TypeRoots version has changed; provide new program"),o=void 0,u=a);var c=new b(t,f),g=c.getRootFileNames(),y=t.hasInvalidatedResolution||e.returnFalse,h=c.getProjectReferences();if(!e.isProgramUptoDate(o,g,c.compilationSettings(),function(e){return c.getVersion(e)},T,y,!!t.hasChangedAutomaticTypeDirectiveNames,h)){var v=c.compilationSettings(),D={getSourceFile:function(t,r,n,i){return C(t,e.toPath(t,_,f),0,0,i)},getSourceFileByPath:C,getCancellationToken:function(){return l},getCanonicalFileName:f,useCaseSensitiveFileNames:function(){return p},getNewLine:function(){return e.getNewLineCharacter(v,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return _},fileExists:T,readFile:function(r){var n=e.toPath(r,_,f),i=c&&c.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.assertDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n)},hasInvalidatedResolution:y,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(D.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(D.resolveModuleNames=function(e,r,n,i){return t.resolveModuleNames(e,r,n,i)}),t.resolveTypeReferenceDirectives&&(D.resolveTypeReferenceDirectives=function(e,r,n){return t.resolveTypeReferenceDirectives(e,r,n)});var x=r.getKeyForCompilationSettings(v),S={rootNames:g,options:v,host:D,oldProgram:o,projectReferences:h};return o=e.createProgram(S),c=void 0,m.clearCache(),void o.getTypeChecker()}function T(r){var n=e.toPath(r,_,f),i=c&&c.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function C(t,n,i,a,s){e.Debug.assert(void 0!==c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var u=c&&c.getOrCreateEntryByPath(t,n);if(u){if(!s){var l=o&&o.getSourceFileByPath(n);if(l)return e.Debug.assertEqual(u.scriptKind,l.scriptKind,"Registered script kind should match new script kind.",n),r.updateDocumentWithKey(t,n,v,x,u.scriptSnapshot,u.version,u.scriptKind)}return r.acquireDocumentWithKey(t,n,v,x,u.scriptSnapshot,u.version,u.scriptKind)}}}function v(){if(!n)return h(),o;e.Debug.assert(void 0===o)}function x(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i})),h();var a=n.map(g),s=g(t);return e.DocumentHighlights.getDocumentHighlights(o,l,s,r,a)}function S(t,r,n,i){h();var a=n&&n.isForRename?o.getSourceFiles().filter(function(e){return!o.isSourceFileDefaultLibrary(e)}):o.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(o,l,a,t,r,n,i)}function T(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var E=e.createMapFromTemplate(((a={})[18]=19,a[20]=21,a[22]=23,a[30]=28,a));function A(r,n){var i=function(t){return e.toPath(t,_,f)};switch(r.type){case"install package":return t.installPackage?t.installPackage({fileName:i(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`");case"generate types":var a=r.fileToGenerateTypesFor,o=r.outputFileName;return t.inspectValue?t.inspectValue({fileNameToRequire:a}).then(function(r){var a=i(o);return t.writeFile(a,e.valueInfoToDeclarationFileText(r,n||e.testFormatSettings)),{successMessage:"Wrote types to '"+a+"'"}}):Promise.reject("Host does not implement `installPackage`");default:return e.Debug.assertNever(r)}}function F(r,n,i,a){var o="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:o[0],endPosition:o[1],program:v(),host:t,formatContext:e.formatting.getFormatContext(a),cancellationToken:l,preferences:i}}return E.forEach(function(e,t){return E.set(e.toString(),Number(t))}),{dispose:function(){o&&(e.forEach(o.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,o.getCompilerOptions())}),o=void 0),t=void 0},cleanupSemanticCache:function(){o=void 0},getSyntacticDiagnostics:function(e){return h(),o.getSyntacticDiagnostics(g(e),l).slice()},getSemanticDiagnostics:function(t){h();var r=g(t),n=o.getSemanticDiagnostics(r,l);if(!e.getEmitDeclarations(o.getCompilerOptions()))return n.slice();var i=o.getDeclarationDiagnostics(r,l);return n.concat(i)},getSuggestionDiagnostics:function(t){return h(),e.computeSuggestionDiagnostics(g(t),o,l)},getCompilerOptionsDiagnostics:function(){return h(),o.getOptionsDiagnostics(l).concat(o.getGlobalDiagnostics(l))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return T(t)?(h(),e.getSemanticClassifications(o.getTypeChecker(),l,g(t),o.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return T(t)?(h(),e.getEncodedSemanticClassifications(o.getTypeChecker(),l,g(t),o.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,n,a){void 0===a&&(a=e.emptyOptions);var s=i({},e.identity(a),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return h(),e.Completions.getCompletionsAtPosition(t,o,d,g(r),n,s,a.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,s,c){return void 0===c&&(c=e.emptyOptions),h(),e.Completions.getCompletionEntryDetails(o,d,g(r),n,{name:i,source:s},t,a&&e.formatting.getFormatContext(a),c,l)},getCompletionEntrySymbol:function(t,r,n,i){return h(),e.Completions.getCompletionEntrySymbol(o,d,g(t),r,{name:n,source:i})},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;h();var a=g(t);return e.SignatureHelp.getSignatureHelpItems(o,a,r,i,l)},getQuickInfoAtPosition:function(t,r){h();var n=g(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=o.getTypeChecker(),s=function(t,r){var n=k(t);if(n){var i=r.getContextualType(n.parent),a=i&&N(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(i,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 72:return!e.isLabelName(r)&&!e.isTagName(r);case 189:case 148:return!e.isInComment(t,n);case 100:case 178:case 98:return!0;default:return!1}}(n,i,r)?a.getTypeAtLocation(i):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,n),displayParts:a.runWithCancellationToken(l,function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(i))}),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags():void 0}}var u=a.runWithCancellationToken(l,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(i),i)}),_=u.symbolKind,d=u.displayParts,p=u.documentation,f=u.tags;return{kind:_,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(i,n),displayParts:d,documentation:p,tags:f}}},getDefinitionAtPosition:function(t,r){return h(),e.GoToDefinition.getDefinitionAtPosition(o,g(t),r)},getDefinitionAndBoundSpan:function(t,r){return h(),e.GoToDefinition.getDefinitionAndBoundSpan(o,g(t),r)},getImplementationAtPosition:function(t,r){return h(),e.FindAllReferences.getImplementationsAtPosition(o,l,o.getSourceFiles(),g(t),r)},getTypeDefinitionAtPosition:function(t,r){return h(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),g(t),r)},getReferencesAtPosition:function(t,r){return h(),S(e.getTouchingPropertyName(g(t),r),r,{},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return h(),e.FindAllReferences.findReferencedSymbols(o,l,o.getSourceFiles(),g(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(x(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return{fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1,isInString:t.isInString}})})},getDocumentHighlights:x,getNameOrDottedNameSpan:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 189:case 148:case 10:case 87:case 102:case 96:case 98:case 100:case 178:case 72:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(244!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),h();var a=n?[g(n)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,o.getTypeChecker(),l,t,r,i)},getRenameInfo:function(t,r,n){return h(),e.Rename.getRenameInfo(o,g(t),r,n)},findRenameLocations:function(t,r,n,i,a){h();var o=g(t),s=e.getTouchingPropertyName(o,r);if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map(function(t){return{fileName:o.fileName,textSpan:e.createTextSpanFromNode(t.tagName,o)}})}return S(s,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,isForRename:!0},function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,a||!1)})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),l)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),l)},getOutliningSpans:function(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)},getTodoComments:function(t,r){h();var n=g(t);l.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested(),e.Debug.assert(u.length===r.length+3);var _=u[1],d=u.index+_.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=u[2];s.push({descriptor:p,message:m,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?E.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=y(n),o=c.getCurrentSourceFile(t);d("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return d("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,n,i){var a=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(y(i)))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(y(r)))},getFormattingEditsAfterKeystroke:function(t,r,n,i){var a=c.getCurrentSourceFile(t),o=e.formatting.getFormatContext(y(i));if(!e.isInComment(a,r))switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,o);case"}":return e.formatting.formatOnClosingCurly(r,a,o);case";":return e.formatting.formatOnSemicolon(r,a,o);case"\n":return e.formatting.formatOnEnter(r,a,o)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=30===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&function t(r){var n=r.openingElement,i=r.closingElement,a=r.parent;return!e.tagNamesAreEquivalent(n.tagName,i.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(n.tagName,a.openingElement.tagName)&&t(a)}(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,s,c){void 0===c&&(c=e.emptyOptions),h();var u=g(r),_=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(r){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:_,program:o,host:t,cancellationToken:l,formatContext:d,preferences:c})})},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),h(),e.Debug.assert("file"===r.type);var s=g(r.fileName),c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:o,host:t,cancellationToken:l,formatContext:c,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t,i="string"!=typeof t?r:void 0;return e.isArray(n)?Promise.all(n.map(function(e){return A(e,i)})):A(n,i)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),h(),e.Debug.assert("file"===r.type);var a=g(r.fileName),s=e.formatting.getFormatContext(n);return e.OrganizeImports.organizeImports(a,s,t,o,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(v(),r,n,t,e.formatting.getFormatContext(i),a,m)},getEmitOutput:function(r,n){void 0===n&&(n=!1),h();var i=g(r),a=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(o,i,n,l,a)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:v,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.emptyOptions),h();var i=g(t);return e.refactor.getApplicableRefactors(F(i,r,n))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),h();var s=g(t);return e.refactor.getEditsForRefactor(F(s,n,o,r),i,a)},toLineColumnOffset:m.toLineColumnOffset,getSourceMapper:function(){return m}}},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||259===t.parent.kind||function(e){return e&&e.parent&&190===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(4194304&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function u(r){return _(e.findPrecedingToken(r.pos,t))}function l(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 219:return D(r.declarationList.declarations[0]);case 237:case 154:case 153:return D(r);case 151:return function t(r){if(e.isBindingPattern(r.name))return C(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 239:case 156:case 155:case 158:case 159:case 157:case 196:case 197:return function(e){if(e.body)return x(e)?o(e):_(e.body)}(r);case 218:if(e.isFunctionBlock(r))return h=(y=r).statements.length?y.statements[0]:y.getLastToken(),x(y.parent)?c(y.parent,h):_(h);case 245:return S(r);case 274:return S(r.block);case 221:return o(r.expression);case 230:return o(r.getChildAt(0),r.expression);case 224:return s(r,r.expression);case 223:return _(r.statement);case 236:return o(r.getChildAt(0));case 222:return s(r,r.expression);case 233:return _(r.statement);case 229:case 228:return o(r.getChildAt(0),r.label);case 225:return(g=r).initializer?T(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 226:return s(r,r.expression);case 227:return T(r);case 232:return s(r,r.expression);case 271:case 272:return _(r.statements[0]);case 235:return S(r.tryBlock);case 234:case 254:return o(r,r.expression);case 248:return o(r,r.moduleReference);case 249:case 255:return o(r,r.moduleSpecifier);case 244:if(1!==e.getModuleInstanceState(r))return;case 240:case 243:case 278:case 186:return o(r);case 231:return _(r.statement);case 152:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 184:case 185:return C(r);case 241:case 242:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 243:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 240:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 246:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 245:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 243:case 240:return o(t);case 218:if(e.isFunctionBlock(t.parent))return o(t);case 274:return _(e.lastOrUndefined(t.parent.statements));case 246:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 184:var i=t.parent;return _(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return _(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 185:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}}(r);case 20:return function(e){return 223===e.parent.kind||191===e.parent.kind||192===e.parent.kind?u(e):195===e.parent.kind?l(e):_(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 196:case 239:case 197:case 156:case 155:case 158:case 159:case 157:case 224:case 223:case 225:case 227:case 191:case 192:case 195:return u(e);default:return _(e.parent)}}(r);case 57:return function(t){return e.isFunctionLike(t.parent)||275===t.parent.kind||151===t.parent.kind?u(t):_(t.parent)}(r);case 30:case 28:return function(e){return 194===e.parent.kind?l(e):_(e.parent)}(r);case 107:return function(e){return 223===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(r);case 83:case 75:case 88:return l(r);case 147:return function(e){return 227===e.parent.kind?l(e):_(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return E(r);if((72===r.kind||208===r.kind||275===r.kind||276===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(204===r.kind){var i=r,a=i.left,d=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return E(a);if(59===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===d.kind)return _(a)}if(e.isExpressionNode(r))switch(n.kind){case 223:return u(r);case 152:return _(r.parent);case 225:case 227:return o(r);case 204:if(27===r.parent.operatorToken.kind)return o(r);break;case 197:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 275:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 194:if(r.parent.type===r)return l(r.parent.type);break;case 237:case 151:var p=r.parent,f=p.initializer,m=p.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return u(r);break;case 204:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return _(r.parent)}}var g,y,h,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function D(r){if(226===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?C(r.name):r.initializer||e.hasModifier(r,1)||227===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function x(t){return e.hasModifier(t,1)||240===t.parent.kind&&157!==t.kind}function S(r){switch(r.parent.kind){case 244:if(1!==e.getModuleInstanceState(r.parent))return;case 224:case 222:case 226:return c(r.parent,r.statements[0]);case 225:case 227:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function T(e){if(238!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function C(t){var r=e.forEach(t.elements,function(e){return 210!==e.kind?e:void 0});return r?_(r):186===t.parent.kind?o(t.parent):b(t.parent)}function E(t){e.Debug.assert(185!==t.kind&&184!==t.kind);var r=187===t.kind?t.elements:t.properties,n=e.forEach(r,function(e){return 210!==e.kind?e:void 0});return n?_(n):o(204===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(c||(c={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(c||(c={}));var c,u,l=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=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 r=e,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),i=function(){function e(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return t.map(e,function(e){return t.getProperty(i,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 JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(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,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},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=i;var a=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)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();function o(e,t,r,n){return c(e,t,!0,r,n)}function c(e,n,i,a,o){try{var s=function(e,r,n,i){var a;i&&(e.log(r),a=t.timestamp());var o=n();if(i){var s=t.timestamp();if(e.log(r+" completed in "+(s-a)+" msec"),t.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(e,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}t.CoreServicesShimHostAdapter=a;var u=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(e,r){return e.map(function(e){return function(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.diagnosticCategoryName(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary}}(e,r)})}t.realizeDiagnostics=_;var d=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return s(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,l&&l.CollectGarbage&&(l.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(e){return _(e,t.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t,r)})},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,r,n,i)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(e,r,JSON.parse(n)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return c(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(u);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=function(e){function r(r,n){var i=e.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return s(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),o(this.logger,"getEncodedLexicalClassifications",function(){return p(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a0&&_(t[0])},u.watchFile=function(e,t){var r=i.default.normalize(e);return c.set(r,t),{close:function(){c.delete(r)}}},u.watchDirectory=function(){return d};var f=u.onCachedDirectoryStructureHostCreate;u.onCachedDirectoryStructureHostCreate=function(e){var t=e.readDirectory;e.readDirectory=function(e,n,i,a,o){return t(e,n?n.concat(r.extraFileExtensions):void 0,i,a,o)},f(e)};var m=a.default.createWatchProgram(u),g=m.getProgram().getProgram();s.set(e,m),n.push(g)},v=r.projects[Symbol.iterator]();!(f=(y=v.next()).done);f=!0)h()}catch(e){m=!0,g=e}finally{try{f||null==v.return||v.return()}finally{if(m)throw g}}return u.add(t),n},t.createProgram=function(e,t,r){if(r.projects&&1===r.projects.length){var n=r.projects[0];i.default.isAbsolute(n)||(n=i.default.join(r.tsconfigRootDir,n));var s=a.default.getParsedCommandLineOfConfigFile(n,o,Object.assign({},a.default.sys,{onUnRecoverableConfigFileDiagnostic:function(){}}));if(s){var c=a.default.createCompilerHost(s.options,!0),u=c.readFile;return c.readFile=function(r){return i.default.normalize(r)===i.default.normalize(t)?e:u(r)},a.default.createProgram([t],s.options,c)}}}});i(mr);var gr=a(function(e,t){var r;t=e.exports=G,r="object"===f(ve)&&ve.env&&ve.env.NODE_DEBUG&&/\bsemver\b/i.test(ve.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 n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],o=t.src=[],s=0,c=s++;o[c]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var l=s++;o[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var _=s++;o[_]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[c]+"|"+o[l]+")";var m=s++;o[m]="(?:"+o[u]+"|"+o[l]+")";var g=s++;o[g]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[m]+"(?:\\."+o[m]+")*))";var h=s++;o[h]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[h]+"(?:\\."+o[h]+")*))";var b=s++,D="v?"+o[_]+o[g]+"?"+o[v]+"?";o[b]="^"+D+"$";var x="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",S=s++;o[S]="^"+x+"$";var T=s++;o[T]="((?:<|>)?=?)";var C=s++;o[C]=o[u]+"|x|X|\\*";var E=s++;o[E]=o[c]+"|x|X|\\*";var k=s++;o[k]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[v]+"?)?)?";var N=s++;o[N]="[v=\\s]*("+o[C]+")(?:\\.("+o[C]+")(?:\\.("+o[C]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var A=s++;o[A]="^"+o[T]+"\\s*"+o[k]+"$";var F=s++;o[F]="^"+o[T]+"\\s*"+o[N]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var w=s++;o[w]="(?:~>?)";var I=s++;o[I]="(\\s*)"+o[w]+"\\s+",a[I]=new RegExp(o[I],"g");var O=s++;o[O]="^"+o[w]+o[k]+"$";var M=s++;o[M]="^"+o[w]+o[N]+"$";var L=s++;o[L]="(?:\\^)";var R=s++;o[R]="(\\s*)"+o[L]+"\\s+",a[R]=new RegExp(o[R],"g");var B=s++;o[B]="^"+o[L]+o[k]+"$";var j=s++;o[j]="^"+o[L]+o[N]+"$";var J=s++;o[J]="^"+o[T]+"\\s*("+x+")$|^$";var z=s++;o[z]="^"+o[T]+"\\s*("+D+")$|^$";var K=s++;o[K]="(\\s*)"+o[T]+"\\s*("+x+"|"+o[k]+")",a[K]=new RegExp(o[K],"g");var U=s++;o[U]="^\\s*("+o[k]+")\\s+-\\s+("+o[k]+")\\s*$";var V=s++;o[V]="^\\s*("+o[N]+")\\s+-\\s+("+o[N]+")\\s*$";var q=s++;o[q]="(<|>)?=?\\s*\\*";for(var W=0;Wn)return null;if(!(t?a[S]:a[b]).test(e))return null;try{return new G(e,t)}catch(e){return null}}function G(e,t){if(e instanceof G){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof G))return new G(e,t);r("SemVer",e,t),this.loose=t;var o=e.trim().match(t?a[S]:a[b]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&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=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new G(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var r=H(e),n=H(t);if(r.prerelease.length||n.prerelease.length){for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return"pre"+i;return"prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return i},t.compareIdentifiers=X;var Y=/^[0-9]+$/;function X(e,t){var r=Y.test(e),n=Y.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function Q(e,t,r){return new G(e,r).compare(new G(t,r))}function $(e,t,r){return Q(e,t,r)>0}function Z(e,t,r){return Q(e,t,r)<0}function ee(e,t,r){return 0===Q(e,t,r)}function te(e,t,r){return 0!==Q(e,t,r)}function re(e,t,r){return Q(e,t,r)>=0}function ne(e,t,r){return Q(e,t,r)<=0}function ie(e,t,r,n){var i;switch(t){case"===":"object"===f(e)&&(e=e.version),"object"===f(r)&&(r=r.version),i=e===r;break;case"!==":"object"===f(e)&&(e=e.version),"object"===f(r)&&(r=r.version),i=e!==r;break;case"":case"=":case"==":i=ee(e,r,n);break;case"!=":i=te(e,r,n);break;case">":i=$(e,r,n);break;case">=":i=re(e,r,n);break;case"<":i=Z(e,r,n);break;case"<=":i=ne(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return i}function ae(e,t){if(e instanceof ae){if(e.loose===t)return e;e=e.value}if(!(this instanceof ae))return new ae(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new G(e,t).major},t.minor=function(e,t){return new G(e,t).minor},t.patch=function(e,t){return new G(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,r){return Q(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=$,t.lt=Z,t.eq=ee,t.neq=te,t.gte=re,t.lte=ne,t.cmp=ie,t.Comparator=ae;var oe={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof ae)return new se(e.value,t);if(!(this instanceof se))return new se(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 ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,r,n,i,a,o,s,c,u,l,_,d){return((t=ce(r)?"":ce(n)?">="+r+".0.0":ce(i)?">="+r+"."+n+".0":">="+t)+" "+(s=ce(c)?"":ce(u)?"<"+(+c+1)+".0.0":ce(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s)).trim()}function le(e,t){for(var n=0;n0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _e(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function de(e,t,r,n){var i,a,o,s,c;switch(e=new G(e,n),t=new se(t,n),r){case">":i=$,a=ne,o=Z,s=">",c=">=";break;case"<":i=Z,a=re,o=$,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_e(e,t,n))return!1;for(var u=0;u=0.0.0")),l=l||e,_=_||e,i(e.semver,l.semver,n)?l=e:o(e.semver,_.semver,n)&&(_=e)}),l.operator===s||l.operator===c)return!1;if((!_.operator||_.operator===s)&&a(e,_.semver))return!1;if(_.operator===c&&o(e,_.semver))return!1}return!0}ae.prototype.parse=function(e){var t=this.loose?a[J]:a[z],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new G(r[2],this.loose):this.semver=oe},ae.prototype.toString=function(){return this.value},ae.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===oe||("string"==typeof e&&(e=new G(e,this.loose)),ie(e,this.operator,this.semver,this.loose))},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new se(e.value,t),_e(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),_e(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&o||s||c},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?a[V]:a[U];e=e.replace(n,ue),r("hyphen replace",e),e=e.replace(a[K],"$1$2$3"),r("comparator trim",e,a[K]),e=(e=(e=e.replace(a[I],"$1~")).replace(a[R],"$1^")).split(/\s+/).join(" ");var i=t?a[J]:a[z],o=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?a[j]:a[B];return e.replace(n,function(t,n,i,a,o){var s;return r("caret",e,t,n,i,a,o),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(a)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":o?(r("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),s="0"===n?"0"===i?">="+n+"."+i+"."+a+o+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+o+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",s),s})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?a[M]:a[O];return e.replace(n,function(t,n,i,a,o){var s;return r("tilde",e,t,n,i,a,o),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(a)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":o?(r("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),s=">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?a[F]:a[A];return e.replace(n,function(t,n,i,a,o,s){r("xRange",e,t,n,i,a,o,s);var c=ce(i),u=c||ce(a),l=u||ce(o),_=l;return"="===n&&_&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&_?(u&&(a=0),l&&(o=0),">"===n?(n=">=",u?(i=+i+1,a=0,o=0):l&&(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),t=n+i+"."+a+"."+o):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[q],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(o=o.filter(function(e){return!!e.match(i)})),o=o.map(function(e){return new ae(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new G(e,this.loose));for(var t=0;t",r)},t.outside=de,t.prerelease=function(e,t){var r=H(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof G)return e;if("string"!=typeof e)return null;var t=e.match(a[P]);return null==t?null:H((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}}),yr=1/0,hr="[object Symbol]",vr=/&(?:amp|lt|gt|quot|#39|#96);/g,br=RegExp(vr.source),Dr="object"==f(r)&&r&&r.Object===Object&&r,xr="object"==("undefined"==typeof self?"undefined":f(self))&&self&&self.Object===Object&&self,Sr=Dr||xr||Function("return this")();var Tr,Cr=(Tr={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(e){return null==Tr?void 0:Tr[e]}),Er=Object.prototype.toString,kr=Sr.Symbol,Nr=kr?kr.prototype:void 0,Ar=Nr?Nr.toString:void 0;function Fr(e){if("string"==typeof e)return e;if(function(e){return"symbol"==f(e)||function(e){return!!e&&"object"==f(e)}(e)&&Er.call(e)==hr}(e))return Ar?Ar.call(e):"";var t=e+"";return"0"==t&&1/e==-yr?"-0":t}var Pr=function(e){var t;return(e=null==(t=e)?"":Fr(t))&&br.test(e)?e.replace(vr,Cr):e},wr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0})});i(wr);var Ir=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BigIntLiteral="BigIntLiteral",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ClassProperty="ClassProperty",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.Import="Import",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXNamespacedName="JSXNamespacedName",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractClassProperty="TSAbstractClassProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareKeyword="TSDeclareKeyword",e.TSDeclareFunction="TSDeclareFunction",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSImportType="TSImportType",e.TSInferType="TSInferType",e.TSLiteralType="TSLiteralType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSFunctionType="TSFunctionType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNonNullExpression="TSNonNullExpression",e.TSNeverKeyword="TSNeverKeyword",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSMappedType="TSMappedType",e.TSObjectKeyword="TSObjectKeyword",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSQuestionToken="TSQuestionToken",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSThisType="TSThisType",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeReference="TSTypeReference",e.TSTypeQuery="TSTypeQuery",e.TSIntersectionType="TSIntersectionType",e.TSTupleType="TSTupleType",e.TSOptionalType="TSOptionalType",e.TSParenthesizedType="TSParenthesizedType",e.TSUnionType="TSUnionType",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"}(t.AST_NODE_TYPES||(t.AST_NODE_TYPES={})),function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template"}(t.AST_TOKEN_TYPES||(t.AST_TOKEN_TYPES={}))});i(Ir);var Or=a(function(e,t){var n=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(wr);t.TSESTree=i,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(Ir)});i(Or);var Mr=a(function(e,t){var n,i=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(fr),o=i(Pr),s=a.default.SyntaxKind,c=[s.EqualsToken,s.PlusEqualsToken,s.MinusEqualsToken,s.AsteriskEqualsToken,s.AsteriskAsteriskEqualsToken,s.SlashEqualsToken,s.PercentEqualsToken,s.LessThanLessThanEqualsToken,s.GreaterThanGreaterThanEqualsToken,s.GreaterThanGreaterThanGreaterThanEqualsToken,s.AmpersandEqualsToken,s.BarEqualsToken,s.CaretEqualsToken],u=[s.BarBarToken,s.AmpersandAmpersandToken],l=(g(n={},s.OpenBraceToken,"{"),g(n,s.CloseBraceToken,"}"),g(n,s.OpenParenToken,"("),g(n,s.CloseParenToken,")"),g(n,s.OpenBracketToken,"["),g(n,s.CloseBracketToken,"]"),g(n,s.DotToken,"."),g(n,s.DotDotDotToken,"..."),g(n,s.SemicolonToken,","),g(n,s.CommaToken,","),g(n,s.LessThanToken,"<"),g(n,s.GreaterThanToken,">"),g(n,s.LessThanEqualsToken,"<="),g(n,s.GreaterThanEqualsToken,">="),g(n,s.EqualsEqualsToken,"=="),g(n,s.ExclamationEqualsToken,"!="),g(n,s.EqualsEqualsEqualsToken,"==="),g(n,s.InstanceOfKeyword,"instanceof"),g(n,s.ExclamationEqualsEqualsToken,"!=="),g(n,s.EqualsGreaterThanToken,"=>"),g(n,s.PlusToken,"+"),g(n,s.MinusToken,"-"),g(n,s.AsteriskToken,"*"),g(n,s.AsteriskAsteriskToken,"**"),g(n,s.SlashToken,"/"),g(n,s.PercentToken,"%"),g(n,s.PlusPlusToken,"++"),g(n,s.MinusMinusToken,"--"),g(n,s.LessThanLessThanToken,"<<"),g(n,s.LessThanSlashToken,">"),g(n,s.GreaterThanGreaterThanGreaterThanToken,">>>"),g(n,s.AmpersandToken,"&"),g(n,s.BarToken,"|"),g(n,s.CaretToken,"^"),g(n,s.ExclamationToken,"!"),g(n,s.TildeToken,"~"),g(n,s.AmpersandAmpersandToken,"&&"),g(n,s.BarBarToken,"||"),g(n,s.QuestionToken,"?"),g(n,s.ColonToken,":"),g(n,s.EqualsToken,"="),g(n,s.PlusEqualsToken,"+="),g(n,s.MinusEqualsToken,"-="),g(n,s.AsteriskEqualsToken,"*="),g(n,s.AsteriskAsteriskEqualsToken,"**="),g(n,s.SlashEqualsToken,"/="),g(n,s.PercentEqualsToken,"%="),g(n,s.LessThanLessThanEqualsToken,"<<="),g(n,s.GreaterThanGreaterThanEqualsToken,">>="),g(n,s.GreaterThanGreaterThanGreaterThanEqualsToken,">>>="),g(n,s.AmpersandEqualsToken,"&="),g(n,s.BarEqualsToken,"|="),g(n,s.CaretEqualsToken,"^="),g(n,s.AtToken,"@"),g(n,s.InKeyword,"in"),g(n,s.UniqueKeyword,"unique"),g(n,s.KeyOfKeyword,"keyof"),g(n,s.NewKeyword,"new"),g(n,s.ImportKeyword,"import"),g(n,s.ReadonlyKeyword,"readonly"),n);function _(e){return c.indexOf(e.kind)>-1}function d(e){return u.indexOf(e.kind)>-1}function p(e){return e.kind===s.SingleLineCommentTrivia||e.kind===s.MultiLineCommentTrivia}function f(e){return e.kind===s.JSDocComment}function m(e,t){var r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}function y(e,t,r){return{start:m(e,r),end:m(t,r)}}function h(e){return e.kind>=s.FirstToken&&e.kind<=s.LastToken}function v(e){return e.kind>=s.JsxElement&&e.kind<=s.JsxAttribute}function b(e,t){for(;e;){if(t(e))return e;e=e.parent}}function D(e){return!!b(e,v)}function x(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case s.NullKeyword:return Or.AST_TOKEN_TYPES.Null;case s.GetKeyword:case s.SetKeyword:case s.TypeKeyword:case s.ModuleKeyword:return Or.AST_TOKEN_TYPES.Identifier;default:return Or.AST_TOKEN_TYPES.Keyword}if(e.kind>=s.FirstKeyword&&e.kind<=s.LastFutureReservedWord)return e.kind===s.FalseKeyword||e.kind===s.TrueKeyword?Or.AST_TOKEN_TYPES.Boolean:Or.AST_TOKEN_TYPES.Keyword;if(e.kind>=s.FirstPunctuation&&e.kind<=s.LastBinaryOperator)return Or.AST_TOKEN_TYPES.Punctuator;if(e.kind>=s.NoSubstitutionTemplateLiteral&&e.kind<=s.TemplateTail)return Or.AST_TOKEN_TYPES.Template;switch(e.kind){case s.NumericLiteral:return Or.AST_TOKEN_TYPES.Numeric;case s.JsxText:return Or.AST_TOKEN_TYPES.JSXText;case s.StringLiteral:return!e.parent||e.parent.kind!==s.JsxAttribute&&e.parent.kind!==s.JsxElement?Or.AST_TOKEN_TYPES.String:Or.AST_TOKEN_TYPES.JSXText;case s.RegularExpressionLiteral:return Or.AST_TOKEN_TYPES.RegularExpression;case s.Identifier:case s.ConstructorKeyword:case s.GetKeyword:case s.SetKeyword:}if(e.parent&&e.kind===s.Identifier){if(v(e.parent))return Or.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===s.PropertyAccessExpression&&D(e))return Or.AST_TOKEN_TYPES.JSXIdentifier}return Or.AST_TOKEN_TYPES.Identifier}function S(e,t){var r=e.kind===s.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a={type:x(e),value:i,range:[r,n],loc:y(r,n,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function T(e,t){return e.kind===s.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function C(e,t){if(void 0!==e)for(var r=0;re.end||n.pos===e.end;return i&&T(n,r)?t(n):void 0})}(t)},t.findFirstMatchingAncestor=b,t.hasJSXAncestor=D,t.unescapeStringLiteralText=function(e){return o.default(e)},t.isComputedProperty=function(e){return e.kind===s.ComputedPropertyName},t.isOptional=function(e){return!!e.questionToken&&e.questionToken.kind===s.QuestionToken},t.getTokenType=x,t.convertToken=S,t.convertTokens=function(e){var t=[];return function r(n){if(!p(n)&&!f(n))if(h(n)&&n.kind!==s.EndOfFileToken){var i=S(n,e);i&&t.push(i)}else n.getChildren(e).forEach(r)}(e),t},t.getNodeContainer=function(e,t,r){var n=null;return function e(i){var a=i.pos,o=i.end;t>=a&&r<=o&&(h(i)?n=i:i.getChildren().forEach(e))}(e),n},t.createError=function(e,t,r){var n=e.getLineAndCharacterOfPosition(t);return{index:t,lineNumber:n.line+1,column:n.character,message:r}},t.nodeHasTokens=T,t.firstDefined=C});i(Mr);var Lr=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(fr),a=i.default.SyntaxKind;t.convertError=function(e){return Mr.createError(e.file,e.start,e.message||e.messageText)};var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=t,this.options=r}var t,r,n;return t=e,(r=[{key:"getASTMaps",value:function(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}},{key:"convertProgram",value:function(){return this.converter(this.ast)}},{key:"converter",value:function(e,t,r,n){if(!e)return null;var i=this.inTypeMode,a=this.allowPattern;void 0!==r&&(this.inTypeMode=r),void 0!==n&&(this.allowPattern=n);var o=this.convertNode(e,t||e.parent);return this.registerTSNodeInNodeMap(e,o),this.inTypeMode=i,this.allowPattern=a,o}},{key:"fixExports",value:function(e,t){if(e.modifiers&&e.modifiers[0].kind===a.ExportKeyword){this.registerTSNodeInNodeMap(e,t);var r=e.modifiers[0],n=e.modifiers[1],i=n&&n.kind===a.DefaultKeyword,o=i?Mr.findNextToken(n,this.ast,this.ast):Mr.findNextToken(r,this.ast,this.ast);return t.range[0]=o.getStart(this.ast),t.loc=Mr.getLocFor(t.range[0],t.range[1],this.ast),i?this.createNode(e,{type:Or.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[r.getStart(this.ast),t.range[1]]}):this.createNode(e,{type:Or.AST_NODE_TYPES.ExportNamedDeclaration,declaration:t,specifiers:[],source:null,range:[r.getStart(this.ast),t.range[1]]})}return t}},{key:"registerTSNodeInNodeMap",value:function(e,t){t&&this.options.shouldProvideParserServices&&(this.tsNodeToESTreeNodeMap.has(e)||this.tsNodeToESTreeNodeMap.set(e,t))}},{key:"convertPattern",value:function(e,t){return this.converter(e,t,this.inTypeMode,!0)}},{key:"convertChild",value:function(e,t){return this.converter(e,t,this.inTypeMode,!1)}},{key:"convertType",value:function(e,t){return this.converter(e,t,!0,!1)}},{key:"createNode",value:function(e,t){var r=t;return r.range||(r.range=Mr.getRange(e,this.ast)),r.loc||(r.loc=Mr.getLocFor(r.range[0],r.range[1],this.ast)),r&&this.options.shouldProvideParserServices&&this.esTreeNodeToTSNodeMap.set(r,e),r}},{key:"convertTypeAnnotation",value:function(e,t){var r=t.kind===a.FunctionType||t.kind===a.ConstructorType?2:1,n=e.getFullStart()-r,i=Mr.getLocFor(n,e.end,this.ast);return{type:Or.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}},{key:"convertBodyExpressions",value:function(e,t){var r=this,n=Mr.canContainDirective(t);return e.map(function(e){var t=r.convertChild(e);if(n){if(t&&t.expression&&i.default.isExpressionStatement(e)&&i.default.isStringLiteral(e.expression)){var a=t.expression.raw;return t.directive=a.slice(1,-1),t}n=!1}return t}).filter(function(e){return e})}},{key:"convertTypeArgumentsToTypeParameters",value:function(e){var t=this,r=Mr.findNextToken(e,this.ast,this.ast);return{type:Or.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],loc:Mr.getLocFor(e.pos-1,r.end,this.ast),params:e.map(function(e){return t.convertType(e)})}}},{key:"convertTSTypeParametersToTypeParametersDeclaration",value:function(e){var t=this,r=Mr.findNextToken(e,this.ast,this.ast);return{type:Or.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,r.end],loc:Mr.getLocFor(e.pos-1,r.end,this.ast),params:e.map(function(e){return t.convertType(e)})}}},{key:"convertParameters",value:function(e){var t=this;return e&&e.length?e.map(function(e){var r=t.convertChild(e);return e.decorators&&e.decorators.length&&(r.decorators=e.decorators.map(function(e){return t.convertChild(e)})),r}):[]}},{key:"deeplyCopy",value:function(e){var t=this,r="TS".concat(a[e.kind]);if(this.options.errorOnUnknownASTType&&!Or.AST_NODE_TYPES[r])throw new Error('Unknown AST_NODE_TYPE: "'.concat(r,'"'));var n=this.createNode(e,{type:r});return Object.keys(e).filter(function(e){return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)}).forEach(function(r){"type"===r?n.typeAnnotation=e.type?t.convertTypeAnnotation(e.type,e):null:"typeArguments"===r?n.typeParameters=e.typeArguments?t.convertTypeArgumentsToTypeParameters(e.typeArguments):null:"typeParameters"===r?n.typeParameters=e.typeParameters?t.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null:"decorators"===r?e.decorators&&e.decorators.length&&(n.decorators=e.decorators.map(function(e){return t.convertChild(e)})):Array.isArray(e[r])?n[r]=e[r].map(function(e){return t.convertChild(e)}):e[r]&&"object"===f(e[r])&&e[r].kind?n[r]=t.convertChild(e[r]):n[r]=e[r]}),n}},{key:"convertJSXTagName",value:function(e,t){var r;switch(e.kind){case a.PropertyAccessExpression:r=this.createNode(e,{type:Or.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXTagName(e.name,t)});break;case a.ThisKeyword:r=this.createNode(e,{type:Or.AST_NODE_TYPES.JSXIdentifier,name:"this"});break;case a.Identifier:default:r=this.createNode(e,{type:Or.AST_NODE_TYPES.JSXIdentifier,name:e.text})}return this.registerTSNodeInNodeMap(e,r),r}},{key:"applyModifiersToResult",value:function(e,t){var r=this;if(t&&t.length){for(var n={},i=0;ie.range[1]&&(e.range[1]=t[1],e.loc.end=Mr.getLineAndCharacterFor(e.range[1],this.ast))}},{key:"convertNode",value:function(e,t){var r=this;switch(e.kind){case a.SourceFile:return this.createNode(e,{type:Or.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]});case a.Block:return this.createNode(e,{type:Or.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case a.Identifier:return this.createNode(e,{type:Or.AST_NODE_TYPES.Identifier,name:e.text});case a.WithStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ReturnStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case a.LabeledStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case a.ContinueStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case a.BreakStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case a.IfStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case a.SwitchStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map(function(e){return r.convertChild(e)})});case a.CaseClause:case a.DefaultClause:return this.createNode(e,{type:Or.AST_NODE_TYPES.SwitchCase,test:e.kind===a.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map(function(e){return r.convertChild(e)})});case a.ThrowStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case a.TryStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case a.CatchClause:return this.createNode(e,{type:Or.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertChild(e.variableDeclaration.name):null,body:this.convertChild(e.block)});case a.WhileStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.DoStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ForStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ForStatement,init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor),body:this.convertChild(e.statement)});case a.ForInStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ForOfStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement),await:Boolean(e.awaitModifier&&e.awaitModifier.kind===a.AwaitKeyword)});case a.FunctionDeclaration:var n=Mr.hasModifier(a.DeclareKeyword,e),o=this.createNode(e,{type:n||!e.body?Or.AST_NODE_TYPES.TSDeclareFunction:Or.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:Mr.hasModifier(a.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||void 0});return e.type&&(o.returnType=this.convertTypeAnnotation(e.type,e)),n&&(o.declare=!0),e.typeParameters&&(o.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),e.decorators&&(o.decorators=e.decorators.map(function(e){return r.convertChild(e)})),this.fixExports(e,o);case a.VariableDeclaration:var s=this.createNode(e,{type:Or.AST_NODE_TYPES.VariableDeclarator,id:this.convertPattern(e.name),init:this.convertChild(e.initializer)});return e.exclamationToken&&(s.definite=!0),e.type&&(s.id.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(s.id,s.id.typeAnnotation.range)),s;case a.VariableStatement:var c=this.createNode(e,{type:Or.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map(function(e){return r.convertChild(e)}),kind:Mr.getDeclarationKind(e.declarationList)});return e.decorators&&(c.decorators=e.decorators.map(function(e){return r.convertChild(e)})),Mr.hasModifier(a.DeclareKeyword,e)&&(c.declare=!0),this.fixExports(e,c);case a.VariableDeclarationList:return this.createNode(e,{type:Or.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map(function(e){return r.convertChild(e)}),kind:Mr.getDeclarationKind(e)});case a.ExpressionStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case a.ThisKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.ThisExpression});case a.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:Or.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map(function(e){return r.convertPattern(e)})}):this.createNode(e,{type:Or.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map(function(e){return r.convertChild(e)})});case a.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:Or.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map(function(e){return r.convertPattern(e)})}):this.createNode(e,{type:Or.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map(function(e){return r.convertChild(e)})});case a.PropertyAssignment:return this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:Mr.isComputedProperty(e.name),method:!1,shorthand:!1,kind:"init"});case a.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.name),right:this.convertChild(e.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case a.ComputedPropertyName:return this.convertChild(e.expression);case a.PropertyDeclaration:var u=Mr.hasModifier(a.AbstractKeyword,e),l=this.createNode(e,{type:u?Or.AST_NODE_TYPES.TSAbstractClassProperty:Or.AST_NODE_TYPES.ClassProperty,key:this.convertChild(e.name),value:this.convertChild(e.initializer),computed:Mr.isComputedProperty(e.name),static:Mr.hasModifier(a.StaticKeyword,e),readonly:Mr.hasModifier(a.ReadonlyKeyword,e)||void 0});e.type&&(l.typeAnnotation=this.convertTypeAnnotation(e.type,e)),e.decorators&&(l.decorators=e.decorators.map(function(e){return r.convertChild(e)}));var _=Mr.getTSNodeAccessibility(e);return _&&(l.accessibility=_),e.name.kind===a.Identifier&&e.questionToken&&(l.optional=!0),e.exclamationToken&&(l.definite=!0),l.key.type===Or.AST_NODE_TYPES.Literal&&e.questionToken&&(l.optional=!0),l;case a.GetAccessor:case a.SetAccessor:case a.MethodDeclaration:var d,p=this.createNode(e,{type:Or.AST_NODE_TYPES.FunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:Mr.hasModifier(a.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});if(e.type&&(p.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(p,p.typeParameters.range)),t.kind===a.ObjectLiteralExpression)p.params=e.parameters.map(function(e){return r.convertChild(e)}),d=this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:p,computed:Mr.isComputedProperty(e.name),method:e.kind===a.MethodDeclaration,shorthand:!1,kind:"init"});else{p.params=this.convertParameters(e.parameters);var f=Mr.hasModifier(a.AbstractKeyword,e)?Or.AST_NODE_TYPES.TSAbstractMethodDefinition:Or.AST_NODE_TYPES.MethodDefinition;d=this.createNode(e,{type:f,key:this.convertChild(e.name),value:p,computed:Mr.isComputedProperty(e.name),static:Mr.hasModifier(a.StaticKeyword,e),kind:"method"}),e.decorators&&(d.decorators=e.decorators.map(function(e){return r.convertChild(e)}));var m=Mr.getTSNodeAccessibility(e);m&&(d.accessibility=m)}return d.key.type===Or.AST_NODE_TYPES.Identifier&&e.questionToken&&(d.key.optional=!0),e.kind===a.GetAccessor?d.kind="get":e.kind===a.SetAccessor?d.kind="set":d.static||e.name.kind!==a.StringLiteral||"constructor"!==e.name.text||d.type===Or.AST_NODE_TYPES.Property||(d.kind="constructor"),d;case a.Constructor:var g=Mr.getLastModifier(e),y=g&&Mr.findNextToken(g,e,this.ast)||e.getFirstToken(),h=this.createNode(e,{type:Or.AST_NODE_TYPES.FunctionExpression,id:null,params:this.convertParameters(e.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end]});e.typeParameters&&(h.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(h,h.typeParameters.range)),e.type&&(h.returnType=this.convertTypeAnnotation(e.type,e));var v=this.createNode(e,{type:Or.AST_NODE_TYPES.Identifier,name:"constructor",range:[y.getStart(this.ast),y.end]}),b=Mr.hasModifier(a.StaticKeyword,e),D=this.createNode(e,{type:Mr.hasModifier(a.AbstractKeyword,e)?Or.AST_NODE_TYPES.TSAbstractMethodDefinition:Or.AST_NODE_TYPES.MethodDefinition,key:v,value:h,computed:!1,static:b,kind:b?"method":"constructor"}),x=Mr.getTSNodeAccessibility(e);return x&&(D.accessibility=x),D;case a.FunctionExpression:var S=this.createNode(e,{type:Or.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Mr.hasModifier(a.AsyncKeyword,e),expression:!1});return e.type&&(S.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(S.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),S;case a.SuperKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Super});case a.ArrayBindingPattern:return this.createNode(e,{type:Or.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map(function(e){return r.convertPattern(e)})});case a.OmittedExpression:return null;case a.ObjectBindingPattern:return this.createNode(e,{type:Or.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map(function(e){return r.convertPattern(e)})});case a.BindingElement:if(t.kind===a.ArrayBindingPattern){var T=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:T,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:T}):T}var C;return C=e.dotDotDotToken?this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.propertyName||e.name)}):this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.propertyName||e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===a.ComputedPropertyName),method:!1,shorthand:!e.propertyName,kind:"init"}),e.initializer&&(C.value=this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})),C;case a.ArrowFunction:var E=this.createNode(e,{type:Or.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Mr.hasModifier(a.AsyncKeyword,e),expression:e.body.kind!==a.Block});return e.type&&(E.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(E.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),E;case a.YieldExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case a.AwaitExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case a.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1),cooked:e.text},tail:!0})],expressions:[]});case a.TemplateExpression:var k=this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});return e.templateSpans.forEach(function(e){k.expressions.push(r.convertChild(e.expression)),k.quasis.push(r.convertChild(e.literal))}),k;case a.TaggedTemplateExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case a.TemplateHead:case a.TemplateMiddle:case a.TemplateTail:var N=e.kind===a.TemplateTail;return this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(N?1:2)),cooked:e.text},tail:N});case a.SpreadAssignment:case a.SpreadElement:return this.allowPattern?this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:Or.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case a.Parameter:var A,F;return e.dotDotDotToken?A=F=this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(A=this.convertChild(e.name),F=this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:A,right:this.convertChild(e.initializer)}),e.modifiers&&(F.range[0]=A.range[0],F.loc=Mr.getLocFor(F.range[0],F.range[1],this.ast))):A=F=this.convertChild(e.name,t),e.type&&(A.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(A,A.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>A.range[1]&&(A.range[1]=e.questionToken.end,A.loc.end=Mr.getLineAndCharacterFor(A.range[1],this.ast)),A.optional=!0),e.modifiers?this.createNode(e,{type:Or.AST_NODE_TYPES.TSParameterProperty,accessibility:Mr.getTSNodeAccessibility(e)||void 0,readonly:Mr.hasModifier(a.ReadonlyKeyword,e)||void 0,static:Mr.hasModifier(a.StaticKeyword,e)||void 0,export:Mr.hasModifier(a.ExportKeyword,e)||void 0,parameter:F}):F;case a.ClassDeclaration:case a.ClassExpression:var P=e.heritageClauses||[],w=e.kind===a.ClassDeclaration?Or.AST_NODE_TYPES.ClassDeclaration:Or.AST_NODE_TYPES.ClassExpression,I=P.find(function(e){return e.token===a.ExtendsKeyword}),O=P.find(function(e){return e.token===a.ImplementsKeyword}),M=this.createNode(e,{type:w,id:this.convertChild(e.name),body:this.createNode(e,{type:Or.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:I&&I.types[0]?this.convertChild(I.types[0].expression):null});if(I){if(I.types.length>1)throw Mr.createError(this.ast,I.types[1].pos,"Classes can only extend a single class.");I.types[0]&&I.types[0].typeArguments&&(M.superTypeParameters=this.convertTypeArgumentsToTypeParameters(I.types[0].typeArguments))}e.typeParameters&&(M.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),O&&(M.implements=O.types.map(function(e){return r.convertChild(e)})),Mr.hasModifier(a.AbstractKeyword,e)&&(M.abstract=!0),Mr.hasModifier(a.DeclareKeyword,e)&&(M.declare=!0),e.decorators&&(M.decorators=e.decorators.map(function(e){return r.convertChild(e)}));var L=e.members.filter(Mr.isESTreeClassMember);return L.length&&(M.body.body=L.map(function(e){return r.convertChild(e)})),this.fixExports(e,M);case a.ModuleBlock:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case a.ImportDeclaration:var R=this.createNode(e,{type:Or.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[]});if(e.importClause&&(e.importClause.name&&R.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case a.NamespaceImport:R.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case a.NamedImports:R.specifiers=R.specifiers.concat(e.importClause.namedBindings.elements.map(function(e){return r.convertChild(e)}))}return R;case a.NamespaceImport:return this.createNode(e,{type:Or.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case a.ImportSpecifier:return this.createNode(e,{type:Or.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild(e.propertyName||e.name)});case a.ImportClause:return this.createNode(e,{type:Or.AST_NODE_TYPES.ImportDefaultSpecifier,local:this.convertChild(e.name),range:[e.getStart(this.ast),e.name.end]});case a.ExportDeclaration:return e.exportClause?this.createNode(e,{type:Or.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map(function(e){return r.convertChild(e)}),declaration:null}):this.createNode(e,{type:Or.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier)});case a.ExportSpecifier:return this.createNode(e,{type:Or.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(e.propertyName||e.name),exported:this.convertChild(e.name)});case a.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:Or.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:Or.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression)});case a.PrefixUnaryExpression:case a.PostfixUnaryExpression:var B=Mr.getTextForTokenKind(e.operator)||"";return/^(?:\+\+|--)$/.test(B)?this.createNode(e,{type:Or.AST_NODE_TYPES.UpdateExpression,operator:B,prefix:e.kind===a.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:B,prefix:e.kind===a.PrefixUnaryExpression,argument:this.convertChild(e.operand)});case a.DeleteExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case a.VoidExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case a.TypeOfExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case a.TypeOperator:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeOperator,operator:Mr.getTextForTokenKind(e.operator),typeAnnotation:this.convertChild(e.type)});case a.BinaryExpression:if(Mr.isComma(e.operatorToken)){var j=this.createNode(e,{type:Or.AST_NODE_TYPES.SequenceExpression,expressions:[]}),J=this.convertChild(e.left);return J.type===Or.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==a.ParenthesizedExpression?j.expressions=j.expressions.concat(J.expressions):j.expressions.push(J),j.expressions.push(this.convertChild(e.right)),j}var z=Mr.getBinaryExpressionType(e.operatorToken);return this.allowPattern&&z===Or.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:z,operator:Mr.getTextForTokenKind(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,z===Or.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)});case a.PropertyAccessExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.MemberExpression,object:this.convertChild(e.expression),property:this.convertChild(e.name),computed:!1});case a.ElementAccessExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.MemberExpression,object:this.convertChild(e.expression),property:this.convertChild(e.argumentExpression),computed:!0});case a.ConditionalExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case a.CallExpression:var K=this.createNode(e,{type:Or.AST_NODE_TYPES.CallExpression,callee:this.convertChild(e.expression),arguments:e.arguments.map(function(e){return r.convertChild(e)})});return e.typeArguments&&(K.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),K;case a.NewExpression:var U=this.createNode(e,{type:Or.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map(function(e){return r.convertChild(e)}):[]});return e.typeArguments&&(U.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),U;case a.MetaProperty:return this.createNode(e,{type:Or.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:Or.AST_NODE_TYPES.Identifier,name:Mr.getTextForTokenKind(e.keywordToken)}),property:this.convertChild(e.name)});case a.Decorator:return this.createNode(e,{type:Or.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case a.StringLiteral:var V=this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,raw:"",value:""});return V.raw=this.ast.text.slice(V.range[0],V.range[1]),t.name&&t.name===e?V.value=e.text:V.value=Mr.unescapeStringLiteralText(e.text),V;case a.NumericLiteral:return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case a.BigIntLiteral:var q=this.createNode(e,{type:Or.AST_NODE_TYPES.BigIntLiteral,raw:"",value:""});return q.raw=this.ast.text.slice(q.range[0],q.range[1]),q.value=q.raw.slice(0,-1),q;case a.RegularExpressionLiteral:var W=e.text.slice(1,e.text.lastIndexOf("/")),H=e.text.slice(e.text.lastIndexOf("/")+1),G=null;try{G=new RegExp(W,H)}catch(e){G=null}return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:G,raw:e.text,regex:{pattern:W,flags:H}});case a.TrueKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case a.FalseKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case a.NullKeyword:return this.inTypeMode?this.createNode(e,{type:Or.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:null,raw:"null"});case a.ImportKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Import});case a.EmptyStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.EmptyStatement});case a.DebuggerStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.DebuggerStatement});case a.JsxElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map(function(e){return r.convertChild(e)})});case a.JsxFragment:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map(function(e){return r.convertChild(e)})});case a.JsxSelfClosingElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:Or.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,selfClosing:!0,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map(function(e){return r.convertChild(e)}),range:Mr.getRange(e,this.ast)}),closingElement:null,children:[]});case a.JsxOpeningElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,selfClosing:!1,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map(function(e){return r.convertChild(e)})});case a.JsxClosingElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case a.JsxOpeningFragment:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXOpeningFragment});case a.JsxClosingFragment:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXClosingFragment});case a.JsxExpression:var Y=e.expression?this.convertChild(e.expression):this.createNode(e,{type:Or.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:Or.AST_NODE_TYPES.JSXSpreadChild,expression:Y}):this.createNode(e,{type:Or.AST_NODE_TYPES.JSXExpressionContainer,expression:Y});case a.JsxAttribute:var X=this.convertChild(e.name);return X.type=Or.AST_NODE_TYPES.JSXIdentifier,this.createNode(e,{type:Or.AST_NODE_TYPES.JSXAttribute,name:X,value:this.convertChild(e.initializer)});case a.JsxText:var Q=e.getFullStart(),$=e.getEnd();return this.options.useJSXTextNode?this.createNode(e,{type:Or.AST_NODE_TYPES.JSXText,value:this.ast.text.slice(Q,$),raw:this.ast.text.slice(Q,$),range:[Q,$]}):this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:this.ast.text.slice(Q,$),raw:this.ast.text.slice(Q,$),range:[Q,$]});case a.JsxSpreadAttribute:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case a.QualifiedName:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case a.TypeReference:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0});case a.TypeParameter:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(e.name),constraint:e.constraint?this.convertType(e.constraint):void 0,default:e.default?this.convertType(e.default):void 0});case a.ThisType:case a.AnyKeyword:case a.BigIntKeyword:case a.BooleanKeyword:case a.NeverKeyword:case a.NumberKeyword:case a.ObjectKeyword:case a.StringKeyword:case a.SymbolKeyword:case a.UnknownKeyword:case a.VoidKeyword:case a.UndefinedKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES["TS".concat(a[e.kind])]});case a.NonNullExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});case a.TypeLiteral:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map(function(e){return r.convertChild(e)})});case a.ArrayType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case a.IndexedAccessType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case a.ConditionalType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(e.checkType),extendsType:this.convertType(e.extendsType),trueType:this.convertType(e.trueType),falseType:this.convertType(e.falseType)});case a.TypeQuery:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case a.MappedType:var Z=this.createNode(e,{type:Or.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter)});return e.readonlyToken&&(e.readonlyToken.kind===a.ReadonlyKeyword?Z.readonly=!0:Z.readonly=Mr.getTextForTokenKind(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===a.QuestionToken?Z.optional=!0:Z.optional=Mr.getTextForTokenKind(e.questionToken.kind)),e.type&&(Z.typeAnnotation=this.convertType(e.type)),Z;case a.ParenthesizedExpression:return this.convertChild(e.expression,t);case a.TypeAliasDeclaration:var ee=this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return Mr.hasModifier(a.DeclareKeyword,e)&&(ee.declare=!0),e.typeParameters&&(ee.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,ee);case a.MethodSignature:var te=this.createNode(e,{type:Or.AST_NODE_TYPES.TSMethodSignature,computed:Mr.isComputedProperty(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters)});Mr.isOptional(e)&&(te.optional=!0),e.type&&(te.returnType=this.convertTypeAnnotation(e.type,e)),Mr.hasModifier(a.ReadonlyKeyword,e)&&(te.readonly=!0),e.typeParameters&&(te.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));var re=Mr.getTSNodeAccessibility(e);return re&&(te.accessibility=re),Mr.hasModifier(a.ExportKeyword,e)&&(te.export=!0),Mr.hasModifier(a.StaticKeyword,e)&&(te.static=!0),te;case a.PropertySignature:var ne=this.createNode(e,{type:Or.AST_NODE_TYPES.TSPropertySignature,optional:Mr.isOptional(e)||void 0,computed:Mr.isComputedProperty(e.name),key:this.convertChild(e.name),typeAnnotation:e.type?this.convertTypeAnnotation(e.type,e):void 0,initializer:this.convertChild(e.initializer)||void 0,readonly:Mr.hasModifier(a.ReadonlyKeyword,e)||void 0,static:Mr.hasModifier(a.StaticKeyword,e)||void 0,export:Mr.hasModifier(a.ExportKeyword,e)||void 0}),ie=Mr.getTSNodeAccessibility(e);return ie&&(ne.accessibility=ie),ne;case a.IndexSignature:var ae=this.createNode(e,{type:Or.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map(function(e){return r.convertChild(e)})});e.type&&(ae.typeAnnotation=this.convertTypeAnnotation(e.type,e)),Mr.hasModifier(a.ReadonlyKeyword,e)&&(ae.readonly=!0);var oe=Mr.getTSNodeAccessibility(e);return oe&&(ae.accessibility=oe),Mr.hasModifier(a.ExportKeyword,e)&&(ae.export=!0),Mr.hasModifier(a.StaticKeyword,e)&&(ae.static=!0),ae;case a.ConstructorType:case a.FunctionType:case a.ConstructSignature:case a.CallSignature:var se;switch(e.kind){case a.ConstructSignature:se=Or.AST_NODE_TYPES.TSConstructSignatureDeclaration;break;case a.CallSignature:se=Or.AST_NODE_TYPES.TSCallSignatureDeclaration;break;case a.FunctionType:se=Or.AST_NODE_TYPES.TSFunctionType;break;case a.ConstructorType:default:se=Or.AST_NODE_TYPES.TSConstructorType}var ce=this.createNode(e,{type:se,params:this.convertParameters(e.parameters)});return e.type&&(ce.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(ce.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),ce;case a.ExpressionWithTypeArguments:var ue=this.createNode(e,{type:t&&t.kind===a.InterfaceDeclaration?Or.AST_NODE_TYPES.TSInterfaceHeritage:Or.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(e.expression)});return e.typeArguments&&(ue.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),ue;case a.InterfaceDeclaration:var le=e.heritageClauses||[],_e=this.createNode(e,{type:Or.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:Or.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map(function(e){return r.convertChild(e)}),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters&&(_e.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),le.length>0){var de=[],pe=[],fe=!0,me=!1,ge=void 0;try{for(var ye,he=le[Symbol.iterator]();!(fe=(ye=he.next()).done);fe=!0){var ve=ye.value;if(ve.token===a.ExtendsKeyword){var be=!0,De=!1,xe=void 0;try{for(var Se,Te=ve.types[Symbol.iterator]();!(be=(Se=Te.next()).done);be=!0){var Ce=Se.value;de.push(this.convertChild(Ce,e))}}catch(e){De=!0,xe=e}finally{try{be||null==Te.return||Te.return()}finally{if(De)throw xe}}}else if(ve.token===a.ImplementsKeyword){var Ee=!0,ke=!1,Ne=void 0;try{for(var Ae,Fe=ve.types[Symbol.iterator]();!(Ee=(Ae=Fe.next()).done);Ee=!0){var Pe=Ae.value;pe.push(this.convertChild(Pe,e))}}catch(e){ke=!0,Ne=e}finally{try{Ee||null==Fe.return||Fe.return()}finally{if(ke)throw Ne}}}}}catch(e){me=!0,ge=e}finally{try{fe||null==he.return||he.return()}finally{if(me)throw ge}}de.length&&(_e.extends=de),pe.length&&(_e.implements=pe)}return e.decorators&&(_e.decorators=e.decorators.map(function(e){return r.convertChild(e)})),Mr.hasModifier(a.AbstractKeyword,e)&&(_e.abstract=!0),Mr.hasModifier(a.DeclareKeyword,e)&&(_e.declare=!0),this.fixExports(e,_e);case a.TypePredicate:var we=this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypePredicate,parameterName:this.convertChild(e.parameterName),typeAnnotation:this.convertTypeAnnotation(e.type,e)});return we.typeAnnotation.loc=we.typeAnnotation.typeAnnotation.loc,we.typeAnnotation.range=we.typeAnnotation.typeAnnotation.range,we;case a.ImportType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):null});case a.EnumDeclaration:var Ie=this.createNode(e,{type:Or.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map(function(e){return r.convertChild(e)})});return this.applyModifiersToResult(Ie,e.modifiers),e.decorators&&(Ie.decorators=e.decorators.map(function(e){return r.convertChild(e)})),this.fixExports(e,Ie);case a.EnumMember:var Oe=this.createNode(e,{type:Or.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});return e.initializer&&(Oe.initializer=this.convertChild(e.initializer)),Oe;case a.ModuleDeclaration:var Me=this.createNode(e,{type:Or.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(e.name)});return e.body&&(Me.body=this.convertChild(e.body)),this.applyModifiersToResult(Me,e.modifiers),e.flags&i.default.NodeFlags.GlobalAugmentation&&(Me.global=!0),this.fixExports(e,Me);case a.OptionalType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case a.ParenthesizedType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSParenthesizedType,typeAnnotation:this.convertType(e.type)});case a.TupleType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTupleType,elementTypes:e.elementTypes.map(function(e){return r.convertType(e)})});case a.UnionType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSUnionType,types:e.types.map(function(e){return r.convertType(e)})});case a.IntersectionType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSIntersectionType,types:e.types.map(function(e){return r.convertType(e)})});case a.RestType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});case a.AsExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case a.InferType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case a.LiteralType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case a.TypeAssertionExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case a.ImportEqualsDeclaration:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),isExport:Mr.hasModifier(a.ExportKeyword,e)});case a.ExternalModuleReference:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case a.NamespaceExportDeclaration:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case a.AbstractKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSAbstractKeyword});default:return this.deeplyCopy(e)}}}])&&m(t.prototype,r),n&&m(t,n),e}();t.Converter=o});i(Lr);var Rr=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(fr);function a(e,t,r){var n=e.getToken()===i.default.SyntaxKind.MultiLineCommentTrivia,a={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},o=r.substring(a.pos,a.end),s=n?o.replace(/^\/\*/,"").replace(/\*\/$/,""):o.replace(/^\/\//,""),c=Mr.getLocFor(a.pos,a.end,t);return function(e,t,r,n,i,a){var o={type:e?"Block":"Line",value:t};return"number"==typeof r&&(o.range=[r,n]),"object"===f(i)&&(o.loc={start:i,end:a}),o}(n,s,a.pos,a.end,c.start,c.end)}t.convertComments=function(e,t){for(var r=[],n=i.default.createScanner(e.languageVersion,!1,e.languageVariant,t),o=n.scan();o!==i.default.SyntaxKind.EndOfFileToken;){var s=n.getTokenPos(),c=n.getTextPos(),u=null;switch(o){case i.default.SyntaxKind.SingleLineCommentTrivia:case i.default.SyntaxKind.MultiLineCommentTrivia:var l=a(n,e,t);r.push(l);break;case i.default.SyntaxKind.GreaterThanToken:if((u=Mr.getNodeContainer(e,s,c))&&u.parent&&u.parent.kind===i.default.SyntaxKind.JsxOpeningElement&&u.parent.parent&&u.parent.parent.kind===i.default.SyntaxKind.JsxElement){o=n.reScanJsxToken();continue}break;case i.default.SyntaxKind.CloseBraceToken:if((u=Mr.getNodeContainer(e,s,c)).kind===i.default.SyntaxKind.TemplateMiddle||u.kind===i.default.SyntaxKind.TemplateTail){o=n.reScanTemplateToken();continue}break;case i.default.SyntaxKind.SlashToken:case i.default.SyntaxKind.SlashEqualsToken:if((u=Mr.getNodeContainer(e,s,c)).kind===i.default.SyntaxKind.RegularExpressionLiteral){o=n.reScanSlashToken();continue}}o=n.scan()}return r}});i(Rr);var Br=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(e.parseDiagnostics.length)throw Lr.convertError(e.parseDiagnostics[0]);var n=new Lr.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1,shouldProvideParserServices:r}),i=n.convertProgram();return t.tokens&&(i.tokens=Mr.convertTokens(e)),t.comment&&(i.comments=Rr.convertComments(e,t.code)),{estree:i,astMaps:r?n.getASTMaps():void 0}}});i(Br);var jr=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(fr);function a(e){return e.filter(function(e){switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1172:case 1173:case 1175:case 1176:case 1190:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 2364:case 2369:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function o(e){return Object.assign({},e,{message:i.default.flattenDiagnosticMessageText(e.messageText,i.default.sys.newLine)})}t.getFirstSemanticOrSyntacticError=function(e,t){try{var r=a(e.getSyntacticDiagnostics(t));if(r.length)return o(r[0]);var n=a(e.getSemanticDiagnostics(t));return n.length?o(n[0]):void 0}catch(e){return void console.warn('Warning From TSC: "'.concat(e.message))}}});i(jr);var Jr="@typescript-eslint/typescript-estree",zr="A parser that converts TypeScript source code into an ESTree compatible form",Kr="dist/parser.js",Ur="dist/parser.d.ts",Vr=["dist","README.md","LICENSE"],qr={node:">=6.14.0"},Wr="typescript-eslint/typescript-eslint",Hr={url:"https://github.com/typescript-eslint/typescript-eslint/issues"},Gr=["ast","estree","ecmascript","javascript","typescript","parser","syntax"],Yr={prebuild:"npm run clean",build:"tsc -p tsconfig.build.json",clean:"rimraf dist/",test:"jest --coverage","unit-tests":'jest "./tests/lib/.*"',"ast-alignment-tests":"jest spec.ts",typecheck:"tsc --noEmit"},Xr={"lodash.unescape":"4.0.1",semver:"5.5.0"},Qr={typescript:"*"},$r={"@babel/types":"^7.3.2","@typescript-eslint/shared-fixtures":"1.6.0"},Zr="ab3c1a1613a9b0a064d634822d7eff14bd94f5a5",en={name:Jr,version:"1.6.0",description:zr,main:Kr,types:Ur,files:Vr,engines:qr,repository:Wr,bugs:Hr,license:"BSD-2-Clause",keywords:Gr,scripts:Yr,dependencies:Xr,peerDependencies:Qr,devDependencies:$r,gitHead:Zr},tn=Object.freeze({name:Jr,version:"1.6.0",description:zr,main:Kr,types:Ur,files:Vr,engines:qr,repository:Wr,bugs:Hr,license:"BSD-2-Clause",keywords:Gr,scripts:Yr,dependencies:Xr,peerDependencies:Qr,devDependencies:$r,gitHead:Zr,default:en}),rn=tn&&en||tn,nn=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(gr),o=n(fr),s=n(Br),c=">=3.2.1 <3.5.0",u=o.default.version,l=a.default.satisfies(u,c),_=!1;function d(e){return e.jsx?"estree.tsx":"estree.ts"}function p(){i={tokens:null,range:!1,loc:!1,comment:!1,comments:[],strict:!1,jsx:!1,useJSXTextNode:!1,log:console.log,projects:[],errorOnUnknownASTType:!1,errorOnTypeScriptSyntacticAndSemanticIssues:!1,code:"",tsconfigRootDir:ve.cwd(),extraFileExtensions:[]}}function f(e,t,r){return r&&function(e,t){return Mr.firstDefined(mr.calculateProjectParserOptions(e,t.filePath||d(t),i),function(e){var r=e.getSourceFile(t.filePath||d(t));return r&&{ast:r,program:e}})}(e,t)||r&&function(e,t){var r=t.filePath||d(t),n=mr.createProgram(e,r,i),a=n&&n.getSourceFile(r);return a&&{ast:a,program:n}}(e,t)||function(e){var t=d(i),r={fileExists:function(){return!0},getCanonicalFileName:function(){return t},getCurrentDirectory:function(){return""},getDirectories:function(){return[]},getDefaultLibFileName:function(){return"lib.d.ts"},getNewLine:function(){return"\n"},getSourceFile:function(t){return o.default.createSourceFile(t,e,o.default.ScriptTarget.Latest,!0)},readFile:function(){},useCaseSensitiveFileNames:function(){return!0},writeFile:function(){return null}},n=o.default.createProgram([t],{noResolve:!0,target:o.default.ScriptTarget.Latest,jsx:i.jsx?o.default.JsxEmit.Preserve:void 0},r);return{ast:n.getSourceFile(t),program:n}}(e)}function m(e){i.range="boolean"==typeof e.range&&e.range,i.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(i.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(i.comment=!0,i.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(i.jsx=!0),"boolean"==typeof e.useJSXTextNode&&e.useJSXTextNode&&(i.useJSXTextNode=!0),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(i.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?i.log=e.loggerFn:!1===e.loggerFn&&(i.log=Function.prototype),"string"==typeof e.project?i.projects=[e.project]:Array.isArray(e.project)&&e.project.every(function(e){return"string"==typeof e})&&(i.projects=e.project),"string"==typeof e.tsconfigRootDir&&(i.tsconfigRootDir=e.tsconfigRootDir),Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every(function(e){return"string"==typeof e})&&(i.extraFileExtensions=e.extraFileExtensions)}function g(){if(!l&&!_){var e=["=============","WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(c),"YOUR TYPESCRIPT VERSION: ".concat(u),"Please only submit bug reports when using the officially supported version.","============="];i.log(e.join("\n\n")),_=!0}}t.version=rn.version,t.parse=function(e,t){if(p(),t&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');"string"==typeof e||e instanceof String||(e=String(e)),i.code=e,void 0!==t&&m(t),g();var r=o.default.createSourceFile(d(i),e,o.default.ScriptTarget.Latest,!0);return s.default(r,i,!1).estree},t.parseAndGenerateServices=function(e,t){p(),"string"==typeof e||e instanceof String||(e=String(e)),i.code=e,void 0!==t&&(m(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(i.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),g();var r=i.projects&&i.projects.length>0,n=f(e,t,r),a=n.ast,o=n.program,c=s.default(a,i,r),u=c.estree,l=c.astMaps;if(o&&i.errorOnTypeScriptSyntacticAndSemanticIssues){var _=jr.getFirstSemanticOrSyntacticError(o,a);if(_)throw Lr.convertError(_)}return{ast:u,services:{program:r?o:void 0,esTreeNodeToTSNodeMap:r&&l?l.esTreeNodeToTSNodeMap:void 0,tsNodeToESTreeNodeMap:r&&l?l.tsNodeToESTreeNodeMap:void 0}}},t.AST_NODE_TYPES=Or.AST_NODE_TYPES,t.AST_TOKEN_TYPES=Or.AST_TOKEN_TYPES,t.TSESTree=Or.TSESTree});i(nn);var an=_;function on(e,t){return nn.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,jsx:t,loggerFn:function(){}})}return{parsers:{typescript:Object.assign({parse:function(r,n,i){var a,o=function(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}(r);try{a=on(r,o)}catch(t){try{a=on(r,!o)}catch(r){var s=t;if(void 0===s.lineNumber)throw s;throw e(s.message,{start:{line:s.lineNumber,column:s.column+1}})}}return delete a.tokens,t(r,a),H(a,Object.assign({},i,{originalText:r}))},astFormat:"estree",hasPragma:an},p)}}}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(globalThis,function(){"use strict";var e=function(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var t=function(e,t){if(e.startsWith("#!")){var r=e.indexOf("\n"),n={type:"Line",value:e.slice(2,r),range:[0,r],loc:{source:null,start:{line:1,column:0},end:{line:1,column:r}}};t.comments=[n].concat(t.comments)}},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}var o=a(function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var r=t.filter(function(e){return"\r\n"===e}).length;return r>t.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),s={EOL:"\n"},c=Object.freeze({default:s}),u=c&&s||c,l=a(function(e,t){var r,n;function i(){return r=(e=o)&&e.__esModule?e:{default:e};var e}function a(){return n=u}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(l);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(l);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return g(e).pragmas},t.parseWithComments=g,t.print=function(e){var t=e.comments,o=void 0===t?"":t,s=e.pragmas,c=void 0===s?{}:s,u=(0,(r||i()).default)(o)||(n||a()).EOL,l=Object.keys(c),_=l.map(function(e){return y(e,c[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+u}).join("");if(!o){if(0===l.length)return"";if(1===l.length&&!Array.isArray(c[l[0]])){var d=c[l[0]];return"".concat("/**"," ").concat(y(l[0],d)[0]).concat(" */")}}var p=o.split(u).map(function(e){return"".concat(" *"," ").concat(e)}).join(u)+u;return"/**"+u+(o?p:"")+(o&&l.length?" *"+u:"")+_+" */"};var s=/\*\/$/,c=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_=/(^|\s+)\/\/([^\r\n]*)/g,d=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function g(e){var t=(0,(r||i()).default)(e)||(n||a()).EOL;e=e.replace(c,"").replace(s,"").replace(m,"$1");for(var o="";o!==e;)o=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(d,"").trimRight();for(var u,l=Object.create(null),g=e.replace(f,"").replace(d,"").trimRight();u=f.exec(e);){var y=u[2].replace(_,"");"string"==typeof l[u[1]]||Array.isArray(l[u[1]])?l[u[1]]=[].concat(l[u[1]],y):l[u[1]]=y}return{comments:g,pragmas:l}}function y(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});i(l);var _=function(e){var t=Object.keys(l.parse(l.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},d=function(e){return e.length>0?e[e.length-1]:null};var p={locStart:function e(t,r){return!(r=r||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!r.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&d(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}}),h=a(function(e){e.exports=function(e){return!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))}}),v=a(function(e){var t=/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;e.exports=function(e){if("string"!=typeof(e=e.replace(t," "))||0===e.length)return 0;e=function(e){return"string"==typeof e?e.replace(y(),""):e}(e);for(var r=0,n=0;n=127&&i<=159||(i>=768&&i<=879||(i>65535&&n++,r+=h(i)?2:1))}return r}}),b=/[|\\{}()[\]^$+*?.]/g,D=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(b,"\\$&")},x=/[^\x20-\x7F]/;function S(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function T(e){return function(t,r,n){var i=n&&n.backwards;if(!1===r)return!1;for(var a=t.length,o=r;o>=0&&o"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){L[e]=t})});var B={"==":!0,"!=":!0,"===":!0,"!==":!0},j={"*":!0,"/":!0,"%":!0},J={">>":!0,">>>":!0,"<<":!0};function z(e,t,r){for(var n=0,i=r=r||0;i(r.match(o.regex)||[]).length?o.quote:a.quote);return s}function U(e,t,r){var n='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(['"])/g,function(e,i,a){return i===n?i:a===t?"\\"+a:a||(r&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(i)?i:"\\"+i)});return t+i+t}function V(e){return e&&e.comments&&e.comments.length>0&&e.comments.some(function(e){return"prettier-ignore"===e.value.trim()})}function q(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var W={replaceEndOfLineWith:function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e.split("\n")[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;0!==r.length&&r.push(t),r.push(c)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r},getStringWidth:function(e){return e?x.test(e)?v(e):e.length:0},getMaxContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(D(t),")+"),"g"));return null===r?0:r.reduce(function(e,r){return Math.max(e,r.length/t.length)},0)},getMinNotPresentContinuousCount:function(e,t){var r=e.match(new RegExp("(".concat(D(t),")+"),"g"));if(null===r)return 0;var n=new Map,i=0,a=!0,o=!1,s=void 0;try{for(var c,u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var l=c.value.length/t.length;n.set(l,!0),l>i&&(i=l)}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}for(var _=1;_1?e[e.length-2]:null},getLast:d,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:O,getNextNonSpaceNonCommentCharacterIndex:M,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(M(e,t,r))},skip:T,skipWhitespace:C,skipSpaces:E,skipToLineEnd:k,skipEverythingButNewLine:N,skipInlineComment:A,skipTrailingComment:F,skipNewline:P,isNextLineEmptyAfterIndex:I,isNextLineEmpty:function(e,t,r){return I(e,r(t))},isPreviousLineEmpty:function(e,t,r){var n=r(t)-1;return n=P(e,n=E(e,n,{backwards:!0}),{backwards:!0}),(n=E(e,n,{backwards:!0}))!==P(e,n,{backwards:!0})},hasNewline:w,hasNewlineInRange:function(e,t,r){for(var n=t;n1)for(var r=1;r>>=5)>0&&(t|=32),r+=Ne(t)}while(n>0);return r},Pe=function(e,t,r){var n,i,a,o,s=e.length,c=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Ae(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<>1,1==(1&a)?-o:o),r.rest=t},we=a(function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=_(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:_(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=_(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}}),Ie=Object.prototype.hasOwnProperty,Oe="undefined"!=typeof Map;function Me(){this._array=[],this._set=Oe?new Map:Object.create(null)}Me.fromArray=function(e,t){for(var r=new Me,n=0,i=e.length;n=0)return t}else{var r=we.toSetString(e);if(Ie.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Me.prototype.at=function(e){if(e>=0&&en||i==n&&o>=a||we.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Re.prototype.toArray=function(){return this._sorted||(this._array.sort(we.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Be=Le.ArraySet,je={MappingList:Re}.MappingList;function Je(e){e||(e={}),this._file=we.getArg(e,"file",null),this._sourceRoot=we.getArg(e,"sourceRoot",null),this._skipValidation=we.getArg(e,"skipValidation",!1),this._sources=new Be,this._names=new Be,this._mappings=new je,this._sourcesContents=null}Je.prototype._version=3,Je.fromSourceMap=function(e){var t=e.sourceRoot,r=new Je({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=we.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(n){var i=n;null!==t&&(i=we.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)}),r},Je.prototype.addMapping=function(e){var t=we.getArg(e,"generated"),r=we.getArg(e,"original",null),n=we.getArg(e,"source",null),i=we.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Je.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=we.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[we.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[we.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Je.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=we.relative(i,n));var a=new Be,o=new Be;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=we.join(r,t.source)),null!=i&&(t.source=we.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||o.has(u)||o.add(u)},this),this._sources=a,this._names=o,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=we.join(r,t)),null!=i&&(t=we.relative(i,t)),this.setSourceContent(t,n))},this)},Je.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Je.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!we.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=","}e+=Fe(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=Fe(n-u),u=n,e+=Fe(t.originalLine-1-s),s=t.originalLine-1,e+=Fe(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=Fe(r-c),c=r)),l+=e}return l},Je.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=we.relative(t,e));var r=we.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},Je.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},Je.prototype.toString=function(){return JSON.stringify(this.toJSON())};var ze={SourceMapGenerator:Je},Ke=a(function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}});function Ue(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Ve(e,t,r,n){if(r=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:we.getArg(a,"generatedLine",null),column:we.getArg(a,"generatedColumn",null),lastColumn:we.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:we.getArg(a,"generatedLine",null),column:we.getArg(a,"generatedColumn",null),lastColumn:we.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};function Ge(e,t){var r=e;"string"==typeof e&&(r=we.parseSourceMapInput(e));var n=we.getArg(r,"version"),i=we.getArg(r,"sources"),a=we.getArg(r,"names",[]),o=we.getArg(r,"sourceRoot",null),s=we.getArg(r,"sourcesContent",null),c=we.getArg(r,"mappings"),u=we.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=we.normalize(o)),i=i.map(String).map(we.normalize).map(function(e){return o&&we.isAbsolute(o)&&we.isAbsolute(e)?we.relative(o,e):e}),this._names=qe.fromArray(a.map(String),!0),this._sources=qe.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(e){return we.computeSourceURL(o,e,t)}),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function Ye(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Ge.prototype=Object.create(He.prototype),Ge.prototype.consumer=He,Ge.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=we.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=_+i[1],_+=i[1],r.originalLine=u+i[2],u=r.originalLine,r.originalLine+=1,r.originalColumn=l+i[3],l=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),h.push(r),"number"==typeof r.originalLine&&y.push(r)}We(h,we.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,We(y,we.compareByOriginalPositions),this.__originalMappings=y},Ge.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Ke.search(e,t,i,a)},Ge.prototype.computeColumnSpans=function(){for(var e=0;e=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=we.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=we.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=we.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:we.getArg(n,"originalLine",null),column:we.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Ge.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},Ge.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=we.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=we.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},Ge.prototype.generatedPositionFor=function(e){var t=we.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:we.getArg(e,"line"),originalColumn:we.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",we.compareByOriginalPositions,we.getArg(e,"bias",He.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:we.getArg(i,"generatedLine",null),column:we.getArg(i,"generatedColumn",null),lastColumn:we.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};function Xe(e,t){var r=e;"string"==typeof e&&(r=we.parseSourceMapInput(e));var n=we.getArg(r,"version"),i=we.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new qe,this._names=new qe;var a={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=we.getArg(e,"offset"),n=we.getArg(r,"line"),i=we.getArg(r,"column");if(n=0;t--)this.prepend(e[t]);else{if(!e[Ze]&&"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},et.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r>18&63]+tt[i>>12&63]+tt[i>>6&63]+tt[63&i]);return a.join("")}function st(e){var t;it||at();for(var r=e.length,n=r%3,i="",a=[],o=0,s=r-n;os?s:o+16383));return 1===n?(t=e[r-1],i+=tt[t>>2],i+=tt[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=tt[t>>10],i+=tt[t>>4&63],i+=tt[t<<2&63],i+="="),a.push(i),a.join("")}function ct(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<>1,l=-7,_=r?i-1:0,d=r?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)}function ut(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*m}var lt={}.toString,_t=Array.isArray||function(e){return"[object Array]"==lt.call(e)};function dt(){return ft.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function pt(e,t){if(dt()=dt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dt().toString(16)+" bytes");return 0|e}function bt(e){return!(null==e||!e._isBuffer)}function Dt(e,t){if(bt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ht(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Gt(e).length;default:if(n)return Ht(e).length;t=(""+t).toLowerCase(),n=!0}}function xt(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function St(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=ft.from(t,n)),bt(t))return 0===t.length?-1:Tt(e,t,r,n,i);if("number"==typeof t)return t&=255,ft.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Tt(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Tt(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;as&&(r=s-c),a=r;a>=0;a--){for(var _=!0,d=0;di&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function Pt(e,t,r){return 0===t&&r===e.length?st(e):st(e.slice(t,r))}function wt(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+_<=r)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=_}return function(e){var t=e.length;if(t<=It)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Lt(this,t,r);case"utf8":case"utf-8":return wt(this,t,r);case"ascii":return Ot(this,t,r);case"latin1":case"binary":return Mt(this,t,r);case"base64":return Pt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},ft.prototype.equals=function(e){if(!bt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ft.compare(this,e)},ft.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ft.prototype.compare=function(e,t,r,n,i){if(!bt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Ct(this,e,t,r);case"utf8":case"utf-8":return Et(this,e,t,r);case"ascii":return kt(this,e,t,r);case"latin1":case"binary":return Nt(this,e,t,r);case"base64":return At(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var It=4096;function Ot(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function jt(e,t,r,n,i,a){if(!bt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Jt(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function zt(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function Kt(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ut(e,t,r,n,i){return i||Kt(e,0,r,4),ut(e,t,r,n,23,4),r+4}function Vt(e,t,r,n,i){return i||Kt(e,0,r,8),ut(e,t,r,n,52,8),r+8}ft.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},ft.prototype.readUInt8=function(e,t){return t||Bt(e,1,this.length),this[e]},ft.prototype.readUInt16LE=function(e,t){return t||Bt(e,2,this.length),this[e]|this[e+1]<<8},ft.prototype.readUInt16BE=function(e,t){return t||Bt(e,2,this.length),this[e]<<8|this[e+1]},ft.prototype.readUInt32LE=function(e,t){return t||Bt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ft.prototype.readUInt32BE=function(e,t){return t||Bt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ft.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Bt(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},ft.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Bt(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},ft.prototype.readInt8=function(e,t){return t||Bt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ft.prototype.readInt16LE=function(e,t){t||Bt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ft.prototype.readInt16BE=function(e,t){t||Bt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ft.prototype.readInt32LE=function(e,t){return t||Bt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ft.prototype.readInt32BE=function(e,t){return t||Bt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ft.prototype.readFloatLE=function(e,t){return t||Bt(e,4,this.length),ct(this,e,!0,23,4)},ft.prototype.readFloatBE=function(e,t){return t||Bt(e,4,this.length),ct(this,e,!1,23,4)},ft.prototype.readDoubleLE=function(e,t){return t||Bt(e,8,this.length),ct(this,e,!0,52,8)},ft.prototype.readDoubleBE=function(e,t){return t||Bt(e,8,this.length),ct(this,e,!1,52,8)},ft.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||jt(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},ft.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,1,255,0),ft.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ft.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,65535,0),ft.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Jt(this,e,t,!0),t+2},ft.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,65535,0),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Jt(this,e,t,!1),t+2},ft.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,4294967295,0),ft.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):zt(this,e,t,!0),t+4},ft.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,4294967295,0),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):zt(this,e,t,!1),t+4},ft.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);jt(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},ft.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);jt(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},ft.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,1,127,-128),ft.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ft.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,32767,-32768),ft.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Jt(this,e,t,!0),t+2},ft.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,2,32767,-32768),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Jt(this,e,t,!1),t+2},ft.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,2147483647,-2147483648),ft.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):zt(this,e,t,!0),t+4},ft.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||jt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ft.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):zt(this,e,t,!1),t+4},ft.prototype.writeFloatLE=function(e,t,r){return Ut(this,e,t,!0,r)},ft.prototype.writeFloatBE=function(e,t,r){return Ut(this,e,t,!1,r)},ft.prototype.writeDoubleLE=function(e,t,r){return Vt(this,e,t,!0,r)},ft.prototype.writeDoubleBE=function(e,t,r){return Vt(this,e,t,!1,r)},ft.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!ft.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Gt(e){return function(e){var t,r,n,i,a,o;it||at();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new nt(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=rt[e.charCodeAt(t)]<<2|rt[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=rt[e.charCodeAt(t)]<<10|rt[e.charCodeAt(t+1)]<<4|rt[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(qt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Yt(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Xt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Qt=Object.prototype.toString,$t="function"==typeof ft.alloc&&"function"==typeof ft.allocUnsafe&&"function"==typeof ft.from;var Zt,er=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n=e,"ArrayBuffer"===Qt.call(n).slice(8,-1)?function(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=n;else if((r>>>=0)>n)throw new RangeError("'length' is out of bounds");return $t?ft.from(e.slice(t,t+r)):new ft(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!ft.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return $t?ft.from(e,t):new ft(e,t)}(e,t):$t?ft.from(e):new ft(e);var n},tr={},rr=(Object.freeze({default:tr}),De&&be||De),nr=Te&&Se||Te,ir=rr;try{(Zt=nr).existsSync&&Zt.readFileSync||(Zt=null)}catch(e){}var ar="auto",or={},sr=/^data:application\/json[^,]+base64,/,cr=[],ur=[];function lr(){return"browser"===ar||"node"!==ar&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function _r(e){return function(t){for(var r=0;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(n(r(e[c]),t)){case-1:a=c+1;break;case 0:return c;case 1:s=c-1}}return~a}function y(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.emptyArray=[],e.createMap=r,e.createMapFromEntries=function(e){for(var t=r(),n=0,i=e;n=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(e,t){for(var r=0;r0&&h.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;io&&h.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n},e.sum=function(e,t){for(var r=0,n=0,i=e;nt?1:0}function M(e,t){return w(e,t)}e.hasProperty=b,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t},e.getOwnValues=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(e[r]);return t},e.arrayFrom=D,e.assign=function(e){for(var t=[],r=1;r=t},e.assert=function e(r,n,i,a){r||(i&&(n+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),t(n?"False expression: "+n:"False expression.",a||e))},e.assertEqual=function(e,r,n,i){e!==r&&t("Expected "+e+" === "+r+". "+(n?i?n+" "+i:n:""))},e.assertLessThan=function(e,r,n){e>=r&&t("Expected "+e+" < "+r+". "+(n||""))},e.assertLessThanOrEqual=function(e,r){e>r&&t("Expected "+e+" <= "+r)},e.assertGreaterThanOrEqual=function(e,r){e= "+r)},e.fail=t,e.assertDefined=r,e.assertEachDefined=function(e,t){for(var n=0,i=e;n0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function j(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function J(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function z(e,t){return e.length>t.length&&J(e,t)}function K(e,t){for(var r=t;r=r.length+n.length&&q(t,r)&&J(t,n)}e.getUILocale=function(){return R},e.setUILocale=function(e){R!==e&&(R=e,L=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(L||(L=B(R)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return I(e?1:0,t?1:0)},e.getSpellingSuggestion=function(e,t,r){for(var n,i=Math.min(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;ci&&(i=c.prefix.length,n=s)}return n},e.startsWith=q,e.removePrefix=function(e,t){return q(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),q(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(e,t){return function(r){return e(r)||t(r)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||k;for(var o=0,s=0,c=e.length,u=t.length;o=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var t=[],r=0,n=e.trim().split(c);r=",n.version)),y(i.major)||r.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function g(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function D(t){return e.map(t,x).join(" ")}function x(e){return""+e.operator+e.operand}}(c||(c={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.LessThanToken=28]="LessThanToken",e[e.LessThanSlashToken=29]="LessThanSlashToken",e[e.GreaterThanToken=30]="GreaterThanToken",e[e.LessThanEqualsToken=31]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=32]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=33]="EqualsEqualsToken",e[e.ExclamationEqualsToken=34]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=35]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=36]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=37]="EqualsGreaterThanToken",e[e.PlusToken=38]="PlusToken",e[e.MinusToken=39]="MinusToken",e[e.AsteriskToken=40]="AsteriskToken",e[e.AsteriskAsteriskToken=41]="AsteriskAsteriskToken",e[e.SlashToken=42]="SlashToken",e[e.PercentToken=43]="PercentToken",e[e.PlusPlusToken=44]="PlusPlusToken",e[e.MinusMinusToken=45]="MinusMinusToken",e[e.LessThanLessThanToken=46]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=47]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=48]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=49]="AmpersandToken",e[e.BarToken=50]="BarToken",e[e.CaretToken=51]="CaretToken",e[e.ExclamationToken=52]="ExclamationToken",e[e.TildeToken=53]="TildeToken",e[e.AmpersandAmpersandToken=54]="AmpersandAmpersandToken",e[e.BarBarToken=55]="BarBarToken",e[e.QuestionToken=56]="QuestionToken",e[e.ColonToken=57]="ColonToken",e[e.AtToken=58]="AtToken",e[e.EqualsToken=59]="EqualsToken",e[e.PlusEqualsToken=60]="PlusEqualsToken",e[e.MinusEqualsToken=61]="MinusEqualsToken",e[e.AsteriskEqualsToken=62]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=63]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=64]="SlashEqualsToken",e[e.PercentEqualsToken=65]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=66]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=68]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=69]="AmpersandEqualsToken",e[e.BarEqualsToken=70]="BarEqualsToken",e[e.CaretEqualsToken=71]="CaretEqualsToken",e[e.Identifier=72]="Identifier",e[e.BreakKeyword=73]="BreakKeyword",e[e.CaseKeyword=74]="CaseKeyword",e[e.CatchKeyword=75]="CatchKeyword",e[e.ClassKeyword=76]="ClassKeyword",e[e.ConstKeyword=77]="ConstKeyword",e[e.ContinueKeyword=78]="ContinueKeyword",e[e.DebuggerKeyword=79]="DebuggerKeyword",e[e.DefaultKeyword=80]="DefaultKeyword",e[e.DeleteKeyword=81]="DeleteKeyword",e[e.DoKeyword=82]="DoKeyword",e[e.ElseKeyword=83]="ElseKeyword",e[e.EnumKeyword=84]="EnumKeyword",e[e.ExportKeyword=85]="ExportKeyword",e[e.ExtendsKeyword=86]="ExtendsKeyword",e[e.FalseKeyword=87]="FalseKeyword",e[e.FinallyKeyword=88]="FinallyKeyword",e[e.ForKeyword=89]="ForKeyword",e[e.FunctionKeyword=90]="FunctionKeyword",e[e.IfKeyword=91]="IfKeyword",e[e.ImportKeyword=92]="ImportKeyword",e[e.InKeyword=93]="InKeyword",e[e.InstanceOfKeyword=94]="InstanceOfKeyword",e[e.NewKeyword=95]="NewKeyword",e[e.NullKeyword=96]="NullKeyword",e[e.ReturnKeyword=97]="ReturnKeyword",e[e.SuperKeyword=98]="SuperKeyword",e[e.SwitchKeyword=99]="SwitchKeyword",e[e.ThisKeyword=100]="ThisKeyword",e[e.ThrowKeyword=101]="ThrowKeyword",e[e.TrueKeyword=102]="TrueKeyword",e[e.TryKeyword=103]="TryKeyword",e[e.TypeOfKeyword=104]="TypeOfKeyword",e[e.VarKeyword=105]="VarKeyword",e[e.VoidKeyword=106]="VoidKeyword",e[e.WhileKeyword=107]="WhileKeyword",e[e.WithKeyword=108]="WithKeyword",e[e.ImplementsKeyword=109]="ImplementsKeyword",e[e.InterfaceKeyword=110]="InterfaceKeyword",e[e.LetKeyword=111]="LetKeyword",e[e.PackageKeyword=112]="PackageKeyword",e[e.PrivateKeyword=113]="PrivateKeyword",e[e.ProtectedKeyword=114]="ProtectedKeyword",e[e.PublicKeyword=115]="PublicKeyword",e[e.StaticKeyword=116]="StaticKeyword",e[e.YieldKeyword=117]="YieldKeyword",e[e.AbstractKeyword=118]="AbstractKeyword",e[e.AsKeyword=119]="AsKeyword",e[e.AnyKeyword=120]="AnyKeyword",e[e.AsyncKeyword=121]="AsyncKeyword",e[e.AwaitKeyword=122]="AwaitKeyword",e[e.BooleanKeyword=123]="BooleanKeyword",e[e.ConstructorKeyword=124]="ConstructorKeyword",e[e.DeclareKeyword=125]="DeclareKeyword",e[e.GetKeyword=126]="GetKeyword",e[e.InferKeyword=127]="InferKeyword",e[e.IsKeyword=128]="IsKeyword",e[e.KeyOfKeyword=129]="KeyOfKeyword",e[e.ModuleKeyword=130]="ModuleKeyword",e[e.NamespaceKeyword=131]="NamespaceKeyword",e[e.NeverKeyword=132]="NeverKeyword",e[e.ReadonlyKeyword=133]="ReadonlyKeyword",e[e.RequireKeyword=134]="RequireKeyword",e[e.NumberKeyword=135]="NumberKeyword",e[e.ObjectKeyword=136]="ObjectKeyword",e[e.SetKeyword=137]="SetKeyword",e[e.StringKeyword=138]="StringKeyword",e[e.SymbolKeyword=139]="SymbolKeyword",e[e.TypeKeyword=140]="TypeKeyword",e[e.UndefinedKeyword=141]="UndefinedKeyword",e[e.UniqueKeyword=142]="UniqueKeyword",e[e.UnknownKeyword=143]="UnknownKeyword",e[e.FromKeyword=144]="FromKeyword",e[e.GlobalKeyword=145]="GlobalKeyword",e[e.BigIntKeyword=146]="BigIntKeyword",e[e.OfKeyword=147]="OfKeyword",e[e.QualifiedName=148]="QualifiedName",e[e.ComputedPropertyName=149]="ComputedPropertyName",e[e.TypeParameter=150]="TypeParameter",e[e.Parameter=151]="Parameter",e[e.Decorator=152]="Decorator",e[e.PropertySignature=153]="PropertySignature",e[e.PropertyDeclaration=154]="PropertyDeclaration",e[e.MethodSignature=155]="MethodSignature",e[e.MethodDeclaration=156]="MethodDeclaration",e[e.Constructor=157]="Constructor",e[e.GetAccessor=158]="GetAccessor",e[e.SetAccessor=159]="SetAccessor",e[e.CallSignature=160]="CallSignature",e[e.ConstructSignature=161]="ConstructSignature",e[e.IndexSignature=162]="IndexSignature",e[e.TypePredicate=163]="TypePredicate",e[e.TypeReference=164]="TypeReference",e[e.FunctionType=165]="FunctionType",e[e.ConstructorType=166]="ConstructorType",e[e.TypeQuery=167]="TypeQuery",e[e.TypeLiteral=168]="TypeLiteral",e[e.ArrayType=169]="ArrayType",e[e.TupleType=170]="TupleType",e[e.OptionalType=171]="OptionalType",e[e.RestType=172]="RestType",e[e.UnionType=173]="UnionType",e[e.IntersectionType=174]="IntersectionType",e[e.ConditionalType=175]="ConditionalType",e[e.InferType=176]="InferType",e[e.ParenthesizedType=177]="ParenthesizedType",e[e.ThisType=178]="ThisType",e[e.TypeOperator=179]="TypeOperator",e[e.IndexedAccessType=180]="IndexedAccessType",e[e.MappedType=181]="MappedType",e[e.LiteralType=182]="LiteralType",e[e.ImportType=183]="ImportType",e[e.ObjectBindingPattern=184]="ObjectBindingPattern",e[e.ArrayBindingPattern=185]="ArrayBindingPattern",e[e.BindingElement=186]="BindingElement",e[e.ArrayLiteralExpression=187]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=188]="ObjectLiteralExpression",e[e.PropertyAccessExpression=189]="PropertyAccessExpression",e[e.ElementAccessExpression=190]="ElementAccessExpression",e[e.CallExpression=191]="CallExpression",e[e.NewExpression=192]="NewExpression",e[e.TaggedTemplateExpression=193]="TaggedTemplateExpression",e[e.TypeAssertionExpression=194]="TypeAssertionExpression",e[e.ParenthesizedExpression=195]="ParenthesizedExpression",e[e.FunctionExpression=196]="FunctionExpression",e[e.ArrowFunction=197]="ArrowFunction",e[e.DeleteExpression=198]="DeleteExpression",e[e.TypeOfExpression=199]="TypeOfExpression",e[e.VoidExpression=200]="VoidExpression",e[e.AwaitExpression=201]="AwaitExpression",e[e.PrefixUnaryExpression=202]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=203]="PostfixUnaryExpression",e[e.BinaryExpression=204]="BinaryExpression",e[e.ConditionalExpression=205]="ConditionalExpression",e[e.TemplateExpression=206]="TemplateExpression",e[e.YieldExpression=207]="YieldExpression",e[e.SpreadElement=208]="SpreadElement",e[e.ClassExpression=209]="ClassExpression",e[e.OmittedExpression=210]="OmittedExpression",e[e.ExpressionWithTypeArguments=211]="ExpressionWithTypeArguments",e[e.AsExpression=212]="AsExpression",e[e.NonNullExpression=213]="NonNullExpression",e[e.MetaProperty=214]="MetaProperty",e[e.SyntheticExpression=215]="SyntheticExpression",e[e.TemplateSpan=216]="TemplateSpan",e[e.SemicolonClassElement=217]="SemicolonClassElement",e[e.Block=218]="Block",e[e.VariableStatement=219]="VariableStatement",e[e.EmptyStatement=220]="EmptyStatement",e[e.ExpressionStatement=221]="ExpressionStatement",e[e.IfStatement=222]="IfStatement",e[e.DoStatement=223]="DoStatement",e[e.WhileStatement=224]="WhileStatement",e[e.ForStatement=225]="ForStatement",e[e.ForInStatement=226]="ForInStatement",e[e.ForOfStatement=227]="ForOfStatement",e[e.ContinueStatement=228]="ContinueStatement",e[e.BreakStatement=229]="BreakStatement",e[e.ReturnStatement=230]="ReturnStatement",e[e.WithStatement=231]="WithStatement",e[e.SwitchStatement=232]="SwitchStatement",e[e.LabeledStatement=233]="LabeledStatement",e[e.ThrowStatement=234]="ThrowStatement",e[e.TryStatement=235]="TryStatement",e[e.DebuggerStatement=236]="DebuggerStatement",e[e.VariableDeclaration=237]="VariableDeclaration",e[e.VariableDeclarationList=238]="VariableDeclarationList",e[e.FunctionDeclaration=239]="FunctionDeclaration",e[e.ClassDeclaration=240]="ClassDeclaration",e[e.InterfaceDeclaration=241]="InterfaceDeclaration",e[e.TypeAliasDeclaration=242]="TypeAliasDeclaration",e[e.EnumDeclaration=243]="EnumDeclaration",e[e.ModuleDeclaration=244]="ModuleDeclaration",e[e.ModuleBlock=245]="ModuleBlock",e[e.CaseBlock=246]="CaseBlock",e[e.NamespaceExportDeclaration=247]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=248]="ImportEqualsDeclaration",e[e.ImportDeclaration=249]="ImportDeclaration",e[e.ImportClause=250]="ImportClause",e[e.NamespaceImport=251]="NamespaceImport",e[e.NamedImports=252]="NamedImports",e[e.ImportSpecifier=253]="ImportSpecifier",e[e.ExportAssignment=254]="ExportAssignment",e[e.ExportDeclaration=255]="ExportDeclaration",e[e.NamedExports=256]="NamedExports",e[e.ExportSpecifier=257]="ExportSpecifier",e[e.MissingDeclaration=258]="MissingDeclaration",e[e.ExternalModuleReference=259]="ExternalModuleReference",e[e.JsxElement=260]="JsxElement",e[e.JsxSelfClosingElement=261]="JsxSelfClosingElement",e[e.JsxOpeningElement=262]="JsxOpeningElement",e[e.JsxClosingElement=263]="JsxClosingElement",e[e.JsxFragment=264]="JsxFragment",e[e.JsxOpeningFragment=265]="JsxOpeningFragment",e[e.JsxClosingFragment=266]="JsxClosingFragment",e[e.JsxAttribute=267]="JsxAttribute",e[e.JsxAttributes=268]="JsxAttributes",e[e.JsxSpreadAttribute=269]="JsxSpreadAttribute",e[e.JsxExpression=270]="JsxExpression",e[e.CaseClause=271]="CaseClause",e[e.DefaultClause=272]="DefaultClause",e[e.HeritageClause=273]="HeritageClause",e[e.CatchClause=274]="CatchClause",e[e.PropertyAssignment=275]="PropertyAssignment",e[e.ShorthandPropertyAssignment=276]="ShorthandPropertyAssignment",e[e.SpreadAssignment=277]="SpreadAssignment",e[e.EnumMember=278]="EnumMember",e[e.UnparsedPrologue=279]="UnparsedPrologue",e[e.UnparsedPrepend=280]="UnparsedPrepend",e[e.UnparsedText=281]="UnparsedText",e[e.UnparsedInternalText=282]="UnparsedInternalText",e[e.UnparsedSyntheticReference=283]="UnparsedSyntheticReference",e[e.SourceFile=284]="SourceFile",e[e.Bundle=285]="Bundle",e[e.UnparsedSource=286]="UnparsedSource",e[e.InputFiles=287]="InputFiles",e[e.JSDocTypeExpression=288]="JSDocTypeExpression",e[e.JSDocAllType=289]="JSDocAllType",e[e.JSDocUnknownType=290]="JSDocUnknownType",e[e.JSDocNullableType=291]="JSDocNullableType",e[e.JSDocNonNullableType=292]="JSDocNonNullableType",e[e.JSDocOptionalType=293]="JSDocOptionalType",e[e.JSDocFunctionType=294]="JSDocFunctionType",e[e.JSDocVariadicType=295]="JSDocVariadicType",e[e.JSDocComment=296]="JSDocComment",e[e.JSDocTypeLiteral=297]="JSDocTypeLiteral",e[e.JSDocSignature=298]="JSDocSignature",e[e.JSDocTag=299]="JSDocTag",e[e.JSDocAugmentsTag=300]="JSDocAugmentsTag",e[e.JSDocClassTag=301]="JSDocClassTag",e[e.JSDocCallbackTag=302]="JSDocCallbackTag",e[e.JSDocEnumTag=303]="JSDocEnumTag",e[e.JSDocParameterTag=304]="JSDocParameterTag",e[e.JSDocReturnTag=305]="JSDocReturnTag",e[e.JSDocThisTag=306]="JSDocThisTag",e[e.JSDocTypeTag=307]="JSDocTypeTag",e[e.JSDocTemplateTag=308]="JSDocTemplateTag",e[e.JSDocTypedefTag=309]="JSDocTypedefTag",e[e.JSDocPropertyTag=310]="JSDocPropertyTag",e[e.SyntaxList=311]="SyntaxList",e[e.NotEmittedStatement=312]="NotEmittedStatement",e[e.PartiallyEmittedExpression=313]="PartiallyEmittedExpression",e[e.CommaListExpression=314]="CommaListExpression",e[e.MergeDeclarationMarker=315]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=316]="EndOfDeclarationMarker",e[e.Count=317]="Count",e[e.FirstAssignment=59]="FirstAssignment",e[e.LastAssignment=71]="LastAssignment",e[e.FirstCompoundAssignment=60]="FirstCompoundAssignment",e[e.LastCompoundAssignment=71]="LastCompoundAssignment",e[e.FirstReservedWord=73]="FirstReservedWord",e[e.LastReservedWord=108]="LastReservedWord",e[e.FirstKeyword=73]="FirstKeyword",e[e.LastKeyword=147]="LastKeyword",e[e.FirstFutureReservedWord=109]="FirstFutureReservedWord",e[e.LastFutureReservedWord=117]="LastFutureReservedWord",e[e.FirstTypeNode=163]="FirstTypeNode",e[e.LastTypeNode=183]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=71]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=147]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=28]="FirstBinaryOperator",e[e.LastBinaryOperator=71]="LastBinaryOperator",e[e.FirstNode=148]="FirstNode",e[e.FirstJSDocNode=288]="FirstJSDocNode",e[e.LastJSDocNode=310]="LastJSDocNode",e[e.FirstJSDocTagNode=299]="FirstJSDocTagNode",e[e.LastJSDocTagNode=310]="LastJSDocTagNode",e[e.FirstContextualKeyword=118]="FirstContextualKeyword",e[e.LastContextualKeyword=147]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",e[e.JSDoc=2097152]="JSDoc",e[e.Ambient=4194304]="Ambient",e[e.InWithStatement=8388608]="InWithStatement",e[e.JsonFile=16777216]="JsonFile",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=12679168]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=3071]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));var t,r=function(){return function(){}}();e.OperationCanceledException=r,function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=67220415]="Value",e[e.Type=67897832]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=67220414]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=67220415]="BlockScopedVariableExcludes",e[e.ParameterExcludes=67220415]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=68008959]="EnumMemberExcludes",e[e.FunctionExcludes=67219887]="FunctionExcludes",e[e.ClassExcludes=68008383]="ClassExcludes",e[e.InterfaceExcludes=67897736]="InterfaceExcludes",e[e.RegularEnumExcludes=68008191]="RegularEnumExcludes",e[e.ConstEnumExcludes=68008831]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=67212223]="MethodExcludes",e[e.GetAccessorExcludes=67154879]="GetAccessorExcludes",e[e.SetAccessorExcludes=67187647]="SetAccessorExcludes",e[e.TypeParameterExcludes=67635688]="TypeParameterExcludes",e[e.TypeAliasExcludes=67897832]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.Partial=16]="Partial",e[e.HasNonUniformType=32]="HasNonUniformType",e[e.HasLiteralType=64]="HasLiteralType",e[e.ContainsPublic=128]="ContainsPublic",e[e.ContainsProtected=256]="ContainsProtected",e[e.ContainsPrivate=512]="ContainsPrivate",e[e.ContainsStatic=1024]="ContainsStatic",e[e.Late=2048]="Late",e[e.ReverseMapped=4096]="ReverseMapped",e[e.OptionalParameter=8192]="OptionalParameter",e[e.RestParameter=16384]="RestParameter",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=96]="Discriminant"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=132]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=67238908]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=4194304]="InstantiablePrimitive",e[e.Instantiable=63176704]="Instantiable",e[e.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",e[e.ObjectFlagsType=3768320]="ObjectFlagsType",e[e.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=1835007]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=4194304]="IncludesWildcard",e[e.IncludesEmptyObject=8388608]="IncludesEmptyObject",e[e.GenericMappedType=131072]="GenericMappedType"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.PrimitiveUnion=65536]="PrimitiveUnion",e[e.ContainsWideningType=131072]="ContainsWideningType",e[e.ContainsObjectLiteral=262144]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=524288]="ContainsAnyFunctionType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=393216]="RequiresWidening",e[e.PropagatingFlags=917504]="PropagatingFlags"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent"}(e.Variance||(e.Variance={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.MappedTypeConstraint=4]="MappedTypeConstraint",e[e.ReturnType=8]="ReturnType",e[e.LiteralKeyof=16]="LiteralKeyof",e[e.NoConstraints=32]="NoConstraints",e[e.AlwaysStrict=64]="AlwaysStrict",e[e.PriorityImpliesCombination=28]="PriorityImpliesCombination"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=6]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ESNext=7]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=7]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2019=8]="ContainsES2019",e[e.ContainsES2018=16]="ContainsES2018",e[e.ContainsES2017=32]="ContainsES2017",e[e.ContainsES2016=64]="ContainsES2016",e[e.ContainsES2015=128]="ContainsES2015",e[e.ContainsGenerator=256]="ContainsGenerator",e[e.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=2048]="ContainsLexicalThis",e[e.ContainsRestOrSpread=4096]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=65536]="ContainsBindingPattern",e[e.ContainsYield=131072]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=524288]="ContainsDynamicImport",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2019=8]="AssertES2019",e[e.AssertES2018=16]="AssertES2018",e[e.AssertES2017=32]="AssertES2017",e[e.AssertES2016=64]="AssertES2016",e[e.AssertES2015=128]="AssertES2015",e[e.AssertGenerator=256]="AssertGenerator",e[e.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",e[e.FunctionExcludes=537373696]="FunctionExcludes",e[e.ConstructorExcludes=537372672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536872960]="PropertyExcludes",e[e.ClassExcludes=536888320]="ClassExcludes",e[e.ModuleExcludes=537168896]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536879104]="CatchClauseExcludes",e[e.BindingPatternExcludes=536875008]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=2048]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.MakeTemplateObject=65536]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=65536]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement"}(e.EmitHint||(e.EmitHint={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),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.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=528]="TupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=49153]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(c||(c={})),function(e){function t(e){for(var t=5381,r=0;r0;p(),s--){var _=t[a];if(_)if(_.isClosed)t[a]=void 0;else{u++;var d=l(_,v(_.fileName));_.isClosed?t[a]=void 0:d?(_.unchangedPolls=0,t!==i&&(t[a]=void 0,g(_))):_.unchangedPolls!==e.unchangedPollThresholds[r]?_.unchangedPolls++:t===i?(_.unchangedPolls=1,t[a]=void 0,m(_,n.Low)):r!==n.High&&(_.unchangedPolls++,t[a]=void 0,m(_,r===n.Low?n.Medium:n.High)),t[a]&&(c type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness"),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertion_can_only_be_applied_to_a_string_number_boolean_array_or_object_literal:t(1355,e.DiagnosticCategory.Error,"A_const_assertion_can_only_be_applied_to_a_string_number_boolean_array_or_object_literal_1355","A 'const' assertion can only be applied to a string, number, boolean, array, or object literal."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:t(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension"),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),It_is_highly_likely_that_you_are_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ESNext:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:t(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Generate_types_for_0:t(95067,e.DiagnosticCategory.Message,"Generate_types_for_0_95067","Generate types for '{0}'"),Generate_types_for_all_packages_without_types:t(95068,e.DiagnosticCategory.Message,"Generate_types_for_all_packages_without_types_95068","Generate types for all packages without types"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object")}}(c||(c={})),function(e){var t;function r(e){return e>=72}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 30===e||r(e)};var n=((t={abstract:118,any:120,as:119,bigint:146,boolean:123,break:73,case:74,catch:75,class:76,continue:78,const:77}).constructor=124,t.debugger=79,t.declare=125,t.default=80,t.delete=81,t.do=82,t.else=83,t.enum=84,t.export=85,t.extends=86,t.false=87,t.finally=88,t.for=89,t.from=144,t.function=90,t.get=126,t.if=91,t.implements=109,t.import=92,t.in=93,t.infer=127,t.instanceof=94,t.interface=110,t.is=128,t.keyof=129,t.let=111,t.module=130,t.namespace=131,t.never=132,t.new=95,t.null=96,t.number=135,t.object=136,t.package=112,t.private=113,t.protected=114,t.public=115,t.readonly=133,t.require=134,t.global=145,t.return=97,t.set=137,t.static=116,t.string=138,t.super=98,t.switch=99,t.symbol=139,t.this=100,t.throw=101,t.true=102,t.try=103,t.type=140,t.typeof=104,t.undefined=141,t.unique=142,t.unknown=143,t.var=105,t.void=106,t.while=107,t.with=108,t.yield=117,t.async=121,t.await=122,t.of=147,t),a=e.createMapFromTemplate(n),o=e.createMapFromTemplate(i({},n,{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":28,">":30,"<=":31,">=":32,"==":33,"!=":34,"===":35,"!==":36,"=>":37,"+":38,"-":39,"**":41,"*":40,"/":42,"%":43,"++":44,"--":45,"<<":46,">":47,">>>":48,"&":49,"|":50,"^":51,"!":52,"~":53,"&&":54,"||":55,"?":56,":":57,"=":59,"+=":60,"-=":61,"*=":62,"**=":63,"/=":64,"%=":65,"<<=":66,">>=":67,">>>=":68,"&=":69,"|=":70,"^=":71,"@":58})),s=[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],c=[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],u=[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],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];function _(e,t){if(e=1?u:s)}e.isUnicodeIdentifierStart=d;var p,f=(p=[],o.forEach(function(e,t){p[e]=t}),p);function m(e){for(var t=new Array,r=0,n=0;r127&&D(i)&&(t.push(n),n=r)}}return t.push(n),t}function g(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,m(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function D(e){return 10===e||13===e||8232===e||8233===e}function x(e){return e>=48&&e<=57}function S(e){return e>=48&&e<=55}e.tokenToString=function(e){return f[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=m,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):g(y(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=g,e.getLineStarts=y,e.computeLineAndCharacterOfPosition=h,e.getLineAndCharacterOfPosition=function(e,t){return h(y(e),t)},e.isWhiteSpaceLike=v,e.isWhiteSpaceSingleLine=b,e.isLineBreak=D,e.isOctalDigit=S,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&v(a)){r++;continue}}return r}};var T="<<<<<<<".length;function C(t,r){if(e.Debug.assert(r>=0),0===r||D(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+T=0&&r127&&v(m)){_&&D(m)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function P(e,t,r,n,i){return F(!0,e,t,!1,r,n,i)}function w(e,t,r,n,i){return F(!0,e,t,!0,r,n,i)}function I(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function O(e){var t=k.exec(e);if(t)return t[0]}function M(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&d(e,t)}function L(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,t){return _(e,t>=1?l:c)}(e,t)}e.isShebangTrivia=N,e.scanShebangTrivia=A,e.forEachLeadingCommentRange=function(e,t,r,n){return F(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return F(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=P,e.reduceEachTrailingCommentRange=w,e.getLeadingCommentRanges=function(e,t){return P(e,t,I,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return w(e,t,I,void 0,void 0)},e.getShebang=O,e.isIdentifierStart=M,e.isIdentifierPart=L,e.isIdentifierText=function(e,t){if(!M(e.charCodeAt(0),t))return!1;for(var r=1;r108},isReservedWord:function(){return f>=73&&f<=108},isUnterminated:function(){return 0!=(4&g)},getTokenFlags:function(){return g},reScanGreaterToken:function(){if(30===f){if(62===y.charCodeAt(l))return 62===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=68):(l+=2,f=48):61===y.charCodeAt(l+1)?(l+=2,f=67):(l++,f=47);if(61===y.charCodeAt(l))return l++,f=32}return f},reScanSlashToken:function(){if(42===f||64===f){for(var r=p+1,n=!1,i=!1;;){if(r>=_){g|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=y.charCodeAt(r);if(D(a)){g|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&L(y.charCodeAt(r),t);)r++;l=r,m=y.substring(p,l),f=13}return f},reScanTemplateToken:function(){return e.Debug.assert(19===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=j()},scanJsxIdentifier:function(){if(r(f)){for(var e=l;l<_;){var n=y.charCodeAt(l);if(45!==n&&(e===l?!M(n,t):!L(n,t)))break;l++}m+=y.substring(e,l)}return f},scanJsxAttributeValue:function(){switch(d=l,y.charCodeAt(l)){case 34:case 39:return m=B(!0),f=10;default:return H()}},reScanJsxToken:function(){return l=p=d,f=G()},reScanLessThanToken:function(){return 46===f?(l=p+1,f=28):f},scanJsxToken:G,scanJSDocToken:function(){if(d=p=l,g=0,l>=_)return f=1;var e=y.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<_&&b(y.charCodeAt(l));)l++;return f=5;case 64:return f=58;case 10:case 13:return g|=1,f=4;case 42:return f=40;case 123:return f=18;case 125:return f=19;case 91:return f=22;case 93:return f=23;case 60:return f=28;case 61:return f=59;case 44:return f=27;case 46:return f=24;case 96:for(;l<_&&96!==y.charCodeAt(l);)l++;return m=y.substring(p+1,l),l++,f=14}if(M(e,7)){for(;L(y.charCodeAt(l),7)&&l<_;)l++;return m=y.substring(p,l),f=V()}return f=0},scan:H,getText:function(){return y},setText:X,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:Q,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return Y(e,!1)},lookAhead:function(e){return Y(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,o=p,s=f,c=m,u=g;X(y,e,t);var h=r();return _=n,l=i,d=a,p=o,f=s,m=c,g=u,h}};function T(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function k(){for(var t=l,r=!1,n=!1,i="";;){var a=y.charCodeAt(l);if(95!==a){if(!x(a))break;r=!0,n=!1,l++}else g|=512,r?(r=!1,n=!0,i+=y.substring(t,l)):T(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===y.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+y.substring(t,l)}function F(){var t,r,n=l,i=k();46===y.charCodeAt(l)&&(l++,t=k());var a,o=l;if(69===y.charCodeAt(l)||101===y.charCodeAt(l)){l++,g|=16,43!==y.charCodeAt(l)&&45!==y.charCodeAt(l)||l++;var s=l,c=k();c?(r=y.substring(o,s)+c,o=l):T(e.Diagnostics.Digit_expected)}if(512&g?(a=i,t&&(a+="."+t),r&&(a+=r)):a=y.substring(n,o),void 0!==t||16&g)return P(n,void 0===t&&!!(16&g)),{type:8,value:""+ +a};m=a;var u=W();return P(n),{type:u,value:m}}function P(r,n){if(M(y.charCodeAt(l),t)){var i=l,a=U().length;1===a&&"n"===y[i]?T(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(T(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function w(){for(var e=l;S(y.charCodeAt(l));)l++;return+y.substring(e,l)}function I(e,t){var r=R(e,!1,t);return r?parseInt(r,16):-1}function O(e,t){return R(e,!0,t)}function R(t,r,n){for(var i=[],a=!1,o=!1;i.length=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length=_){n+=y.substring(i,l),g|=4,T(e.Diagnostics.Unterminated_string_literal);break}var a=y.charCodeAt(l);if(a===r){n+=y.substring(i,l),l++;break}if(92!==a||t){if(D(a)&&!t){n+=y.substring(i,l),g|=4,T(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=y.substring(i,l),n+=J(),i=l}return n}function j(){for(var t,r=96===y.charCodeAt(l),n=++l,i="";;){if(l>=_){i+=y.substring(n,l),g|=4,T(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var a=y.charCodeAt(l);if(96===a){i+=y.substring(n,l),l++,t=r?14:17;break}if(36===a&&l+1<_&&123===y.charCodeAt(l+1)){i+=y.substring(n,l),l+=2,t=r?15:16;break}92!==a?13!==a?l++:(i+=y.substring(n,l),++l<_&&10===y.charCodeAt(l)&&l++,i+="\n",n=l):(i+=y.substring(n,l),i+=J(),n=l)}return e.Debug.assert(void 0!==t),m=i,t}function J(){if(++l>=_)return T(e.Diagnostics.Unexpected_end_of_text),"";var t,r,n,i=y.charCodeAt(l);switch(l++,i){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return l<_&&123===y.charCodeAt(l)?(g|=8,l++,t=O(1,!1),r=t?parseInt(t,16):-1,n=!1,r<0?(T(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(T(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(T(e.Diagnostics.Unexpected_end_of_text),n=!0):125===y.charCodeAt(l)?l++:(T(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}(r)):z(4);case 120:return z(2);case 13:l<_&&10===y.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(i)}}function z(t){var r=I(t,!1);return r>=0?String.fromCharCode(r):(T(e.Diagnostics.Hexadecimal_digit_expected),"")}function K(){if(l+5<_&&117===y.charCodeAt(l+1)){var e=l;l+=2;var t=I(4,!1);return l=e,t}return-1}function U(){for(var e="",r=l;l<_;){var n=y.charCodeAt(l);if(L(n,t))l++;else{if(92!==n)break;if(!((n=K())>=0&&L(n,t)))break;e+=y.substring(r,l),e+=String.fromCharCode(n),r=l+=6}}return e+=y.substring(r,l)}function V(){var e=m.length;if(e>=2&&e<=11){var t=m.charCodeAt(0);if(t>=97&&t<=122){var r=a.get(m);if(void 0!==r)return f=r}}return f=72}function q(t){for(var r="",n=!1,i=!1;;){var a=y.charCodeAt(l);if(95!==a){if(n=!0,!x(a)||a-48>=t)break;r+=y[l],l++,i=!1}else g|=512,n?(n=!1,i=!0):T(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===y.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function W(){if(110===y.charCodeAt(l))return m+="n",384&g&&(m=e.parsePseudoBigInt(m)+"n"),l++,9;var t=128&g?parseInt(m.slice(2),2):256&g?parseInt(m.slice(2),8):+m;return m=""+t,8}function H(){var r;d=l,g=0;for(var a=!1;;){if(p=l,l>=_)return f=1;var o=y.charCodeAt(l);if(35===o&&0===l&&N(y,l)){if(l=A(y,l),n)continue;return f=6}switch(o){case 10:case 13:if(g|=1,n){l++;continue}return 13===o&&l+1<_&&10===y.charCodeAt(l+1)?l+=2:l++,f=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(n){l++;continue}for(;l<_&&b(y.charCodeAt(l));)l++;return f=5;case 33:return 61===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=36):(l+=2,f=34):(l++,f=52);case 34:case 39:return m=B(),f=10;case 96:return f=j();case 37:return 61===y.charCodeAt(l+1)?(l+=2,f=65):(l++,f=43);case 38:return 38===y.charCodeAt(l+1)?(l+=2,f=54):61===y.charCodeAt(l+1)?(l+=2,f=69):(l++,f=49);case 40:return l++,f=20;case 41:return l++,f=21;case 42:if(61===y.charCodeAt(l+1))return l+=2,f=62;if(42===y.charCodeAt(l+1))return 61===y.charCodeAt(l+2)?(l+=3,f=63):(l+=2,f=41);if(l++,h&&!a&&1&g){a=!0;continue}return f=40;case 43:return 43===y.charCodeAt(l+1)?(l+=2,f=44):61===y.charCodeAt(l+1)?(l+=2,f=60):(l++,f=38);case 44:return l++,f=27;case 45:return 45===y.charCodeAt(l+1)?(l+=2,f=45):61===y.charCodeAt(l+1)?(l+=2,f=61):(l++,f=39);case 46:return x(y.charCodeAt(l+1))?(m=F().value,f=8):46===y.charCodeAt(l+1)&&46===y.charCodeAt(l+2)?(l+=3,f=25):(l++,f=24);case 47:if(47===y.charCodeAt(l+1)){for(l+=2;l<_&&!D(y.charCodeAt(l));)l++;if(n)continue;return f=2}if(42===y.charCodeAt(l+1)){l+=2,42===y.charCodeAt(l)&&47!==y.charCodeAt(l+1)&&(g|=2);for(var s=!1;l<_;){var c=y.charCodeAt(l);if(42===c&&47===y.charCodeAt(l+1)){l+=2,s=!0;break}D(c)&&(g|=1),l++}if(s||T(e.Diagnostics.Asterisk_Slash_expected),n)continue;return s||(g|=4),f=3}return 61===y.charCodeAt(l+1)?(l+=2,f=64):(l++,f=42);case 48:if(l+2<_&&(88===y.charCodeAt(l+1)||120===y.charCodeAt(l+1)))return l+=2,(m=O(1,!0))||(T(e.Diagnostics.Hexadecimal_digit_expected),m="0"),m="0x"+m,g|=64,f=W();if(l+2<_&&(66===y.charCodeAt(l+1)||98===y.charCodeAt(l+1)))return l+=2,(m=q(2))||(T(e.Diagnostics.Binary_digit_expected),m="0"),m="0b"+m,g|=128,f=W();if(l+2<_&&(79===y.charCodeAt(l+1)||111===y.charCodeAt(l+1)))return l+=2,(m=q(8))||(T(e.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,g|=256,f=W();if(l+1<_&&S(y.charCodeAt(l+1)))return m=""+w(),g|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=F(),f=r.type,m=r.value,f;case 58:return l++,f=57;case 59:return l++,f=26;case 60:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return 60===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=66):(l+=2,f=46):61===y.charCodeAt(l+1)?(l+=2,f=31):1===i&&47===y.charCodeAt(l+1)&&42!==y.charCodeAt(l+2)?(l+=2,f=29):(l++,f=28);case 61:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return 61===y.charCodeAt(l+1)?61===y.charCodeAt(l+2)?(l+=3,f=35):(l+=2,f=33):62===y.charCodeAt(l+1)?(l+=2,f=37):(l++,f=59);case 62:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return l++,f=30;case 63:return l++,f=56;case 91:return l++,f=22;case 93:return l++,f=23;case 94:return 61===y.charCodeAt(l+1)?(l+=2,f=71):(l++,f=51);case 123:return l++,f=18;case 124:if(C(y,l)){if(l=E(y,l,T),n)continue;return f=7}return 124===y.charCodeAt(l+1)?(l+=2,f=55):61===y.charCodeAt(l+1)?(l+=2,f=70):(l++,f=50);case 125:return l++,f=19;case 126:return l++,f=53;case 64:return l++,f=58;case 92:var u=K();return u>=0&&M(u,t)?(l+=6,m=String.fromCharCode(u)+U(),f=V()):(T(e.Diagnostics.Invalid_character),l++,f=0);default:if(M(o,t)){for(l++;l<_&&L(o=y.charCodeAt(l),t);)l++;return m=y.substring(p,l),92===o&&(m+=U()),f=V()}if(b(o)){l++;continue}if(D(o)){g|=1,l++;continue}return T(e.Diagnostics.Invalid_character),l++,f=0}}}function G(){if(d=p=l,l>=_)return f=1;var e=y.charCodeAt(l);if(60===e)return 47===y.charCodeAt(l+1)?(l+=2,f=29):(l++,f=28);if(123===e)return l++,f=18;for(var t=0;l<_&&123!==(e=y.charCodeAt(l));){if(60===e){if(C(y,l))return l=E(y,l,T),f=7;break}D(e)&&0===t?t=-1:v(e)||(t=l),l++}return m=y.substring(d,l),-1===t?12:11}function Y(e,t){var r=l,n=d,i=p,a=f,o=m,s=g,c=e();return c&&!t||(l=r,d=n,p=i,f=a,m=o,g=s),c}function X(e,t,r){y=e||"",_=void 0===r?y.length:t+r,Q(t||0)}function Q(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,m=void 0,g=0}}}(c||(c={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(c||(c={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!d(e)}function m(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?v(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos)}function b(e,t,r){return void 0===r&&(r=!1),D(e.text,t,r)}function D(t,r,n){if(void 0===n&&(n=!1),d(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function e(t){return 288===t.kind||t.parent&&e(t.parent)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function x(e,t){return void 0===t&&(t=!1),b(l(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=Xe(e);return 237===t.kind&&274===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||k(t))}function k(e){return!!(512&e.flags)}function N(e){return E(e)&&A(e)}function A(t){switch(t.parent.kind){case 284:return e.isExternalModule(t.parent);case 245:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t,r){switch(t.kind){case 284:case 246:case 274:case 244:case 225:case 226:case 227:case 157:case 156:case 158:case 159:case 239:case 196:case 197:return!0;case 218:return!e.isFunctionLike(r)}return!1}function P(t){switch(t.kind){case 160:case 161:case 155:case 162:case 165:case 166:case 294:case 240:case 209:case 241:case 242:case 308:case 239:case 156:case 157:case 158:case 159:case 196:case 197:return!0;default:return e.assertType(t),!1}}function w(e){switch(e.kind){case 249:case 248:return!0;default:return!1}}function I(e){return e&&0!==c(e)?x(e):"(Missing)"}function O(t){switch(t.kind){case 72:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 149:return Ue(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function M(t,r,n,i,a,o,s){var c=R(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function L(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function R(t,r){var n=r;switch(r.kind){case 284:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):L(t,i);case 237:case 186:case 240:case 209:case 241:case 244:case 243:case 278:case 239:case 196:case 156:case 158:case 159:case 242:case 154:case 153:n=r.name;break;case 197:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&218===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,n.end)}function B(e){return 6===e.scriptKind}function j(t){return!!(2&e.getCombinedNodeFlags(t))}function J(e){return 191===e.kind&&92===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function K(e){return 221===e.kind&&10===e.expression.kind}e.toPath=a,e.changesAffectModuleResolution=function(t,r){return t.configFilePath!==r.configFilePath||e.moduleResolutionOptionDeclarations.some(function(n){return!e.isJsonEqual(e.getCompilerOptionValue(t,n),e.getCompilerOptionValue(r,n))})},e.findAncestor=o,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r,n=e.entries(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=a[0],c=t(a[1],s);if(c)return c}},e.forEachKey=function(e,t){for(var r,n=e.keys(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=t(a);if(s)return s}},e.copyEntries=s,e.arrayToSet=function(t,r){return e.arrayToMap(t,r||function(e){return e},function(){return!0})},e.cloneMap=function(t){var r=e.createMap();return s(t,r),r},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName,n=e.version;return(r?t+"/"+r:t)+"@"+n},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=d,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return m(e,t,K)},e.insertStatementsAfterCustomPrologue=function(e,t){return m(e,t,y)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,K)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,y)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2/;var U=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var V=/^(\/\/\/\s*/;function q(t){if(163<=t.kind&&t.kind<=183)return!0;switch(t.kind){case 120:case 143:case 135:case 146:case 138:case 123:case 139:case 136:case 141:case 132:return!0;case 106:return 200!==t.parent.kind;case 211:return!Ut(t);case 150:return 181===t.parent.kind||176===t.parent.kind;case 72:148===t.parent.kind&&t.parent.right===t?t=t.parent:189===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(72===t.kind||148===t.kind||189===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 148:case 189:case 100:var r=t.parent;if(167===r.kind)return!1;if(183===r.kind)return!r.isTypeOf;if(163<=r.kind&&r.kind<=183)return!0;switch(r.kind){case 211:return!Ut(r);case 150:case 308:return t===r.constraint;case 154:case 153:case 151:case 237:return t===r.type;case 239:case 196:case 197:case 157:case 156:case 155:case 158:case 159:return t===r.type;case 160:case 161:case 162:case 194:return t===r.type;case 191:case 192:return e.contains(r.typeArguments,t);case 193:return!1}}return!1}function W(e){if(e)switch(e.kind){case 186:case 278:case 151:case 275:case 154:case 153:case 276:case 237:return!0}return!1}function H(e){return 238===e.parent.kind&&219===e.parent.parent.kind}function G(e,t,r){return e.properties.filter(function(e){if(275===e.kind){var n=O(e.name);return t===n||!!r&&r===n}return!1})}function Y(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function X(t,r){var n=Y(t);return n?G(n,r):e.emptyArray}function Q(t,r){for(e.Debug.assert(284!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 149:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 152:151===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 197:if(!r)continue;case 239:case 196:case 244:case 154:case 153:case 156:case 155:case 157:case 158:case 159:case 160:case 161:case 162:case 243:case 284:return t}}}function $(e){var t=e.kind;return(189===t||190===t)&&98===e.expression.kind}function Z(e,t,r){switch(e.kind){case 240:return!0;case 154:return 240===t.kind;case 158:case 159:case 156:return void 0!==e.body&&240===t.kind;case 151:return void 0!==t.body&&(157===t.kind||156===t.kind||159===t.kind)&&240===r.kind}return!1}function ee(e,t,r){return void 0!==e.decorators&&Z(e,t,r)}function te(e,t,r){return ee(e,t,r)||re(e,t)}function re(t,r){switch(t.kind){case 240:return e.some(t.members,function(e){return te(e,t,r)});case 156:case 159:return e.some(t.parameters,function(e){return ee(e,t,r)});default:return!1}}function ne(e){var t=e.parent;return(262===t.kind||261===t.kind||263===t.kind)&&t.tagName===e}function ie(e){switch(e.kind){case 98:case 96:case 102:case 87:case 13:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 212:case 194:case 213:case 195:case 196:case 209:case 197:case 200:case 198:case 199:case 202:case 203:case 204:case 205:case 208:case 206:case 14:case 210:case 260:case 261:case 264:case 207:case 201:case 214:return!0;case 148:for(;148===e.parent.kind;)e=e.parent;return 167===e.parent.kind||ne(e);case 72:if(167===e.parent.kind||ne(e))return!0;case 8:case 9:case 10:case 100:return ae(e);default:return!1}}function ae(e){var t=e.parent;switch(t.kind){case 237:case 151:case 154:case 153:case 278:case 275:case 186:return t.initializer===e;case 221:case 222:case 223:case 224:case 230:case 231:case 232:case 271:case 234:return t.expression===e;case 225:var r=t;return r.initializer===e&&238!==r.initializer.kind||r.condition===e||r.incrementor===e;case 226:case 227:var n=t;return n.initializer===e&&238!==n.initializer.kind||n.expression===e;case 194:case 212:case 216:case 149:return e===t.expression;case 152:case 270:case 269:case 277:return!0;case 211:return t.expression===e&&Ut(t);case 276:return t.objectAssignmentInitializer===e;default:return ie(t)}}function oe(e){return 248===e.kind&&259===e.moduleReference.kind}function se(e){return ce(e)}function ce(e){return!!e&&!!(65536&e.flags)}function ue(t,r){if(191!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(72!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function le(t){return ce(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&55===t.initializer.operatorToken.kind&&t.name&&Vt(t.name)&&de(t.name,t.initializer.left)?t.initializer.right:t.initializer}function _e(t,r){if(e.isCallExpression(t)){var n=Ie(t.expression);return 196===n.kind||197===n.kind?t:void 0}return 196===t.kind||209===t.kind||197===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function de(t,r){return e.isIdentifier(t)&&e.isIdentifier(r)?t.escapedText===r.escapedText:e.isIdentifier(t)&&e.isPropertyAccessExpression(r)?(100===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&de(t,r.name):!(!e.isPropertyAccessExpression(t)||!e.isPropertyAccessExpression(r))&&(t.name.escapedText===r.name.escapedText&&de(t.expression,r.expression))}function pe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function fe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function me(t){var r=function(t){if(e.isCallExpression(t)){if(!ge(t))return 0;var r=t.arguments[0];return pe(r)||fe(r)?8:e.isPropertyAccessExpression(r)&&"prototype"===r.name.escapedText&&Vt(r.expression)?9:7}if(59!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var n=t.left;if(Vt(n.expression)&&"prototype"===n.name.escapedText&&e.isObjectLiteralExpression(he(t)))return 6;return ye(n)}(t);return 5===r||ce(t)?r:0}function ge(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Ue(t.arguments[1])&&Vt(t.arguments[0])}function ye(t){if(100===t.expression.kind)return 4;if(fe(t))return 2;if(Vt(t.expression)){if(Wt(t.expression))return 3;for(var r=t;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var n=r.expression;return"exports"===n.escapedText||"module"===n.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function he(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function ve(t){switch(t.parent.kind){case 249:case 255:return t.parent;case 259:return t.parent.parent;case 191:return J(t.parent)||ue(t.parent,!1)?t.parent:void 0;case 182:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function be(e){return 309===e.kind||302===e.kind}function De(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==me(t.expression)&&e.isBinaryExpression(t.expression.right)&&55===t.expression.right.operatorToken.kind?t.expression.right.right:void 0}function xe(e){switch(e.kind){case 219:var t=Se(e);return t&&t.initializer;case 154:case 275:return e.initializer}}function Se(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Te(t){return e.isModuleDeclaration(t)&&t.body&&244===t.body.kind?t.body:void 0}function Ce(t){var r=t.parent;return 275===r.kind||154===r.kind||221===r.kind&&189===t.kind||Te(r)||e.isBinaryExpression(t)&&59===t.operatorToken.kind?r:r.parent&&(Se(r.parent)===t||e.isBinaryExpression(r)&&59===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Se(r.parent.parent)||xe(r.parent.parent)===t||De(r.parent.parent))?r.parent.parent:void 0}function Ee(e){return ke(Ne(e))}function ke(t){var r,n=De(t)||(r=t,e.isExpressionStatement(r)&&r.expression&&e.isBinaryExpression(r.expression)&&59===r.expression.operatorToken.kind?r.expression.right:void 0)||xe(t)||Se(t)||Te(t)||t;return n&&e.isFunctionLike(n)?n:void 0}function Ne(t){return e.Debug.assertDefined(o(t.parent,e.isJSDoc)).parent}function Ae(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&295===r.kind}function Fe(e){for(var t=e.parent;;){switch(t.kind){case 204:var r=t.operatorToken.kind;return jt(r)&&t.left===e?59===r?1:2:0;case 202:case 203:var n=t.operator;return 44===n||45===n?2:0;case 226:case 227:return t.initializer===e?1:0;case 195:case 187:case 208:case 213:e=t;break;case 276:if(t.name!==e)return 0;e=t.parent;break;case 275:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Pe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function we(e){return Pe(e,195)}function Ie(e){for(;195===e.kind;)e=e.expression;return e}function Oe(t){var r=e.isExportAssignment(t)?t.expression:t.right;return Vt(r)||e.isClassExpression(r)}function Me(t){var r=Le(t);if(r&&ce(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function Le(e){var t=je(e.heritageClauses,86);return t&&t.types.length>0?t.types[0]:void 0}function Re(e){var t=je(e.heritageClauses,109);return t?t.types:void 0}function Be(e){var t=je(e.heritageClauses,86);return t?t.types:void 0}function je(e,t){if(e)for(var r=0,n=e;r=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,function(e){return n.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}}};var rt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,nt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,it=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,at=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});function ot(e,t){var r=96===t?it:39===t?nt:rt;return e.replace(r,st)}function st(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return at.get(e)||ct(e.charCodeAt(0))}function ct(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=ot,e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")};var ut=/[^\u0000-\u007F]/g;function lt(e,t){return e=ot(e,t),ut.test(e)?e.replace(ut,function(e){return ct(e.charCodeAt(0))}):e}e.escapeNonAsciiString=lt;var _t=[""," "];function dt(e){return void 0===_t[e]&&(_t[e]=dt(e-1)+_t[1]),_t[e]}function pt(){return _t[1].length}function ft(e,t,r){return t.moduleName||mt(e,t.fileName,r&&r.fileName)}function mt(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},o=a(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),s=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),c=e.getRelativePathToDirectoryOrUrl(o,s,o,i,!1),u=e.removeFileExtension(c);return n?e.ensurePathIsNonModuleName(u):u}function gt(t,r,n,i,a){var o=r.declarationDir||r.outDir,s=o?vt(t,o,n,i,a):t;return e.removeFileExtension(s)+".d.ts"}function yt(e,t,r,n){return!(t.noEmitForJsFiles&&se(e)||e.isDeclarationFile||r(e)||B(e)&&n(e.fileName))}function ht(e,t,r){return vt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function vt(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function bt(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Dt(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function xt(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&St(e.parameters[0]);return e.parameters[t?1:0]}}function St(e){return Tt(e.name)}function Tt(e){return!!e&&72===e.kind&&Ct(e)}function Ct(e){return 100===e.originalKeywordKind}function Et(t){var r=t.type;return r||!ce(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}function kt(e,t,r,n){Nt(e,t,r.pos,n)}function Nt(e,t,r,n){n&&n.length&&r!==n[0].pos&&Dt(e,r)!==Dt(e,n[0].pos)&&t.writeLine()}function At(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u=59&&e<=71}function Jt(e){var t=zt(e);return t&&!t.isImplements?t.class:void 0}function zt(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:109===t.parent.token}:void 0}function Kt(t,r){return e.isBinaryExpression(t)&&(r?59===t.operatorToken.kind:jt(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Ut(e){return void 0!==Jt(e)}function Vt(e){return 72===e.kind||qt(e)}function qt(t){return e.isPropertyAccessExpression(t)&&Vt(t.expression)}function Wt(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText}e.getIndentString=dt,e.getIndentSize=pt,e.createTextWriter=function(t){var r,n,i,a,o;function s(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function c(e){e&&e.length&&(i&&(e=dt(n)+e,i=!1),r+=e,s(e))}function u(){r="",n=0,i=!0,a=0,o=0}return u(),{write:c,rawWrite:function(e){void 0!==e&&(r+=e,s(e))},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(){i||(a++,o=(r+=t).length,i=!0)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*pt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},clear:u,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:function(e,t){return c(e)},writeTrailingSemicolon:c,writeComment:c,getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonOmittingWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return i({},e,{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.getResolvedExternalModuleName=ft,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return ft(e,n)},e.getExternalModuleNameFromPath=mt,e.getOwnEmitOutputFilePath=function(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(ht(t,r,i.outDir)):e.removeFileExtension(t))+n},e.getDeclarationEmitOutputFilePath=function(e,t){return gt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=gt,e.getSourceFilesToEmit=function(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)},a=function(e){return t.getResolvedProjectReferenceToRedirect(e)};if(n.outFile||n.out){var o=e.getEmitModuleKind(n),s=n.emitDeclarationOnly||o===e.ModuleKind.AMD||o===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(s||!e.isExternalModule(t))&&yt(t,n,i,a)})}var c=void 0===r?t.getSourceFiles():[r];return e.filter(c,function(e){return yt(e,n,i,a)})},e.sourceFileMayBeEmitted=yt,e.getSourceFilePathInNewDir=ht,e.getSourceFilePathInNewDirWorker=vt,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)},e.getLineOfLocalPosition=bt,e.getLineOfLocalPositionFromLineMap=Dt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&p(t.body)})},e.getSetAccessorTypeAnnotationNode=function(e){var t=xt(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(St(r))return r}},e.parameterIsThisKeyword=St,e.isThisIdentifier=Tt,e.identifierIsThisKeyword=Ct,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Ve(r)?(n=r,158===r.kind?a=r:159===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(t){e.isAccessor(t)&&wt(t,32)===wt(r,32)&&He(t.name)===He(r.name)&&(n?i||(i=t):n=t,158!==t.kind||a||(a=t),159!==t.kind||o||(o=t))}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Et,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ce(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(296===t.parent.kind&&t.parent.tags.some(be))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=xt(e);return t&&Et(t)},e.emitNewLineBeforeLeadingComments=kt,e.emitNewLineBeforeLeadingCommentsOfPosition=Nt,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Dt(e,r)!==Dt(e,n)&&t.writeLine()},e.emitComments=At,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return h(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d=m+2)break}l.push(f),_=f}l.length&&(m=Dt(r,e.last(l).end),Dt(r,e.skipTrivia(t,a.pos))>=m+2&&(kt(r,n,a,c),At(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}))}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l0){var f=p%pt(),m=dt((p-f)/pt());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Ft(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasModifiers=function(e){return 0!==Lt(e)},e.hasModifier=wt,e.hasStaticModifier=It,e.hasReadonlyModifier=Ot,e.getSelectedModifierFlags=Mt,e.getModifierFlags=Lt,e.getModifierFlagsNoCache=Rt,e.modifierToFlag=Bt,e.isLogicalOperator=function(e){return 55===e||54===e||52===e},e.isAssignmentOperator=jt,e.tryGetClassExtendingExpressionWithTypeArguments=Jt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zt,e.isAssignmentExpression=Kt,e.isDestructuringAssignment=function(e){if(Kt(e,!0)){var t=e.left.kind;return 188===t||187===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Ut,e.isEntityNameExpression=Vt,e.isPropertyAccessEntityNameExpression=qt,e.isPrototypeAccess=Wt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 148===e.parent.kind&&e.parent.right===e||189===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 188===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 187===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&wt(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})};var Ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Gt(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=Ht.charAt(r)+Ht.charAt(n)+Ht.charAt(i)+Ht.charAt(a),c+=3;return o}e.convertToBase64=Gt,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Gt(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[0],l=c[1];0!==u&&(o&u)===u&&(o&=~u,a=l+(a?", ":"")+a)}if(0===o)return a}else for(var _=0,d=i;_=t||-1===r),{pos:t,end:r}}function er(e,t){return Zt(t,e.end)}function tr(e){return e.decorators&&e.decorators.length>0?er(e,e.decorators.end):e}function rr(e,t,r){return nr(ir(e,r),t.end,r)}function nr(e,t,r){return e===t||bt(r,e)===bt(r,t)}function ir(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function ar(e){return void 0!==e.initializer}function or(e){return 33554432&e.flags?e.checkFlags:0}function sr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 195:return sr(r);case 203:case 202:var n=r.operator;return 44===n||45===n?c():0;case 204:var i=r,a=i.left,o=i.operatorToken;return a===t&&jt(o.kind)?59===o.kind?1:c():0;case 189:return r.name!==t?0:sr(r);case 275:var s=sr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 276:return t===r.objectAssignmentInitializer?0:sr(r.parent);case 187:return sr(r);default:return 0}function c(){return r.parent&&221===function(e){for(;195===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function cr(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function ur(e){if(32&e.flags){var t=lr(e);return!!t&&wt(t,128)}return!1}function lr(t){return e.find(t.declarations,e.isClassLike)}function _r(e){return 3768320&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return Xt;case 1:return Qt}return r?r():e.sys?e.sys.newLine:Xt},e.formatSyntaxKind=function(t){return $t(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return $t(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return $t(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return $t(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return $t(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return $t(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return $t(t,e.ObjectFlags,!0)},e.createRange=Zt,e.moveRangeEnd=function(e,t){return Zt(e.pos,t)},e.moveRangePos=er,e.moveRangePastDecorators=tr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?er(e,e.modifiers.end):tr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Zt(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return rr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return nr(ir(e,r),ir(t,r),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return nr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=rr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return nr(e.end,ir(t,r),r)},e.positionsAreOnSameLine=nr,e.getStartPositionOfRange=ir,e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 243:case 244:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,ar)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=or,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&or(t)){var n=t.checkFlags;return(512&n?8:128&n?4:16)|(1024&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===sr(e)},e.isWriteAccess=function(e){return 0!==sr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Yt||(Yt={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"===f(t[n])){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);void 0===o?(e.delete(n),i(r,n)):a&&a(r,o,n)}),t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})},e.forEachAncestorDirectory=cr,e.isAbstractConstructorType=function(e){return!!(16&_r(e))&&!!e.symbol&&ur(e.symbol)},e.isAbstractConstructorSymbol=ur,e.getClassLikeDeclarationOfSymbol=lr,e.getObjectFlags=_r,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!cr(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:x(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,function(e){p(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}}),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=163&&e<=183||120===e||143===e||135===e||146===e||136===e||123===e||138===e||139===e||100===e||106===e||141===e||96===e||132===e||211===e||289===e||290===e||291===e||292===e||293===e||294===e||295===e},e.isAccessExpression=function(e){return 189===e.kind||190===e.kind},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}}(c||(c={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 237===t.kind&&(t=t.parent),t&&238===t.kind&&(n|=r(t),t=t.parent),t&&219===t.kind&&(n|=r(t)),n}function p(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function f(e){return 0==(8&e.flags)}function m(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(t){var r=v(t);return r&&e.isIdentifier(r)?r:void 0}function y(t){return t.name||function(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return g(r);switch(r.kind){case 219:if(r.declarationList&&r.declarationList.declarations[0])return g(r.declarationList.declarations[0]);break;case 221:var n=r.expression;switch(n.kind){case 189:return n.name;case 190:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 195:return g(r.expression);case 233:if(e.isDeclaration(r.statement)||e.isExpression(r.statement))return g(r.statement)}}}(t)}function h(t){switch(t.kind){case 72:return t;case 310:case 304:var r=t.name;if(148===r.kind)return r.right;break;case 191:case 204:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return n.left.name;case 7:case 8:case 9:return n.arguments[1];default:return}case 309:return y(t);case 254:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}function v(t){if(void 0!==t)return h(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?function(t){if(!t.parent)return;if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isPropertyAccessExpression(t.parent.left))return t.parent.left.name}}(t):void 0)}function b(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return T(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=T(t.parent).filter(e.isJSDocParameterTag);if(n=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=function(e){return m(e.escapedText)},e.symbolName=function(e){return m(e.escapedName)},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=function(e){return!!e.name},e.getNonAssignedNameOfDeclaration=h,e.getNameOfDeclaration=v,e.getJSDocParameterTags=b,e.getJSDocTypeParameterTags=function(t){var r=t.name.escapedText;return T(t.parent).filter(function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some(function(e){return e.name.escapedText===r})})},e.hasJSDocParameterTags=function(t){return!!C(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return C(t,e.isJSDocAugmentsTag)},e.getJSDocClassTag=function(t){return C(t,e.isJSDocClassTag)},e.getJSDocEnumTag=function(t){return C(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return C(t,e.isJSDocThisTag)},e.getJSDocReturnTag=D,e.getJSDocTemplateTag=function(t){return C(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=x,e.getJSDocType=S,e.getJSDocReturnType=function(t){var r=D(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=x(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i))return i.type}},e.getJSDocTags=T,e.getAllJSDocTagsOfKind=function(e,t){return T(e).filter(function(e){return e.kind===t})},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(296===t.parent.kind),e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0});if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=S(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}}(c||(c={})),function(e){function t(e){return 72===e.kind}function r(e){return 164===e.kind}function n(e){switch(e.kind){case 281:case 282:return!0;default:return!1}}e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=t,e.isQualifiedName=function(e){return 148===e.kind},e.isComputedPropertyName=function(e){return 149===e.kind},e.isTypeParameterDeclaration=function(e){return 150===e.kind},e.isParameter=function(e){return 151===e.kind},e.isDecorator=function(e){return 152===e.kind},e.isPropertySignature=function(e){return 153===e.kind},e.isPropertyDeclaration=function(e){return 154===e.kind},e.isMethodSignature=function(e){return 155===e.kind},e.isMethodDeclaration=function(e){return 156===e.kind},e.isConstructorDeclaration=function(e){return 157===e.kind},e.isGetAccessorDeclaration=function(e){return 158===e.kind},e.isSetAccessorDeclaration=function(e){return 159===e.kind},e.isCallSignatureDeclaration=function(e){return 160===e.kind},e.isConstructSignatureDeclaration=function(e){return 161===e.kind},e.isIndexSignatureDeclaration=function(e){return 162===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 159===e.kind||158===e.kind},e.isTypePredicateNode=function(e){return 163===e.kind},e.isTypeReferenceNode=r,e.isFunctionTypeNode=function(e){return 165===e.kind},e.isConstructorTypeNode=function(e){return 166===e.kind},e.isTypeQueryNode=function(e){return 167===e.kind},e.isTypeLiteralNode=function(e){return 168===e.kind},e.isArrayTypeNode=function(e){return 169===e.kind},e.isTupleTypeNode=function(e){return 170===e.kind},e.isUnionTypeNode=function(e){return 173===e.kind},e.isIntersectionTypeNode=function(e){return 174===e.kind},e.isConditionalTypeNode=function(e){return 175===e.kind},e.isInferTypeNode=function(e){return 176===e.kind},e.isParenthesizedTypeNode=function(e){return 177===e.kind},e.isThisTypeNode=function(e){return 178===e.kind},e.isTypeOperatorNode=function(e){return 179===e.kind},e.isIndexedAccessTypeNode=function(e){return 180===e.kind},e.isMappedTypeNode=function(e){return 181===e.kind},e.isLiteralTypeNode=function(e){return 182===e.kind},e.isImportTypeNode=function(e){return 183===e.kind},e.isObjectBindingPattern=function(e){return 184===e.kind},e.isArrayBindingPattern=function(e){return 185===e.kind},e.isBindingElement=function(e){return 186===e.kind},e.isArrayLiteralExpression=function(e){return 187===e.kind},e.isObjectLiteralExpression=function(e){return 188===e.kind},e.isPropertyAccessExpression=function(e){return 189===e.kind},e.isElementAccessExpression=function(e){return 190===e.kind},e.isCallExpression=function(e){return 191===e.kind},e.isNewExpression=function(e){return 192===e.kind},e.isTaggedTemplateExpression=function(e){return 193===e.kind},e.isTypeAssertion=function(e){return 194===e.kind},e.isConstTypeReference=function(e){return r(e)&&t(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},e.isParenthesizedExpression=function(e){return 195===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;313===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 196===e.kind},e.isArrowFunction=function(e){return 197===e.kind},e.isDeleteExpression=function(e){return 198===e.kind},e.isTypeOfExpression=function(e){return 199===e.kind},e.isVoidExpression=function(e){return 200===e.kind},e.isAwaitExpression=function(e){return 201===e.kind},e.isPrefixUnaryExpression=function(e){return 202===e.kind},e.isPostfixUnaryExpression=function(e){return 203===e.kind},e.isBinaryExpression=function(e){return 204===e.kind},e.isConditionalExpression=function(e){return 205===e.kind},e.isTemplateExpression=function(e){return 206===e.kind},e.isYieldExpression=function(e){return 207===e.kind},e.isSpreadElement=function(e){return 208===e.kind},e.isClassExpression=function(e){return 209===e.kind},e.isOmittedExpression=function(e){return 210===e.kind},e.isExpressionWithTypeArguments=function(e){return 211===e.kind},e.isAsExpression=function(e){return 212===e.kind},e.isNonNullExpression=function(e){return 213===e.kind},e.isMetaProperty=function(e){return 214===e.kind},e.isTemplateSpan=function(e){return 216===e.kind},e.isSemicolonClassElement=function(e){return 217===e.kind},e.isBlock=function(e){return 218===e.kind},e.isVariableStatement=function(e){return 219===e.kind},e.isEmptyStatement=function(e){return 220===e.kind},e.isExpressionStatement=function(e){return 221===e.kind},e.isIfStatement=function(e){return 222===e.kind},e.isDoStatement=function(e){return 223===e.kind},e.isWhileStatement=function(e){return 224===e.kind},e.isForStatement=function(e){return 225===e.kind},e.isForInStatement=function(e){return 226===e.kind},e.isForOfStatement=function(e){return 227===e.kind},e.isContinueStatement=function(e){return 228===e.kind},e.isBreakStatement=function(e){return 229===e.kind},e.isBreakOrContinueStatement=function(e){return 229===e.kind||228===e.kind},e.isReturnStatement=function(e){return 230===e.kind},e.isWithStatement=function(e){return 231===e.kind},e.isSwitchStatement=function(e){return 232===e.kind},e.isLabeledStatement=function(e){return 233===e.kind},e.isThrowStatement=function(e){return 234===e.kind},e.isTryStatement=function(e){return 235===e.kind},e.isDebuggerStatement=function(e){return 236===e.kind},e.isVariableDeclaration=function(e){return 237===e.kind},e.isVariableDeclarationList=function(e){return 238===e.kind},e.isFunctionDeclaration=function(e){return 239===e.kind},e.isClassDeclaration=function(e){return 240===e.kind},e.isInterfaceDeclaration=function(e){return 241===e.kind},e.isTypeAliasDeclaration=function(e){return 242===e.kind},e.isEnumDeclaration=function(e){return 243===e.kind},e.isModuleDeclaration=function(e){return 244===e.kind},e.isModuleBlock=function(e){return 245===e.kind},e.isCaseBlock=function(e){return 246===e.kind},e.isNamespaceExportDeclaration=function(e){return 247===e.kind},e.isImportEqualsDeclaration=function(e){return 248===e.kind},e.isImportDeclaration=function(e){return 249===e.kind},e.isImportClause=function(e){return 250===e.kind},e.isNamespaceImport=function(e){return 251===e.kind},e.isNamedImports=function(e){return 252===e.kind},e.isImportSpecifier=function(e){return 253===e.kind},e.isExportAssignment=function(e){return 254===e.kind},e.isExportDeclaration=function(e){return 255===e.kind},e.isNamedExports=function(e){return 256===e.kind},e.isExportSpecifier=function(e){return 257===e.kind},e.isMissingDeclaration=function(e){return 258===e.kind},e.isExternalModuleReference=function(e){return 259===e.kind},e.isJsxElement=function(e){return 260===e.kind},e.isJsxSelfClosingElement=function(e){return 261===e.kind},e.isJsxOpeningElement=function(e){return 262===e.kind},e.isJsxClosingElement=function(e){return 263===e.kind},e.isJsxFragment=function(e){return 264===e.kind},e.isJsxOpeningFragment=function(e){return 265===e.kind},e.isJsxClosingFragment=function(e){return 266===e.kind},e.isJsxAttribute=function(e){return 267===e.kind},e.isJsxAttributes=function(e){return 268===e.kind},e.isJsxSpreadAttribute=function(e){return 269===e.kind},e.isJsxExpression=function(e){return 270===e.kind},e.isCaseClause=function(e){return 271===e.kind},e.isDefaultClause=function(e){return 272===e.kind},e.isHeritageClause=function(e){return 273===e.kind},e.isCatchClause=function(e){return 274===e.kind},e.isPropertyAssignment=function(e){return 275===e.kind},e.isShorthandPropertyAssignment=function(e){return 276===e.kind},e.isSpreadAssignment=function(e){return 277===e.kind},e.isEnumMember=function(e){return 278===e.kind},e.isSourceFile=function(e){return 284===e.kind},e.isBundle=function(e){return 285===e.kind},e.isUnparsedSource=function(e){return 286===e.kind},e.isUnparsedPrepend=function(e){return 280===e.kind},e.isUnparsedTextLike=n,e.isUnparsedNode=function(e){return n(e)||279===e.kind||283===e.kind},e.isJSDocTypeExpression=function(e){return 288===e.kind},e.isJSDocAllType=function(e){return 289===e.kind},e.isJSDocUnknownType=function(e){return 290===e.kind},e.isJSDocNullableType=function(e){return 291===e.kind},e.isJSDocNonNullableType=function(e){return 292===e.kind},e.isJSDocOptionalType=function(e){return 293===e.kind},e.isJSDocFunctionType=function(e){return 294===e.kind},e.isJSDocVariadicType=function(e){return 295===e.kind},e.isJSDoc=function(e){return 296===e.kind},e.isJSDocAugmentsTag=function(e){return 300===e.kind},e.isJSDocClassTag=function(e){return 301===e.kind},e.isJSDocEnumTag=function(e){return 303===e.kind},e.isJSDocThisTag=function(e){return 306===e.kind},e.isJSDocParameterTag=function(e){return 304===e.kind},e.isJSDocReturnTag=function(e){return 305===e.kind},e.isJSDocTypeTag=function(e){return 307===e.kind},e.isJSDocTemplateTag=function(e){return 308===e.kind},e.isJSDocTypedefTag=function(e){return 309===e.kind},e.isJSDocPropertyTag=function(e){return 310===e.kind},e.isJSDocPropertyLikeTag=function(e){return 310===e.kind||304===e.kind},e.isJSDocTypeLiteral=function(e){return 297===e.kind},e.isJSDocCallbackTag=function(e){return 302===e.kind},e.isJSDocSignature=function(e){return 298===e.kind}}(c||(c={})),function(e){function t(e){return e>=148}function r(e){return 8<=e&&e<=14}function n(e){return 14<=e&&e<=17}function i(e){switch(e){case 118:case 121:case 77:case 125:case 80:case 85:case 115:case 113:case 114:case 133:case 116:return!0}return!1}function a(t){return!!(92&e.modifierToFlag(t))}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 239:case 156:case 157:case 158:case 159:case 196:case 197:return!0;default:return!1}}function c(e){switch(e){case 155:case 160:case 298:case 161:case 162:case 165:case 294:case 166:return!0;default:return s(e)}}function u(e){var t=e.kind;return 157===t||154===t||156===t||158===t||159===t||162===t||217===t}function l(e){var t=e.kind;return 161===t||160===t||153===t||155===t||162===t}function _(e){var t=e.kind;return 275===t||276===t||277===t||156===t||158===t||159===t}function d(e){switch(e.kind){case 184:case 188:return!0}return!1}function p(e){switch(e.kind){case 185:case 187:return!0}return!1}function f(e){switch(e){case 189:case 190:case 192:case 191:case 260:case 261:case 264:case 193:case 187:case 195:case 188:case 209:case 196:case 72:case 13:case 8:case 9:case 10:case 14:case 206:case 87:case 96:case 100:case 102:case 98:case 213:case 214:case 92:return!0;default:return!1}}function m(e){switch(e){case 202:case 203:case 198:case 199:case 200:case 201:case 194:return!0;default:return f(e)}}function g(t){return function(e){switch(e){case 205:case 207:case 197:case 204:case 208:case 212:case 210:case 314:case 313:return!0;default:return m(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function y(e){return 313===e.kind}function h(e){return 312===e.kind}function v(e){return 239===e||258===e||240===e||241===e||242===e||243===e||244===e||249===e||248===e||255===e||254===e||247===e}function b(e){return 229===e||228===e||236===e||223===e||221===e||220===e||226===e||227===e||225===e||222===e||233===e||230===e||232===e||234===e||235===e||219===e||224===e||231===e||312===e||316===e||315===e}function D(e){return e.kind>=299&&e.kind<=310}function x(e){return!!e.initializer}e.isSyntaxList=function(e){return 311===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=147},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=r,e.isLiteralExpression=function(e){return r(e.kind)},e.isTemplateLiteralKind=n,e.isTemplateLiteralToken=function(e){return n(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||n(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isParameterPropertyModifier=a,e.isClassMemberModifier=function(e){return a(e)||116===e},e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 148===t||72===t},e.isPropertyName=function(e){var t=e.kind;return 72===t||10===t||8===t||149===t},e.isBindingName=function(e){var t=e.kind;return 72===t||184===t||185===t},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=c,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&o(t.parent)},e.isClassElement=u,e.isClassLike=function(e){return e&&(240===e.kind||209===e.kind)},e.isAccessor=function(e){return e&&(158===e.kind||159===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 156:case 158:case 159:return!0;default:return!1}},e.isTypeElement=l,e.isClassOrTypeElement=function(e){return l(e)||u(e)},e.isObjectLiteralElementLike=_,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 165:case 166:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 185===t||184===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 187===t||188===t},e.isArrayBindingElement=function(e){var t=e.kind;return 186===t||210===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 237:case 151:case 186:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return d(e)||p(e)},e.isObjectBindingOrAssignmentPattern=d,e.isArrayBindingOrAssignmentPattern=p,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 189===t||148===t||183===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 189===t||148===t},e.isCallLikeExpression=function(e){switch(e.kind){case 262:case 261:case 191:case 192:case 193:case 152:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 191===e.kind||192===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 206===t||14===t},e.isLeftHandSideExpression=function(t){return f(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return m(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 203:return!0;case 202:return 44===e.operator||45===e.operator;default:return!1}},e.isExpression=g,e.isAssertionExpression=function(e){var t=e.kind;return 194===t||212===t},e.isPartiallyEmittedExpression=y,e.isNotEmittedStatement=h,e.isNotEmittedOrPartiallyEmittedNode=function(e){return h(e)||y(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 225:case 226:case 227:case 223:case 224:return!0;case 233:return r&&e(t.statement,r)}return!1},e.isForInOrOfStatement=function(e){return 226===e.kind||227===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||g(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||g(t)},e.isModuleBody=function(e){var t=e.kind;return 245===t||244===t||72===t},e.isNamespaceBody=function(e){var t=e.kind;return 245===t||244===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 72===t||244===t},e.isNamedImportBindings=function(e){var t=e.kind;return 252===t||251===t},e.isModuleOrEnumDeclaration=function(e){return 244===e.kind||243===e.kind},e.isDeclaration=function(t){return 150===t.kind?t.parent&&308!==t.parent.kind||e.isInJSFile(t):197===(r=t.kind)||186===r||240===r||209===r||157===r||243===r||278===r||257===r||239===r||196===r||158===r||250===r||248===r||253===r||241===r||267===r||156===r||155===r||244===r||247===r||251===r||151===r||275===r||154===r||153===r||159===r||276===r||242===r||150===r||237===r||309===r||302===r||310===r;var r},e.isDeclarationStatement=function(e){return v(e.kind)},e.isStatementButNotDeclaration=function(e){return b(e.kind)},e.isStatement=function(t){var r=t.kind;return b(r)||v(r)||function(t){return 218===t.kind&&((void 0===t.parent||235!==t.parent.kind&&274!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isModuleReference=function(e){var t=e.kind;return 259===t||148===t||72===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 100===t||72===t||189===t},e.isJsxChild=function(e){var t=e.kind;return 260===t||270===t||261===t||11===t||264===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 267===t||269===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||270===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 262===t||261===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 271===t||272===t},e.isJSDocNode=function(e){return e.kind>=288&&e.kind<=310},e.isJSDocCommentContainingNode=function(t){return 296===t.kind||D(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=D,e.isSetAccessor=function(e){return 159===e.kind},e.isGetAccessor=function(e){return 158===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=x,e.hasOnlyExpressionInitializer=function(t){return x(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){return 267===e.kind||269===e.kind||_(e)},e.isTypeReferenceType=function(e){return 164===e.kind||211===e.kind};var S=1073741823;e.guessIndentation=function(t){for(var r=S,n=0,i=t;n=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function p(e){return!(!e.declaration&&!e.composite)}function f(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function m(e,t){return t.strictFlag?f(e,t.name):e[t.name]}e.isNamedImportsOrExports=function(e){return 252===e.kind||256===e.kind},e.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return i},getIdentifierConstructor:function(){return i},getSourceFileConstructor:function(){return i},getSymbolConstructor:function(){return t},getTypeConstructor:function(){return r},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return a}},e.formatStringFromArgs=o,e.getLocaleSpecificMessage=s,e.createFileDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length));var a=s(i);return arguments.length>4&&(a=o(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}},e.formatMessage=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),r},e.createCompilerDiagnostic=function(e){var t=s(e);return arguments.length>1&&(t=o(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e},e.compareDiagnostics=u,e.compareDiagnosticsSkipRelatedInformation=l,e.getEmitScriptTarget=_,e.getEmitModuleKind=d,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=d(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(d(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!p(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=d(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=p,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=f,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some(function(n){return!e.isJsonEqual(m(r,n),m(t,n))})},e.getCompilerOptionValue=m,e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r=97&&e<=122||e>=65&&e<=90}function D(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:g,2);return n<0?t.length:n+1}if(b(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf(y);if(-1!==a){var o=a+y.length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&b(t.charCodeAt(s+1))){var l=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==l){if(47===t.charCodeAt(l))return~(l+1);if(l===t.length)return~l}}return~(s+1)}return~t.length}return 0}function x(e){var t=D(e);return t<0?~t:t}function S(e){return D(e)>0}function T(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),[n].concat(i)}(t=e.combinePaths(r,t),x(t))}function C(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function E(e,t){return C(T(e,t))}function k(t){return 0===t.length?"":(t[0]&&e.ensureTrailingDirectorySeparator(t[0]))+t.slice(1).join(e.directorySeparator)}e.normalizeSlashes=v,e.getRootLength=x,e.normalizePath=function(t){return e.resolvePath(t)},e.normalizePathAndParts=function(t){var r=C(T(t=v(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(a):a,parts:i}}return{path:n,parts:i}},e.getDirectoryPath=function(t){var r=x(t=v(t));return r===t.length?t:(t=e.removeTrailingDirectorySeparator(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))},e.startsWithDirectory=function(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.isUrl=function(e){return D(e)<0},e.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},e.isRootedDiskPath=S,e.isDiskPathRoot=function(e){var t=D(e);return t>0&&t===e.length},e.convertToRelativePath=function(t,r,n){return S(t)?e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1):t},e.getPathComponents=T,e.reducePathComponents=C,e.getNormalizedPathComponents=E,e.getNormalizedAbsolutePath=function(e,t){return k(E(e,t))},e.getPathFromPathComponents=k}(c||(c={})),function(e){function t(t,r,n,i){var a,o=e.reducePathComponents(e.getPathComponents(t)),s=e.reducePathComponents(e.getPathComponents(r));for(a=0;a0==e.getRootLength(n)>0,"Paths must either both be absolute or both be relative");var a="function"==typeof i?i:e.identity,o=t(r,n,"boolean"==typeof i&&i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a);return e.getPathFromPathComponents(o)}function n(t){return 0!==e.getRootLength(t)||e.pathIsRelative(t)?t:"./"+t}function i(t,r,n){if(t=e.normalizeSlashes(t),e.getRootLength(t)===t.length)return"";var i=(t=c(t)).slice(Math.max(e.getRootLength(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?V(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function a(t){for(var r=[],n=1;n0;)u+=")?",f--;return u}(t,r,n,x[n])})}function C(e){return!/[.*?]/.test(e)}function E(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function k(t,r,n,i,o){t=e.normalizePath(t);var s=a(o=e.normalizePath(o),t);return{includeFilePatterns:e.map(T(n,s,"files"),function(e){return"^"+e+"$"}),includeFilePattern:S(n,s,"files"),includeDirectoryPattern:S(n,s,"directories"),excludePattern:S(r,s,"exclude"),basePaths:function(t,r,n){var i=[t];if(r){for(var o=[],s=0,c=r;s=0;n--)if(e.fileExtensionIs(t,r[n]))return M(n,r);return 0},e.adjustExtensionPriority=M,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var L,R=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function B(t,r){return e.fileExtensionIs(t,r)?j(t,r):void 0}function j(e,t){return e.substring(0,e.length-t.length)}function J(t,r,n,i){var a=void 0!==n&&void 0!==i?V(t,n,i):V(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t}function z(t){L.assert(e.hasZeroOrOneAsteriskCharacter(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function K(e){return".ts"===e||".tsx"===e||".d.ts"===e}function U(t){return e.find(R,function(r){return e.fileExtensionIs(t,r)})}function V(t,r,n){if(r)return function(t,r,n){"string"==typeof r&&(r=[r]);for(var i=0,a=r;i=o.length&&"."===t.charAt(t.length-o.length)){var s=t.slice(t.length-o.length);if(n(s,o))return s}}return""}(t,r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=i(t),o=a.lastIndexOf(".");return o>=0?a.substring(o):""}e.removeFileExtension=function(e){for(var t=0,r=R;t=0)},e.extensionIsTS=K,e.resolutionExtensionIsTSOrJson=function(e){return K(e)||".json"===e},e.extensionFromPath=function(e){var t=U(e);return void 0!==t?t:L.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==U(e)},e.tryGetExtensionFromPath=U,e.getAnyExtensionFromPath=V,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;in&&(n=a)}return{min:r,max:n}};var q=function(){function t(){this.map=e.createMap()}return t.prototype.add=function(t){this.map.set(String(e.getNodeId(t)),t)},t.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.some=function(t){return e.forEachEntry(this.map,t)||!1},t}();e.NodeSet=q;var W=function(){function t(){this.map=e.createMap()}return t.prototype.get=function(t){var r=this.map.get(String(e.getNodeId(t)));return r&&r.value},t.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;var n=t();return this.set(e,n),n},t.prototype.set=function(t,r){this.map.set(String(e.getNodeId(t)),{node:t,value:r})},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(function(t){var r=t.node,n=t.value;return e(n,r)})},t}();e.NodeMap=W,e.rangeOfNode=function(t){return{pos:e.getTokenPosOfNode(t),end:t.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib},e.isJsonEqual=function t(r,n){return r===n||"object"===f(r)&&null!==r&&"object"===f(n)&&null!==n&&e.equalOwnProperties(r,n,t)},e.getOrUpdate=function(e,t,r){var n=e.get(t);if(void 0===n){var i=r();return e.set(t,i),i}return n},e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),_=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=_;var d=_>>>16;d&&(o[u+1]|=d)}for(var p="",f=o.length-1,m=!0;m;){var g=0;for(m=!1,u=f;u>=0;u--){var y=g<<16|o[u],h=y/10|0;o[u]=h,g=y-10*h,h&&!m&&(f=u,m=!0)}p=g+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r}}(c||(c={})),function(e){var t,r,n,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 284===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):72===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.isJSDocLikeText=l,e.forEachChild=_,e.createSourceFile=function(t,r,n,i,a){var s;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),s=100===n?o.parseSourceFile(t,r,n,void 0,i,6):o.parseSourceFile(t,r,n,void 0,i,a),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=s.updateSourceFile(e,t,r,n);return i.flags|=1572864&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&o.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,m,g,y,h,v,b,x,S,T,C=e.createScanner(7,!0),E=10240,k=!1;function N(t,r,n,i,a){void 0===n&&(n=2),F(r,n,i,6),(o=M(t,2,6,!1)).flags=b,ne();var c=te();if(1===re())o.statements=De([],c,c),o.endOfFileToken=ge();else{var u=ve(221);switch(re()){case 22:u.expression=Ar();break;case 102:case 87:case 96:u.expression=ge();break;case 39:ue(function(){return 8===ne()&&57!==ne()})?u.expression=ur():u.expression=Pr();break;case 8:case 10:if(ue(function(){return 57!==ne()})){u.expression=nt();break}default:u.expression=Pr()}xe(u),o.statements=De([u],c),o.endOfFileToken=me(1,e.Diagnostics.Unexpected_token)}a&&O(o),o.parseDiagnostics=s;var l=o;return P(),l}function A(e){return 4===e||2===e||1===e||6===e?1:0}function F(t,o,u,l){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),m=t,c=u,s=[],v=0,y=e.createMap(),h=0,g=0,l){case 1:case 2:b=65536;break;case 6:b=16842752;break;default:b=0}k=!1,C.setText(m),C.setOnError(ee),C.setScriptTarget(o),C.setLanguageVariant(A(l))}function P(){C.setText(""),C.setOnError(void 0),s=void 0,o=void 0,y=void 0,c=void 0,m=void 0}function w(t,r,n,i){var a=d(t);return a&&(b|=4194304),(o=M(t,r,i,a)).flags=b,ne(),p(o,m),f(o,function(t,r,n){s.push(e.createFileDiagnostic(o,t,r,n))}),o.statements=qe(0,Gr),e.Debug.assert(1===re()),o.endOfFileToken=I(ge()),function(t){t.externalModuleIndicator=e.forEach(t.statements,Ln)||function(e){return 1048576&e.flags?Rn(e):void 0}(t)}(o),o.nodeCount=g,o.identifierCount=h,o.identifiers=y,o.parseDiagnostics=s,n&&O(o),o}function I(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,o.text),function(e){return T.parseJSDocComment(t,e.pos,e.end-e.pos)});return r.length&&(t.jsDoc=r),t}function O(t){var r=t;return void _(t,function t(n){if(n.parent!==r){n.parent=r;var i=r;if(r=n,_(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a108)}function de(t,r,n){return void 0===n&&(n=!0),re()===t?(n&&ne(),!0):(r?X(r):X(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function pe(e){return re()===e&&(ne(),!0)}function fe(e){if(re()===e)return ge()}function me(t,r,n){return fe(t)||Se(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function ge(){var e=ve(re());return ne(),xe(e)}function ye(){return 26===re()||(19===re()||1===re()||C.hasPrecedingLineBreak())}function he(){return ye()?(26===re()&&ne(),!0):de(26)}function ve(t,a){g++;var o=a>=0?a:C.getStartPos();return e.isNodeKind(t)||0===t?new r(t,o,o):72===t?new i(t,o,o):new n(t,o,o)}function be(e,t){var r=ve(e,t);return 2&C.getTokenFlags()&&I(r),r}function De(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?C.getStartPos():r,i}function xe(e,t){return e.end=void 0===t?C.getStartPos():t,b&&(e.flags|=b),k&&(k=!1,e.flags|=32768),e}function Se(t,r,n,i){r?Q(C.getStartPos(),0,n,i):n&&X(n,i);var a=ve(t);return 72===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),xe(a)}function Te(e){var t=y.get(e);return void 0===t&&y.set(e,t=e),t}function Ce(t,r){if(h++,t){var n=ve(72);return 72!==re()&&(n.originalKeywordKind=re()),n.escapedText=e.escapeLeadingUnderscores(Te(C.getTokenValue())),ne(),xe(n)}return Se(72,1===re(),r||e.Diagnostics.Identifier_expected)}function Ee(e){return Ce(_e(),e)}function ke(t){return Ce(e.tokenIsIdentifierOrKeyword(re()),t)}function Ne(){return e.tokenIsIdentifierOrKeyword(re())||10===re()||8===re()}function Ae(e){if(10===re()||8===re()){var t=nt();return t.text=Te(t.text),t}return e&&22===re()?function(){var e=ve(149);return de(22),e.expression=U(Yt),de(23),xe(e)}():ke()}function Fe(){return Ae(!0)}function Pe(e){return re()===e&&le(Ie)}function we(){return ne(),!C.hasPrecedingLineBreak()&&Oe()}function Ie(){switch(re()){case 77:return 84===ne();case 85:return ne(),80===re()?ue(Me):40!==re()&&119!==re()&&18!==re()&&Oe();case 80:return Me();case 116:case 126:case 137:return ne(),Oe();default:return we()}}function Oe(){return 22===re()||18===re()||40===re()||25===re()||Ne()}function Me(){return ne(),76===re()||90===re()||110===re()||118===re()&&ue(zr)||121===re()&&ue(Kr)}function Le(t,r){if(He(t))return!0;switch(t){case 0:case 1:case 3:return!(26===re()&&r)&&Wr();case 2:return 74===re()||80===re();case 4:return ue(bt);case 5:return ue(fn)||26===re()&&!r;case 6:return 22===re()||Ne();case 12:switch(re()){case 22:case 40:case 25:case 24:return!0;default:return Ne()}case 18:return Ne();case 9:return 22===re()||25===re()||Ne();case 7:return 18===re()?ue(Re):r?_e()&&!ze():Ht()&&!ze();case 8:return rn();case 10:return 27===re()||25===re()||rn();case 19:return _e();case 15:switch(re()){case 27:case 24:return!0}case 11:return 25===re()||Gt();case 16:return dt(!1);case 17:return dt(!0);case 20:case 21:return 27===re()||Mt();case 22:return Cn();case 23:return e.tokenIsIdentifierOrKeyword(re());case 13:return e.tokenIsIdentifierOrKeyword(re())||18===re();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Re(){if(e.Debug.assert(18===re()),19===ne()){var t=ne();return 27===t||18===t||86===t||109===t}return!0}function Be(){return ne(),_e()}function je(){return ne(),e.tokenIsIdentifierOrKeyword(re())}function Je(){return ne(),e.tokenIsIdentifierOrKeywordOrGreaterThan(re())}function ze(){return(109===re()||86===re())&&ue(Ke)}function Ke(){return ne(),Gt()}function Ue(){return ne(),Mt()}function Ve(e){if(1===re())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===re();case 3:return 19===re()||74===re()||80===re();case 7:return 18===re()||86===re()||109===re();case 8:return function(){if(ye())return!0;if(ar(re()))return!0;if(37===re())return!0;return!1}();case 19:return 30===re()||20===re()||18===re()||86===re()||109===re();case 11:return 21===re()||26===re();case 15:case 21:case 10:return 23===re();case 17:case 16:case 18:return 21===re()||23===re();case 20:return 27!==re();case 22:return 18===re()||19===re();case 13:return 30===re()||42===re();case 14:return 28===re()&&ue(Fn);default:return!1}}function qe(e,t){var r=v;v|=1<=0&&(c.hasTrailingComma=!0),c}function Xe(){var e=De([],te());return e.isMissingList=!0,e}function Qe(e,t,r,n){if(de(r)){var i=Ye(e,t);return de(n),i}return Xe()}function $e(e,t){for(var r=e?ke(t):Ee(t),n=C.getStartPos();pe(24);){if(28===re()){r.jsdocDotPos=n;break}n=C.getStartPos(),r=Ze(r,et(e))}return r}function Ze(e,t){var r=ve(148,e.pos);return r.left=e,r.right=t,xe(r)}function et(t){if(C.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(re())&&ue(Jr))return Se(72,!0,e.Diagnostics.Identifier_expected);return t?ke():Ee()}function tt(){var t,r=ve(206);r.head=(t=it(re()),e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(15===r.head.kind,"Template head has wrong token kind");var n=[],i=te();do{n.push(rt())}while(16===e.last(n).literal.kind);return r.templateSpans=De(n,i),xe(r)}function rt(){var t,r,n=ve(216);return n.expression=U(Yt),19===re()?(u=C.reScanTemplateToken(),r=it(re()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),t=r):t=me(17,e.Diagnostics._0_expected,e.tokenToString(19)),n.literal=t,xe(n)}function nt(){return it(re())}function it(e){var t=ve(e);return t.text=C.getTokenValue(),C.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),C.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&C.getTokenFlags()),ne(),xe(t),t}function at(){var t=ve(164);return t.typeName=$e(!0,e.Diagnostics.Type_expected),C.hasPrecedingLineBreak()||28!==ae()||(t.typeArguments=Qe(20,Vt,28,30)),xe(t)}function ot(e){var t=ve(289);return e?Rt(293,t):(ne(),xe(t))}function st(){var e=ve(151);return 100!==re()&&95!==re()||(e.name=ke(),de(57)),e.type=ct(),xe(e)}function ct(){C.setInJSDocType(!0);var e=fe(25),t=Kt();if(C.setInJSDocType(!1),e){var r=ve(295,e.pos);r.type=t,t=xe(r)}return 59===re()?Rt(293,t):t}function ut(){var e=ve(150);return e.name=Ee(),pe(86)&&(Mt()||!Gt()?e.constraint=Vt():e.expression=lr()),pe(59)&&(e.default=Vt()),xe(e)}function lt(){if(28===re())return Qe(19,ut,28,30)}function _t(){if(pe(57))return Vt()}function dt(t){return 25===re()||rn()||e.isModifierKind(re())||58===re()||Mt(!t)}function pt(){var t=be(151);return 100===re()?(t.name=Ce(!0),t.type=_t(),xe(t)):(t.decorators=mn(),t.modifiers=gn(),t.dotDotDotToken=fe(25),t.name=nn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(re())&&ne(),t.questionToken=fe(56),t.type=_t(),t.initializer=Xt(),xe(t))}function ft(t,r,n){32&r||(n.typeParameters=lt());var i=function(e,t){if(!de(20))return e.parameters=Xe(),!1;var r=W(),n=Y();return B(!!(1&t)),J(!!(2&t)),e.parameters=32&t?Ye(17,st):Ye(16,pt),B(r),J(n),de(21)}(n,r);return(!function(t,r){if(37===t)return de(t),!0;if(pe(57))return!0;if(r&&37===re())return X(e.Diagnostics._0_expected,e.tokenToString(57)),ne(),!0;return!1}(t,!!(4&r))||(n.type=Kt(),!function t(r){switch(r.kind){case 164:return e.nodeIsMissing(r.typeName);case 165:case 166:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 177:return t(r.type);default:return!1}}(n.type)))&&i}function mt(){pe(27)||he()}function gt(e){var t=be(e);return 161===e&&de(95),ft(57,4,t),mt(),xe(t)}function yt(){return 22===re()&&ue(ht)}function ht(){if(ne(),25===re()||23===re())return!0;if(e.isModifierKind(re())){if(ne(),_e())return!0}else{if(!_e())return!1;ne()}return 57===re()||27===re()||56===re()&&(ne(),57===re()||27===re()||23===re())}function vt(e){return e.kind=162,e.parameters=Qe(16,pt,22,23),e.type=Wt(),mt(),xe(e)}function bt(){if(20===re()||28===re())return!0;for(var t=!1;e.isModifierKind(re());)t=!0,ne();return 22===re()||(Ne()&&(t=!0,ne()),!!t&&(20===re()||28===re()||56===re()||57===re()||27===re()||ye()))}function Dt(){if(20===re()||28===re())return gt(160);if(95===re()&&ue(xt))return gt(161);var e=be(0);return e.modifiers=gn(),yt()?vt(e):function(e){return e.name=Fe(),e.questionToken=fe(56),20===re()||28===re()?(e.kind=155,ft(57,4,e)):(e.kind=153,e.type=Wt(),59===re()&&(e.initializer=Xt())),mt(),xe(e)}(e)}function xt(){return ne(),20===re()||28===re()}function St(){return 24===ne()}function Tt(){switch(ne()){case 20:case 28:case 24:return!0}return!1}function Ct(){var e;return de(18)?(e=qe(4,Dt),de(19)):e=Xe(),e}function Et(){return ne(),38===re()||39===re()?133===ne():(133===re()&&ne(),22===re()&&Be()&&93===ne())}function kt(){var e=ve(181);return de(18),133!==re()&&38!==re()&&39!==re()||(e.readonlyToken=ge(),133!==e.readonlyToken.kind&&me(133)),de(22),e.typeParameter=function(){var e=ve(150);return e.name=Ee(),de(93),e.constraint=Vt(),xe(e)}(),de(23),56!==re()&&38!==re()&&39!==re()||(e.questionToken=ge(),56!==e.questionToken.kind&&me(56)),e.type=Wt(),he(),de(19),xe(e)}function Nt(){var e=te();if(pe(25)){var t=ve(172,e);return t.type=Vt(),xe(t)}var r=Vt();return 2097152&b||291!==r.kind||r.pos!==r.type.pos||(r.kind=171),r}function At(){var e=ge();return 24===re()?void 0:e}function Ft(e){var t,r=ve(182);e&&((t=ve(202)).operator=39,ne());var n=102===re()||87===re()?ge():it(re());return e&&(t.operand=n,xe(t),n=t),r.literal=n,xe(r)}function Pt(){return ne(),92===re()}function wt(){o.flags|=524288;var t=ve(183);return pe(104)&&(t.isTypeOf=!0),de(92),de(20),t.argument=Vt(),de(21),pe(24)&&(t.qualifier=$e(!0,e.Diagnostics.Type_expected)),t.typeArguments=Tn(),xe(t)}function It(){return ne(),8===re()||9===re()}function Ot(){switch(re()){case 120:case 143:case 138:case 135:case 146:case 139:case 123:case 141:case 132:case 136:return le(At)||at();case 40:return ot(!1);case 62:return ot(!0);case 56:return n=C.getStartPos(),ne(),27===re()||19===re()||21===re()||30===re()||59===re()||50===re()?xe(r=ve(290,n)):((r=ve(291,n)).type=Vt(),xe(r));case 90:return function(){if(ue(An)){var e=be(294);return ne(),ft(57,36,e),xe(e)}var t=ve(164);return t.typeName=ke(),xe(t)}();case 52:return function(){var e=ve(292);return ne(),e.type=Ot(),xe(e)}();case 14:case 10:case 8:case 9:case 102:case 87:return Ft();case 39:return ue(It)?Ft(!0):at();case 106:case 96:return ge();case 100:var e=(t=ve(178),ne(),xe(t));return 128!==re()||C.hasPrecedingLineBreak()?e:function(e){ne();var t=ve(163,e.pos);return t.parameterName=e,t.type=Vt(),xe(t)}(e);case 104:return ue(Pt)?wt():function(){var e=ve(167);return de(104),e.exprName=$e(!0),xe(e)}();case 18:return ue(Et)?kt():function(){var e=ve(168);return e.members=Ct(),xe(e)}();case 22:return function(){var e=ve(170);return e.elementTypes=Qe(21,Nt,22,23),xe(e)}();case 20:return function(){var e=ve(177);return de(20),e.type=Vt(),de(21),xe(e)}();case 92:return wt();default:return at()}var t,r,n}function Mt(e){switch(re()){case 120:case 143:case 138:case 135:case 146:case 123:case 133:case 139:case 142:case 106:case 141:case 96:case 100:case 104:case 132:case 18:case 22:case 28:case 50:case 49:case 95:case 10:case 8:case 9:case 102:case 87:case 136:case 40:case 56:case 52:case 25:case 127:case 92:return!0;case 90:return!e;case 39:return!e&&ue(It);case 20:return!e&&ue(Lt);default:return _e()}}function Lt(){return ne(),21===re()||dt(!1)||Mt()}function Rt(e,t){ne();var r=ve(e,t.pos);return r.type=t,xe(r)}function Bt(){var e=re();switch(e){case 129:case 142:case 133:return function(e){var t=ve(179);return de(e),t.operator=e,t.type=Bt(),xe(t)}(e);case 127:return function(){var e=ve(176);de(127);var t=ve(150);return t.name=Ee(),e.typeParameter=xe(t),xe(e)}()}return function(){for(var e=Ot();!C.hasPrecedingLineBreak();)switch(re()){case 52:e=Rt(292,e);break;case 56:if(!(2097152&b)&&ue(Ue))return e;e=Rt(291,e);break;case 22:var t;de(22),Mt()?((t=ve(180,e.pos)).objectType=e,t.indexType=Vt(),de(23),e=xe(t)):((t=ve(169,e.pos)).elementType=e,de(23),e=xe(t));break;default:return e}return e}()}function jt(e,t,r){pe(r);var n=t();if(re()===r){for(var i=[n];pe(r);)i.push(t());var a=ve(e,n.pos);a.types=De(i,n.pos),n=xe(a)}return n}function Jt(){return jt(174,Bt,49)}function zt(){if(ne(),21===re()||25===re())return!0;if(function(){if(e.isModifierKind(re())&&gn(),_e()||100===re())return ne(),!0;if(22===re()||18===re()){var t=s.length;return nn(),t===s.length}return!1}()){if(57===re()||27===re()||56===re()||59===re())return!0;if(21===re()&&(ne(),37===re()))return!0}return!1}function Kt(){var e=_e()&&le(Ut),t=Vt();if(e){var r=ve(163,e.pos);return r.parameterName=e,r.type=t,xe(r)}return t}function Ut(){var e=Ee();if(128===re()&&!C.hasPrecedingLineBreak())return ne(),e}function Vt(){return z(20480,qt)}function qt(e){if(28===re()||20===re()&&ue(zt)||95===re())return function(){var e=te(),t=be(pe(95)?166:165,e);return ft(37,4,t),xe(t)}();var t=jt(173,Jt,50);if(!e&&!C.hasPrecedingLineBreak()&&pe(86)){var r=ve(175,t.pos);return r.checkType=t,r.extendsType=qt(!0),de(56),r.trueType=qt(),de(57),r.falseType=qt(),xe(r)}return t}function Wt(){return pe(57)?Vt():void 0}function Ht(){switch(re()){case 100:case 98:case 96:case 102:case 87:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 90:case 76:case 95:case 42:case 64:case 72:return!0;case 92:return ue(Tt);default:return _e()}}function Gt(){if(Ht())return!0;switch(re()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 44:case 45:case 28:case 122:case 117:return!0;default:return!!function(){if(H()&&93===re())return!1;return e.getBinaryOperatorPrecedence(re())>0}()||_e()}}function Yt(){var e=G();e&&j(!1);for(var t,r=Qt();t=fe(27);)r=sr(r,t,Qt());return e&&j(!0),r}function Xt(){return pe(59)?Qt():void 0}function Qt(){if(function(){if(117===re())return!!W()||ue(Ur);return!1}())return t=ve(207),ne(),C.hasPrecedingLineBreak()||40!==re()&&!Gt()?xe(t):(t.asteriskToken=fe(40),t.expression=Qt(),xe(t));var t,r=function(){var t=function(){if(20===re()||28===re()||121===re())return ue(Zt);if(37===re())return 1;return 0}();if(0===t)return;var r=1===t?rr(!0):le(er);if(!r)return;var n=e.hasModifier(r,256),i=re();return r.equalsGreaterThanToken=me(37),r.body=37===i||18===i?nr(n):Ee(),xe(r)}()||function(){if(121===re()&&1===ue(tr)){var e=yn(),t=ir(0);return $t(t,e)}return}();if(r)return r;var n=ir(0);return 72===n.kind&&37===re()?$t(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(ie())?sr(n,ge(),Qt()):function(t){var r=fe(56);if(!r)return t;var n=ve(205,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=z(E,Qt),n.colonToken=me(57),n.whenFalse=e.nodeIsPresent(n.colonToken)?Qt():Se(72,!1,e.Diagnostics._0_expected,e.tokenToString(57)),xe(n)}(n)}function $t(t,r){var n;e.Debug.assert(37===re(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=ve(197,r.pos)).modifiers=r:n=ve(197,t.pos);var i=ve(151,t.pos);return i.name=t,xe(i),n.parameters=De([i],i.pos,i.end),n.equalsGreaterThanToken=me(37),n.body=nr(!!r),I(xe(n))}function Zt(){if(121===re()){if(ne(),C.hasPrecedingLineBreak())return 0;if(20!==re()&&28!==re())return 0}var t=re(),r=ne();if(20===t){if(21===r)switch(ne()){case 37:case 57:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&121!==r&&ue(Be))return 1;if(!_e()&&100!==r)return 0;switch(ne()){case 57:return 1;case 56:return ne(),57===re()||27===re()||59===re()||21===re()?1:0;case 27:case 59:case 21:return 2}return 0}return e.Debug.assert(28===t),_e()?1===o.languageVariant?ue(function(){var e=ne();if(86===e)switch(ne()){case 59:case 30:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:2:0}function er(){return rr(!1)}function tr(){if(121===re()){if(ne(),C.hasPrecedingLineBreak()||37===re())return 0;var e=ir(0);if(!C.hasPrecedingLineBreak()&&72===e.kind&&37===re())return 1}return 0}function rr(t){var r=be(197);if(r.modifiers=yn(),(ft(57,e.hasModifier(r,256)?2:0,r)||t)&&(t||37===re()||18===re()))return r}function nr(e){return 18===re()?Mr(e?2:0):26===re()||90===re()||76===re()||!Wr()||18!==re()&&90!==re()&&76!==re()&&58!==re()&&Gt()?e?V(Qt):z(16384,Qt):Mr(16|(e?2:0))}function ir(e){return or(e,lr())}function ar(e){return 93===e||147===e}function or(t,r){for(;;){ie();var n=e.getBinaryOperatorPrecedence(re());if(!(41===re()?n>=t:n>t))break;if(93===re()&&H())break;if(119===re()){if(C.hasPrecedingLineBreak())break;ne(),r=cr(r,Vt())}else r=sr(r,ge(),ir(n))}return r}function sr(e,t,r){var n=ve(204,e.pos);return n.left=e,n.operatorToken=t,n.right=r,xe(n)}function cr(e,t){var r=ve(212,e.pos);return r.expression=e,r.type=t,xe(r)}function ur(){var e=ve(202);return e.operator=re(),ne(),e.operand=_r(),xe(e)}function lr(){if(function(){switch(re()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 122:return!1;case 28:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=dr();return 41===re()?or(e.getBinaryOperatorPrecedence(re()),t):t}var r=re(),n=_r();if(41===re()){var i=e.skipTrivia(m,n.pos),a=n.end;194===n.kind?$(i,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):$(i,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function _r(){switch(re()){case 38:case 39:case 53:case 52:return ur();case 81:return e=ve(198),ne(),e.expression=_r(),xe(e);case 104:return function(){var e=ve(199);return ne(),e.expression=_r(),xe(e)}();case 106:return function(){var e=ve(200);return ne(),e.expression=_r(),xe(e)}();case 28:return function(){var e=ve(194);return de(28),e.type=Vt(),de(30),e.expression=_r(),xe(e)}();case 122:if(122===re()&&(Y()||ue(Ur)))return function(){var e=ve(201);return ne(),e.expression=_r(),xe(e)}();default:return dr()}var e}function dr(){if(44===re()||45===re())return(t=ve(202)).operator=re(),ne(),t.operand=pr(),xe(t);if(1===o.languageVariant&&28===re()&&ue(Je))return mr(!0);var t,r=pr();return e.Debug.assert(e.isLeftHandSideExpression(r)),44!==re()&&45!==re()||C.hasPrecedingLineBreak()?r:((t=ve(203,r.pos)).operand=r,t.operator=re(),ne(),xe(t))}function pr(){var t;if(92===re())if(ue(xt))o.flags|=524288,t=ge();else if(ue(St)){var r=C.getStartPos();ne(),ne();var n=ve(214,r);n.keywordToken=92,n.name=ke(),t=xe(n),o.flags|=1048576}else t=fr();else t=98===re()?function(){var t=ge();if(20===re()||24===re()||22===re())return t;var r=ve(189,t.pos);return r.expression=t,me(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=et(!0),xe(r)}():fr();return function(e){for(;;)if(e=Dr(e),28!==re()&&46!==re()){if(20!==re())return e;var t=ve(191,e.pos);t.expression=e,t.arguments=Tr(),e=xe(t)}else{var r=le(Cr);if(!r)return e;if(xr()){e=Sr(e,r);continue}var t=ve(191,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Tr(),e=xe(t)}}(t)}function fr(){return Dr(Er())}function mr(t){var r,n=function(e){var t=C.getStartPos();if(de(28),30===re()){var r=ve(265,t);return se(),xe(r)}var n,i=hr(),a=Tn(),o=(s=ve(268),s.properties=qe(13,br),xe(s));var s;30===re()?(n=ve(262,t),se()):(de(42),e?de(30):(de(30,void 0,!1),se()),n=ve(261,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,xe(n)}(t);if(262===n.kind)(i=ve(260,n.pos)).openingElement=n,i.children=yr(i.openingElement),i.closingElement=function(e){var t=ve(263);de(29),t.tagName=hr(),e?de(30):(de(30,void 0,!1),se());return xe(t)}(t),D(i.openingElement.tagName,i.closingElement.tagName)||Z(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(m,i.openingElement.tagName)),r=xe(i);else if(265===n.kind){var i;(i=ve(264,n.pos)).openingFragment=n,i.children=yr(i.openingFragment),i.closingFragment=function(t){var r=ve(266);de(29),e.tokenIsIdentifierOrKeyword(re())&&Z(hr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?de(30):(de(30,void 0,!1),se());return xe(r)}(t),r=xe(i)}else e.Debug.assert(261===n.kind),r=n;if(t&&28===re()){var a=le(function(){return mr(!0)});if(a){X(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ve(204,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=Se(27,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function gr(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?Z(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):Z(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(m,t.tagName)));case 29:case 7:return;case 11:case 12:return(n=ve(11)).text=C.getTokenValue(),n.containsOnlyTriviaWhiteSpaces=12===u,u=C.scanJsxToken(),xe(n);case 18:return vr(!1);case 28:return mr(!1);default:return e.Debug.assertNever(r)}var n}function yr(e){var t=[],r=te(),n=v;for(v|=16384;;){var i=gr(e,u=C.reScanJsxToken());if(!i)break;t.push(i)}return v=n,De(t,r)}function hr(){oe();for(var e=100===re()?ge():ke();pe(24);){var t=ve(189,e.pos);t.expression=e,t.name=et(!0),e=xe(t)}return e}function vr(e){var t=ve(270);if(de(18))return 19!==re()&&(t.dotDotDotToken=fe(25),t.expression=Qt()),e?de(19):(de(19,void 0,!1),se()),xe(t)}function br(){if(18===re())return function(){var e=ve(269);return de(18),de(25),e.expression=Yt(),de(19),xe(e)}();oe();var e=ve(267);if(e.name=ke(),59===re())switch(u=C.scanJsxAttributeValue()){case 10:e.initializer=nt();break;default:e.initializer=vr(!0)}return xe(e)}function Dr(t){for(;;){if(fe(24)){var r=ve(189,t.pos);r.expression=t,r.name=et(!0),t=xe(r)}else if(52!==re()||C.hasPrecedingLineBreak())if(G()||!pe(22)){if(!xr())return t;t=Sr(t,void 0)}else{var n=ve(190,t.pos);if(n.expression=t,23===re())n.argumentExpression=Se(72,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=U(Yt);e.isStringOrNumericLiteralLike(i)&&(i.text=Te(i.text)),n.argumentExpression=i}de(23),t=xe(n)}else{ne();var a=ve(213,t.pos);a.expression=t,t=xe(a)}}}function xr(){return 14===re()||15===re()}function Sr(e,t){var r=ve(193,e.pos);return r.tag=e,r.typeArguments=t,r.template=14===re()?nt():tt(),xe(r)}function Tr(){de(20);var e=Ye(11,Nr);return de(21),e}function Cr(){if(28===ae()){ne();var e=Ye(20,Vt);if(de(30))return e&&function(){switch(re()){case 20:case 14:case 15:case 24:case 21:case 23:case 57:case 26:case 56:case 33:case 35:case 34:case 36:case 54:case 55:case 51:case 49:case 50:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function Er(){switch(re()){case 8:case 9:case 10:case 14:return nt();case 100:case 98:case 96:case 102:case 87:return ge();case 20:return t=be(195),de(20),t.expression=U(Yt),de(21),xe(t);case 22:return Ar();case 18:return Pr();case 121:if(!ue(Kr))break;return wr();case 76:return bn(be(0),209);case 90:return wr();case 95:return function(){var t=C.getStartPos();if(de(95),pe(24)){var r=ve(214,t);return r.keywordToken=95,r.name=ke(),xe(r)}var n,i=Er();for(;;){i=Dr(i),n=le(Cr),xr()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=Sr(i,n),n=void 0);break}var a=ve(192,t);a.expression=i,a.typeArguments=n,(a.typeArguments||20===re())&&(a.arguments=Tr());return xe(a)}();case 42:case 64:if(13===(u=C.reScanSlashToken()))return nt();break;case 15:return tt()}var t;return Ee(e.Diagnostics.Expression_expected)}function kr(){return 25===re()?(e=ve(208),de(25),e.expression=Qt(),xe(e)):27===re()?ve(210):Qt();var e}function Nr(){return z(E,kr)}function Ar(){var e=ve(187);return de(22),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ye(15,kr),de(23),xe(e)}function Fr(){var e=be(0);if(fe(25))return e.kind=277,e.expression=Qt(),xe(e);if(e.decorators=mn(),e.modifiers=gn(),Pe(126))return pn(e,158);if(Pe(137))return pn(e,159);var t=fe(40),r=_e();if(e.name=Fe(),e.questionToken=fe(56),e.exclamationToken=fe(52),t||20===re()||28===re())return _n(e,t);if(r&&57!==re()){e.kind=276;var n=fe(59);n&&(e.equalsToken=n,e.objectAssignmentInitializer=U(Qt))}else e.kind=275,de(57),e.initializer=U(Qt);return xe(e)}function Pr(){var e=ve(188);return de(18),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ye(12,Fr,!0),de(19),xe(e)}function wr(){var t=G();t&&j(!1);var r=be(196);r.modifiers=gn(),de(90),r.asteriskToken=fe(40);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?K(20480,Ir):n?function(e){return K(4096,e)}(Ir):i?V(Ir):Ir(),ft(57,n|i,r),r.body=Mr(n|i),t&&j(!0),xe(r)}function Ir(){return _e()?Ee():void 0}function Or(e,t){var r=ve(218);return de(18,t)||e?(C.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=qe(1,Gr),de(19)):r.statements=Xe(),xe(r)}function Mr(e,t){var r=W();B(!!(1&e));var n=Y();J(!!(2&e));var i=G();i&&j(!1);var a=Or(!!(16&e),t);return i&&j(!0),B(r),J(n),a}function Lr(){var e=te();de(89);var t,r,n=fe(122);if(de(20),26!==re()&&(t=105===re()||111===re()||77===re()?sn(!0):K(2048,Yt)),n?de(147):pe(147)){var i=ve(227,e);i.awaitModifier=n,i.initializer=t,i.expression=U(Qt),de(21),r=i}else if(pe(93)){var a=ve(226,e);a.initializer=t,a.expression=U(Yt),de(21),r=a}else{var o=ve(225,e);o.initializer=t,de(26),26!==re()&&21!==re()&&(o.condition=U(Yt)),de(26),21!==re()&&(o.incrementor=U(Yt)),de(21),r=o}return r.statement=Gr(),xe(r)}function Rr(e){var t=ve(e);return de(229===e?73:78),ye()||(t.label=Ee()),he(),xe(t)}function Br(){return 74===re()?(e=ve(271),de(74),e.expression=U(Yt),de(57),e.statements=qe(3,Gr),xe(e)):function(){var e=ve(272);return de(80),de(57),e.statements=qe(3,Gr),xe(e)}();var e}function jr(){var e=ve(235);return de(103),e.tryBlock=Or(!1),e.catchClause=75===re()?function(){var e=ve(274);de(75),pe(20)?(e.variableDeclaration=on(),de(21)):e.variableDeclaration=void 0;return e.block=Or(!1),xe(e)}():void 0,e.catchClause&&88!==re()||(de(88),e.finallyBlock=Or(!1)),xe(e)}function Jr(){return ne(),e.tokenIsIdentifierOrKeyword(re())&&!C.hasPrecedingLineBreak()}function zr(){return ne(),76===re()&&!C.hasPrecedingLineBreak()}function Kr(){return ne(),90===re()&&!C.hasPrecedingLineBreak()}function Ur(){return ne(),(e.tokenIsIdentifierOrKeyword(re())||8===re()||9===re()||10===re())&&!C.hasPrecedingLineBreak()}function Vr(){for(;;)switch(re()){case 105:case 111:case 77:case 90:case 76:case 84:return!0;case 110:case 140:return ne(),!C.hasPrecedingLineBreak()&&_e();case 130:case 131:return $r();case 118:case 121:case 125:case 113:case 114:case 115:case 133:if(ne(),C.hasPrecedingLineBreak())return!1;continue;case 145:return ne(),18===re()||72===re()||85===re();case 92:return ne(),10===re()||40===re()||18===re()||e.tokenIsIdentifierOrKeyword(re());case 85:if(ne(),59===re()||40===re()||18===re()||80===re()||119===re())return!0;continue;case 116:ne();continue;default:return!1}}function qr(){return ue(Vr)}function Wr(){switch(re()){case 58:case 26:case 18:case 105:case 111:case 90:case 76:case 84:case 91:case 82:case 107:case 89:case 78:case 73:case 97:case 108:case 99:case 101:case 103:case 79:case 75:case 88:return!0;case 92:return qr()||ue(Tt);case 77:case 85:return qr();case 121:case 125:case 110:case 130:case 131:case 140:case 145:return!0;case 115:case 113:case 114:case 116:case 133:return qr()||!ue(Jr);default:return Gt()}}function Hr(){return ne(),_e()||18===re()||22===re()}function Gr(){switch(re()){case 26:return e=ve(220),de(26),xe(e);case 18:return Or(!1);case 105:return un(be(237));case 111:if(ue(Hr))return un(be(237));break;case 90:return ln(be(239));case 76:return vn(be(240));case 91:return function(){var e=ve(222);return de(91),de(20),e.expression=U(Yt),de(21),e.thenStatement=Gr(),e.elseStatement=pe(83)?Gr():void 0,xe(e)}();case 82:return function(){var e=ve(223);return de(82),e.statement=Gr(),de(107),de(20),e.expression=U(Yt),de(21),pe(26),xe(e)}();case 107:return function(){var e=ve(224);return de(107),de(20),e.expression=U(Yt),de(21),e.statement=Gr(),xe(e)}();case 89:return Lr();case 78:return Rr(228);case 73:return Rr(229);case 97:return function(){var e=ve(230);return de(97),ye()||(e.expression=U(Yt)),he(),xe(e)}();case 108:return function(){var e=ve(231);return de(108),de(20),e.expression=U(Yt),de(21),e.statement=K(8388608,Gr),xe(e)}();case 99:return function(){var e=ve(232);de(99),de(20),e.expression=U(Yt),de(21);var t=ve(246);return de(18),t.clauses=qe(2,Br),de(19),e.caseBlock=xe(t),xe(e)}();case 101:return function(){var e=ve(234);return de(101),e.expression=C.hasPrecedingLineBreak()?void 0:U(Yt),he(),xe(e)}();case 103:case 75:case 88:return jr();case 79:return function(){var e=ve(236);return de(79),he(),xe(e)}();case 58:return Xr();case 121:case 110:case 140:case 130:case 131:case 125:case 77:case 84:case 85:case 92:case 113:case 114:case 115:case 118:case 116:case 133:case 145:if(qr())return Xr()}var e;return function(){var e=be(0),t=U(Yt);return 72===t.kind&&pe(57)?(e.kind=233,e.label=t,e.statement=Gr()):(e.kind=221,e.expression=t,he()),xe(e)}()}function Yr(e){return 125===e.kind}function Xr(){var t=be(0);if(t.decorators=mn(),t.modifiers=gn(),e.some(t.modifiers,Yr)){for(var r=0,n=t.modifiers;r=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),l(i,t)){var o,s,c,_=[];return C.scanRange(t+3,n-5,function(){var e,r,n=1,u=t-Math.max(i.lastIndexOf("\n",t),0)+4;function l(t){e||(e=u),_.push(t),u+=t.length}for(I();O(5););O(4)&&(n=0,u=0);e:for(;;){switch(re()){case 58:0===n||1===n?(p(_),b(h(u)),n=0,e=void 0,u++):l(C.getTokenText());break;case 4:_.push(C.getTokenText()),n=0,u=0;break;case 40:var f=C.getTokenText();1===n||2===n?(n=2,l(f)):(n=1,u+=f.length);break;case 5:var m=C.getTokenText();2===n?_.push(m):void 0!==e&&u+m.length>e&&_.push(m.slice(e-u-1)),u+=m.length;break;case 1:break e;default:n=2,l(C.getTokenText())}I()}return d(_),p(_),(r=ve(296,t)).tags=o&&De(o,s,c),r.comment=_.length?_.join(""):void 0,xe(r,a)})}function d(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function p(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function f(){for(;;){if(I(),1===re())return!0;if(5!==re()&&4!==re())return!1}}function g(){if(5!==re()&&4!==re()||!ue(f))for(;5===re()||4===re();)I()}function y(){if(5!==re()&&4!==re()||!ue(f))for(var e=C.hasPrecedingLineBreak();e&&40===re()||5===re()||4===re();)4===re()?e=!0:40===re()&&(e=!1),I()}function h(t){e.Debug.assert(58===re());var n=C.getTokenPos();I();var i,a=M(void 0);switch(y(),a.escapedText){case"augments":case"extends":i=function(e,t){var r=ve(300,e);return r.tagName=t,r.class=function(){var e=pe(18),t=ve(211);t.expression=function(){for(var e=M();pe(24);){var t=ve(189,e.pos);t.expression=e,t.name=M(),e=xe(t)}return e}(),t.typeArguments=Tn();var r=xe(t);return e&&de(19),r}(),xe(r)}(n,a);break;case"class":case"constructor":i=function(e,t){var r=ve(301,e);return r.tagName=t,xe(r)}(n,a);break;case"this":i=function(e,t){var n=ve(306,e);return n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"enum":i=function(e,t){var n=ve(303,e);return n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"arg":case"argument":case"param":return T(n,a,2,t);case"return":case"returns":i=function(t,r){e.forEach(o,function(e){return 305===e.kind})&&$(r.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=ve(305,t);return n.tagName=r,n.typeExpression=D(),xe(n)}(n,a);break;case"template":i=function(t,n){var i;18===re()&&(i=r());var a=[],o=te();do{g();var s=ve(150);s.name=M(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),xe(s),g(),a.push(s)}while(O(27));var c=ve(308,t);return c.tagName=n,c.constraint=i,c.typeParameters=De(a,o),xe(c),c}(n,a);break;case"type":i=E(n,a);break;case"typedef":i=function(t,r,n){var i=D();y();var a,o=ve(309,t);if(o.tagName=r,o.fullName=k(),o.name=N(o.fullName),g(),o.comment=v(n),o.typeExpression=i,!i||S(i.type)){for(var s=void 0,c=void 0,u=void 0;s=le(function(){return F(n)});)if(c||(c=ve(297,t)),307===s.kind){if(u)break;u=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&169===i.type.kind&&(c.isArrayType=!0),o.typeExpression=u&&u.typeExpression&&!S(u.typeExpression.type)?u.typeExpression:xe(c),a=o.typeExpression.end)}return xe(o,a||void 0!==o.comment?C.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(n,a,t);break;case"callback":i=function(t,r,n){var i,a=ve(302,t);a.tagName=r,a.fullName=k(),a.name=N(a.fullName),g(),a.comment=v(n);var o=ve(298,t);o.parameters=[];for(;i=le(function(){return P(4,n)});)o.parameters=e.append(o.parameters,i);var s=le(function(){if(O(58)){var e=h(n);if(e&&305===e.kind)return e}});s&&(o.type=s);return a.typeExpression=xe(o),xe(a)}(n,a,t);break;default:i=function(e,t){var r=ve(299,e);return r.tagName=t,xe(r)}(n,a)}return i.comment||(i.comment=v(t+i.end-i.pos)),i}function v(t){var r,n=[],i=0;function a(e){r||(r=t),n.push(e),t+=e.length}var o=re();e:for(;;){switch(o){case 4:i>=1&&(i=0,n.push(C.getTokenText())),t=0;break;case 58:C.setTextPos(C.getTextPos()-1);case 1:break e;case 5:if(2===i)a(C.getTokenText());else{var s=C.getTokenText();void 0!==r&&t+s.length>r&&n.push(s.slice(r-t-1)),t+=s.length}break;case 18:i=2,ue(function(){return 58===I()&&e.tokenIsIdentifierOrKeyword(I())&&"link"===C.getTokenText()})&&(a(C.getTokenText()),I(),a(C.getTokenText()),I()),a(C.getTokenText());break;case 40:if(0===i){i=1,t+=1;break}default:i=2,a(C.getTokenText())}o=I()}return d(n),p(n),0===n.length?void 0:n.join("")}function b(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function D(){return y(),18===re()?r():void 0}function x(){if(14===re())return{name:Ce(!0),isBracketed:!1};var e=pe(22),t=function(){var e=M();pe(22)&&de(23);for(;pe(24);){var t=M();pe(22)&&de(23),e=Ze(e,t)}return e}();return e&&(g(),fe(59)&&Yt(),de(23)),{name:t,isBracketed:e}}function S(t){switch(t.kind){case 136:return!0;case 169:return S(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function T(t,r,n,i){var a=D(),o=!a;y();var s=x(),c=s.name,u=s.isBracketed;g(),o&&(a=D());var l=ve(1===n?310:304,t),_=v(i+C.getStartPos()-t),d=4!==n&&function(t,r,n,i){if(t&&S(t.type)){for(var a=ve(288,C.getTokenPos()),o=void 0,s=void 0,c=C.getStartPos(),u=void 0;o=le(function(){return P(n,i,r)});)304!==o.kind&&310!==o.kind||(u=e.append(u,o));if(u)return(s=ve(297,c)).jsDocPropertyTags=u,169===t.type.kind&&(s.isArrayType=!0),a.type=xe(s),xe(a)}}(a,c,n,i);return d&&(a=d,o=!0),l.tagName=r,l.typeExpression=a,l.name=c,l.isNameFirst=o,l.isBracketed=u,l.comment=_,xe(l)}function E(t,n){e.forEach(o,function(e){return 307===e.kind})&&$(n.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=ve(307,t);return i.tagName=n,i.typeExpression=r(!0),xe(i)}function k(t){var r=C.getTokenPos();if(e.tokenIsIdentifierOrKeyword(re())){var n=M();if(pe(24)){var i=ve(244,r);return t&&(i.flags|=4),i.name=n,i.body=k(!0),xe(i)}return t&&(n.isInJSDocNamespace=!0),n}}function N(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function A(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function F(e){return P(1,e)}function P(t,r,n){for(var i=!0,a=!1;;)switch(I()){case 58:if(i){var o=w(t,r);return!(o&&(304===o.kind||310===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!A(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 40:a&&(i=!1),a=!0;break;case 72:i=!1;break;case 1:return!1}}function w(t,r){e.Debug.assert(58===re());var n=C.getStartPos();I();var i,a=M();switch(g(),a.escapedText){case"type":return 1===t&&E(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&T(n,a,t,r)}function I(){return u=C.scanJSDocToken()}function O(e){return re()===e&&(I(),!0)}function M(t){if(!e.tokenIsIdentifierOrKeyword(re()))return Se(72,!t,t||e.Diagnostics.Identifier_expected);var r=C.getTokenPos(),n=C.getTextPos(),i=ve(72,r);return i.escapedText=e.escapeLeadingUnderscores(C.getTokenText()),xe(i,n),I(),i}}t.parseJSDocTypeExpressionForTests=function(e,t,n){F(e,7,void 0,1),o=M("file.js",7,1,!1),C.setText(e,t,n),u=C.scan();var i=r(),a=s;return P(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){F(e,7,void 0,1),o={languageVariant:0,text:e};var n=a(t,r),i=s;return P(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=u,c=s.length,l=k,_=a(t,r);return _&&(_.parent=e),65536&b&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(n=o.jsDocDiagnostics).push.apply(n,s)),u=i,s.length=c,k=l,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(T=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),_(t,u,l),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function c(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,n,u,l){if(c(t,n,u,l=l||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=s(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,u)}(t,u);c(t,n,m,l),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,n,o,s,c,u,l,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),_(t,p,f),e.hasJSDocNodes(t))for(var g=0,y=t.jsDoc;go)r(t,!0,c,u,l,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_/im,h=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function v(t,r,n){var i=2===r.kind&&y.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;n.push(r.substring(o,a))}}d(n)}else u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}}function p(e,t){return m(o,e,t)}function m(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function g(t){for(var r=[],n=1;n=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([u]).join(" -> "))),{raw:t||D(n,c)};var l=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=j(t.compilerOptions,n,a,i),c=z(t.typeAcquisition||t.typingOptions,n,a,i);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=U(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?F(i,n):n;o=R(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,n,i,a,o){var s,c,u,l=B(a),_={onSetValidOptionKeyValueInParent:function(t,r,n){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t);var o="compilerOptions"===t?l:"typeAcquisition"===t?s||(s=J(a)):c||(c=J(a));o[r.name]=function t(r,n,i){if(A(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,n,e)}),function(e){return!!e}):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return V(r,n,i)}(r,i,n)},onSetValidOptionKeyValueInRoot:function(r,s,c,l){switch(r){case"extends":var _=a?F(a,i):i;return void(u=R(c,n,_,o,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,a){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=x(t,o,!0,(void 0===r&&(r={name:void 0,type:"object",elementOptions:b([{name:"compilerOptions",type:"object",elementOptions:b(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:b(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{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])}),r),_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:J(a));return{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(n,i,a,o,c);if(l.extendedConfigPath){s=s.concat([u]);var _=function(t,r,n,i,a,o){var s,c=h(r,function(e){return n.readFile(e)});t&&(t.extendedSourceFiles=[c.fileName]);if(c.parseDiagnostics.length)return void o.push.apply(o,c.parseDiagnostics);var u=e.getDirectoryPath(r),l=L(void 0,c,n,u,e.getBaseFileName(r),a,o);t&&c.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,c.extendedSourceFiles);if(M(l)){var _=e.convertToRelativePath(u,i,e.identity),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_,t)},p=function(t){f[t]&&(f[t]=e.map(f[t],d))},f=l.raw;p("include"),p("exclude"),p("files")}return l}(n,l.extendedConfigPath,i,a,s,c);if(_&&M(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t)};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options)}}return l}function R(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_does_not_exist,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}function B(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function j(t,r,n,i){var a=B(i);return K(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function J(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function z(t,r,n,i){var o=J(i),s=a(t);return K(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,n),o}function K(t,r,n,i,a,o){if(r){var s=b(t);for(var c in r){var u=s.get(c);u?i[u.name]=U(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function U(t,r,n,i){if(T(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,function(e){return U(t.element,e,n,i)}),function(e){return!!e})}(t,r,n,i):e.isString(a)?V(t,n,r):q(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,S(t)))}function V(t,r,n){return t.isFilePath&&""===(n=e.normalizePath(e.combinePaths(r,n)))&&(n="."),n}function q(e,t,r){if(!A(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(c(e))}}function W(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.libs=n.map(function(e){return e[0]}),e.libMap=e.createMapFromEntries(n),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information}],e.optionDeclarations=e.commonOptionsWithBuild.concat([{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,esnext:7}),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation},{name:"incremental",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation},{name:"tsBuildInfoFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),e.buildOpts=e.commonOptionsWithBuild.concat([{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=a,e.createOptionNameMap=s,e.createCompilerDiagnosticForInvalidCustomType=c,e.parseCustomTypeOption=l,e.parseListTypeOption=_,e.parseCommandLine=function(t,r){return d(o,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],t,r)},e.getOptionFromName=p,e.parseBuildCommand=function(t){var r,n=d(function(){return r||(r=s(e.buildOpts))},[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],t),i=n.options,a=n.fileNames,o=n.errors,c=i;return 0===a.length&&a.push("."),c.clean&&c.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),c.clean&&c.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),c.clean&&c.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),c.watch&&c.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:c,projects:a,errors:o}},e.printVersion=function(){e.sys.write(g(e.Diagnostics.Version_0,e.version)+e.sys.newLine)},e.printHelp=function(t,r){void 0===r&&(r="");var n=[],i=g(e.Diagnostics.Syntax_Colon_0,"").length,a=g(e.Diagnostics.Examples_Colon_0,"").length,o=Math.max(i,a),s=F(o-i);s+="tsc "+r+"["+g(e.Diagnostics.options)+"] ["+g(e.Diagnostics.file)+"...]",n.push(g(e.Diagnostics.Syntax_Colon_0,s)),n.push(e.sys.newLine+e.sys.newLine);var c=F(o);n.push(g(e.Diagnostics.Examples_Colon_0,F(o-a)+"tsc hello.ts")+e.sys.newLine),n.push(c+"tsc --outFile file.js file.ts"+e.sys.newLine),n.push(c+"tsc @args.txt"+e.sys.newLine),n.push(c+"tsc --build tsconfig.json"+e.sys.newLine),n.push(e.sys.newLine),n.push(g(e.Diagnostics.Options_Colon)+e.sys.newLine),o=0;for(var u=[],l=[],_=e.createMap(),d=0,p=t;d";u.push(v),l.push(g(e.Diagnostics.Insert_command_line_options_and_files_from_a_file)),o=Math.max(v.length,o);for(var b=0;b0)for(var D=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=d.filter(function(t){return e.endsWith(t,".json")}),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),function(e){return"^"+e+"$"});o=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(t)})){var _=s(t);c.has(_)||l.has(_)||l.set(_,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;cr.length){var f=d.substring(r.length+1);n=(e.forEach(e.supportedJSExtensions,function(t){return e.tryRemoveExtension(f,t)})||f)+".d.ts"}else n="index.d.ts"}}e.endsWith(n,".d.ts")||(n=O(n));var y=g(l,a),h="string"==typeof l.name&&"string"==typeof l.version?{name:l.name,subModuleName:n,version:l.version}:void 0;return s&&(h?t(o,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,u,e.packageIdToString(h)):t(o,e.Diagnostics.Found_package_json_at_0,u)),{packageJsonContent:l,packageId:h,versionPaths:y}}c&&s&&t(o,e.Diagnostics.File_0_does_not_exist,u),a.failedLookupLocations.push(u)}function z(r,n,i,c,u,l){var _;if(u)switch(r){case s.JavaScript:case s.Json:_=m(u,n,c);break;case s.TypeScript:_=p(u,n,c)||m(u,n,c);break;case s.DtsOnly:_=p(u,n,c);break;case s.TSConfig:_=function(e,t,r){return d(e,"tsconfig",t,r)}(u,n,c);break;default:return e.Debug.assertNever(r)}var f=function(r,n,i,o){var c=B(n,i,o);if(c){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case s.JavaScript:return".js"===t||".jsx"===t;case s.TSConfig:case s.Json:return".json"===t;case s.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case s.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,c);if(u)return a(u);o.traceEnabled&&t(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}return P(r===s.DtsOnly?s.TypeScript:r,n,i,o,!1)},g=_?!e.directoryProbablyExists(e.getDirectoryPath(_),c.host):void 0,y=i||!e.directoryProbablyExists(n,c.host),h=e.combinePaths(n,r===s.TSConfig?"tsconfig":"index");if(l&&(!_||e.containsPath(n,_))){var v=e.getRelativePathFromDirectory(n,_||h,!1);c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.version,e.version,v);var b=H(r,v,n,l.paths,f,g||y,c);if(b)return o(b.value)}var D=_&&o(f(r,_,g,c));return D||L(r,h,y,c)}function K(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function U(e,t,r,n,i,a){return V(e,t,r,n,!1,i,a)}function V(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var o=Q(c,r,n,i);return o||Z(q(t,r,n,i,a))}})}function q(r,n,i,a,o){var c=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(c,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var l=o?void 0:W(r,n,c,u,a);if(l)return l;if(r===s.TypeScript||r===s.DtsOnly){var _=e.combinePaths(c,"@types"),d=u;return u&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),d=!1),W(s.DtsOnly,function(r,n){var i=Y(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,a),_,d,a)}}function W(r,i,o,s,c){var u,l,_,d=e.normalizePath(e.combinePaths(o,i)),p=J(d,"",!s,c);if(p){u=p.packageJsonContent,l=p.packageId,_=p.versionPaths;var f=L(r,d,!s,c);if(f)return a(f);var m=z(r,d,!s,c,u,_);return n(l,m)}var g=function(e,t,r,i){var a=L(e,t,r,i)||z(e,t,r,i,u,_);return n(l,a)},y=K(i),h=y.packageName,v=y.rest;if(""!==v){var b=e.combinePaths(o,h),D=J(b,v,!s,c);if(D&&(l=D.packageId,_=D.versionPaths),_){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,_.version,e.version,v);var x=s&&e.directoryProbablyExists(b,c.host),S=H(r,v,b,_.paths,g,!x,c);if(S)return S.value}}return g(r,d,!s,c)}function H(r,n,i,o,s,c,u){var l=e.matchPatternOrExact(e.getOwnKeys(o),n);if(l){var _=e.isString(l)?void 0:e.matchedText(l,n),d=e.isString(l)?l:e.patternText(l);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,d),{value:e.forEach(o[d],function(n){var o=_?n.replace("*",_):n,l=e.normalizePath(e.combinePaths(i,o));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var d=e.tryGetExtensionFromPath(l);if(void 0!==d){var p=B(l,c,u);if(void 0!==p)return a({path:p,ext:d})}return s(r,l,c||!e.directoryProbablyExists(e.getDirectoryPath(l),u.host),u)})}}}e.nodeModuleNameResolver=N,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=w,e.parsePackageName=K;var G="__";function Y(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,G);if(r!==t)return r.slice(1)}return t}function X(t){return e.stringContains(t,G)?"@"+t.replace(G,e.directorySeparator):t}function Q(r,n,i,a){var o,s=r&&r.get(i);if(s)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),(o=a.failedLookupLocations).push.apply(o,s.failedLookupLocations),{value:s.resolvedModule&&{path:s.resolvedModule.resolvedFileName,originalPath:s.resolvedModule.originalPath||!0,extension:s.resolvedModule.extension,packageId:s.resolvedModule.packageId}}}function $(t,n,i,a,o,c){var u=[],_={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:u},d=e.getDirectoryPath(n),p=f(s.TypeScript)||f(s.JavaScript);return l(p&&p.value,!1,u);function f(r){var n=x(r,t,d,M,_);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(d,t));return Z(M(r,i,!1,_))}var a=o&&o.getOrCreateCacheForModuleName(t,c),u=e.forEachAncestorDirectory(d,function(n){var i=Q(a,t,n,_);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Z(M(r,o,!1,_))});return u||(r===s.TypeScript?function(e,t,r){return V(s.DtsOnly,e,t,r,!0,void 0,void 0)}(t,d,_):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+Y(e)},e.mangleScopedPackageName=Y,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?X(r):t},e.unmangleScopedPackageName=X,e.classicNameResolver=$,e.loadModuleFromGlobalCache=function(n,i,a,o,c){var u=r(a,o);u&&t(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var _=[],d={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:_};return l(q(s.DtsOnly,n,c,d,!1),!0,_)}}(c||(c={})),function(e){var t;function r(t){return t.body?function t(n){switch(n.kind){case 241:case 242:return 0;case 243:if(e.isEnumConst(n))return 2;break;case 249:case 248:if(!e.hasModifier(n,1))return 0;break;case 245:var i=0;return e.forEachChild(n,function(r){var n=t(r);switch(n){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(n)}}),i;case 244:return r(n);case 72:if(n.isInJSDocNamespace)return 0}return 1}(t.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var n=e.identity,a=function(){var t,a,_,f,m,g,y,h,v,b,D,x,S,T,C,E,k,N,A,F,P,w,I,O,M=0,L={flags:1},R={flags:1},B=0;function j(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,n){t=r,a=n,_=e.getEmitScriptTarget(a),P=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,n),I=e.createUnderscoreEscapedMap(),M=0,O=t.isDeclarationFile,w=e.objectAllocator.getSymbolConstructor(),t.locals||(Pe(t),t.symbolCount=M,t.classifiableNames=I,function(){if(!v)return;for(var r=m,n=h,i=y,a=f,o=D,s=0,c=v;s=109&&r.originalKeywordKind<=117)||e.isIdentifierName(r)||4194304&r.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(j(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r)))}function Ee(r,n){if(n&&72===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function ke(e){P&&Ee(e,e.name)}function Ne(r){if(_<2&&284!==y.kind&&244!==y.kind&&!e.isFunctionLike(y)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Ae(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Fe(r,n,a,o){!function(r,n,a){var o=e.createFileDiagnostic(t,n.pos,n.end-n.pos,a);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,i({},o,{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:a.end},o)}function Pe(r){if(r){r.parent=f;var i=P;if(function(r){switch(r.kind){case 72:if(r.isInJSDocNamespace){for(var n=r.parent;n&&!e.isJSDocTypeAlias(n);)n=n.parent;Te(n,524288,67897832);break}case 100:return D&&(e.isExpression(r)||276===f.kind)&&(r.flowNode=D),Ce(r);case 189:case 190:D&&Z(r)&&(r.flowNode=D),e.isSpecialPropertyDeclaration(r)&&function(t){100===t.expression.kind?Re(t):e.isPropertyAccessEntityNameExpression(t)&&284===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Be(t,t.parent):je(t))}(r),e.isInJSFile(r)&&t.commonJsModuleIndicator&&e.isModuleExportsPropertyAccessExpression(r)&&!u(y,"module")&&q(t.locals,void 0,r.expression,134217729,67220414);break;case 204:var i=e.getAssignmentDeclarationKind(r);switch(i){case 1:Le(r);break;case 2:!function(r){if(!Me(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||m===t&&s(t,n))return;var i=e.exportAssignmentIsAlias(r)?2097152:1049092;q(t.symbol.exports,t.symbol,r,67108864|i,0)}(r);break;case 3:Be(r.left,r);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;Ke(t.expression,t,!1)}(r);break;case 4:Re(r);break;case 5:!function(r){var n=r.left,i=Ue(n.expression);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(i))return;r.left.parent=r,r.right.parent=r,e.isIdentifier(n.expression)&&m===t&&c(t,n.expression)?Le(r):je(n)}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){P&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ee(t,t.left)}(r);case 274:return function(e){P&&e.variableDeclaration&&Ee(e,e.variableDeclaration.name)}(r);case 198:return function(r){if(P&&72===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){P&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(j(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 203:return function(e){P&&Ee(e,e.operand)}(r);case 202:return function(e){P&&(44!==e.operator&&45!==e.operator||Ee(e,e.operand))}(r);case 231:return function(t){P&&Ae(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 233:return function(t){P&&a.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ae(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 178:return void(b=!0);case 163:break;case 150:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),q(r.locals,void 0,t,262144,67635688)):be(t,262144,67635688)}else if(176===t.parent.kind){var n=function(t){var r=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),q(n.locals,void 0,t,262144,67635688)):Se(t,262144,U(t))}else be(t,262144,67635688)}(r);case 151:return We(r);case 237:return qe(r);case 186:return r.flowNode=D,qe(r);case 154:case 153:return function(e){return He(e,4|(e.questionToken?16777216:0),0)}(r);case 275:case 276:return He(r,4,0);case 278:return He(r,8,68008959);case 160:case 161:case 162:return be(r,131072,0);case 156:case 155:return He(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:67212223);case 239:return function(r){t.isDeclarationFile||4194304&r.flags||e.isAsyncFunction(r)&&(F|=1024);ke(r),P?(Ne(r),Te(r,16,67219887)):be(r,16,67219887)}(r);case 157:return be(r,16384,0);case 158:return He(r,32768,67154879);case 159:return He(r,65536,67187647);case 165:case 294:case 298:case 166:return function(t){var r=J(131072,U(t));z(r,t,131072);var n=J(2048,"__type");z(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 168:case 297:case 181:return function(e){return Se(e,2048,"__type")}(r);case 188:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),P)for(var i=e.createUnderscoreEscapedMap(),a=0,o=r.properties;a147){var o=f;f=r;var _=he(r);0===_?H(r):function(t,r){var i=m,a=g,o=y;1&r?(197!==t.kind&&(g=m),m=y=t,32&r&&(m.locals=e.createSymbolTable()),ve(m)):2&r&&((y=t).locals=void 0);if(4&r){var s=n,c=D,u=x,l=S,_=T,d=N,p=A,f=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);f||(D={flags:2},144&r&&(D.container=t)),T=f||157===t.kind?re():void 0,x=void 0,S=void 0,N=void 0,A=!1,n=e.identity,H(t),t.flags&=-1409,!(1&D.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,A&&(t.flags|=256)),284===t.kind&&(t.flags|=F),T&&(ae(T,D),D=le(T),157===t.kind&&(t.returnFlowNode=D)),f||(D=c),x=u,S=l,T=_,N=d,A=p,n=s}else 64&r?(b=!1,H(t),t.flags=b?64|t.flags:-65&t.flags):H(t);m=i,g=a,y=o}(r,_),f=o}else if(!O&&0==(536870912&r.transformFlags)){B|=l(r,0);var o=f;1===r.kind&&(f=r),we(r),f=o}P=i}}function we(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=163&&e<=183)return-2;switch(e){case 191:case 192:case 187:return 536875008;case 244:return 537168896;case 151:return 536870912;case 197:return 537371648;case 196:case 239:return 537373696;case 238:return 536944640;case 240:case 209:return 536888320;case 157:return 537372672;case 156:case 158:case 159:return 537372672;case 120:case 135:case 146:case 132:case 138:case 136:case 123:case 139:case 106:case 150:case 153:case 155:case 160:case 161:case 162:case 241:case 242:return-2;case 188:return 536896512;case 274:return 536879104;case 184:case 185:return 536875008;case 194:case 212:case 313:case 195:case 98:return 536870912;case 189:case 190:default:return 536870912}}function p(t,r){r.parent=t,e.forEachChild(r,function(e){return p(r,e)})}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),a(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=s,e.computeTransformFlagsForNode=l,e.getTransformFlagsSubtreeExclusions=d}(c||(c={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]){d[t.id]=t;var r=y(t.symbol);if(!r){if(524288&t.flags){var n=t,a=n.objectFlags;4&a&&function(t){f(t.target),e.forEach(t.typeArguments,f)}(t),32&a&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&a&&(g(o=t),e.forEach(o.typeParameters,f),e.forEach(i(o),f),f(o.thisType)),24&a&&g(n)}var o;262144&t.flags&&function(e){f(u(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o0?e.createPropertyAccess(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?(_=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(_=e.createLiteral(+s)),_||((_=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(n,i-1),_)}(i,i.length-1)}(r,t,n)})},symbolToTypeParameterDeclarations:function(e,r,n,i){return t(r,n,i,function(t){return b(e,t)})},symbolToParameterDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return y(e,t)})},typeParameterToDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return g(e,t)})}};function t(t,r,i,a){e.Debug.assert(void 0===t||0==(8&t.flags));var o={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},getCurrentDirectory:n.getCurrentDirectory&&function(){return n.getCurrentDirectory()}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=a(o);return o.encounteredError?void 0:s}function a(t){return t.truncating?t.truncating:t.truncating=!(1&t.flags)&&t.approximateLength>e.defaultMaximumTruncationLength}function o(t,r){m&&m.throwIfCancellationRequested&&m.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,t){if(1&t.flags)return r.approximateLength+=3,e.createKeywordTypeNode(120);if(2&t.flags)return e.createKeywordTypeNode(143);if(4&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(138);if(8&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(135);if(64&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(146);if(16&t.flags)return r.approximateLength+=7,e.createKeywordTypeNode(123);if(1024&t.flags&&!(1048576&t.flags)){var i=On(t.symbol),g=S(i,r,67897832),y=Na(i)===t?g:M(g,e.createTypeReferenceNode(e.symbolName(t.symbol),void 0));return y}if(1056&t.flags)return S(t.symbol,r,67897832);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(256&t.flags)return r.approximateLength+=(""+t.value).length,e.createLiteralTypeNode(e.createLiteral(t.value));if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.createLiteralTypeNode(e.createLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,"true"===t.intrinsicName?e.createTrue():e.createFalse();if(8192&t.flags){if(!(1048576&r.flags)){if(ti(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,S(t.symbol,r,67220415);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.createTypeOperatorNode(142,e.createKeywordTypeNode(139))}if(16384&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(106);if(32768&t.flags)return r.approximateLength+=9,e.createKeywordTypeNode(141);if(65536&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(96);if(131072&t.flags)return r.approximateLength+=5,e.createKeywordTypeNode(132);if(4096&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(139);if(67108864&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(136);if(262144&t.flags&&t.isThisType)return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.createThis();var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),function(t){var n=t.typeArguments||e.emptyArray;if(t.target===$e||t.target===Ze){if(2&r.flags){var i=o(n[0],r);return e.createTypeReferenceNode(t.target===$e?"Array":"ReadonlyArray",[i])}var a=o(n[0],r),s=e.createArrayTypeNode(a);return t.target===$e?s:e.createTypeOperatorNode(133,s)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!ti(t.symbol,r.enclosingDeclaration))return I(t);var c=t.target.outerTypeParameters,l=0,_=void 0;if(c)for(var d=c.length;l0){var v=(t.target.typeParameters||e.emptyArray).length;h=u(n.slice(l,v),r)}var b=r.flags;r.flags|=16;var D=S(t.symbol,r,67897832,h);return r.flags=b,_?M(_,D):D}if(n.length>0){var x=Ms(t),T=u(n.slice(0,x),r),C=t.target.hasRestElement;if(T){for(var l=t.target.minLength;l0){var w=e.createUnionOrIntersectionTypeNode(1048576&t.flags?173:174,P);return w}r.encounteredError||262144&r.flags||(r.encounteredError=!0)}else r.encounteredError=!0;function I(t){var n,i=""+t.id,a=t.symbol;if(a){var o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags;if(n=(o?"+":"")+l(a),lm(a.valueDeclaration)){var c=t===pm(a)?67897832:67220415;return S(a,r,c)}if(32&a.flags&&!ta(a)&&!(209===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t=!!(8192&a.flags)&&e.some(a.declarations,function(t){return e.hasModifier(t,32)}),n=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,function(e){return 284===e.parent.kind||245===e.parent.kind}));if(t||n)return(!!(4096&r.flags)||r.visitedTypes&&r.visitedTypes.has(i))&&(!(8&r.flags)||ti(a,r.enclosingDeclaration))}())return S(a,r,67220415);if(r.visitedTypes&&r.visitedTypes.has(i)){var u=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 177!==e.kind});if(242===r.kind)return In(r)}}(t);return u?S(u,r,67897832):s(r)}r.visitedTypes||(r.visitedTypes=e.createMap()),r.symbolDepth||(r.symbolDepth=e.createMap());var _=r.symbolDepth.get(n)||0;if(_>10)return s(r);r.symbolDepth.set(n,_+1),r.visitedTypes.set(i,!0);var d=O(t);return r.visitedTypes.delete(i),r.symbolDepth.set(n,_),d}return O(t)}function O(t){if(bo(t))return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0;n=mo(t)?e.createTypeOperatorNode(o(go(t),r)):o(_o(t),r);var s=f(lo(t),r,n),c=o(po(t),r),u=e.createMappedTypeNode(i,s,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=Do(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length){var i=n.callSignatures[0],u=d(i,165,r);return u}if(1===n.constructSignatures.length&&!n.callSignatures.length){var i=n.constructSignatures[0],u=d(i,166,r);return u}}var l=r.flags;r.flags|=4194304;var p=function(t){if(a(r))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],i=0,o=t.callSignatures;i2)return[o(t[0],r),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),o(t[t.length-1],r)]}for(var i=[],s=0,c=0,u=t;c0)),a}function b(t,r){var n,i=eh(t);return 524384&i.flags&&(n=e.createNodeArray(e.map(da(t),function(e){return g(e,r)}))),n}function D(t,r,n){e.Debug.assert(t&&0<=r&&r1?g(a,a.length-1,1):void 0,c=i||D(a,0,r),u=x(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(F)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.createLiteralTypeNode(e.createLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s){var _=e.isIdentifier(s)?s:s.right;_.typeArguments=void 0}return e.createImportTypeNode(l,s,c,o)}var d=function t(r){return e.isIndexedAccessTypeNode(r.objectType)?t(r.objectType):r}(s),p=d.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(l,p,c,o),d.indexType)}var f=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.createTypeQueryNode(f);var _=e.isIdentifier(f)?f:f.right,m=_.typeArguments;return _.typeArguments=void 0,e.createTypeReferenceNode(f,m);function g(t,n,a){var o=n===t.length-1?i:D(t,n,r),s=t[n];0===n&&(r.flags|=16777216);var c=yi(s,r);r.approximateLength+=c.length+1,0===n&&(r.flags^=16777216);var u=t[n-1];if(!(16&r.flags)&&u&&qa(u)&&qa(u).get(s.escapedName)===s){var l=g(t,n-1,a);return e.isIndexedAccessTypeNode(l)?e.createIndexedAccessTypeNode(l,e.createLiteralTypeNode(e.createLiteral(c))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(l,o),e.createLiteralTypeNode(e.createLiteral(c)))}var _=e.setEmitFlags(e.createIdentifier(c,o),16777216);if(_.symbol=s,n>a){var l=g(t,n-1,a);return e.isEntityName(l)?e.createQualifiedName(l,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function T(t,r,n,i){var a=v(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=D(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=yi(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}}(),V=e.createSymbolTable(),q=Ir(4,"undefined");q.declarations=[];var W=Ir(1536,"globalThis",8);W.exports=V,W.valueDeclaration=e.createNode(72),W.valueDeclaration.escapedText="globalThis",V.set(W.escapedName,W);var H,G=Ir(4,"arguments"),Y=Ir(4,"require"),X={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+T},getTypeCount:function(){return S},isUndefinedSymbol:function(e){return e===q},isArgumentsSymbol:function(e){return e===G},isUnknownSymbol:function(e){return e===oe},getMergedSymbol:wn,getDiagnostics:Sh,getGlobalDiagnostics:function(){return Th(),cr.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){return(r=e.getParseTreeNode(r))?function(t,r){if(t=t.exportSymbol||t,72===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=Cg(r);if(Rn(Vr(r).resolvedSymbol)===t)return n}return aa(t)}(t,r):_e},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Wr(n.locals,r,67220415),o=Wr(qa(i.symbol),r,67220415);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:Na,getPropertiesOfType:Co,getPropertyOfType:function(t,r){return Ko(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return Ci(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Ho,getSignaturesOfType:Vo,getIndexTypeOfType:Go,getBaseTypes:va,getBaseTypeOfLiteralType:Xl,getWidenedType:h_,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Du(r):_e},getParameterType:Sm,getPromisedTypeOfPromise:Yg,getReturnTypeOfSignature:ps,getNullableType:c_,getNonNullableType:l_,typeToTypeNode:U.typeToTypeNode,indexInfoToIndexSignatureDeclaration:U.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:U.signatureToSignatureDeclaration,symbolToEntityName:U.symbolToEntityName,symbolToExpression:U.symbolToExpression,symbolToTypeParameterDeclarations:U.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:U.symbolToParameterDeclaration,typeParameterToDeclaration:U.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return(t=e.getParseTreeNode(t))?function(t,r){if(8388608&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!qr(t)&&o(t.locals,r),t.kind){case 284:if(!e.isExternalOrCommonJsModule(t))break;case 244:o(In(t).exports,2623475&r);break;case 243:o(In(t).exports,8&r);break;case 209:var n=t.name;n&&a(t.symbol,r);case 240:case 241:i||o(qa(In(t)),67897832&r);break;case 196:var s=t.name;s&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(G,r),i=e.hasModifier(t,32),t=t.parent}o(V,r)}(),n.delete("this"),Qo(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,r):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?Ph(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&276===e.kind)return yn(e.name,69317567)}(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?sn(e.parent.parent,e):yn(e.propertyName||e.name,70107135)}(r):void 0},getExportSymbolOfSymbol:function(e){return wn(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?wh(t):_e},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=function t(r){if(e.Debug.assert(188===r.kind||187===r.kind),227===r.parent.kind){var n=Ry(r.parent.expression,r.parent.awaitModifier);return og(r,n||_e)}if(204===r.parent.kind){var n=Cg(r.parent.right);return og(r,n||_e)}if(275===r.parent.kind){var i=t(r.parent.parent);return ig(i||_e,r.parent)}e.Debug.assert(187===r.parent.kind);var a=t(r.parent),o=By(a||_e,r.parent,!1,!1)||_e;return ag(r.parent,a,r.parent.elements.indexOf(r),o||_e)}(t.parent.parent);return r&&Ko(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return ui(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return li(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return ci(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return di(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return ui(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return li(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return ci(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return di(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:Oh,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Ur(t).containingType.types,function(e){return Ko(e,t.escapedName)});if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){for(var t,r=e;r=Ur(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r?xp(r):void 0},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?mp(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&_p(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&hp(r)},isContextSensitive:Wu,getFullyQualifiedName:gn,getResolvedSignature:function(e,t,r){return Q(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return Q(e,t,r,16)},getExpandedParameters:$a,hasEffectiveRestParameter:Nm,getConstantValue:function(t){var r=e.getParseTreeNode(t,ev);return r?tv(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 189:return Cf(e,98===e.expression.kind,t,h_(kg(e.expression)));case 148:return Cf(e,!1,t,h_(kg(e.left)));case 183:return Cf(e,!1,t,Du(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(t,r,n){return Cf(t,189===t.kind&&98===t.expression.kind,n.escapedName,r)&&(!(8192&n.flags)||(a=Vo(l_(Ci(i=r,n.escapedName)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=ls(e);return!t||rl(i,function(e,t,r){if(!e.typeParameters)return t;var n=T_(e.typeParameters,e,0);return B_(n.inferences,r,t),Ku(t,vs(e,W_(n)))}(e,t,i))})));var i,a}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?os(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Hh(r):void 0},getImmediateAliasedSymbol:jp,getAliasedSymbol:dn,getEmitResolver:function(e,t){return Sh(e,t),K},getExportsOfModule:En,getExportsAndPropertiesOfModule:function(t){var r=En(t),n=Sn(t);return n!==t&&e.addRange(r,Co(aa(n))),r},getSymbolWalker:e.createGetSymbolWalker(function(e){return ms(e)||ce},ds,ps,va,Do,aa,G_,Wo,ko,ch),getAmbientModules:function(){return We||(We=[],V.forEach(function(e,t){r.test(t)&&We.push(e)})),We},getJsxIntrinsicTagNamesAt:function(r){var n=Hp(t.IntrinsicElements,r);return n?Co(n):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&es(r)},tryGetMemberInModuleExports:function(t,r){return kn(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=kn(e,t);if(r)return r;var n=Sn(t);if(n!==t){var i=aa(n);return 131068&i.flags?void 0:Ko(i,e)}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return Zo(e,!1)},getApparentType:Bo,getUnionType:Ac,createAnonymousType:Yn,createSignature:Ya,createSymbol:Ir,createIndexInfo:Es,getAnyType:function(){return ce},getStringType:function(){return ye},getNumberType:function(){return he},createPromiseType:Mm,createArrayType:hc,getElementTypeOfArrayType:Kl,getBooleanType:function(){return Te},getFalseType:function(e){return e?be:De},getTrueType:function(e){return e?xe:Se},getVoidType:function(){return Ee},getUndefinedType:function(){return pe},getNullType:function(){return me},getESSymbolType:function(){return Ce},getNeverType:function(){return ke},isSymbolAccessible:ri,getObjectFlags:e.getObjectFlags,isArrayType:Jl,isTupleType:e_,isArrayLikeType:Ul,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some(function(t){var r=t.name&&Rc(t.name),n=r&&Ra(r)?Ka(r):void 0,i=void 0===n?void 0:Ci(e,n);return!!i&&Yl(i)&&!rl(wh(t),i)})},getAllPossiblePropertiesOfTypes:function(t){var r=Ac(t);if(!(1048576&r.flags))return Oh(r);for(var n=e.createSymbolTable(),i=0,a=t;i>",0,ce),Pt=Ya(void 0,void 0,void 0,e.emptyArray,ce,void 0,0,!1,!1),wt=Ya(void 0,void 0,void 0,e.emptyArray,_e,void 0,0,!1,!1),It=Ya(void 0,void 0,void 0,e.emptyArray,ce,void 0,0,!1,!1),Ot=Ya(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,!1,!1),Mt=Es(ye,!0),Lt=e.createMap(),Rt=e.createMap(),Bt=0,jt=0,Jt=0,zt=!1,Kt=hu(""),Ut=hu(0),Vt=hu({negative:!1,base10Value:"0"}),qt=[],Wt=[],Ht=[],Gt=0,Yt=10,Xt=[],Qt=[],$t=[],Zt=[],er=[],tr=[],rr=[],nr=[],ir=[],ar=[],or=[],sr=[],cr=e.createDiagnosticCollection(),ur=e.createMultiMap();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(Nt||(Nt={}));var lr,_r,dr,pr,fr,mr,gr,yr,hr,vr=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),br=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}),Dr=e.createMapFromTemplate({string:ye,number:he,bigint:ve,boolean:Te,symbol:Ce,undefined:pe}),xr=Ac(e.arrayFrom(vr.keys(),hu)),Sr=e.createMap(),Tr=e.createMap(),Cr=e.createMap(),Er=e.createMap(),kr=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.JSDocTypeReference=6]="JSDocTypeReference"}(dr||(dr={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"}(pr||(pr={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(fr||(fr={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(mr||(mr={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(gr||(gr={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(yr||(yr={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(hr||(hr={}));var Nr=e.createSymbolTable();Nr.set(q.escapedName,q);var Ar=e.and(mh,function(t){return!e.isAccessor(t)});return function(){for(var t=0,r=n.getSourceFiles();t=5||e.addRelatedInfo(a,e.length(a.relatedInformation)?e.createDiagnosticForNode(c,e.Diagnostics.and_here):e.createDiagnosticForNode(c,e.Diagnostics._0_was_also_declared_here,n))}}function zr(e,t){t.forEach(function(t,r){var n=e.get(r);e.set(r,n?Br(n,t):t)})}function Kr(t){var r=t.parent;if(r.symbol.declarations[0]===r)if(e.isGlobalScopeAugmentation(r))zr(V,r.symbol.exports);else{var n=bn(t,t,4194304&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!n)return;1920&(n=Sn(n)).flags?n=Br(n,r.symbol):Pr(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(r.symbol.declarations.length>1)}function Ur(e){if(33554432&e.flags)return e;var t=l(e);return Qt[t]||(Qt[t]={})}function Vr(e){var t=u(e);return $t[t]||($t[t]={flags:0})}function qr(t){return 284===t.kind&&!e.isExternalOrCommonJsModule(t)}function Wr(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=dn(i);if(a===oe||a.flags&n)return i}}}}function Hr(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r);if(i!==a){if(w&&(i.externalModuleIndicator||a.externalModuleIndicator)||!F.outFile&&!F.out||Y_(r)||4194304&t.flags)return!0;if(u(r,t))return!0;var o=n.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=r.pos){if(186===t.kind){var s=e.getAncestor(r,186);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=2&&e.isParameter(_)&&v.body&&l.valueDeclaration.pos>=v.body.pos&&l.valueDeclaration.end<=v.body.end?h=!1:1&l.flags&&(h=151===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter))}}else 175===t.kind&&(h=_===t.trueType);if(h)break e;l=void 0}switch(t.kind){case 284:if(!e.isExternalOrCommonJsModule(t))break;y=!0;case 244:var b=In(t).exports;if(284===t.kind||e.isAmbientModule(t)){if(l=b.get("default")){var D=e.getLocalSymbolForExportDefault(l);if(D&&l.flags&n&&D.escapedName===r)break e;l=void 0}var x=b.get(r);if(x&&2097152===x.flags&&e.getDeclarationOfKind(x,257))break}if("default"!==r&&(l=c(b,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 243:if(l=c(In(t).exports,r,8&n))break e;break;case 154:case 153:if(e.isClassLike(t.parent)&&!e.hasModifier(t,32)){var S=jn(t.parent);S&&S.locals&&c(S.locals,r,67220415&n)&&(p=t)}break;case 240:case 209:case 241:if(l=c(In(t).members||N,r,67897832&n)){if(!$r(l,t)){l=void 0;break}if(_&&e.hasModifier(_,32))return void Pr(g,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(209===t.kind&&32&n){var T=t.name;if(T&&r===T.escapedText){l=t.symbol;break e}}break;case 211:if(_===t.expression&&86===t.parent.token){var C=t.parent.parent;if(e.isClassLike(C)&&(l=c(In(C).members,r,67897832&n)))return void(i&&Pr(g,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 149:if(f=t.parent.parent,(e.isClassLike(f)||241===f.kind)&&(l=c(In(f).members,r,67897832&n)))return void Pr(g,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 197:if(F.target>=2)break;case 156:case 157:case 158:case 159:case 239:if(3&n&&"arguments"===r){l=G;break e}break;case 196:if(3&n&&"arguments"===r){l=G;break e}if(16&n){var E=t.name;if(E&&r===E.escapedText){l=t.symbol;break e}}break;case 152:t.parent&&151===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||240===t.parent.kind)&&(t=t.parent);break;case 309:case 302:t=e.getJSDocHost(t)}Xr(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(284===_.kind),_.commonJsModuleIndicator&&"exports"===r&&n&_.symbol.flags))return _.symbol;s||(l=c(V,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return Y;if(l){if(i){if(p){var k=p.name;return void Pr(g,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(k),Qr(a))}if(g&&(2&n||(32&n||384&n)&&67220415==(67220415&n))){var A=Rn(l);(2&A.flags||32&A.flags||384&A.flags)&&function(t,r){e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags));var n=e.find(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||243===t.kind||e.isInJSFile(t)&&!!e.getJSDocEnumTag(t)});if(void 0===n)return e.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");if(!(4194304&n.flags||Hr(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=Pr(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=Pr(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=Pr(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),F.preserveConstEnums&&(i=Pr(r,e.Diagnostics.Class_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(A,g)}if(l&&y&&67220415==(67220415&n)&&!(2097152&m.flags)){var P=wn(l);e.length(P.declarations)&&e.every(P.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})&&Pr(g,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}}return l}if(i&&(!g||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||Eh(t)||Y_(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=In(a.parent);if(!o)break;var s=aa(o);if(Ko(s,r))return Pr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Qr(n),ci(o)),!0;if(a===i&&!e.hasModifier(a,32)){var c=Na(o).thisType;if(Ko(c,r))return Pr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Qr(n)),!0}}a=a.parent}return!1}(g,r,a)||Zr(g)||function(t,r,n){var i=1920|(e.isInJSFile(t)?67220415:0);if(n===i){var a=_n(Gr(t,r,67897832&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText,c=Ko(Na(a),s);if(c)return Pr(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Pr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(67220415&n){if("any"===r||"string"===r||"number"===r||"boolean"===r||"never"===r)return Pr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=_n(Gr(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return Pr(t,a,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(111127&n){var i=_n(Gr(t,r,1024,void 0,void 0,!1));if(i)return Pr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){var i=_n(Gr(t,r,1536,void 0,void 0,!1));if(i)return Pr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)||function(t,r,n){if(67897448&n){var i=_n(Gr(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Pr(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)))){var w=void 0;if(u&&Gt=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Pr(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,a),i}if(F.esModuleInterop){var o=r.parent;if(e.isImportDeclaration(o)&&e.getNamespaceDeclarationNode(o)||e.isImportCall(o)){var s=aa(i),c=Uo(s,0);if(c&&c.length||(c=Uo(s,1)),c&&c.length){var u=ym(s,i,t),l=Ir(i.flags,i.escapedName);l.declarations=i.declarations?i.declarations.slice():[],l.parent=i.parent,l.target=i,l.originatingImport=o,i.valueDeclaration&&(l.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(l.constEnumOnlyModule=!0),i.members&&(l.members=e.cloneMap(i.members)),i.exports&&(l.exports=e.cloneMap(i.exports));var _=Do(u);return l.type=Yn(l,_.members,e.emptyArray,e.emptyArray,_.stringIndexInfo,_.numberIndexInfo),l}}}}return i}function Cn(e){return void 0!==e.exports.get("export=")}function En(e){return Qo(An(e))}function kn(e,t){var r=An(t);if(r)return r.get(e)}function Nn(e){return 32&e.flags?Va(e,"resolvedExports"):1536&e.flags?An(e):e.exports||N}function An(e){var t=Ur(e);return t.resolvedExports||(t.resolvedExports=Pn(e))}function Fn(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&_n(o)!==_n(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function Pn(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=e.cloneMap(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function _i(e){return void 0===e&&(e=0),9469291&e}function di(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),U.typeToTypeNode(t.type,r,70222336|_i(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function pi(e){return 8===e?"private":16===e?"protected":"public"}function fi(t){return t&&t.parent&&245===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function mi(t){return 284===t.kind||e.isAmbientModule(t)}function gi(t,r){var n=t.nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,F.target)||Lp(i)?i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+yi(n.symbol,r)+"]"}}function yi(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],mi)!==e.findAncestor(r.enclosingDeclaration,mi)))return"default";if(t.declarations&&t.declarations.length){var n=t.declarations[0],i=e.getNameOfDeclaration(n);if(i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(2048&e.getCheckFlags(t))&&t.nameType&&384&t.nameType.flags){var a=gi(t,r);if(void 0!==a)return a}return e.declarationNameToString(i)}if(n.parent&&237===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 209:case 196:case 197:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),209===n.kind?"(Anonymous class)":"(Anonymous function)"}}var o=gi(t,r);return void 0!==o?o:e.symbolName(t)}function hi(t){if(t){var r=Vr(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 302:case 309:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 186:return hi(t.parent.parent);case 237:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 244:case 240:case 241:case 242:case 239:case 243:case 248:if(e.isExternalModuleAugmentation(t))return!0;var r=Ti(t);return 1&e.getCombinedModifierFlags(t)||248!==t.kind&&284!==r.kind&&4194304&r.flags?hi(r):qr(r);case 154:case 153:case 158:case 159:case 156:case 155:if(e.hasModifier(t,24))return!1;case 157:case 161:case 160:case 162:case 151:case 245:case 165:case 166:case 168:case 164:case 169:case 170:case 173:case 174:case 177:return hi(t.parent);case 250:case 251:case 253:return!1;case 150:case 284:case 247:return!0;case 254:default:return!1}}()),r.isVisible}return!1}function vi(t,r){var n,i;return t.parent&&254===t.parent.kind?n=Gr(t,t.escapedText,70107135,void 0,t,!1):257===t.parent.kind&&(n=cn(t.parent,70107135)),n&&function t(n){e.forEach(n,function(n){var a=tn(n)||n;if(r?Vr(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,a)),e.isInternalModuleImportEqualsDeclaration(n)){var o=n.moduleReference,s=ch(o),c=Gr(n,s.escapedText,68009983,void 0,void 0,!1);c&&t(c.declarations)}})}(n.declarations),i}function bi(e,t){var r=Di(e,t);if(r>=0){for(var n=qt.length,i=r;i=0;r--){if(xi(qt[r],Ht[r]))return-1;if(qt[r]===e&&Ht[r]===t)return r}return-1}function xi(t,r){switch(r){case 0:return!!Ur(t).type;case 5:return!!Vr(t).resolvedEnumType;case 2:return!!Ur(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!Ur(t).resolvedJSDocType}return e.Debug.assertNever(r)}function Si(){return qt.pop(),Ht.pop(),Wt.pop()}function Ti(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 237:case 238:case 253:case 252:case 251:case 250:return!1;default:return!0}}).parent}function Ci(e,t){var r=Ko(e,t);return r?aa(r):void 0}function Ei(e){return e&&0!=(1&e.flags)}function ki(e){var t=In(e);return t&&Ur(t).type||Bi(e,!1)}function Ni(t){return 149===t.kind&&!e.isStringOrNumericLiteralLike(t.expression)}function Ai(t,r,n){if(131072&(t=Sd(t,function(e){return!(98304&e.flags)})).flags)return Oe;if(1048576&t.flags)return Td(t,function(e){return Ai(e,r,n)});var i=Ac(e.map(r,Rc));if(qc(t)||Wc(i)){if(131072&i.flags)return t;var a=Et||(Et=ec("Pick",524288,e.Diagnostics.Cannot_find_global_type_0)),o=Ct||(Ct=ec("Exclude",524288,e.Diagnostics.Cannot_find_global_type_0));return a&&o?Rs(a,[t,Rs(o,[Jc(t),i])]):_e}for(var s=e.createSymbolTable(),c=0,u=Co(t);c=2?gc(ce):at;var s=Dc(e.map(i,function(t){return e.isOmittedExpression(t)?ce:Vi(t,r,n)}),e.findLastIndex(i,function(t){return!e.isOmittedExpression(t)&&!Pp(t)},i.length-(o?2:1))+1,o);return r&&((s=Os(s)).pattern=t),s}(t,r,n)}function Wi(e,t){return Hi(Bi(e,!0),e,t)}function Hi(t,r,n){return t?(n&&D_(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==In(r)&&(t=Ce),h_(t)):(t=e.isParameter(r)&&r.dotDotDotToken?at:ce,n&&(Gi(r)||b_(r,t)),t)}function Gi(t){var r=e.getRootDeclaration(t);return Vg(151===r.kind?r.parent:r)}function Yi(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Du(r)}function Xi(t){var r=Ur(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=Na(On(t))).typeParameters?Is(r,e.map(r.typeParameters,function(e){return ce})):r;var r;if(t===Y)return ce;if(134217728&t.flags){var n=In(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),Yn(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o))return ce;if(e.isSourceFile(o)&&e.isJsonSourceFile(o)){if(!o.statements.length)return Oe;var s=Ql(kg(o.statements[0].expression));return 524288&s.flags?p_(s):s}if(!bi(t,0))return 512&t.flags?ra(t):ia(t);if(254===o.kind)a=Hi(dg(o.expression),o);else if(e.isInJSFile(o)&&(e.isCallExpression(o)||e.isBinaryExpression(o)||e.isPropertyAccessExpression(o)&&e.isBinaryExpression(o.parent)))a=ji(t);else if(e.isJSDocPropertyLikeTag(o)||e.isPropertyAccessExpression(o)||e.isIdentifier(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&t.flags)return ra(t);a=e.isBinaryExpression(o.parent)?ji(t):Yi(o)||ce}else if(e.isPropertyAssignment(o))a=Yi(o)||hg(o);else if(e.isJsxAttribute(o))a=Yi(o)||Vp(o);else if(e.isShorthandPropertyAssignment(o))a=Yi(o)||yg(o.name,0);else if(e.isObjectLiteralMethod(o))a=Yi(o)||vg(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o))a=Wi(o,!0);else if(e.isEnumDeclaration(o))a=ra(t);else{if(!e.isEnumMember(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(o)+" for "+e.Debug.showSymbol(t));a=na(t)}return Si()?a:512&t.flags?ra(t):ia(t)}(t);r.type||(r.type=n)}return r.type}function Qi(t){if(t)return 158===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function $i(e){var t=Qi(e);return t&&Du(t)}function Zi(e){return ls(os(e))}function ea(t){var r=Ur(t);return r.type||(r.type=function(t){var r,n=e.getDeclarationOfKind(t,158),i=e.getDeclarationOfKind(t,159);if(n&&e.isInJSFile(n)){var a=Oi(n);if(a)return a}if(!bi(t,0))return _e;var o=$i(n);if(o)r=o;else{var s=$i(i);s?r=s:n&&n.body?r=Bm(n):(i?wr(B,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ci(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),wr(B,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ci(t))),r=ce)}if(!Si()&&(r=ce,B)){var c=e.getDeclarationOfKind(t,158);Pr(c,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,ci(t))}return r}(t))}function ta(e){var t=ha(Da(e));return 8650752&t.flags?t:void 0}function ra(t){var r=Ur(t),n=r;if(!r.type){var i=e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=In(i);a&&(e.hasEntries(a.exports)||e.hasEntries(a.members))&&(r=t=Rr(t),e.hasEntries(a.exports)&&(t.exports=t.exports||e.createSymbolTable(),zr(t.exports,a.exports)),e.hasEntries(a.members)&&(t.members=t.members||e.createSymbolTable(),zr(t.members,a.members)))}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return ce;if(204===r.kind||189===r.kind&&204===r.parent.kind)return ji(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Sn(t);if(n!==t){if(!bi(t,0))return _e;var i=wn(t.exports.get("export=")),a=ji(i,i===n?void 0:n);return Si()?a:ia(t)}}var o=Vn(16,t);if(32&t.flags){var s=ta(t);return s?Mc([o,s]):o}return O&&16777216&t.flags?u_(o):o}(t)}return r.type}function na(e){var t=Ur(e);return t.type||(t.type=Ea(e))}function ia(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Pr(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ci(t)),_e):(B&&(151!==r.kind||r.initializer)&&Pr(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,ci(t)),ce)}function aa(t){return 1&e.getCheckFlags(t)?function(e){var t=Ur(e);if(!t.type){if(!bi(e,0))return t.type=_e;var r=Ku(aa(t.target),t.mapper);Si()||(r=ia(e)),t.type=r}return t.type}(t):4096&e.getCheckFlags(t)?function(e){return I_(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?Xi(t):9136&t.flags?ra(t):8&t.flags?na(t):98304&t.flags?ea(t):2097152&t.flags?function(e){var t=Ur(e);if(!t.type){var r=dn(e);t.type=67220415&r.flags?aa(r):_e}return t.type}(t):_e}function oa(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function sa(t){return 4&e.getObjectFlags(t)?t.target:t}function ca(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=sa(n);return i===r||e.some(va(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function ua(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=Po(e);return!!t&&ba(t)&&pa(t)}return _m(e)}function ma(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function ga(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Vo(t,1),function(t){return(a||i>=is(t.typeParameters))&&i<=e.length(t.typeParameters)})}function ya(t,r,n){var i=ga(t,r,n),a=e.map(r,Du);return e.sameMap(i,function(t){return e.some(t.typeParameters)?gs(t,a,e.isInJSFile(n)):t})}function ha(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=ma(t);if(!i)return t.resolvedBaseConstructorType=pe;if(!bi(t,1))return _e;var a=kg(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),kg(n.expression)),2621440&a.flags&&Do(a),!Si())return Pr(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ci(t.symbol)),t.resolvedBaseConstructorType=_e;if(!(1&a.flags||a===ge||fa(a))){var o=Pr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,li(a));if(262144&a.flags){var s=As(a),c=de;if(s){var u=Vo(s,1);u[0]&&(c=ps(u[0]))}e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ci(a.symbol),li(c)))}return t.resolvedBaseConstructorType=_e}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function va(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[hc(Ac(t.typeParameters||e.emptyArray),t.readonly)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Bo(ha(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=ma(t),a=Xs(i),o=_m(r)?r:r.symbol?Na(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}(o))n=Ls(i,r.symbol,a);else if(1&r.flags)n=r;else if(_m(r))n=!i.typeArguments&&dm(r.symbol)||ce;else{var s=ya(r,i.typeArguments,i);if(!s.length)return Pr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=ps(s[0])}n===_e?t.resolvedBaseTypes=e.emptyArray:ba(n)?t===n||ca(n,t)?(Pr(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,li(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[n]):(Pr(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,li(n)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r=a?8192:0);return i.type=n===o?hc(e):e,i});return e.concatenate(t.parameters.slice(0,r),s)}}return t.parameters}function Za(e,t,r,n,i){for(var a=0,o=e;a0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter;if(e.forEach(c,function(e){return e.thisParameter})){var _=Ac(e.map(c,function(e){return e.thisParameter?aa(e.thisParameter):ce}),2);l=d_(s.thisParameter,_)}(u=Qa(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var d=t[void 0!==n?n:0],p=d.slice(),f=function(t){if(t!==d){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=r.typeParameters&&e.some(p,function(e){return!!e.typeParameters})?void 0:e.map(p,function(t){return i=r,a=(n=t).declaration,o=function(e,t){for(var r=Em(e)>=Em(t)?e:t,n=r===e?t:e,i=Em(r),a=Nm(e)||Nm(t),o=a&&!Nm(r),s=new Array(i+(o?1:0)),c=0;c=km(r)&&c>=km(n),f=xm(e,c),m=xm(t,c),g=Ir(1|(p&&!d?16777216:0),f===m?f:"arg"+c);g.type=d?hc(_):_,s[c]=g}if(o){var y=Ir(1,"args");y.type=hc(Sm(n,i)),s[i]=y}return s}(n,i),s=function(e,t){if(!e||!t)return e||t;var r=Ac([aa(e),aa(t)],2);return d_(e,r)}(n.thisParameter,i.thisParameter),c=Math.max(n.minArgumentCount,i.minArgumentCount),u=n.hasRestParameter||i.hasRestParameter,l=n.hasLiteralTypes||i.hasLiteralTypes,(_=Ya(a,n.typeParameters||i.typeParameters,s,o,void 0,void 0,c,u,l)).unionSignatures=e.concatenate(n.unionSignatures||[n],[i]),_;var n,i,a,o,s,c,u,l,_})))return"break"}},m=0,g=t;m0}),n=e.map(t,pa);return r>0&&r===e.countWhere(n,function(e){return e})&&(n[n.indexOf(!0)]=!1),n}function so(t){for(var r,n,i=e.emptyArray,a=e.emptyArray,o=t.types,s=oo(o),c=e.countWhere(s,function(e){return e}),u=function(u){var l=t.types[u];if(!s[u]){var _=Vo(l,1);_.length&&c>0&&(_=e.map(_,function(e){var t=Xa(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=_&&o<=d){var p=d?hs(l,as(a,l.typeParameters,_,i)):Xa(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(u)),t.constructSignatures=c}}}function uo(t){return 131069&t.flags?t:4194304&t.flags?Jc(Bo(t.type)):16777216&t.flags?function(e){if(e.root.isDistributive){var t=uo(e.checkType);if(t!==e.checkType){var r=Cu(e.root.checkType,t);return zu(e,Nu(r,e.mapper))}}return e}(t):1048576&t.flags?Ac(e.sameMap(t.types,uo)):2097152&t.flags?Mc(e.sameMap(t.types,uo)):ke}function lo(e){return e.typeParameter||(e.typeParameter=ka(In(e.declaration.typeParameter)))}function _o(e){return e.constraintType||(e.constraintType=ko(lo(e))||_e)}function po(e){return e.templateType||(e.templateType=e.declaration.type?Ku(Li(Du(e.declaration.type),!!(4&yo(e))),e.mapper||A):_e)}function fo(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function mo(e){var t=fo(e);return 179===t.kind&&129===t.operator}function go(e){if(!e.modifiersType)if(mo(e))e.modifiersType=Ku(Du(fo(e).type),e.mapper||A);else{var t=_o($c(e.declaration)),r=t&&262144&t.flags?ko(t):t;e.modifiersType=r&&4194304&r.flags?Ku(r.type,e.mapper||A):Oe}return e.modifiersType}function yo(e){var t=e.declaration;return(t.readonlyToken?39===t.readonlyToken.kind?2:1:0)|(t.questionToken?39===t.questionToken.kind?8:4:0)}function ho(e){var t=yo(e);return 8&t?-1:4&t?1:0}function vo(e){var t=ho(e),r=go(e);return t||(bo(r)?ho(r):0)}function bo(t){return!!(32&e.getObjectFlags(t))&&Wc(_o(t))}function Do(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=La(t.target),n=e.concatenate(r.typeParameters,[r.thisType]);Ga(t,r,n,t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]))}(t):3&t.objectFlags?function(t){Ga(t,La(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=Ho(t.source,0),n=yo(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&Es(I_(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=Co(t.source);c=50)return Pr(h,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,t.immediateBaseConstraint=Je;k++;var n=function(e){if(262144&e.flags){var t=As(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){for(var r=e.types,n=[],a=0,o=r;a=7))||Oe:528&r.flags?rt:12288&r.flags?nc(P>=2):67108864&r.flags?Oe:4194304&r.flags?we:r}function jo(t,r){for(var n,i=e.createMap(),a=1048576&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,_=0,d=t.types;_=0),n>=km(r)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function ts(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&293===n.type.kind}function rs(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function ns(e){return{kind:0,type:e}}function is(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!m||_||$o(p)||(o=i.length)}if(!(158!==t.kind&&159!==t.kind||za(t)||c&&s)){var g=158===t.kind?159:158,y=e.getDeclarationOfKind(In(t),g);y&&(s=(r=Fv(y))&&r.symbol)}var h=157===t.kind?Da(wn(t.parent.symbol)):void 0,v=h?h.localTypeParameters:Xo(t),b=e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!cs(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=Ir(3,"args",16384);return o.type=a?hc(Du(a.type)):at,a&&r.pop(),r.push(o),!0}(t,i);n.resolvedSignature=Ya(t,v,s,i,void 0,void 0,o,b,a)}return n.resolvedSignature}function ss(t){var r=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0,n=r&&r.typeExpression&&Rf(Du(r.typeExpression));return n&&bs(n)}function cs(t){var r=Vr(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 72:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 154:case 156:case 158:case 159:return 149===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function us(t){if(!t)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(os(i))}}return r}function ls(e){if(e.thisParameter)return aa(e.thisParameter)}function _s(e){return void 0!==ds(e)}function ds(t){if(!t.resolvedTypePredicate){if(t.target){var r=ds(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,e.isIdentifierTypePredicate(o)?{kind:1,parameterName:o.parameterName,parameterIndex:o.parameterIndex,type:Ku(o.type,s)}:{kind:0,type:Ku(o.type,s)}):Ft}else if(t.unionSignatures)t.resolvedTypePredicate=function(t){for(var r,n=[],i=0,a=t;i1&&(t+=":"+a),n+=a}return t}function ws(t,r){for(var n=0,i=0,a=t;ia.length)){var u=c&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Pr(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,li(i,void 0,2),s,a.length),!c)return _e}return Is(i,e.concatenate(i.outerTypeParameters,as(n,a,s,c)))}return Gs(t,r)?i:_e}function Rs(t,r){var n=Na(t),i=Ur(t),a=i.typeParameters,o=Ps(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Ku(n,Eu(a,as(r,a,is(a),e.isInJSFile(t.valueDeclaration))))),s}function Bs(t){switch(t.kind){case 164:return t.typeName;case 211:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function js(e,t){return e&&yn(e,t)||oe}function Js(t,r){var n=Xs(t);if(r===oe)return _e;var i=Ks(t,r,n);if(i)return i;var a=e.isInJSFile(t)&&r.valueDeclaration&&e.getJSDocEnumTag(r.valueDeclaration);if(a){var o=Vr(a);if(!bi(a,5))return _e;var s=a.typeExpression?Du(a.typeExpression):_e;return Si()||(s=_e,Pr(t,e.Diagnostics.Enum_type_0_circularly_references_itself,ci(r))),o.resolvedEnumType=s}var c=Aa(r);if(c)return Gs(t,r)?262144&c.flags?Ws(c,t):gu(c):_e;if(!(67220415&r.flags&&Hs(t)))return _e;var u=zs(t,r,n);return u||(js(Bs(t),67897832),aa(r))}function zs(e,t,r){var n=aa(t),i=n.symbol&&n.symbol!==t&&Ks(e,n.symbol,r);if(i)return Ur(t).resolvedJSDocType=i}function Ks(t,r,n){if(96&r.flags){if(r.valueDeclaration&&r.valueDeclaration.parent&&e.isBinaryExpression(r.valueDeclaration.parent)){var i=zs(t,r,n);if(i)return i}return Ls(t,r,n)}if(524288&r.flags)return function(t,r,n){var i=Na(r),a=Ur(r).typeParameters;if(a){var o=e.length(t.typeArguments),s=is(a);return oa.length?(Pr(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ci(r),s,a.length),_e):Rs(r,n)}return Gs(t,r)?i:_e}(t,r,n);if(16&r.flags&&Hs(t)&&lm(r.valueDeclaration)){var a=Do(aa(r));if(1===a.callSignatures.length)return ps(a.callSignatures[0])}}function Us(e,t){if(3&t.flags)return e;var r=Jn(33554432);return r.typeVariable=e,r.substitute=t,r}function Vs(e){return 170===e.kind&&1===e.elementTypes.length}function qs(e,t,r){return Vs(t)&&Vs(r)?qs(e,t.elementTypes[0],r.elementTypes[0]):Zc(Du(t))===e?Du(r):void 0}function Ws(t,r){for(var n;r&&!e.isStatement(r)&&296!==r.kind;){var i=r.parent;if(175===i.kind&&r===i.trueType){var a=qs(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?Us(t,Mc(e.append(n,t))):t}function Hs(e){return!!(2097152&e.flags)&&(164===e.kind||183===e.kind)}function Gs(t,r){return!t.typeArguments||(Pr(t,e.Diagnostics.Type_0_is_not_generic,r?ci(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function Ys(t){var r=Vr(t);if(!r.resolvedType){var n=void 0,i=void 0,a=67897832;Hs(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Gs(t),ye;case"Number":return Gs(t),he;case"Boolean":return Gs(t),Te;case"Void":return Gs(t),Ee;case"Undefined":return Gs(t),pe;case"Null":return Gs(t),me;case"Function":case"function":return Gs(t),Ye;case"Array":case"array":return r&&r.length?void 0:at;case"Promise":case"promise":return r&&r.length?void 0:Mm(ce);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Du(r[0]),i=Es(Du(r[1]),!1);return Yn(void 0,N,e.emptyArray,e.emptyArray,n===ye?i:void 0,n===he?i:void 0)}return ce}return Gs(t),ce}}}(t),a|=67220415),i||(i=Js(t,n=js(Bs(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Xs(t){return e.map(t.typeArguments,Du)}function Qs(e){var t=Vr(e);return t.resolvedType||(t.resolvedType=gu(h_(kg(e.exprName)))),t.resolvedType}function $s(t,r){function n(e){for(var t=0,r=e.declarations;t=r?16777216:0),""+u,i?8:0);_.type=l,s.push(_)}}}var d=[];for(u=r;u<=c;u++)d.push(hu(u));var p=Ir(4,"length");p.type=n?he:Ac(d),s.push(p);var f=Vn(12);return f.typeParameters=o,f.outerTypeParameters=void 0,f.localTypeParameters=o,f.instantiations=e.createMap(),f.instantiations.set(Ps(f.typeParameters),f),f.target=f,f.typeArguments=f.typeParameters,f.thisType=qn(),f.thisType.isThisType=!0,f.thisType.constraint=f,f.declaredProperties=s,f.declaredCallSignatures=e.emptyArray,f.declaredConstructSignatures=e.emptyArray,f.declaredStringIndexInfo=void 0,f.declaredNumberIndexInfo=void 0,f.minLength=r,f.hasRestElement=n,f.readonly=i,f.associatedNames=a,f}(t,r,n,i,a)),s}function Dc(e,t,r,n,i){void 0===t&&(t=e.length),void 0===r&&(r=!1),void 0===n&&(n=!1);var a=e.length;if(1===a&&r)return hc(e[0],n);var o=bc(a,t,a>0&&r,n,i);return e.length?Is(o,e):o}function xc(t,r){var n=t.target;return n.hasRestElement&&(r=Math.min(r,Ms(t)-1)),Dc((t.typeArguments||e.emptyArray).slice(r),Math.max(0,n.minLength-r),n.hasRestElement,n.readonly,n.associatedNames&&n.associatedNames.slice(r))}function Sc(e){return e.id}function Tc(t,r){return e.binarySearch(t,r,Sc,e.compareValues)>=0}function Cc(t,r){var n=e.binarySearch(t,r,Sc,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Ec(t,r,n){var i=n.flags;if(1048576&i)return kc(t,r,n.types);if(!(131072&i||2097152&i&&function(e){for(var t=0,r=0,n=e.types;rt[a-1].id?~a:e.binarySearch(t,n,Sc,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function kc(e,t,r){for(var n=0,i=r;n0;)for(var o=t[--i],s=0,c=t;s(r?25e6:1e6))return Pr(h,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,tl(o,u)&&(!(1&e.getObjectFlags(sa(o)))||!(1&e.getObjectFlags(sa(u)))||nl(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}function Ac(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return ke;if(1===t.length)return t[0];var a=[],o=kc(a,0,t);if(0!==r){if(3&o)return 1&o?4194304&o?le:ce:de;switch(r){case 1:11136&o&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(128&i.flags&&4&r||256&i.flags&&8&r||2048&i.flags&&64&r||8192&i.flags&&4096&r||yu(i)&&Tc(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:if(!Nc(a,!(262144&o)))return _e}if(0===a.length)return 65536&o?2097152&o?me:ge:32768&o?2097152&o?pe:fe:ke}return Pc(a,66994211&o?0:65536,n,i)}function Fc(t,r){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(r)&&t.parameterIndex===r.parameterIndex:!e.isIdentifierTypePredicate(r)}function Pc(e,t,r,n){if(0===e.length)return ke;if(1===e.length)return e[0];var i=Ps(e),a=Z.get(i);return a||(a=Jn(1048576),Z.set(i,a),a.objectFlags=t|ws(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function wc(t,r,n){var i=n.flags;return 2097152&i?Ic(t,r,n.types):(hl(n)?8388608&r||(r|=8388608,t.push(n)):(r|=1835007&i,3&i?n===le&&(r|=4194304):!O&&98304&i||e.contains(t,n)||t.push(n)),r)}function Ic(e,t,r){for(var n=0,i=r;n0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(i,a),8388608&a&&524288&a&&e.orderedRemoveItemAt(i,e.findIndex(i,hl)),0===i.length)return de;if(1===i.length)return i[0];if(1048576&a){if(function(t){var r,n=e.findIndex(t,function(t){return!!(65536&e.getObjectFlags(t))});if(n<0)return!1;for(var i=n+1;i=0){if(n&&xd(t,function(e){return!e.target.hasRestElement})){var l=Vc(n);e_(t)?Pr(l,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,li(t),Ms(t),e.unescapeLeadingUnderscores(s)):Pr(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(s),li(t))}return Td(t,function(e){return t_(e)||pe})}}if(!(98304&r.flags)&&eg(r,12716)){if(131073&t.flags)return t;var _=eg(r,296)&&Ho(t,1)||Ho(t,0)||void 0;if(_)return n&&!eg(r,12)?Pr(l=Vc(n),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,li(r)):o&&_.isReadonly&&(e.isAssignmentTarget(o)||e.isDeleteTarget(o))&&Pr(o,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,li(t)),_.type;if(131072&r.flags)return ke;if(Kc(t))return ce;if(o&&!rg(t)){if(t.symbol===W&&void 0!==s&&W.exports.has(s)&&418&W.exports.get(s).flags)Pr(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(s),li(t));else if(B&&!F.suppressImplicitAnyIndexErrors)if(void 0!==s&&hf(s,t))Pr(o,e.Diagnostics.Property_0_is_a_static_member_of_type_1,s,li(t));else if(Go(t,1))Pr(o.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var d=void 0;void 0!==s&&(d=bf(s,t))?void 0!==d&&Pr(o.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,li(t),d):Pr(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,li(t))}return a}}return Kc(t)?ce:(n&&(l=Vc(n),384&r.flags?Pr(l,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,li(t)):12&r.flags?Pr(l,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,li(t),li(r)):Pr(l,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,li(r))),Ei(r)?r:a)}function Vc(e){return 190===e.kind?e.argumentExpression:180===e.kind?e.indexType:149===e.kind?e.expression:e}function qc(e){return Zm(e,59113472)}function Wc(e){return Zm(e,63176704)}function Hc(e){return 8388608&e.flags?function(e){if(e.simplified)return e.simplified===ze?e:e.simplified;e.simplified=ze;var t=Hc(e.objectType),r=Hc(e.indexType);if(1048576&r.flags)return e.simplified=Td(r,function(e){return Hc(Xc(t,e))});if(!(63176704&r.flags)){var n=Gc(t,r);if(n)return e.simplified=n}return bo(t)?e.simplified=Td(Yc(t,e.indexType),Hc):e.simplified=e}(e):e}function Gc(t,r){return 1048576&t.flags?Td(t,function(e){return Hc(Xc(e,r))}):2097152&t.flags?Mc(e.map(t.types,function(e){return Hc(Xc(e,r))})):void 0}function Yc(e,t){var r=Eu([lo(e)],[t]),n=Nu(e.mapper,r);return Ku(po(e),n)}function Xc(e,t,r,n){if(void 0===n&&(n=r?_e:de),e===le||t===le)return le;if(Wc(t)||(!r||180===r.kind)&&qc(e)){if(3&e.flags)return e;var i=e.id+","+t.id,a=re.get(i);return a||re.set(i,a=function(e,t){var r=Jn(8388608);return r.objectType=e,r.indexType=t,r}(e,t)),a}var o=Bo(e);if(1048576&t.flags&&!(16&t.flags)){for(var s=[],c=!1,u=0,l=t.types;u"+Sc(n)+"?"+Sc(i)+":"+Sc(a),s=ne.get(o);if(s)return s;var c=function(e,t,r,n,i,a){if(131072&a.flags&&Qu(Zc(i),Zc(r))){if(1&r.flags||rl(Vu(r),Vu(n)))return i;if(eu(r,n))return ke}else if(131072&i.flags&&Qu(Zc(a),Zc(r))){if(!(1&r.flags)&&rl(Vu(r),Vu(n)))return ke;if(1&r.flags||eu(r,n))return a}var o,s=Zm(r,63307776);if(e.inferTypeParameters){var c=T_(e.inferTypeParameters,void 0,0);s||B_(c.inferences,r,n,96),o=Nu(t,c.mapper)}var u=o?Ku(e.extendsType,o):n;if(!s&&!Zm(u,63307776)){if(3&u.flags)return i;if(1&r.flags)return Ac([Ku(e.trueType,o||t),a]);if(!rl(Uu(r),Uu(u)))return a;if(rl(Vu(r),Vu(u)))return Ku(e.trueType,o||t)}return function(e,t,r,n,i,a,o){var s=Zc(n),c=Jn(16777216);return c.root=e,c.checkType=s,c.extendsType=i,c.mapper=t,c.combinedMapper=r,c.trueType=a,c.falseType=o,c.aliasSymbol=e.aliasSymbol,c.aliasTypeArguments=Su(e.aliasTypeArguments,t),c}(e,t,o,r,n,i,a)}(e,t,r,n,i,a);return ne.set(o,c),c}function ru(t){var r;return t.locals&&t.locals.forEach(function(t){262144&t.flags&&(r=e.append(r,Na(t)))}),r}function nu(t){var r=Vr(t);if(!r.resolvedType){var n=Du(t.checkType),i=su(t),a=cu(i),o=la(t,!0),s=a?o:e.filter(o,function(e){return function(e,t){if(Lu(e,t))return!0;for(;t;){if(175===t.kind&&Lu(e,t.extendsType))return!0;t=t.parent}return!1}(e,t)}),c={node:t,checkType:n,extendsType:Du(t.extendsType),trueType:Du(t.trueType),falseType:Du(t.falseType),isDistributive:!!(262144&n.flags),inferTypeParameters:ru(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=tu(c,void 0),s&&(c.instantiations=e.createMap(),c.instantiations.set(Ps(s),r.resolvedType))}return r.resolvedType}function iu(t){var r=Vr(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Pr(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=oe,r.resolvedType=_e;if(!e.isLiteralImportTypeNode(t))return Pr(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=oe,r.resolvedType=_e;var n=t.isTypeOf?67220415:2097152&t.flags?68008959:67897832,i=vn(t,t.argument.literal);if(!i)return r.resolvedSymbol=oe,r.resolvedType=_e;var a=Sn(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?au(t,r,a,n):(Pr(t,67220415===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=oe,r.resolvedType=_e);else{for(var o=function t(r){return e.isIdentifier(r)?[r]:e.append(t(r.left),r.right)}(t.qualifier),s=a,c=void 0;c=o.shift();){var u=o.length?1920:n,l=Wr(Nn(wn(_n(s))),c.escapedText,u);if(!l)return Pr(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,gn(s),e.declarationNameToString(c)),r.resolvedType=_e;Vr(c).resolvedSymbol=l,Vr(c.parent).resolvedSymbol=l,s=l}au(t,r,s,n)}}return r.resolvedType}function au(e,t,r,n){var i=_n(r);return t.resolvedSymbol=i,t.resolvedType=67220415===n?aa(r):Js(e,i)}function ou(t){var r=Vr(t);if(!r.resolvedType){var n=su(t);if(0!==qa(t.symbol).size||n){var i=Vn(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=cu(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=hc(i)),r.resolvedType=i}else r.resolvedType=Re}return r.resolvedType}function su(t){return e.isTypeAlias(t.parent)?In(t.parent):void 0}function cu(e){return e?da(e):void 0}function uu(e){return!!(524288&e.flags)&&!bo(e)}function lu(t,r,n,i,a){if(1&t.flags||1&r.flags)return ce;if(2&t.flags||2&r.flags)return de;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&t.flags)return Td(t,function(e){return lu(e,r,n,i,a)});if(1048576&r.flags)return Td(r,function(e){return lu(t,e,n,i,a)});if(71307260&r.flags)return t;if(qc(t)||qc(r)){if(yl(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(uu(s)&&uu(r))return Mc(e.concatenate(o.slice(0,o.length-1),[lu(s,r,n,i,a)]))}return Mc([t,r])}var c,u,l=e.createSymbolTable(),_=e.createUnderscoreEscapedMap();t===Oe?(c=Ho(r,0),u=Ho(r,1)):(c=ao(Ho(t,0),Ho(r,0)),u=ao(Ho(t,1),Ho(r,1)));for(var d=0,p=Co(r);d=i,n)}),o=yo(r),s=4&o?0:8&o?Ms(t)-(t.target.hasRestElement?1:0):i,c=Bu(t.target.readonly,o);return e.contains(a,_e)?_e:Dc(a,s,t.target.hasRestElement,c,t.target.associatedNames)}(i,t,a):Ju(t,a)}return i})}return Ju(t,r)}(n,g):Ju(n,g),a.instantiations.set(f,m)}return m}return t}function Lu(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){var n=t.symbol.declarations[0].parent;if(e.findAncestor(r,function(e){return 218===e.kind?"quit":e===n}))return!!e.forEachChild(r,function r(n){switch(n.kind){case 178:return!!t.isThisType;case 72:return!t.isThisType&&e.isPartOfTypeNode(n)&&function(e){return!(148===e.kind||164===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName)}(n)&&Du(n)===t;case 167:return!0}return!!e.forEachChild(n,r)})}return!0}function Ru(e){var t=_o(e);if(4194304&t.flags){var r=Zc(t.type);if(262144&r.flags)return r}}function Bu(e,t){return!!(1&t)||!(2&t)&&e}function ju(e,t,r,n){var i=Nu(n,Eu([lo(e)],[t])),a=Ku(po(e.target||e),i),o=yo(e);return O&&4&o&&!rl(pe,a)?u_(a):O&&8&o&&r?ad(a,524288):a}function Ju(e,t){var r=Vn(64|e.objectFlags,e.symbol);if(32&e.objectFlags){r.declaration=e.declaration;var n=lo(e),i=wu(n);r.typeParameter=i,t=Nu(Cu(n,i),t),i.mapper=t}return r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Su(e.aliasTypeArguments,t),r}function zu(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,r),a=Ps(i),o=n.instantiations.get(a);return o||(o=function(e,t){if(e.isDistributive){var r=e.checkType,n=t(r);if(r!==n&&1179648&n.flags)return Td(n,function(n){return tu(e,Au(r,n,t))})}return tu(e,t)}(n,Eu(n.outerTypeParameters,i)),n.instantiations.set(a,o)),o}return t}function Ku(t,r){if(!t||!r||r===A)return t;if(50===E)return Pr(h,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),_e;E++;var n=function(e,t){var r=e.flags;if(262144&r)return t(e);if(524288&r){var n=e.objectFlags;if(16&n)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?Mu(e,t):e;if(32&n)return Mu(e,t);if(4&n){var i=e.typeArguments,a=Su(i,t);return a!==i?Is(e.target,a):e}return e}if(1048576&r&&!(131068&r)){var o=e.types,s=Su(o,t);return s!==o?Ac(s,1,e.aliasSymbol,Su(e.aliasTypeArguments,t)):e}if(2097152&r){var o=e.types,s=Su(o,t);return s!==o?Mc(s,e.aliasSymbol,Su(e.aliasTypeArguments,t)):e}if(4194304&r)return Jc(Ku(e.type,t));if(8388608&r)return Xc(Ku(e.objectType,t),Ku(e.indexType,t));if(16777216&r)return zu(e,Nu(e.mapper,t));if(33554432&r){var c=Ku(e.typeVariable,t);if(8650752&c.flags)return Us(c,Ku(e.substitute,t));var u=Ku(e.substitute,t);return 3&u.flags||tl(Vu(c),Vu(u))?c:u}return e}(t,r);return E--,n}function Uu(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Ku(e,Fu))}function Vu(e){return 262143&e.flags?e:e.restrictiveInstantiation?e.restrictiveInstantiation:(e.restrictiveInstantiation=Ku(e,Pu),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function qu(e,t){return e&&Es(Ku(e.type,t),e.isReadonly,e.declaration)}function Wu(t){switch(e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 196:case 197:case 156:return Hu(t);case 188:return e.some(t.properties,Wu);case 187:return e.some(t.elements,Wu);case 205:return Wu(t.whenTrue)||Wu(t.whenFalse);case 204:return 55===t.operatorToken.kind&&(Wu(t.left)||Wu(t.right));case 275:return Wu(t.initializer);case 195:return Wu(t.expression);case 268:return e.some(t.properties,Wu)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Wu);case 267:var r=t.initializer;return!!r&&Wu(r);case 270:var n=t.expression;return!!n&&Wu(n)}return!1}function Hu(t){if(t.typeParameters)return!1;if(e.some(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(197!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}return Gu(t)}function Gu(e){return!!e.body&&218!==e.body.kind&&Wu(e.body)}function Yu(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||kp(t)||e.isObjectLiteralMethod(t))&&Hu(t)}function Xu(t){if(524288&t.flags){var r=Do(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Vn(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(2097152&t.flags)return Mc(e.map(t.types,Xu));return t}function Qu(e,t){return Dl(e,t,Er)}function $u(e,t){return Dl(e,t,Er)?-1:0}function Zu(e,t){return Dl(e,t,Tr)?-1:0}function el(e,t){return Dl(e,t,Sr)?-1:0}function tl(e,t){return Dl(e,t,Sr)}function rl(e,t){return Dl(e,t,Tr)}function nl(t,r){return 1048576&t.flags?e.every(t.types,function(e){return nl(e,r)}):1048576&r.flags?e.some(r.types,function(e){return nl(t,e)}):58982400&t.flags?nl(Po(t)||Oe,r):r===Ge?!!(67633152&t.flags):r===Ye?!!(524288&t.flags)&&nd(t):ca(t,sa(r))}function il(e,t){return Dl(e,t,Cr)}function al(e,t){return il(e,t)||il(t,e)}function ol(e,t,r,n,i,a){return Sl(e,t,Tr,r,n,i,a)}function sl(e,t,r,n,i,a){return cl(e,t,Tr,r,n,i,a)}function cl(e,t,r,n,i,a,o){return!!Dl(e,t,r)||(!n||!ll(i,e,t,r,a))&&Sl(e,t,r,n,a,o)}function ul(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,ul))}function ll(t,r,n,o,s){if(!t||ul(n))return!1;if(!Sl(r,n,o,void 0)&&function(t,r,n,i,a){for(var o=Vo(r,0),s=Vo(r,1),c=0,u=[s,o];c1,g=Sd(p,Wl),y=Sd(p,function(e){return!Wl(e)});if(m)if(g!==ke){var h=Dc(qp(u,0));c=_l(function(t,r){var n,i,o,s,c;return a(this,function(a){switch(a.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,a.label=1;case 1:return iu)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Bf(t,r=Ds(r),void 0,s));var l=Em(t),_=Fm(t),d=Fm(r);if(_&&d&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!n&&M&&156!==p&&155!==p&&157!==p,m=-1,g=ls(t);if(g&&g!==Ee){var y=ls(r);if(y){if(!(D=!f&&s(g,y,!1)||s(y,g,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=D}}for(var h=_||d?Math.min(l,u):Math.max(l,u),v=_||d?h-1:-1,b=0;b0||Mh(r))&&!function(e,t,r){for(var n=0,i=Co(e);n0&&N(ps(p[0]),n,!1)||m.length>0&&N(ps(m[0]),n,!1)?E(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,li(r),li(n)):E(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,li(r),li(n))}return 0}var g=0,y=u,h=!!c;if(1048576&r.flags?g=i===Cr?I(r,n,o&&!(131068&r.flags)):function(e,t,r){for(var n=-1,i=0,a=e.types;i0||Vo(t,n=1).length>0)return e.find(r.types,function(e){return Vo(e,n).length>0})}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=u)}else Gl(c)&&1>=i&&(n=s,i=1)}return n}(t,r)||i[i.length-1],!0),0}function w(t,r){if(1048576&r.flags){var n=xo(t);if(n){var i=function(e,t){for(var r,n=0,i=e;n5?E(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,li(t),li(r),e.map(_.slice(0,4),function(e){return ci(e)}).join(", "),_.length-4):E(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,li(t),li(r),e.map(_,function(e){return ci(e)}).join(", "))}return 0}if(z_(r))for(var p=0,f=Co(t);p0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&t.flags)&&e.every(t.types,Cl)}function El(t,r,n){var i=Is(t,e.map(t.typeParameters,function(e){return e===r?n:e}));return i.objectFlags|=8192,i}function kl(t,r,n){void 0===t&&(t=e.emptyArray);var i=r.variances;if(!i){r.variances=e.emptyArray,i=[];for(var a=0,o=t;a":n+="-"+o.id}return n}function wl(e,t,r){if(r===Er&&e.id>t.id){var n=e;e=t,t=n}if(Fl(e)&&Fl(t)){var i=[];return Pl(e,i)+","+Pl(t,i)}return e.id+","+t.id}function Il(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5&&524288&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a=5)return!0}}return!1}function Rl(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(eh(t)!==eh(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Gm(t)!==Gm(r)?0:n(aa(t),aa(r))}function Bl(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Em(e),i=Em(t),a=km(e),o=km(t),s=Nm(e),c=Nm(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=bs(t),r=bs(r);var s=-1;if(!i){var c=ls(t);if(c){var u=ls(r);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=Em(r),_=0;_-1&&(Gr(a,a.name.escapedText,67897832,void 0,a.name.escapedText,!0)||a.name.originalKeywordKind&&e.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a);return void wr(B,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,e.declarationNameToString(a.name))}i=t.dotDotDotToken?B?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:B?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 186:if(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!B)return;break;case 294:return void Pr(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);case 239:case 156:case 155:case 158:case 159:case 196:case 197:if(B&&!t.name)return void Pr(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);i=B?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 181:return void(B&&Pr(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=B?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}wr(B,t,i,e.declarationNameToString(e.getNameOfDeclaration(t)),n)}}function D_(t,r){o&&B&&131072&e.getObjectFlags(r)&&(function t(r){var n=!1;if(131072&e.getObjectFlags(r)){if(1048576&r.flags)if(e.some(r.types,yl))n=!0;else for(var i=0,a=r.types;ie.target.minLength||!t_(t)&&(!!t_(e)||r_(t)1){var r=e.filter(t,z_);if(r.length){var n=h_(Ac(r,2));return e.concatenate(e.filter(t,function(e){return!z_(e)}),[n])}}return t}(t.candidates),o=(n=t.typeParameter,!!(i=ko(n))&&Zm(16777216&i.flags?No(i):i,4325372)),s=!o&&t.topLevel&&(t.isFixed||!P_(ps(r),t.typeParameter)),c=o?e.sameMap(a,gu):s?e.sameMap(a,Ql):a;return h_(28&t.priority?Ac(c,2):function(t){if(!O)return jl(t);var r=e.filter(t,function(e){return!(98304&e.flags)});return r.length?c_(jl(r),98304&i_(t)):Ac(t,2)}(c))}function V_(t,r){var n=t.inferences[r],i=n.inferredType;if(!i){var a=t.signature;if(a){var o=n.candidates?U_(n,a):void 0;if(n.contraCandidates){var s=K_(n);i=!o||131072&o.flags||!tl(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=Ne;else{var c=Lo(n.typeParameter);i=c?Ku(c,Nu(function(t,r){return function(n){return e.findIndex(t.inferences,function(e){return e.typeParameter===n})>=r?Oe:n}}(t,r),t.nonFixingMapper)):q_(!!(2&t.flags))}}else i=R_(n);n.inferredType=i;var u=ko(n.typeParameter);if(u){var l=Ku(u,t.nonFixingMapper);t.compareTypes(i,Ha(l,i))||(n.inferredType=i=l)}}return i}function q_(e){return e?ce:Oe}function W_(e){for(var t=[],r=0;r=n&&c-1){var l=a.filter(function(e){return void 0!==e}),_=c=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||274===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(n)&&e.getAncestor(r.valueDeclaration,238).parent===n){var c=function(t,r){return e.findAncestor(t,function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement})}(t.parent,n);if(c){var u=Vr(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(Vr(a).flags|=65536)}225===n.kind&&e.getAncestor(r.valueDeclaration,238).parent===n&&function(t,r){for(var n=t;195===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(202===n.parent.kind||203===n.parent.kind){var a=n.parent;i=44===a.operator||45===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}(t,n)&&(Vr(r.valueDeclaration).flags|=4194304),Vr(r.valueDeclaration).flags|=524288}i&&(Vr(r.valueDeclaration).flags|=262144)}}(t,r);var o=qd(aa(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return Pr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ci(r)),_e;if(Gm(i))return 3&i.flags?Pr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ci(r)):Pr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ci(r)),_e}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,p)}if(!a)return o;for(var u=151===e.getRootDeclaration(a).kind,l=jd(a),_=jd(t),d=_!==l,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&ld(t.parent.parent),m=134217728&r.flags;_!==l&&(196===_.kind||197===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Kd(i)||u&&!Jd(i));)_=jd(_);var g=u||c||d||f||m||o!==ue&&o!==ot&&(!O||0!=(3&o.flags)||Y_(t)||257===t.parent.kind)||213===t.parent.kind||237===a.kind&&a.exclamationToken||4194304&a.flags,y=Bd(t,o,g?u?function(e,t){return O&&151===t.kind&&t.initializer&&32768&a_(e)&&!(32768&a_(kg(t.initializer)))?ad(e,524288):e}(o,a):o:o===ue||o===ot?pe:u_(o),_,!g);if(Ld(t)||o!==ue&&o!==ot){if(!g&&!(32768&a_(o))&&32768&a_(y))return Pr(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ci(r)),o}else if(y===ue||y===ot)return B&&(Pr(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ci(r),li(y)),Pr(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ci(r),li(y))),ky(y);return s?Xl(y):y}function Gd(e,t){Vr(e).flags|=2,154===t.kind||157===t.kind?Vr(t.parent).flags|=4:Vr(t).flags|=4}function Yd(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Yd)}function Xd(e){var t=Vr(e);return void 0===t.hasSuperCall&&(t.superCall=Yd(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Qd(e){return ha(Na(In(e)))===ge}function $d(t,r,n){var i=r.parent;if(e.getClassExtendsHeritageElement(i)&&!Qd(i)){var a=Xd(r);(!a||a.end>t.pos)&&Pr(t,n)}}function Zd(t){var r=e.getThisContainer(t,!0),n=!1;switch(157===r.kind&&$d(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),197===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 244:Pr(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 243:Pr(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 157:tp(t,r)&&Pr(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 154:case 153:e.hasModifier(r,32)&&Pr(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 149:Pr(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&P<2&&Gd(t,r);var i=ep(t,!0,r);if(j){var a=aa(W);if(i===a&&n)Pr(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=Pr(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=ep(r);s&&s!==a&&e.addRelatedInfo(o,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||ce}function ep(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!cp(t)||e.getThisParameter(n))){var a=function(t){return 196===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:156===t.kind&&188===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:196===t.kind&&275===t.parent.kind&&188===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:196===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&a){var o=kg(a).symbol;if(o&&o.members&&16&o.flags&&(s=dm(o)))return Bd(t,s)}else if(i&&(196===n.kind||239===n.kind)&&e.getJSDocClassTag(n)){var s;if(s=dm(wn(n.symbol)))return Bd(t,s)}var c=Zi(n)||ap(n);if(c)return Bd(t,c)}if(e.isClassLike(n.parent)){var u,l=In(n.parent);return Bd(t,u=e.hasModifier(n,32)?aa(l):Na(l).thisType)}if(i&&(u=function(t){var r=e.getJSDocType(t);if(r&&294===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Du(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Du(i.typeExpression)}(n))&&u!==_e)return Bd(t,u);if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var _=In(n);return _&&aa(_)}if(r)return aa(W)}}function tp(t,r){return!!e.findAncestor(t,function(t){return e.isFunctionLikeDeclaration(t)?"quit":151===t.kind&&t.parent===r})}function rp(t){var r=191===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&197===n.kind;)n=e.getSuperContainer(n,!0),i=P<2;var a=0;if(!function(t){return!!t&&(r?157===t.kind:!(!e.isClassLike(t.parent)&&188!==t.parent.kind)&&(e.hasModifier(t,32)?156===t.kind||155===t.kind||158===t.kind||159===t.kind:156===t.kind||155===t.kind||158===t.kind||159===t.kind||154===t.kind||153===t.kind||157===t.kind))}(n)){var o=e.findAncestor(t,function(e){return e===n?"quit":149===e.kind});return o&&149===o.kind?Pr(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Pr(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||188===n.parent.kind)?Pr(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Pr(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),_e}if(r||157!==n.kind||$d(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(n,32)||r?512:256,Vr(t).flags|=a,156===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Vr(n).flags|=4096:Vr(n).flags|=2048),i&&Gd(t.parent,n),188===n.parent.kind)return P<2?(Pr(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_e):ce;var s=n.parent;if(!e.getClassExtendsHeritageElement(s))return Pr(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),_e;var c=Na(In(s)),u=c&&va(c)[0];return u?157===n.kind&&tp(t,n)?(Pr(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),_e):512===a?ha(c):Ha(u,c.thisType):_e}function np(t){return 4&e.getObjectFlags(t)&&t.target===it?t.typeArguments[0]:void 0}function ip(t){return Td(t,function(t){return 2097152&t.flags?e.forEach(t.types,np):np(t)})}function ap(t){if(197!==t.kind){if(Yu(t)){var r=Fp(t);if(r){var n=r.thisParameter;if(n)return aa(n)}}var i=e.isInJSFile(t);if(j||i){var a=function(e){return 156!==e.kind&&158!==e.kind&&159!==e.kind||188!==e.parent.kind?196===e.kind&&275===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=bp(a),s=a,c=o;c;){var u=ip(c);if(u)return Ku(u,A_(Sp(a)));if(275!==s.parent.kind)break;c=bp(s=s.parent.parent)}return o?l_(o):dg(a)}var l=t.parent;if(204===l.kind&&59===l.operatorToken.kind){var _=l.left;if(189===_.kind||190===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&G_(d)===p.symbol)return}return dg(d)}}}}}function op(t){var r=t.parent;if(Yu(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Wf(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Jf(i,a,i.length,ce,void 0);var o=Vr(n),s=o.resolvedSignature;o.resolvedSignature=Pt;var c=a=0}(r)?ps(r):void 0}function lp(e,t){var r=Wf(e).indexOf(t);return-1===r?void 0:_p(e,r)}function _p(t,r){var n=Vr(t).resolvedSignature===It?It:um(t);return e.isJsxOpeningLikeElement(t)&&0===r?Tp(n,t):Sm(n,r)}function dp(t){var r=t.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 59:if(t!==a)return;var o=function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return!1;var i=t.left,a=e.getEffectiveTypeAnnotationNode(n);if(a)return Du(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=Gr(o,o.escapedText,67220415,void 0,o.escapedText,!0);if(s){var c=e.getEffectiveTypeAnnotationNode(s.valueDeclaration);if(c){var u=pp(Du(c),i.name.escapedText);return u||!1}return!1}}return!e.isInJSFile(n)}return!0;case 2:case 4:if(!t.symbol)return!0;if(t.symbol.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(c){var u=Du(c);if(u)return u}}if(2===r)return!1;var l=t.left;if(!e.isObjectLiteralMethod(e.getThisContainer(l.expression,!1)))return!1;var _=Zd(l.expression);return _&&pp(_,l.name.escapedText)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(r);if(!o)return;return!0===o?Cg(n):o;case 55:var s=xp(r);return s||t!==a||e.isDefaultedExpandoInitializer(r)?s:Cg(n);case 54:case 27:return t===a?xp(r):void 0;default:return}}function pp(t,r){return Td(t,function(t){if(bo(t)){var n=_o(t),i=Po(n)||n,a=hu(e.unescapeLeadingUnderscores(r));if(rl(a,i))return Yc(t,a)}else if(3670016&t.flags){var o=Ko(t,r);if(o)return aa(o);if(e_(t)){var s=t_(t);if(s&&Lp(r)&&+r>=0)return s}return Lp(r)&&fp(t,1)||fp(t,0)}},!0)}function fp(e,t){return Td(e,function(e){return Wo(e,t)},!0)}function mp(e){var t=bp(e.parent);if(t){if(!za(e)){var r=pp(t,In(e).escapedName);if(r)return r}return Op(e.name)&&fp(t,1)||fp(t,0)}}function gp(e,t){return e&&(pp(e,""+t)||jy(e,void 0,!1,!1,!1))}function yp(t){var r=t.parent;return e.isJsxAttributeLike(r)?xp(t):e.isJsxElement(r)?function(e,t){var r=bp(e.openingElement.tagName),n=Qp(Yp(e));if(r&&!Ei(r)&&n&&""!==n){var i=e.children.indexOf(t),a=pp(r,n);return a&&Td(a,function(e){return Ul(e)?Xc(e,hu(i)):e},!0)}}(r,t):void 0}function hp(t){if(e.isJsxAttribute(t)){var r=bp(t.parent);if(!r||Ei(r))return;return pp(r,t.name.escapedText)}return xp(t.parent)}function vp(e){switch(e.kind){case 10:case 8:case 9:case 14:case 102:case 87:case 96:case 72:case 141:return!0;case 189:case 195:return vp(e.expression);case 270:return!e.expression||vp(e.expression)}return!1}function bp(t){var r=Dp(xp(t),t);if(r){var n=Td(r,Bo,!0);if(1048576&n.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return Tl(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&275===e.kind&&vp(e.initializer)&&ed(r,e.symbol.escapedName)}),function(e){return[function(){return kg(e.initializer)},e.symbol.escapedName]}),rl,r)}(t,n);if(e.isJsxAttributes(t))return function(t,r){return Tl(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&267===e.kind&&ed(r,e.symbol.escapedName)&&(!e.initializer||vp(e.initializer))}),function(e){return[e.initializer?function(){return kg(e.initializer)}:function(){return xe},e.symbol.escapedName]}),rl,r)}(t,n)}return n}}function Dp(t,r){if(t&&Zm(t,63176704)){var n=Sp(r);if(n&&n.returnMapper)return function t(r,n){return 63176704&r.flags?Ku(r,n):1048576&r.flags?Ac(e.map(r.types,function(e){return t(e,n)}),0):2097152&r.flags?Mc(e.map(r.types,function(e){return t(e,n)})):r}(t,n.returnMapper)}return t}function xp(t){if(!(8388608&t.flags)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 237:case 151:case 154:case 153:case 186:return function(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=sp(r);if(n)return n;if(e.isBindingPattern(r.name))return qi(r.name,!0,!1)}}(t);case 197:case 230:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var i=up(r);if(i){if(2&n){var a=Gg(i);return a&&Ac([a,Lm(a)])}return i}}}(t);case 207:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=up(r);if(i)return t.asteriskToken?i:Uy(i,0!=(2&n))}}(r);case 201:return function(e){var t=xp(e);if(t){var r=Qg(t);return r&&Ac([r,Lm(r)])}}(r);case 191:case 192:return lp(r,t);case 194:case 212:return e.isConstTypeReference(r.type)?void 0:Du(r.type);case 204:return dp(t);case 275:case 276:return mp(r);case 277:return bp(r.parent);case 187:var n=r;return gp(bp(n),e.indexOfNode(n.elements,t));case 205:return function(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?xp(t):void 0}(t);case 216:return e.Debug.assert(206===r.parent.kind),function(e,t){if(193===e.parent.kind)return lp(e.parent,t)}(r.parent,t);case 195:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?Du(i.typeExpression.type):xp(r);case 270:return yp(r);case 267:case 269:return hp(r);case 262:case 261:return function(t){return e.isJsxOpeningElement(t)&&t.parent.contextualType?t.parent.contextualType:_p(t,0)}(r)}}}function Sp(t){var r=e.findAncestor(t,function(e){return!!e.inferenceContext});return r&&r.inferenceContext}function Tp(r,n){return 0!==Kf(n)?function(e,r){var n=wm(e,Oe);n=Cp(r,Yp(r),n);var i=Hp(t.IntrinsicAttributes,r);return i!==_e&&(n=no(i,n)),n}(r,n):function(r,n){var i,a=Yp(n),o=(i=a,Xp(t.ElementAttributesPropertyNameContainer,i)),s=void 0===o?wm(r,Oe):""===o?ps(r):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n=2)return Is(s,u=as([c,i],s.typeParameters,2,e.isInJSFile(r)));if(e.length(s.aliasTypeArguments)>=2){var u=as([c,i],s.aliasTypeArguments,2,e.isInJSFile(r));return Rs(s.aliasSymbol,u)}}return i}function Ep(t,r){var n=Vo(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n0&&208===i[a-1].kind,y=a-(g?1:0),h=void 0;if(c&&y>0)return(m=Os(Dc(s,y,g))).pattern=t,m;if(h=Ip(s,u,g,a,l))return h;if(n)return Dc(s,y,g)}return hc(s.length?Ac(s,2):O?Ae:fe,l)}function Ip(t,r,n,i,a){if(void 0===i&&(i=t.length),void 0===a&&(a=!1),a||r&&Dd(r,ql)){var o=i-(n?1:0),s=r&&r.pattern;if(!n&&s&&(185===s.kind||187===s.kind))for(var c=s.elements,u=i;u0&&(o=lu(o,w(),t.symbol,f,u),a=[],n=e.createSymbolTable(),g=!1,y=!1),!zp(S=kg(b.expression)))return Pr(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),_e;o=lu(o,S,t.symbol,f,u),h=v+1;continue}e.Debug.assert(158===b.kind||159===b.kind),hh(b)}!x||8576&x.flags?n.set(D.escapedName,D):rl(x,Pe)&&(rl(x,he)?y=!0:g=!0,i&&(m=!0)),a.push(D)}if(c)for(var N=0,A=Co(s);N0&&(o=lu(o,w(),t.symbol,f,u)),o):w();function w(){var r=g?Bp(t,h,a,0):void 0,o=y?Bp(t,h,a,1):void 0,s=Yn(t.symbol,n,e.emptyArray,e.emptyArray,r,o);return s.objectFlags|=262272|f,p&&(s.objectFlags|=16384),m&&(s.objectFlags|=512),i&&(s.pattern=t),s}}function zp(t){return!!(126615555&t.flags||117632&a_(t)&&zp(o_(t))||3145728&t.flags&&e.every(t.types,zp))}function Kp(t){return!e.stringContains(t,"-")}function Up(t){return 72===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Vp(e,t){return e.initializer?yg(e.initializer,t):xe}function qp(e,t){for(var r=[],n=0,i=e.children;n0&&(o=lu(o,S(),i.symbol,u,!1),a=e.createSymbolTable()),Ei(m=dg(p.expression,r))&&(s=!0),zp(m)?o=lu(o,m,i.symbol,u,!1):n=n?Mc([n,m]):m}s||a.size>0&&(o=lu(o,S(),i.symbol,u,!1));var y=260===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var h=qp(y,r);if(!s&&l&&""!==l){c&&Pr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(l));var v=bp(t.attributes),b=v&&pp(v,l),D=Ir(33554436,l);D.type=1===h.length?h[0]:Ip(h,b,!1)||hc(Ac(h)),D.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(l),void 0,void 0,void 0),D.valueDeclaration.parent=i,D.valueDeclaration.symbol=D;var x=e.createSymbolTable();x.set(l,D),o=lu(o,Yn(i.symbol,x,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,u,!1)}}return s?ce:n&&o!==Me?Mc([n,o]):n||(o===Me?S():o);function S(){u|=z;var t=Yn(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=262272|u,t}}(t.parent,r)}function Hp(e,t){var r=Yp(t),n=r&&Nn(r),i=n&&Wr(n,e,67897832);return i?Na(i):_e}function Gp(r){var n=Vr(r);if(!n.resolvedSymbol){var i=Hp(t.IntrinsicElements,r);if(i!==_e){if(!e.isIdentifier(r.tagName))return e.Debug.fail();var a=Ko(i,r.tagName.escapedText);return a?(n.jsxFlags|=1,n.resolvedSymbol=a):Go(i,0)?(n.jsxFlags|=2,n.resolvedSymbol=i.symbol):(Pr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+t.IntrinsicElements),n.resolvedSymbol=oe)}return B&&Pr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(t.IntrinsicElements)),n.resolvedSymbol=oe}return n.resolvedSymbol}function Yp(e){var r=e&&Vr(e);if(r&&r.jsxNamespace)return r.jsxNamespace;if(!r||!1!==r.jsxNamespace){var n=Fr(e),i=Gr(e,n,1920,void 0,n,!1);if(i){var a=_n(Wr(Nn(_n(i)),t.JSX,1920));if(a)return r&&(r.jsxNamespace=a),a;r&&(r.jsxNamespace=!1)}}return ec(t.JSX,1920,void 0)}function Xp(t,r){var n=r&&Wr(r.exports,t,67897832),i=n&&Na(n),a=i&&Co(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&Pr(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Qp(e){return Xp(t.ElementChildrenAttributeNameContainer,e)}function $p(r,n){var i=Hp(t.IntrinsicElements,n);if(i!==_e){var a=r.value,o=Ko(i,e.escapeLeadingUnderscores(a));if(o)return aa(o);var s=Go(i,0);return s||void 0}return ce}function Zp(t){e.Debug.assert(Up(t.tagName));var r=Vr(t);if(!r.resolvedJsxElementAttributesType){var n=Gp(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=aa(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=ks(n,0).type:r.resolvedJsxElementAttributesType=_e}return r.resolvedJsxElementAttributesType}function ef(e){var r=Hp(t.ElementClass,e);if(r!==_e)return r}function tf(e){return Hp(t.Element,e)}function rf(e){var t=tf(e);if(t)return Ac([t,me])}function nf(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){Dv(t,t.typeArguments);for(var r=e.createUnderscoreEscapedMap(),n=0,i=t.attributes.properties;n=0)return _>=km(n)&&(Nm(n)||_s)return!1;if(o||a>=c)return!0;for(var d=a;d=i&&r.length<=n}function Rf(e){if(524288&e.flags){var t=Do(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Bf(t,r,n,i){var a=T_(t.typeParameters,t,0,i),o=Am(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return x_(s?Iu(r,s):r,t,function(e,t){B_(a.inferences,e,t)}),n||S_(r,t,function(e,t){B_(a.inferences,e,t,8)}),gs(t,W_(a),e.isInJSFile(r.declaration))}function jf(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Tp(t,e),a=_g(e.attributes,i,n,r);return B_(n.inferences,a,i),W_(n)}(t,r,i,a);if(152!==t.kind){var o=xp(t);if(o){var s=Ku(o,A_(function(t,r){return void 0===r&&(r=0),t&&C_(e.map(t.inferences,N_),t.signature,t.flags|r,t.compareTypes)}(Sp(t),1))),c=Rf(s),u=c&&c.typeParameters?Ss(ys(c,c.typeParameters)):s,l=ps(r);B_(a.inferences,u,l,8),a.returnMapper=A_(function(t){var r=e.filter(t.inferences,xg);return r.length?C_(e.map(r,N_),t.signature,t.flags,t.compareTypes):void 0}(a))}}var _=ls(r);if(_){var d=Vf(t),p=d?kg(d):Ee;B_(a.inferences,p,_)}for(var f=Fm(r),m=f?Math.min(Em(r)-1,n.length):n.length,g=0;g=n-1){var o=t[n-1];if(wf(o))return 215===o.kind?hc(o.type):Dd(s=_g(o.expression,i,a,0),function(e){return!(63176705&e.flags||Jl(e)||e_(e))})?hc(Go(s,1)||_e):s}for(var s,c=Go(i,1)||ce,u=Zm(c,4325372),l=[],_=-1,d=r;d0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=i.length;if(a&&wf(i[a-1])&&If(i)===a-1){var o=i[a-1],s=dg(o.expression);if(e_(s)){var c=s.typeArguments||e.emptyArray,u=s.target.hasRestElement?c.length-1:-1,l=e.map(c,function(e,t){return qf(o,e,t===u)});return e.concatenate(i.slice(0,a-1),l)}}return i}function Hf(t,r){switch(t.parent.kind){case 240:case 209:return 1;case 154:return 2;case 156:case 158:case 159:return 0===P||r.parameters.length<=2?2:3;case 151:return 3;default:return e.Debug.fail()}}function Gf(t,r,n){for(var i,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,u=n.length,l=0,_=r;l<_.length;l++){var d=_[l],p=km(d),f=Em(d);ps&&(s=p),u-1;u<=o&&v&&u--;var b=y||v?y&&v?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&km(i)>u&&i.declaration){var D=i.declaration.parameters[i.thisParameter?u+1:u];D&&(g=e.createDiagnosticForNode(D,e.isBindingPattern(D.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,D.name?e.isBindingPattern(D.name)?void 0:e.idText(ch(D.name)):u))}if(au&&S?n.indexOf(S):o))}}else m=e.createNodeArray(n.slice(o));m.pos=e.first(m).pos,m.end=e.last(m).end,m.end===m.pos&&m.end++;var T=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),m,b,h,u);return g?e.addRelatedInfo(T,g):T}function Yf(t,r,n,i,a){var s,c=193===t.kind,u=152===t.kind,l=e.isJsxOpeningLikeElement(t),_=!n;u||(s=t.typeArguments,(c||l||98!==t.expression.kind)&&e.forEach(s,gh));var d=n||[];if(function(t,r){var n,i,a,o,s=0,c=-1;e.Debug.assert(!r.length);for(var u=0,l=t;u1&&(g=x(d,Sr,b)),g||(g=x(d,Tr,b)),g)return g;if(_)if(p)Uf(t,y,p,Tr,0,!0);else if(f)cr.add(Gf(t,[f],y));else if(m)zf(m,t.typeArguments,!0,a);else{var D=e.filter(r,function(e){return Lf(e,s)});0===D.length?cr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=is((_=r[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,d):o0),i||1===r.length||r.some(function(e){return!!e.typeParameters})?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===H?n.length:H),a=r[i],o=a.typeParameters;if(!o)return a;var s=Af(t)?t.typeArguments:void 0,c=s?hs(a,function(e,t,r){for(var n=e.map(wh);n.length>t.length;)n.pop();for(;n.length=0&&Pr(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=_f(t.expression);if(a===Ne)return Ot;if((a=Bo(a))===_e)return Pf(t);if(Ei(a))return t.typeArguments&&Pr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ff(t);var o=Vo(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Na(n.parent.symbol);if(!Nh(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=wh(s);if(function t(r,n){var i=va(n);if(!e.length(i))return!1;var a=i[0];if(2097152&a.flags){for(var o=a.types,s=oo(o),c=0,u=0,l=a.types;u0)return e.parameters.length-1+r}}return e.minArgumentCount}function Nm(e){if(e.hasRestParameter){var t=aa(e.parameters[e.parameters.length-1]);return!e_(t)||t.target.hasRestElement}return!1}function Am(e){if(e.hasRestParameter){var t=aa(e.parameters[e.parameters.length-1]);return e_(t)?function(e){var t=t_(e);return t&&hc(t)}(t):t}}function Fm(e){var t=Am(e);return!t||Jl(t)||Ei(t)?void 0:t}function Pm(e){return wm(e,ke)}function wm(e,t){return e.parameters.length>0?Sm(e,0):t}function Im(t,r){t.typeParameters=r.typeParameters,r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=d_(r.thisParameter,void 0)),Om(t.thisParameter,aa(r.thisParameter)));for(var n=t.parameters.length-(t.hasRestParameter?1:0),i=0;i1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!Sg(e,a))return a}}function Cg(t,r){var n=e.skipParentheses(t);if(191!==n.kind||98===n.expression.kind||e.isRequireCall(n,!0)||mm(n)){if(e.isAssertionExpression(n)&&!e.isConstTypeReference(n.type))return Du(n.type)}else{var i=Rf(_f(n.expression));if(i&&!i.typeParameters)return ps(i)}return r?dg(t):kg(t)}function Eg(e){var t=Vr(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=ce;var n=t.contextFreeType=kg(e,4);return e.contextualType=r,n}function kg(t,r,n){var i=h;h=t;var a=bg(t,function(t,r,n){switch(t.kind){case 72:return Hd(t);case 100:return Zd(t);case 98:return rp(t);case 96:return ge;case 14:case 10:return mu(hu(t.text));case 8:return zv(t),mu(hu(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&P<7&&jv(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext));}(t),mu(function(t){return hu({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 102:return xe;case 87:return be;case 206:return function(t){return e.forEach(t.templateSpans,function(t){Zm(kg(t.expression),12288)&&Pr(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),ye}(t);case 13:return nt;case 187:return wp(t,r,n);case 188:return Jp(t,r);case 189:return ff(t);case 148:return mf(t);case 190:return kf(t);case 191:if(92===t.expression.kind)return gm(t);case 192:return fm(t,r);case 193:return function(e){return Dv(e,e.typeArguments),P<2&&pv(e,65536),ps(um(e))}(t);case 195:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return n?vm(n,n.typeExpression.type,t.expression,r):kg(t.expression,r)}(t,r);case 209:return function(e){return $y(e),hh(e),aa(In(e))}(t);case 196:case 197:return Vm(t,r);case 199:return function(e){return kg(e.expression),xr}(t);case 194:case 212:return function(e){return vm(e,e.type,e.expression)}(t);case 213:return function(e){return l_(kg(e.expression))}(t);case 214:return bm(t);case 198:return function(t){kg(t.expression);var r=e.skipParentheses(t.expression);if(189!==r.kind&&190!==r.kind)return Pr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Te;var n=Rn(Vr(r).resolvedSymbol);return n&&Gm(n)&&Pr(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Te}(t);case 200:return function(e){return kg(e.expression),fe}(t);case 201:return function(t){return o&&(16384&t.flags||Rv(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),cp(t)&&Pr(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),Xg(kg(t.expression),t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t);case 202:return function(t){var r=kg(t.operand);if(r===Ne)return Ne;switch(t.operand.kind){case 8:switch(t.operator){case 39:return mu(hu(-t.operand.text));case 38:return mu(hu(+t.operand.text))}break;case 9:if(39===t.operator)return mu(hu({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 38:case 39:case 53:return pf(r,t.operand),Zm(r,12288)&&Pr(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),38===t.operator?(Zm(r,2112)&&Pr(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),li(r)),he):$m(r);case 52:Oy(t.operand);var n=12582912&id(r);return 4194304===n?be:8388608===n?xe:Te;case 44:case 45:return Wm(t.operand,pf(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Qm(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),$m(r)}return _e}(t);case 203:return function(t){var r=kg(t.operand);return r===Ne?Ne:(Wm(t.operand,pf(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Qm(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),$m(r))}(t);case 204:return cg(t,r);case 205:return function(e,t){return Oy(e.condition),Ac([kg(e.whenTrue,t),kg(e.whenFalse,t)],2)}(t,r);case 208:return function(e,t){return P<2&&F.downlevelIteration&&pv(e,1536),By(kg(e.expression,t),e.expression,!1,!1)}(t,r);case 210:return fe;case 207:return lg(t);case 215:return t.type;case 270:return function(t,r){if(t.expression){var n=kg(t.expression,r);return t.dotDotDotToken&&n!==ce&&!Jl(n)&&Pr(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return _e}(t,r);case 260:case 261:return function(e,t){return hh(e),tf(e)||ce}(t);case 264:return function(t){return nf(t.openingFragment),2===F.jsx&&(F.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&Pr(t,F.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),qp(t),tf(t)||ce}(t);case 268:return Wp(t,r);case 262:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return _e}(t,r,n),r);return rg(a)&&function(t,r){if(189===t.parent.kind&&t.parent.expression===t||190===t.parent.kind&&t.parent.expression===t||(72===t.kind||148===t.kind)&&Ah(t)||167===t.parent.kind&&t.parent.exprName===t||Pr(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),F.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags));var n=r.symbol.valueDeclaration;4194304&n.flags&&Pr(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,a),h=i,a}function Ng(t){t.expression&&Rv(t.expression,e.Diagnostics.Type_expected),gh(t.constraint),gh(t.default);var r=ka(In(t));Po(r),function(e){return Mo(e)!==ze}(r)||Pr(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,li(r));var n=ko(r),i=Lo(r);n&&i&&ol(i,Ha(n,i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),o&&Gy(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Ag(t){mv(t),Ny(t);var r=e.getContainingFunction(t);e.hasModifier(t,92)&&(157===r.kind&&e.nodeIsPresent(r.body)||Pr(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Pr(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Pr(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),157!==r.kind&&161!==r.kind&&166!==r.kind||Pr(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),197===r.kind&&Pr(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||rl(aa(t.symbol),st)||Pr(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Fg(t,r,n){for(var i=0,a=t.elements;i=2||F.noEmit||!e.hasRestParameter(t)||4194304&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===G.escapedName&&Pr(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var n=e.getEffectiveReturnTypeNode(t);if(B&&!n)switch(t.kind){case 161:Pr(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 160:Pr(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var i=e.getFunctionFlags(t);if(1==(5&i)){var a=Du(n);if(a===Ee)Pr(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Uy(a,0!=(2&i))||ce;ol(2&i?mc(s):yc(s),a,n)}}else 2==(3&i)&&function(t,r){var n=Du(r);if(P>=2){if(n===_e)return;var i=ic(!0);if(i!==Be&&!oa(n,i))return void Pr(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(t){Zg(t&&e.getEntityNameFromTypeNode(t))}(r),n===_e)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Pr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,li(n));var o=yn(a,67220415,!0),s=o?aa(o):_e;if(s===_e)return void(72===a.kind&&"Promise"===a.escapedText&&sa(n)===ic(!1)?Pr(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Pr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=mt||(mt=tc("PromiseConstructorLike",0,!0))||Oe;if(c===Oe)return void Pr(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!ol(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=a&&ch(a),l=Wr(t.locals,u.escapedText,67220415);if(l)return void Pr(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}Xg(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)}(t,n)}162!==t.kind&&294!==t.kind&&sy(t)}}function wg(t){for(var r=e.createMap(),n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=Ts(In(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&Pr(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));sr.push(t.id);var l=Qg(u,r,n);if(sr.pop(),!l)return;return i.awaitedTypeOfType=l}var _=Ci(t,"then");if(!(_&&Vo(_,0).length>0))return i.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Pr(r,n)}}function $g(t){var r=ps(um(t));if(!(1&r.flags)){var n,i,a=im(t);switch(t.parent.kind){case 240:n=Ac([aa(In(t.parent)),Ee]);break;case 151:n=Ee,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 154:n=Ee,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 156:case 158:case 159:n=Ac([fc(wh(t.parent)),Ee]);break;default:return e.Debug.fail()}ol(r,n,t,a,function(){return i})}}function Zg(e){if(e){var t=ch(e),r=2097152|(72===e.kind?67897832:1920),n=Gr(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&Bn(n)&&!Wh(dn(n))&&fn(n)}}function ey(t){var r=ty(t);r&&e.isEntityName(r)&&Zg(r)}function ty(e){if(e)switch(e.kind){case 174:case 173:return ry(e.types);case 175:return ry([e.trueType,e.falseType]);case 177:return ty(e.type);case 164:return e.typeName}}function ry(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015||F.noEmit)&&(Dy(t,r,"require")||Dy(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ti(t);284===n.kind&&e.isExternalOrCommonJsModule(n)&&Pr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Cy(t,r){if(!(P>=4||F.noEmit)&&Dy(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ti(t);284===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&Pr(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function Ey(t){if(151===e.getRootDeclaration(t).kind){var r=e.getContainingFunction(t);!function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(189===i.kind)return n(i.expression);if(72!==i.kind)return e.forEachChild(i,n);var a=Gr(i,i.escapedText,69317567,void 0,void 0,!1);if(a&&a!==oe&&a.valueDeclaration)if(a.valueDeclaration!==t){var o=e.getEnclosingBlockScopeContainer(a.valueDeclaration);if(o===r){if(151===a.valueDeclaration.kind||186===a.valueDeclaration.kind){if(a.valueDeclaration.pos1&&e.some(c.declarations,function(r){return r!==t&&e.isVariableLike(r)&&!Fy(r,t)})&&Pr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var _=ky(Wi(t));u===_e||_===_e||Qu(u,_)||67108864&c.flags||Ay(u,t,_),t.initializer&&sl(dg(t.initializer),_,t,t.initializer,void 0),Fy(t,c.valueDeclaration)||Pr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}154!==t.kind&&153!==t.kind&&(Hg(t),237!==t.kind&&186!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(237!==t.kind||t.initializer)){var r=In(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Gr(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&sf(n)){var i=e.getAncestor(n.valueDeclaration,238),a=219===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(218===a.kind&&e.isFunctionLike(a.parent)||245===a.kind||244===a.kind||284===a.kind)){var o=ci(n);Pr(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Ty(t,t.name),Cy(t,t.name))}}}function Ay(t,r,n){var i=e.getNameOfDeclaration(r);Pr(i,154===r.kind||153===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,e.declarationNameToString(i),li(t),li(n))}function Fy(t,r){return 151===t.kind&&237===r.kind||237===t.kind&&151===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedModifierFlags(t,504)===e.getSelectedModifierFlags(r,504)}function Py(t){return function(t){if(226!==t.parent.parent.kind&&227!==t.parent.parent.kind)if(4194304&t.flags)Ov(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return jv(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return jv(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(219!==t.parent.parent.kind||!t.type||t.initializer||4194304&t.flags))return jv(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);F.module===e.ModuleKind.ES2015||F.module===e.ModuleKind.ESNext||F.module===e.ModuleKind.System||F.noEmit||4194304&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||function t(r){if(72===r.kind){if("__esModule"===e.idText(r))return jv(r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=r.elements,i=0,a=n;i=1&&Py(t.declarations[0])}function Ry(e,t){return By(_f(e),e,!0,void 0!==t)}function By(e,t,r,n){return Ei(e)?e:jy(e,t,r,n,!0)||ce}function jy(t,r,n,i,a){if(t!==ke){var o=P>=2,s=!o&&F.downlevelIteration;if(o||s||i){var c=Jy(t,o?r:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(n){if(1048576&u.flags){var d=t.types,p=e.filter(d,function(e){return!(132&e.flags)});p!==d&&(u=Ac(p,2))}else 132&u.flags&&(u=ke);if((_=u!==t)&&(P<1&&r&&(Pr(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),131072&u.flags))return ye}if(!Ul(u)){if(r&&!l){var f=!!Jy(t,void 0,i,!0,a);Pr(r,!n||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: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:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,li(u))}return _?ye:void 0}var m=Go(u,1);return _&&m?132&m.flags?ye:Ac([m,ye],2):m}zy(r,t,i)}function Jy(t,r,n,i,a){if(!Ei(t))return Td(t,function(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(oa(t,oc(!1))||oa(t,cc(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return n?o.iteratedTypeOfAsyncIterable=Qg(o.iteratedTypeOfIterable):o.iteratedTypeOfIterable;if(oa(t,uc(!1))||oa(t,_c(!1)))return n?o.iteratedTypeOfAsyncIterable=Qg(t.typeArguments[0]):o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&Ci(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||(i?Ci(t,e.getPropertyNameForKnownSymbolName("iterator")):void 0);if(!Ei(c)){var u=c?Vo(c,0):void 0;if(e.some(u)){var l=Ky(Ac(e.map(u,ps),2),r,!!s);return a&&r&&l&&ol(t,s?function(e){return pc(oc(!0),[e])}(l):gc(l),r),l?n?o.iteratedTypeOfAsyncIterable=s?l:Qg(l):o.iteratedTypeOfIterable=l:void 0}r&&(zy(r,t,n),r=void 0)}})}function zy(t,r,n){Pr(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,li(r))}function Ky(t,r,n){if(!Ei(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(oa(t,(n?sc:lc)(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=Ci(t,"next");if(!Ei(a)){var o=a?Vo(a,0):e.emptyArray;if(0!==o.length){var s=Ac(e.map(o,ps),2);if(!(Ei(s)||n&&Ei(s=Gg(s,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)))){var c=s&&Ci(s,"value");if(c)return n?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;r&&Pr(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else r&&Pr(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function Uy(e,t){if(!Ei(e))return Jy(e,void 0,t,!t,!1)||Ky(e,void 0,t)}function Vy(t){Jv(t)||function(t){for(var r=t;r;){if(e.isFunctionLike(r))return jv(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 233:if(t.label&&r.label.escapedText===t.label.escapedText){var n=228===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&jv(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 232:if(229===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var i=229===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return jv(t,i)}var i=229===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;jv(t,i)}(t)}function qy(t,r){var n=2==(3&e.getFunctionFlags(t))?Yg(r):r;return!!n&&Zm(n,16387)}function Wy(t){Jv(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!Lv(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);cr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&kg(t.expression)}function Hy(t){var r,n=Cs(t.symbol,1),i=Cs(t.symbol,0),a=Go(t,0),o=Go(t,1);if(a||o){e.forEach(xo(t),function(e){var r=aa(e);p(e,r,t,i,a,0),p(e,r,t,n,o,1)});var s=t.symbol.valueDeclaration;if(1&e.getObjectFlags(t)&&e.isClassLike(s))for(var c=0,u=s.members;cn)return!1;for(var l=0;l1)return Rv(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(109===o.token),n)return Rv(o,e.Diagnostics.implements_clause_already_seen);n=!0}Sv(o)}})(t)||hv(t.typeParameters,r)}(t),iy(t),t.name&&(Gy(t.name,e.Diagnostics.Class_name_cannot_be_0),Ty(t,t.name),Cy(t,t.name),4194304&t.flags||(r=t.name,1===P&&"Object"===r.escapedText&&w!==e.ModuleKind.ES2015&&w!==e.ModuleKind.ESNext&&Pr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[w]))),Yy(e.getEffectiveTypeParameterDeclarations(t)),Hg(t);var n=In(t),i=Na(n),a=Ha(i),s=aa(n);Qy(n),function(t){var r;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(r||(r={}));for(var n=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a>s;case 48:return a>>>s;case 46:return a<1&&_(t,!!F.preserveConstEnums||!!F.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r1)for(var o=0,s=n;o=0)n.hasRestParameter&&i.parameterIndex===n.parameters.length-1?Pr(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):ol(i.type,aa(n.parameters[i.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(a){for(var o=!1,s=0,c=r.parameters;s0),n.length>1&&Pr(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=ay(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=ay(a.expression);o&&i.escapedText!==o.escapedText&&Pr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Pr(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 309:case 302:return function(t){t.typeExpression||Pr(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&Gy(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),gh(t.typeExpression)}(t);case 308:return function(e){gh(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(o&&271===s.kind){var l=kg(s.expression),_=Yl(l),d=i;_&&a||(l=_?Xl(l):l,d=Xl(i)),sg(d,l)||fl(l,d,s.expression,void 0)}e.forEach(s.statements,gh)}),t.caseBlock.locals&&sy(t.caseBlock)}(t);case 233:return function(t){Jv(t)||e.findAncestor(t.parent,function(r){return e.isFunctionLike(r)?"quit":233===r.kind&&r.label.escapedText===t.label.escapedText&&(jv(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)}),gh(t.statement)}(t);case 234:return Wy(t);case 235:return function(t){Jv(t),by(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)Rv(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)Rv(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!=(2&r.flags)&&jv(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}by(r.block)}t.finallyBlock&&by(t.finallyBlock)}(t);case 237:return Py(t);case 186:return wy(t);case 240:return function(t){t.name||e.hasModifier(t,512)||Rv(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),$y(t),e.forEach(t.members,gh),sy(t)}(t);case 241:return nh(t);case 242:return function(t){mv(t),Gy(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Yy(t.typeParameters),gh(t.type),sy(t)}(t);case 243:return function(t){if(o){mv(t),Gy(t.name,e.Diagnostics.Enum_name_cannot_be_0),Ty(t,t.name),Cy(t,t.name),Hg(t),ih(t);var r=In(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Pr(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var i=!1;e.forEach(r.declarations,function(t){if(243!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Pr(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}(t);case 244:return oh(t);case 249:return function(t){if(!dh(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!mv(t)&&e.hasModifiers(t)&&Rv(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),uh(t))){var r=t.importClause;r&&(r.name&&_h(r),r.namedBindings&&(251===r.namedBindings.kind?_h(r.namedBindings):vn(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,_h)))}}(t);case 248:return function(t){if(!dh(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(mv(t),e.isInternalModuleImportEqualsDeclaration(t)||uh(t)))if(_h(t),e.hasModifier(t,1)&&pn(t),259!==t.moduleReference.kind){var r=dn(In(t));if(r!==oe){if(67220415&r.flags){var n=ch(t.moduleReference);1920&yn(n,67221439).flags||Pr(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}67897832&r.flags&&Gy(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else w>=e.ModuleKind.ES2015&&!(4194304&t.flags)&&jv(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 255:return function(t){if(!dh(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!mv(t)&&e.hasModifiers(t)&&Rv(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||uh(t)))if(t.exportClause){e.forEach(t.exportClause.elements,ph);var r=245===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&245===t.parent.kind&&!t.moduleSpecifier&&4194304&t.flags;284===t.parent.kind||r||n||Pr(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=vn(t,t.moduleSpecifier);i&&Cn(i)&&Pr(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ci(i)),w!==e.ModuleKind.System&&w!==e.ModuleKind.ES2015&&w!==e.ModuleKind.ESNext&&pv(t,32768)}}(t);case 254:return function(t){if(!dh(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=284===t.parent.kind?t.parent:t.parent.parent;244!==r.kind||e.isAmbientModule(r)?(!mv(t)&&e.hasModifiers(t)&&Rv(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),72===t.expression.kind?(pn(t),e.getEmitDeclarations(F)&&vi(t.expression,!0)):dg(t.expression),fh(r),4194304&t.flags&&!e.isEntityNameExpression(t.expression)&&jv(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||4194304&t.flags||(w>=e.ModuleKind.ES2015?jv(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):w===e.ModuleKind.System&&jv(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):t.isExportEquals?Pr(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Pr(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 220:case 236:return void Jv(t);case 258:!function(e){iy(e)}(t)}}(t),h=r}}function yh(t){e.isInJSFile(t)||jv(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function hh(t){var r=Vr(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||e.createMap();var n=""+u(t);r.deferredNodes.set(n,t)}}function vh(t){var r=h;switch(h=t,t.kind){case 196:case 197:case 156:case 155:!function(t){e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=qm(t,r);if(0==(1&r)&&Um(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||ps(os(t)),218===t.body.kind)gh(t.body);else{var i=kg(t.body);n&&sl(2==(3&r)?Xg(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,n,t.body,t.body)}}(t);break;case 158:case 159:Lg(t);break;case 209:!function(t){e.forEach(t.members,gh),sy(t)}(t);break;case 261:!function(e){nf(e)}(t);break;case 260:!function(e){nf(e.openingElement),Up(e.closingElement.tagName)?Gp(e.closingElement):kg(e.closingElement.tagName),qp(e)}(t)}h=r}function bh(t){e.performance.mark("beforeCheck"),function(t){var r=Vr(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,F))return;!function(t){4194304&t.flags&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),bh),cr.getDiagnostics()}(t)}finally{m=void 0}}function Th(){if(!o)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Ch(e){switch(e.kind){case 150:case 240:case 241:case 242:case 243:return!0;default:return!1}}function Eh(e){for(;148===e.parent.kind;)e=e.parent;return 164===e.parent.kind}function kh(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function Nh(e,t){return!!kh(e,function(e){return e===t})}function Ah(e){return void 0!==function(e){for(;148===e.parent.kind;)e=e.parent;return 248===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:254===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Fh(t){if(e.isDeclarationName(t))return In(t.parent);if(e.isInJSFile(t)&&189===t.parent.kind&&t.parent===t.parent.parent.left){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return In(t.parent);case 4:case 2:case 5:return In(t.parent.parent)}}(t);if(r)return r}if(254===t.parent.kind&&e.isEntityNameExpression(t)){var n=yn(t,70107135,!0);if(n&&n!==oe)return n}else if(!e.isPropertyAccessExpression(t)&&Ah(t)){var i=e.getAncestor(t,248);return e.Debug.assert(void 0!==i),mn(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&183===r.kind&&r.qualifier===t)return r}(t);if(a){Du(a);var o=Vr(t).resolvedSymbol;return o===oe?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;189===e.parent.kind;)e=e.parent;return 211===e.parent.kind}(t)){var s=0;211===t.parent.kind?(s=67897832,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=67220415)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?yn(t,s):void 0;if(c)return c}if(304===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(150===t.parent.kind&&308===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(72===t.kind){if(e.isJSXTagName(t)&&Up(t)){var l=Gp(t.parent);return l===oe?void 0:l}return yn(t,67220415,!1,!0)}if(189===t.kind||148===t.kind){var _=Vr(t);return _.resolvedSymbol?_.resolvedSymbol:(189===t.kind?ff(t):mf(t),_.resolvedSymbol)}}else if(Eh(t))return yn(t,s=164===t.parent.kind?67897832:1920,!1,!0);return 163===t.parent.kind?yn(t,1):void 0}function Ph(t){if(284===t.kind)return e.isExternalModule(t)?wn(t.symbol):void 0;var r=t.parent,n=r.parent;if(!(8388608&t.flags)){if(d(t)){var i=In(r);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?jp(i):i}if(e.isLiteralComputedPropertyDeclarationName(t))return In(r.parent);if(72===t.kind){if(Ah(t))return Fh(t);if(186===r.kind&&184===n.kind&&t===r.propertyName){var a=Ko(wh(n),t.escapedText);if(a)return a}}switch(t.kind){case 72:case 189:case 148:return Fh(t);case 100:var o=e.getThisContainer(t,!1);if(e.isFunctionLike(o)){var s=os(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(t))return kg(t).symbol;case 178:return bu(t).symbol;case 98:return kg(t).symbol;case 124:var c=t.parent;return c&&157===c.kind?c.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(249===t.parent.kind||255===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return vn(t,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===t)return In(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===t?Cg(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(n)?Du(n.objectType):void 0;return u&&Ko(u,e.escapeLeadingUnderscores(t.text));case 80:case 90:case 37:case 76:return In(t.parent);case 183:return e.isLiteralImportTypeNode(t)?Ph(t.argument.literal):void 0;case 85:return e.isExportAssignment(t.parent)?e.Debug.assertDefined(t.parent.symbol):void 0;default:return}}}function wh(t){if(8388608&t.flags)return _e;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&Da(In(i.class));if(e.isPartOfTypeNode(t)){var o=Du(t);return a?Ha(o,a.thisType):o}if(e.isExpressionNode(t))return Ih(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(va(a));return s?Ha(s,a.thisType):_e}if(Ch(t))return Na(n=In(t));if(72===(r=t).kind&&Ch(r.parent)&&r.parent.name===r)return(n=Ph(t))?Na(n):_e;if(e.isDeclaration(t))return aa(n=In(t));if(d(t))return(n=Ph(t))?aa(n):_e;if(e.isBindingPattern(t))return Bi(t.parent,!0)||_e;if(Ah(t)&&(n=Ph(t))){var c=Na(n);return c!==_e?c:aa(n)}return _e}function Ih(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),gu(Cg(t))}function Oh(t){t=Bo(t);var r=e.createSymbolTable(Co(t)),n=Vo(t,0).length?Xe:Vo(t,1).length?Qe:void 0;return n&&e.forEach(Co(n),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),Hn(r)}function Mh(t){return e.typeHasCallOrConstructSignatures(t,X)}function Lh(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r)return!(189===r.parent.kind&&r.parent.name===r)&&cv(r)===G}return!1}function Rh(t){var r=vn(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Cn(r),i=Ur(r=Sn(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(67220415&r.flags):e.forEachEntry(An(r),function(e){return(e=_n(e))&&!!(67220415&e.flags)})),i.exportsSomeValue}function Bh(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=cv(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=wn(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=On(i);if(o){if(512&o.flags&&284===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&In(t)===o})}}}}function jh(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=cv(r);if(ln(n,67220415))return rn(n)}}function Jh(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=Ur(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=Vr(t.valueDeclaration);if(Gr(n.parent,t.escapedName,67220415,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=218===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function zh(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=cv(r);if(n&&Jh(n))return n.valueDeclaration}}}function Kh(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=In(r);if(n)return Jh(n)}return!1}function Uh(t){switch(t.kind){case 248:case 250:case 251:case 253:case 257:return qh(In(t)||oe);case 255:var r=t.exportClause;return!!r&&e.some(r.elements,Uh);case 254:return!t.expression||72!==t.expression.kind||qh(In(t)||oe)}return!1}function Vh(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||284!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&qh(In(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function qh(e){var t=dn(e);return t===oe||!!(67220415&t.flags)&&(F.preserveConstEnums||!Wh(t))}function Wh(e){return ng(e)||!!e.constEnumOnlyModule}function Hh(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=us(In(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Gh(t){return!(!O||es(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasModifier(t,92))}function Yh(t){return O&&es(t)&&!t.initializer&&e.hasModifier(t,92)}function Xh(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=In(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Nn(n),function(t){return 67220415&t.flags&&e.isPropertyAccessExpression(t.valueDeclaration)})}function Qh(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=In(r);return n&&Co(aa(n))||e.emptyArray}function $h(e){return Vr(e).flags||0}function Zh(e){return ih(e.parent),Vr(e).enumMemberValue}function ev(e){switch(e.kind){case 278:case 189:case 190:return!0}return!1}function tv(t){if(278===t.kind)return Zh(t);var r=Vr(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Zh(n)}}function rv(e){return!!(524288&e.flags)&&Vo(e,0).length>0}function nv(t,r){var n=e.getParseTreeNode(t,e.isEntityName);if(!n)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var i=yn(n,67220415,!0,!1,r),a=yn(n,67897832,!0,!1,r);if(i&&i===a){var o=ac(!1);if(o&&i===o)return e.TypeReferenceSerializationKind.Promise;var s=aa(i);if(s&&fa(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.Unknown;var c=Na(a);return c===_e?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:eg(c,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:eg(c,528)?e.TypeReferenceSerializationKind.BooleanType:eg(c,296)?e.TypeReferenceSerializationKind.NumberLikeType:eg(c,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:eg(c,132)?e.TypeReferenceSerializationKind.StringLikeType:e_(c)?e.TypeReferenceSerializationKind.ArrayLikeType:eg(c,12288)?e.TypeReferenceSerializationKind.ESSymbolType:rv(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Jl(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function iv(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.createToken(120);var s=In(o),c=!s||133120&s.flags?_e:Ql(aa(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=u_(c)),U.typeToTypeNode(c,r,1024|n,i)}function av(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.createToken(120);var o=os(a);return U.typeToTypeNode(ps(o),r,1024|n,i)}function ov(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.createToken(120);var o=h_(Ih(a));return U.typeToTypeNode(o,r,1024|n,i)}function sv(t){return V.has(e.escapeLeadingUnderscores(t))}function cv(t,r){var n=Vr(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Ti(a))}return Gr(i,t.escapedText,70366143,void 0,void 0,!0)}function uv(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=cv(r);if(n)return Rn(n).valueDeclaration}}}function lv(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&yu(aa(In(t)))}function _v(t,r){return function(t,r,n){return(1024&t.flags?U.symbolToExpression(t.symbol,67220415,r,void 0,n):t===xe?e.createTrue():t===be&&e.createFalse())||e.createLiteral(t.value)}(aa(In(t)),t,r)}function dv(t){var r=244===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=bn(r,r,void 0);if(n)return e.getDeclarationOfKind(n,284)}function pv(t,r){if((g&r)!==r&&F.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,F)&&!(4194304&t.flags)){var i=(c=t,y||(y=Dn(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||oe),y);if(i!==oe)for(var a=r&~g,o=1;o<=65536;o<<=1)if(a&o){var s=fv(o);Wr(i.exports,e.escapeLeadingUnderscores(s),67220415)||Pr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}g|=r}}var c}function fv(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function mv(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 156!==t.kind||e.nodeIsPresent(t.body)?Rv(t,e.Diagnostics.Decorators_are_not_valid_here):Rv(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(158===t.kind||159===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return Rv(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 158:case 159:case 157:case 154:case 153:case 156:case 155:case 162:case 244:case 249:case 248:case 255:case 254:case 196:case 197:case 151:return!1;default:if(245===t.parent.kind||284===t.parent.kind)return!1;switch(t.kind){case 239:return gv(t,121);case 240:return gv(t,118);case 241:case 219:case 242:return!0;case 243:return gv(t,77);default:return e.Debug.fail(),!1}}}(t)?Rv(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function yv(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&Bv(t[0],t.end-",".length,",".length,r)}function hv(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return Bv(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function vv(t){if(P>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)}));if(e.length(n)){e.forEach(n,function(t){e.addRelatedInfo(Pr(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var i=n.map(function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,[Pr(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)].concat(i)),!0}}}var a;return!1}function bv(t){var r=e.getSourceFileOfNode(t);return mv(t)||hv(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function xv(t){return function(t){if(t)for(var r=0,n=t;r1){var i=226===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 Rv(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=226===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 jv(a.name,i)}if(a.type)return jv(a,i=226===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 Fv(t){if(t.parameters.length===(158===t.kind?1:2))return e.getThisParameter(t)}function Pv(t,r){if(function(t){return e.isDynamicName(t)&&!Ba(t)}(t))return jv(t,r)}function wv(t){if(bv(t))return!0;if(156===t.kind){if(188===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||121!==e.first(t.modifiers).kind))return Rv(t,e.Diagnostics.Modifiers_cannot_appear_here);if(kv(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(Nv(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return Bv(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Ev(t))return!0}if(e.isClassLike(t.parent)){if(4194304&t.flags)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(156===t.kind&&!t.body)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(241===t.parent.kind)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(168===t.parent.kind)return Pv(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Iv(e){return 10===e.kind||8===e.kind||202===e.kind&&39===e.operator&&8===e.operand.kind}function Ov(t){var r,n=t.initializer;if(n){var i=!(Iv(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&Iv(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&dg(t).flags)}(n)||102===n.kind||87===n.kind||(r=n,9===r.kind||202===r.kind&&39===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return jv(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return jv(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return jv(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function Mv(t){var r=t.declarations;return!!yv(t.declarations)||!t.declarations.length&&Bv(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function Lv(e){return e.parseDiagnostics.length>0}function Rv(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!Lv(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return cr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function Bv(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!Lv(c)&&(cr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function jv(t,r,n,i,a){return!Lv(e.getSourceFileOfNode(t))&&(cr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function Jv(t){if(4194304&t.flags){if(e.isAccessor(t.parent))return Vr(t).hasReportedStatementInAmbientContext=!0;if(!Vr(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return Vr(t).hasReportedStatementInAmbientContext=Rv(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(218===t.parent.kind||245===t.parent.kind||284===t.parent.kind){var r=Vr(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=Rv(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function zv(t){if(32&t.numericLiteralFlags){var r=void 0;if(P>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,182)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,278)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&39===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return jv(n?t.parent:t,r,i)}}return!1}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(t||(t={}))}(c||(c={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Xt(t,r),Vt(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0===e)return e;var r=t(e.kind);for(var n in r.flags|=e.flags,Xt(r,e),e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function a(t,r){if("number"==typeof t)return o(t+"");if("object"===f(t)&&"base10Value"in t)return s(e.pseudoBigIntToString(t)+"n");if("boolean"==typeof t)return t?g():y();if(e.isString(t)){var n=c(t);return r&&(n.singleQuote=!0),n}return i=t,(a=c(e.getTextOfIdentifierOrLiteral(i))).textSourceNode=i,a;var i,a}function o(e,r){void 0===r&&(r=0);var n=t(8);return n.text=e,n.numericLiteralFlags=r,n}function s(e){var r=t(9);return r.text=e,r}function c(e){var r=t(10);return r.text=e,r}function u(r,i){var a=t(72);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createBigIntLiteral=s,e.createStringLiteral=c,e.createRegularExpressionLiteral=function(e){var r=t(13);return r.text=e,r},e.createIdentifier=u,e.updateIdentifier=function(t,n){return t.typeArguments!==n?r(u(e.idText(t),n),t):t};var l,_,d=0;function p(e){var t=u(e);return t.autoGenerateFlags=19,t.autoGenerateId=d,d++,t}function m(e){return t(e)}function g(){return t(102)}function y(){return t(87)}function h(e){return m(e)}function v(e,r){var n=t(148);return n.left=e,n.right=zt(r),n}function b(r){var n=t(149);return n.expression=function(t){return e.isCommaSequence(t)?ue(t):t}(r),n}function D(e,r,n){var i=t(150);return i.name=zt(e),i.constraint=r,i.default=n,i}function x(r,n,i,a,o,s,c){var u=t(151);return u.decorators=Kt(r),u.modifiers=Kt(n),u.dotDotDotToken=i,u.name=zt(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function S(r){var n=t(152);return n.expression=e.parenthesizeForAccess(r),n}function T(e,r,n,i,a){var o=t(153);return o.modifiers=Kt(e),o.name=zt(r),o.questionToken=n,o.type=i,o.initializer=a,o}function C(e,r,n,i,a,o){var s=t(154);return s.decorators=Kt(e),s.modifiers=Kt(r),s.name=zt(n),s.questionToken=void 0!==i&&56===i.kind?i:void 0,s.exclamationToken=void 0!==i&&52===i.kind?i:void 0,s.type=a,s.initializer=o,s}function E(e,t,r,n,i){var a=w(155,e,t,r);return a.name=zt(n),a.questionToken=i,a}function k(e,r,i,a,o,s,c,u,l){var _=t(156);return _.decorators=Kt(e),_.modifiers=Kt(r),_.asteriskToken=i,_.name=zt(a),_.questionToken=o,_.typeParameters=Kt(s),_.parameters=n(c),_.type=u,_.body=l,_}function N(e,r,i,a){var o=t(157);return o.decorators=Kt(e),o.modifiers=Kt(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function A(e,r,i,a,o,s){var c=t(158);return c.decorators=Kt(e),c.modifiers=Kt(r),c.name=zt(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function F(e,r,i,a,o){var s=t(159);return s.decorators=Kt(e),s.modifiers=Kt(r),s.name=zt(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function P(e,r,i,a){var o=t(162);return o.decorators=Kt(e),o.modifiers=Kt(r),o.parameters=n(i),o.type=a,o}function w(e,r,n,i,a){var o=t(e);return o.typeParameters=Kt(r),o.parameters=Kt(n),o.type=i,o.typeArguments=Kt(a),o}function I(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(w(e.kind,t,n,i),e):e}function O(e,r){var n=t(163);return n.parameterName=zt(e),n.type=r,n}function M(r,n){var i=t(164);return i.typeName=zt(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function L(e){var r=t(167);return r.exprName=e,r}function R(e){var r=t(168);return r.members=n(e),r}function B(r){var n=t(169);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function j(e){var r=t(170);return r.elementTypes=n(e),r}function J(r){var n=t(171);return n.type=e.parenthesizeArrayTypeMember(r),n}function z(e){var r=t(172);return r.type=e,r}function K(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function U(e,t){return e.types!==t?r(K(e.kind,t),e):e}function V(r,n,i,a){var o=t(175);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function q(e){var r=t(176);return r.typeParameter=e,r}function W(e,r,n,i){var a=t(183);return a.argument=e,a.qualifier=r,a.typeArguments=Kt(n),a.isTypeOf=i,a}function H(e){var r=t(177);return r.type=e,r}function G(r,n){var i=t(179);return i.operator="number"==typeof r?r:129,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function Y(r,n){var i=t(180);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function X(e,r,n,i){var a=t(181);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function Q(e){var r=t(182);return r.literal=e,r}function $(e){var r=t(184);return r.elements=n(e),r}function Z(e){var r=t(185);return r.elements=n(e),r}function ee(e,r,n,i){var a=t(186);return a.dotDotDotToken=e,a.propertyName=zt(r),a.name=zt(n),a.initializer=i,a}function te(r,i){var a=t(187);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function re(e,r){var i=t(188);return i.properties=n(e),r&&(i.multiLine=!0),i}function ne(r,n){var i=t(189);return i.expression=e.parenthesizeForAccess(r),i.name=zt(n),qt(i,131072),i}function ie(r,n){var i,o=t(190);return o.expression=e.parenthesizeForAccess(r),o.argumentExpression=(i=n,e.isString(i)||"number"==typeof i?a(i):i),o}function ae(r,i,a){var o=t(191);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Kt(i),o.arguments=e.parenthesizeListElements(n(a)),o}function oe(r,i,a){var o=t(192);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Kt(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function se(r,n,i){var a=t(193);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=Kt(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function ce(r,n){var i=t(194);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function ue(e){var r=t(195);return r.expression=e,r}function le(e,r,i,a,o,s,c){var u=t(196);return u.modifiers=Kt(e),u.asteriskToken=r,u.name=zt(i),u.typeParameters=Kt(a),u.parameters=n(o),u.type=s,u.body=c,u}function _e(r,i,a,o,s,c){var u=t(197);return u.modifiers=Kt(r),u.typeParameters=Kt(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||m(37),u.body=e.parenthesizeConciseBody(c),u}function de(r){var n=t(198);return n.expression=e.parenthesizePrefixOperand(r),n}function pe(r){var n=t(199);return n.expression=e.parenthesizePrefixOperand(r),n}function fe(r){var n=t(200);return n.expression=e.parenthesizePrefixOperand(r),n}function me(r){var n=t(201);return n.expression=e.parenthesizePrefixOperand(r),n}function ge(r,n){var i=t(202);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function ye(r,n){var i=t(203);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function he(r,n,i){var a,o=t(204),s="number"==typeof(a=n)?m(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,r,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function ve(r,n,i,a,o){var s=t(205);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:m(56),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:m(57),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function be(e,r){var i=t(206);return i.head=e,i.templateSpans=n(r),i}function De(e,r){var n=t(207);return n.asteriskToken=e&&40===e.kind?e:void 0,n.expression=e&&40!==e.kind?e:r,n}function xe(r){var n=t(208);return n.expression=e.parenthesizeExpressionForList(r),n}function Se(e,r,i,a,o){var s=t(209);return s.decorators=void 0,s.modifiers=Kt(e),s.name=zt(r),s.typeParameters=Kt(i),s.heritageClauses=Kt(a),s.members=n(o),s}function Te(r,n){var i=t(211);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=Kt(r),i}function Ce(e,r){var n=t(212);return n.expression=e,n.type=r,n}function Ee(r){var n=t(213);return n.expression=e.parenthesizeForAccess(r),n}function ke(e,r){var n=t(214);return n.keywordToken=e,n.name=r,n}function Ne(e,r){var n=t(216);return n.expression=e,n.literal=r,n}function Ae(e,r){var i=t(218);return i.statements=n(e),r&&(i.multiLine=r),i}function Fe(r,n){var i=t(219);return i.decorators=void 0,i.modifiers=Kt(r),i.declarationList=e.isArray(n)?Ge(n):n,i}function Pe(r){var n=t(221);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function we(e,t){return e.expression!==t?r(Pe(t),e):e}function Ie(e,r,n){var i=t(222);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function Oe(e,r){var n=t(223);return n.statement=e,n.expression=r,n}function Me(e,r){var n=t(224);return n.expression=e,n.statement=r,n}function Le(e,r,n,i){var a=t(225);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=i,a}function Re(e,r,n){var i=t(226);return i.initializer=e,i.expression=r,i.statement=n,i}function Be(e,r,n,i){var a=t(227);return a.awaitModifier=e,a.initializer=r,a.expression=n,a.statement=i,a}function je(e){var r=t(228);return r.label=zt(e),r}function Je(e){var r=t(229);return r.label=zt(e),r}function ze(e){var r=t(230);return r.expression=e,r}function Ke(e,r){var n=t(231);return n.expression=e,n.statement=r,n}function Ue(r,n){var i=t(232);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function Ve(e,r){var n=t(233);return n.label=zt(e),n.statement=r,n}function qe(e){var r=t(234);return r.expression=e,r}function We(e,r,n){var i=t(235);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function He(r,n,i){var a=t(237);return a.name=zt(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function Ge(e,r){void 0===r&&(r=0);var i=t(238);return i.flags|=3&r,i.declarations=n(e),i}function Ye(e,r,i,a,o,s,c,u){var l=t(239);return l.decorators=Kt(e),l.modifiers=Kt(r),l.asteriskToken=i,l.name=zt(a),l.typeParameters=Kt(o),l.parameters=n(s),l.type=c,l.body=u,l}function Xe(e,r,i,a,o,s){var c=t(240);return c.decorators=Kt(e),c.modifiers=Kt(r),c.name=zt(i),c.typeParameters=Kt(a),c.heritageClauses=Kt(o),c.members=n(s),c}function Qe(e,r,i,a,o,s){var c=t(241);return c.decorators=Kt(e),c.modifiers=Kt(r),c.name=zt(i),c.typeParameters=Kt(a),c.heritageClauses=Kt(o),c.members=n(s),c}function $e(e,r,n,i,a){var o=t(242);return o.decorators=Kt(e),o.modifiers=Kt(r),o.name=zt(n),o.typeParameters=Kt(i),o.type=a,o}function Ze(e,r,i,a){var o=t(243);return o.decorators=Kt(e),o.modifiers=Kt(r),o.name=zt(i),o.members=n(a),o}function et(e,r,n,i,a){void 0===a&&(a=0);var o=t(244);return o.flags|=532&a,o.decorators=Kt(e),o.modifiers=Kt(r),o.name=n,o.body=i,o}function tt(e){var r=t(245);return r.statements=n(e),r}function rt(e){var r=t(246);return r.clauses=n(e),r}function nt(e){var r=t(247);return r.name=zt(e),r}function it(e,r,n,i){var a=t(248);return a.decorators=Kt(e),a.modifiers=Kt(r),a.name=zt(n),a.moduleReference=i,a}function at(e,r,n,i){var a=t(249);return a.decorators=Kt(e),a.modifiers=Kt(r),a.importClause=n,a.moduleSpecifier=i,a}function ot(e,r){var n=t(250);return n.name=e,n.namedBindings=r,n}function st(e){var r=t(251);return r.name=e,r}function ct(e){var r=t(252);return r.elements=n(e),r}function ut(e,r){var n=t(253);return n.propertyName=e,n.name=r,n}function lt(r,n,i,a){var o=t(254);return o.decorators=Kt(r),o.modifiers=Kt(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(59,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function _t(e,r,n,i){var a=t(255);return a.decorators=Kt(e),a.modifiers=Kt(r),a.exportClause=n,a.moduleSpecifier=i,a}function dt(e){var r=t(256);return r.elements=n(e),r}function pt(e,r){var n=t(257);return n.propertyName=zt(e),n.name=zt(r),n}function ft(e){var r=t(259);return r.expression=e,r}function mt(e,r){var n=t(e);return n.tagName=u(r),n}function gt(e,r,i){var a=t(260);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function yt(e,r,n){var i=t(261);return i.tagName=e,i.typeArguments=Kt(r),i.attributes=n,i}function ht(e,r,n){var i=t(262);return i.tagName=e,i.typeArguments=Kt(r),i.attributes=n,i}function vt(e){var r=t(263);return r.tagName=e,r}function bt(e,r,i){var a=t(264);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function Dt(e,r){var n=t(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!r,n}function xt(e,r){var n=t(267);return n.name=e,n.initializer=r,n}function St(e){var r=t(268);return r.properties=n(e),r}function Tt(e){var r=t(269);return r.expression=e,r}function Ct(e,r){var n=t(270);return n.dotDotDotToken=e,n.expression=r,n}function Et(r,i){var a=t(271);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function kt(e){var r=t(272);return r.statements=n(e),r}function Nt(e,r){var i=t(273);return i.token=e,i.types=n(r),i}function At(r,n){var i=t(274);return i.variableDeclaration=e.isString(r)?He(r):r,i.block=n,i}function Ft(r,n){var i=t(275);return i.name=zt(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function Pt(r,n){var i=t(276);return i.name=zt(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function wt(r){var n=t(277);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function It(r,n){var i=t(278);return i.name=zt(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Ot(e,r){var n=t(313);return n.expression=e,n.original=r,Vt(n,r),n}function Mt(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(314===t.kind)return t.elements;if(e.isBinaryExpression(t)&&27===t.operatorToken.kind)return[t.left,t.right]}return t}function Lt(r){var i=t(314);return i.elements=n(e.sameFlatMap(r,Mt)),i}function Rt(t,r){void 0===r&&(r=e.emptyArray);var n=e.createNode(285);return n.prepends=r,n.sourceFiles=t,n}function Bt(){return l||(l=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper],function(e){return e.name}))}function jt(t,r){var n=e.createNode(function(t){switch(t){case"prologue":return 279;case"prepend":return 280;case"internal":return 282;case"text":return 281;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+t+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(t)}}(t.kind),t.pos,t.end);return n.parent=r,n.data=t.data,n}function Jt(t,r){var n=e.createNode(283,t.pos,t.end);return n.parent=r,n.data=t.data,n.section=t,n}function zt(t){return e.isString(t)?u(t):t}function Kt(e){return e?n(e):void 0}function Ut(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(284===t.kind)return t.emitNode={annotatedNodes:[t]};Ut(e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(t)))).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Vt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function qt(e,t){return Ut(e).flags=t,e}function Wt(e){var t=e.emitNode;return t&&t.leadingComments}function Ht(e,t){return Ut(e).leadingComments=t,e}function Gt(e){var t=e.emitNode;return t&&t.trailingComments}function Yt(e,t){return Ut(e).trailingComments=t,e}function Xt(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);l&&(r.helpers=e.addRange(r.helpers,l));void 0!==_&&(r.startsOnNewLine=_);return r}(n,t.emitNode))}return t}e.createTempVariable=function(e,t){var r=u("");return r.autoGenerateFlags=1,r.autoGenerateId=d,d++,e&&e(r),t&&(r.autoGenerateFlags|=8),r},e.createLoopVariable=function(){var e=u("");return e.autoGenerateFlags=2,e.autoGenerateId=d,d++,e},e.createUniqueName=function(e){var t=u(e);return t.autoGenerateFlags=3,t.autoGenerateId=d,d++,t},e.createOptimisticUniqueName=p,e.createFileLevelUniqueName=function(e){var t=p(e);return t.autoGenerateFlags|=32,t},e.getGeneratedNameForNode=function(t,r){var n=u(t&&e.isIdentifier(t)?e.idText(t):"");return n.autoGenerateFlags=4|r,n.autoGenerateId=d,n.original=t,d++,n},e.createToken=m,e.createSuper=function(){return t(98)},e.createThis=function(){return t(100)},e.createNull=function(){return t(96)},e.createTrue=g,e.createFalse=y,e.createModifier=h,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(h(85)),2&e&&t.push(h(125)),512&e&&t.push(h(80)),2048&e&&t.push(h(77)),4&e&&t.push(h(115)),8&e&&t.push(h(113)),16&e&&t.push(h(114)),128&e&&t.push(h(118)),32&e&&t.push(h(116)),64&e&&t.push(h(133)),256&e&&t.push(h(121)),t},e.createQualifiedName=v,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(v(t,n),e):e},e.createComputedPropertyName=b,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(b(t),e):e},e.createTypeParameterDeclaration=D,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(D(t,n,i),e):e},e.createParameter=x,e.updateParameter=function(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(x(t,n,i,a,o,s,c),e):e},e.createDecorator=S,e.updateDecorator=function(e,t){return e.expression!==t?r(S(t),e):e},e.createPropertySignature=T,e.updatePropertySignature=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(T(t,n,i,a,o),e):e},e.createProperty=C,e.updateProperty=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&56===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&52===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(C(t,n,i,a,o,s),e):e},e.createMethodSignature=E,e.updateMethodSignature=function(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(E(t,n,i,a,o),e):e},e.createMethod=k,e.updateMethod=function(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(k(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=N,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(N(t,n,i,a),e):e},e.createGetAccessor=A,e.updateGetAccessor=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(A(t,n,i,a,o,s),e):e},e.createSetAccessor=F,e.updateSetAccessor=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(F(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return w(160,e,t,r)},e.updateCallSignature=function(e,t,r,n){return I(e,t,r,n)},e.createConstructSignature=function(e,t,r){return w(161,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return I(e,t,r,n)},e.createIndexSignature=P,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(P(t,n,i,a),e):e},e.createSignatureDeclaration=w,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=O,e.updateTypePredicateNode=function(e,t,n){return e.parameterName!==t||e.type!==n?r(O(t,n),e):e},e.createTypeReferenceNode=M,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(M(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return w(165,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return I(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return w(166,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return I(e,t,r,n)},e.createTypeQueryNode=L,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(L(t),e):e},e.createTypeLiteralNode=R,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(R(t),e):e},e.createArrayTypeNode=B,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(B(t),e):e},e.createTupleTypeNode=j,e.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?r(j(t),e):e},e.createOptionalTypeNode=J,e.updateOptionalTypeNode=function(e,t){return e.type!==t?r(J(t),e):e},e.createRestTypeNode=z,e.updateRestTypeNode=function(e,t){return e.type!==t?r(z(t),e):e},e.createUnionTypeNode=function(e){return K(173,e)},e.updateUnionTypeNode=function(e,t){return U(e,t)},e.createIntersectionTypeNode=function(e){return K(174,e)},e.updateIntersectionTypeNode=function(e,t){return U(e,t)},e.createUnionOrIntersectionTypeNode=K,e.createConditionalTypeNode=V,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(V(t,n,i,a),e):e},e.createInferTypeNode=q,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(q(t),e):e},e.createImportTypeNode=W,e.updateImportTypeNode=function(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(W(t,n,i,a),e):e},e.createParenthesizedType=H,e.updateParenthesizedType=function(e,t){return e.type!==t?r(H(t),e):e},e.createThisTypeNode=function(){return t(178)},e.createTypeOperatorNode=G,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(G(e.operator,t),e):e},e.createIndexedAccessTypeNode=Y,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(Y(t,n),e):e},e.createMappedTypeNode=X,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(X(t,n,i,a),e):e},e.createLiteralTypeNode=Q,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?r(Q(t),e):e},e.createObjectBindingPattern=$,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r($(t),e):e},e.createArrayBindingPattern=Z,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(Z(t),e):e},e.createBindingElement=ee,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(ee(t,n,i,a),e):e},e.createArrayLiteral=te,e.updateArrayLiteral=function(e,t){return e.elements!==t?r(te(t,e.multiLine),e):e},e.createObjectLiteral=re,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(re(t,e.multiLine),e):e},e.createPropertyAccess=ne,e.updatePropertyAccess=function(t,n,i){return t.expression!==n||t.name!==i?r(qt(ne(n,i),e.getEmitFlags(t)),t):t},e.createElementAccess=ie,e.updateElementAccess=function(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(ie(t,n),e):e},e.createCall=ae,e.updateCall=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(ae(t,n,i),e):e},e.createNew=oe,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(oe(t,n,i),e):e},e.createTaggedTemplate=se,e.updateTaggedTemplate=function(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(se(t,n,i),e):e},e.createTypeAssertion=ce,e.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?r(ce(t,n),e):e},e.createParen=ue,e.updateParen=function(e,t){return e.expression!==t?r(ue(t),e):e},e.createFunctionExpression=le,e.updateFunctionExpression=function(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(le(t,n,i,a,o,s,c),e):e},e.createArrowFunction=_e,e.updateArrowFunction=function(e,t,n,i,a,o,s){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==i||e.type!==a||e.equalsGreaterThanToken!==o||e.body!==s?r(_e(t,n,i,a,o,s),e):e},e.createDelete=de,e.updateDelete=function(e,t){return e.expression!==t?r(de(t),e):e},e.createTypeOf=pe,e.updateTypeOf=function(e,t){return e.expression!==t?r(pe(t),e):e},e.createVoid=fe,e.updateVoid=function(e,t){return e.expression!==t?r(fe(t),e):e},e.createAwait=me,e.updateAwait=function(e,t){return e.expression!==t?r(me(t),e):e},e.createPrefix=ge,e.updatePrefix=function(e,t){return e.operand!==t?r(ge(e.operator,t),e):e},e.createPostfix=ye,e.updatePostfix=function(e,t){return e.operand!==t?r(ye(t,e.operator),e):e},e.createBinary=he,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(he(t,i||e.operatorToken,n),e):e},e.createConditional=ve,e.updateConditional=function(e,t,n,i,a,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==i||e.colonToken!==a||e.whenFalse!==o?r(ve(t,n,i,a,o),e):e},e.createTemplateExpression=be,e.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?r(be(t,n),e):e},e.createTemplateHead=function(e){var r=t(15);return r.text=e,r},e.createTemplateMiddle=function(e){var r=t(16);return r.text=e,r},e.createTemplateTail=function(e){var r=t(17);return r.text=e,r},e.createNoSubstitutionTemplateLiteral=function(e){var r=t(14);return r.text=e,r},e.createYield=De,e.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(De(t,n),e):e},e.createSpread=xe,e.updateSpread=function(e,t){return e.expression!==t?r(xe(t),e):e},e.createClassExpression=Se,e.updateClassExpression=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?r(Se(t,n,i,a,o),e):e},e.createOmittedExpression=function(){return t(210)},e.createExpressionWithTypeArguments=Te,e.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Te(t,n),e):e},e.createAsExpression=Ce,e.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?r(Ce(t,n),e):e},e.createNonNullExpression=Ee,e.updateNonNullExpression=function(e,t){return e.expression!==t?r(Ee(t),e):e},e.createMetaProperty=ke,e.updateMetaProperty=function(e,t){return e.name!==t?r(ke(e.keywordToken,t),e):e},e.createTemplateSpan=Ne,e.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?r(Ne(t,n),e):e},e.createSemicolonClassElement=function(){return t(217)},e.createBlock=Ae,e.updateBlock=function(e,t){return e.statements!==t?r(Ae(t,e.multiLine),e):e},e.createVariableStatement=Fe,e.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Fe(t,n),e):e},e.createEmptyStatement=function(){return t(220)},e.createExpressionStatement=Pe,e.updateExpressionStatement=we,e.createStatement=Pe,e.updateStatement=we,e.createIf=Ie,e.updateIf=function(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(Ie(t,n,i),e):e},e.createDo=Oe,e.updateDo=function(e,t,n){return e.statement!==t||e.expression!==n?r(Oe(t,n),e):e},e.createWhile=Me,e.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?r(Me(t,n),e):e},e.createFor=Le,e.updateFor=function(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Le(t,n,i,a),e):e},e.createForIn=Re,e.updateForIn=function(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(Re(t,n,i),e):e},e.createForOf=Be,e.updateForOf=function(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(Be(t,n,i,a),e):e},e.createContinue=je,e.updateContinue=function(e,t){return e.label!==t?r(je(t),e):e},e.createBreak=Je,e.updateBreak=function(e,t){return e.label!==t?r(Je(t),e):e},e.createReturn=ze,e.updateReturn=function(e,t){return e.expression!==t?r(ze(t),e):e},e.createWith=Ke,e.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?r(Ke(t,n),e):e},e.createSwitch=Ue,e.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?r(Ue(t,n),e):e},e.createLabel=Ve,e.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?r(Ve(t,n),e):e},e.createThrow=qe,e.updateThrow=function(e,t){return e.expression!==t?r(qe(t),e):e},e.createTry=We,e.updateTry=function(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(We(t,n,i),e):e},e.createDebuggerStatement=function(){return t(236)},e.createVariableDeclaration=He,e.updateVariableDeclaration=function(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(He(t,n,i),e):e},e.createVariableDeclarationList=Ge,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?r(Ge(t,e.flags),e):e},e.createFunctionDeclaration=Ye,e.updateFunctionDeclaration=function(e,t,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(Ye(t,n,i,a,o,s,c,u),e):e},e.createClassDeclaration=Xe,e.updateClassDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Xe(t,n,i,a,o,s),e):e},e.createInterfaceDeclaration=Qe,e.updateInterfaceDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Qe(t,n,i,a,o,s),e):e},e.createTypeAliasDeclaration=$e,e.updateTypeAliasDeclaration=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.type!==o?r($e(t,n,i,a,o),e):e},e.createEnumDeclaration=Ze,e.updateEnumDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(Ze(t,n,i,a),e):e},e.createModuleDeclaration=et,e.updateModuleDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(et(t,n,i,a,e.flags),e):e},e.createModuleBlock=tt,e.updateModuleBlock=function(e,t){return e.statements!==t?r(tt(t),e):e},e.createCaseBlock=rt,e.updateCaseBlock=function(e,t){return e.clauses!==t?r(rt(t),e):e},e.createNamespaceExportDeclaration=nt,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?r(nt(t),e):e},e.createImportEqualsDeclaration=it,e.updateImportEqualsDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r(it(t,n,i,a),e):e},e.createImportDeclaration=at,e.updateImportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(at(t,n,i,a),e):e},e.createImportClause=ot,e.updateImportClause=function(e,t,n){return e.name!==t||e.namedBindings!==n?r(ot(t,n),e):e},e.createNamespaceImport=st,e.updateNamespaceImport=function(e,t){return e.name!==t?r(st(t),e):e},e.createNamedImports=ct,e.updateNamedImports=function(e,t){return e.elements!==t?r(ct(t),e):e},e.createImportSpecifier=ut,e.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(ut(t,n),e):e},e.createExportAssignment=lt,e.updateExportAssignment=function(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(lt(t,n,e.isExportEquals,i),e):e},e.createExportDeclaration=_t,e.updateExportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.exportClause!==i||e.moduleSpecifier!==a?r(_t(t,n,i,a),e):e},e.createNamedExports=dt,e.updateNamedExports=function(e,t){return e.elements!==t?r(dt(t),e):e},e.createExportSpecifier=pt,e.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(pt(t,n),e):e},e.createExternalModuleReference=ft,e.updateExternalModuleReference=function(e,t){return e.expression!==t?r(ft(t),e):e},e.createJSDocTypeExpression=function(e){var r=t(288);return r.type=e,r},e.createJSDocTypeTag=function(e,t){var r=mt(307,"type");return r.typeExpression=e,r.comment=t,r},e.createJSDocReturnTag=function(e,t){var r=mt(305,"returns");return r.typeExpression=e,r.comment=t,r},e.createJSDocParamTag=function(e,t,r,n){var i=mt(304,"param");return i.typeExpression=r,i.name=e,i.isBracketed=t,i.comment=n,i},e.createJSDocComment=function(e,r){var n=t(296);return n.comment=e,n.tags=r,n},e.createJsxElement=gt,e.updateJsxElement=function(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(gt(t,n,i),e):e},e.createJsxSelfClosingElement=yt,e.updateJsxSelfClosingElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(yt(t,n,i),e):e},e.createJsxOpeningElement=ht,e.updateJsxOpeningElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(ht(t,n,i),e):e},e.createJsxClosingElement=vt,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?r(vt(t),e):e},e.createJsxFragment=bt,e.createJsxText=Dt,e.updateJsxText=function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?r(Dt(t,n),e):e},e.createJsxOpeningFragment=function(){return t(265)},e.createJsxJsxClosingFragment=function(){return t(266)},e.updateJsxFragment=function(e,t,n,i){return e.openingFragment!==t||e.children!==n||e.closingFragment!==i?r(bt(t,n,i),e):e},e.createJsxAttribute=xt,e.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?r(xt(t,n),e):e},e.createJsxAttributes=St,e.updateJsxAttributes=function(e,t){return e.properties!==t?r(St(t),e):e},e.createJsxSpreadAttribute=Tt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?r(Tt(t),e):e},e.createJsxExpression=Ct,e.updateJsxExpression=function(e,t){return e.expression!==t?r(Ct(e.dotDotDotToken,t),e):e},e.createCaseClause=Et,e.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?r(Et(t,n),e):e},e.createDefaultClause=kt,e.updateDefaultClause=function(e,t){return e.statements!==t?r(kt(t),e):e},e.createHeritageClause=Nt,e.updateHeritageClause=function(e,t){return e.types!==t?r(Nt(e.token,t),e):e},e.createCatchClause=At,e.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(At(t,n),e):e},e.createPropertyAssignment=Ft,e.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?r(Ft(t,n),e):e},e.createShorthandPropertyAssignment=Pt,e.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(Pt(t,n),e):e},e.createSpreadAssignment=wt,e.updateSpreadAssignment=function(e,t){return e.expression!==t?r(wt(t),e):e},e.createEnumMember=It,e.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?r(It(t,n),e):e},e.updateSourceFileNode=function(e,i,a,o,s,c,u){if(e.statements!==i||void 0!==a&&e.isDeclarationFile!==a||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==u&&e.libReferenceDirectives!==u||void 0!==c&&e.hasNoDefaultLib!==c){var l=t(284);return l.flags|=e.flags,l.statements=n(i),l.endOfFileToken=e.endOfFileToken,l.fileName=e.fileName,l.path=e.path,l.text=e.text,l.isDeclarationFile=void 0===a?e.isDeclarationFile:a,l.referencedFiles=void 0===o?e.referencedFiles:o,l.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,l.hasNoDefaultLib=void 0===c?e.hasNoDefaultLib:c,l.libReferenceDirectives=void 0===u?e.libReferenceDirectives:u,void 0!==e.amdDependencies&&(l.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(l.moduleName=e.moduleName),void 0!==e.languageVariant&&(l.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(l.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(l.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(l.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(l.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(l.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(l.identifiers=e.identifiers),void 0!==e.nodeCount&&(l.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(l.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(l.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(l.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(l.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(l.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(l.lineMap=e.lineMap),void 0!==e.classifiableNames&&(l.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(l.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(l.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(l.imports=e.imports),void 0!==e.moduleAugmentations&&(l.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(l.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(l.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(l.localJsxNamespace=e.localJsxNamespace),r(l,e)}return e},e.getMutableClone=function(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},e.createNotEmittedStatement=function(e){var r=t(312);return r.original=e,Vt(r,e),r},e.createEndOfDeclarationMarker=function(e){var r=t(316);return r.emitNode={},r.original=e,r},e.createMergeDeclarationMarker=function(e){var r=t(315);return r.emitNode={},r.original=e,r},e.createPartiallyEmittedExpression=Ot,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?r(Ot(t,e.original),e):e},e.createCommaList=Lt,e.updateCommaList=function(e,t){return e.elements!==t?r(Lt(t),e):e},e.createBundle=Rt,e.createUnparsedSourceFile=function(t,r,n){var i,a,o=function(){var t=e.createNode(286);return t.prologues=e.emptyArray,t.referencedFiles=e.emptyArray,t.libReferenceDirectives=e.emptyArray,t.getLineAndCharacterOfPosition=function(r){return e.getLineAndCharacterOfPosition(t,r)},t}();if(e.isString(t))o.fileName="",o.text=t,o.sourceMapPath=r,o.sourceMapText=n;else if(e.Debug.assert("js"===r||"dts"===r),o.fileName=("js"===r?t.javascriptPath:t.declarationPath)||"",o.sourceMapPath="js"===r?t.javascriptMapPath:t.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===r?t.javascriptText:t.declarationText}},sourceMapText:{get:function(){return"js"===r?t.javascriptMapText:t.declarationMapText}}}),t.buildInfo&&t.buildInfo.bundle&&(o.oldFileOfCurrentEmit=t.oldFileOfCurrentEmit,e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(t,r){var n,i;e.Debug.assert(!!t.oldFileOfCurrentEmit);for(var a=0,o=r.sections;a0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.setOriginalNode=Xt}(c||(c={})),function(e){function t(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function n(t,n,i){return t?function t(n,i){if(e.isQualifiedName(n)){var a=t(n.left,i),o=e.createIdentifier(e.idText(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccess(a,o)}return r(e.idText(n),i)}(t,i):e.createPropertyAccess(r(n,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function a(t,r){var n=e.skipParentheses(t);switch(n.kind){case 72:return r;case 100:case 8:case 9:case 10:return!1;case 187:return 0!==n.elements.length;case 188:return n.properties.length>0;default:return!0}}function o(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function s(e,t,r){return c(e,t,r,8192)}function c(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function u(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function l(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function _(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=r.length;ae.getOperatorPrecedence(204,27)?t:e.setTextRange(e.createParen(t),t)}function y(t){return 175===t.kind?e.createParenthesizedType(t):t}function h(t){switch(t.kind){case 173:case 174:case 165:case 166:return e.createParenthesizedType(t)}return y(t)}function v(e,t){for(;;){switch(e.kind){case 203:e=e.operand;continue;case 204:e=e.left;continue;case 205:e=e.condition;continue;case 193:e=e.tag;continue;case 191:if(t)return e;case 212:case 190:case 189:case 213:case 313:e=e.expression;continue}return e}}function b(e){return 204===e.kind&&27===e.operatorToken.kind||314===e.kind}function D(e,t){switch(void 0===t&&(t=7),e.kind){case 195:return 0!=(1&t);case 194:case 212:case 213:return 0!=(2&t);case 313:return 0!=(4&t)}return!1}function x(t,r){var n;void 0===r&&(r=7);do{n=t,1&r&&(t=e.skipParentheses(t)),2&r&&(t=S(t)),4&r&&(t=e.skipPartiallyEmittedExpressions(t))}while(n!==t);return t}function S(t){for(;e.isAssertionExpression(t)||213===t.kind;)t=t.expression;return t}function T(t,r,n){return void 0===n&&(n=7),t&&D(t,n)&&(!(195===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i)))?function(t,r){switch(t.kind){case 195:return e.updateParen(t,r);case 194:return e.updateTypeAssertion(t,t.type,r);case 212:return e.updateAsExpression(t,r,t.type);case 213:return e.updateNonNullExpression(t,r);case 313:return e.updatePartiallyEmittedExpression(t,r)}}(t,T(t.expression,r)):r;var i}function C(t){return e.setStartsOnNewLine(t,!0)}function E(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function k(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function N(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?N(t.left):e.isSpreadElement(t)?N(t.expression):t;switch(t.kind){case 275:return N(t.initializer);case 276:return t.name;case 277:return N(t.expression)}}function A(e){var t=e.kind;return 10===t||8===t}function F(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=M(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function P(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=M(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function w(e){switch(e.kind){case 185:case 187:return O(e);case 184:case 188:return I(e)}}function I(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,P)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function O(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,F)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function M(t){return e.isBindingPattern(t)?w(t):(e.Debug.assertNode(t,e.isExpression),t)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)},e.createFunctionApply=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)},e.createArraySlice=function(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)},e.createArrayConcat=function(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)},e.createMathPow=function(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)},e.createExpressionForJsxElement=function(t,r,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];C(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(n(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(r(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'},e.createValuesHelper=function(t,r,n){return t.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(i("__values"),void 0,[r]),n)},e.readHelper={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 };'},e.createReadHelper=function(t,r,n,a){return t.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)},e.spreadHelper={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=function(t,r,n){return t.requestEmitHelper(e.readHelper),t.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(i("__spread"),void 0,r),n)},e.createForOfBindingStatement=function(t,r){if(e.isVariableDeclarationList(t)){var n=e.first(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,233===n.statement.kind?t(r,n.statement):r);return i&&i(n),a},e.createCallBinding=function(t,r,n,i){void 0===i&&(i=!1);var o,s,c=x(t,7);if(e.isSuperProperty(c))o=e.createThis(),s=c;else if(98===c.kind)o=e.createThis(),s=n<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))o=e.createVoidZero(),s=m(c);else switch(c.kind){case 189:a(c.expression,i)?(o=e.createTempVariable(r),s=e.createPropertyAccess(e.setTextRange(e.createAssignment(o,c.expression),c.expression),c.name),e.setTextRange(s,c)):(o=c.expression,s=c);break;case 190:a(c.expression,i)?(o=e.createTempVariable(r),s=e.createElementAccess(e.setTextRange(e.createAssignment(o,c.expression),c.expression),c.argumentExpression),e.setTextRange(s,c)):(o=c.expression,s=c);break;default:o=e.createVoidZero(),s=m(t)}return{target:s,thisArg:o}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(r){if(e.isQualifiedName(r)){var n=t(r.left),i=e.getMutableClone(r.right);return e.setTextRange(e.createPropertyAccess(n,i),r)}return e.getMutableClone(r)},e.createExpressionForPropertyName=o,e.createExpressionForObjectLiteralElementLike=function(r,n,i){switch(n.kind){case 158:case 159:return function(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),s=a.firstAccessor,c=a.getAccessor,u=a.setAccessor;if(r===s){var l=[];if(c){var _=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(_,c),e.setOriginalNode(_,c);var d=e.createPropertyAssignment("get",_);l.push(d)}if(u){var p=e.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body);e.setTextRange(p,u),e.setOriginalNode(p,u);var f=e.createPropertyAssignment("set",p);l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,o(r.name),e.createObjectLiteral(l,i)]),s);return e.aggregateTransformFlags(m)}}(r.properties,n,i,!!r.multiLine);case 275:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),r.initializer),r),r))}(n,i);case 276:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.getSynthesizedClone(r.name)),r),r))}(n,i);case 156:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}(n,i)}},e.getInternalName=function(e,t,r){return c(e,t,r,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,r){return c(e,t,r,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=s,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,r){return c(e,t,r)},e.getExternalModuleOrNamespaceExportName=function(t,r,n,i){return t&&e.hasModifier(r,1)?u(t,c(r),n,i):s(r,n,i)},e.getNamespaceMemberName=u,e.convertToFunctionBody=function(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)},e.convertFunctionDeclarationToExpression=function(t){if(!t.body)return e.Debug.fail();var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r},e.addPrologue=function(e,t,r,n){return d(e,t,_(e,t,r),n)},e.addStandardPrologue=_,e.addCustomPrologue=d,e.findUseStrictPrologue=p,e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&l(r)},e.ensureUseStrict=function(t){return p(t)?t:e.setTextRange(e.createNodeArray([C(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)},e.parenthesizeBinaryOperand=function(t,r,n,i){return 195===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,r,n,i){var a=e.getOperatorPrecedence(204,t),o=e.getOperatorAssociativity(204,t),s=e.skipPartiallyEmittedExpressions(r);if(!n&&197===r.kind&&a>4)return!0;var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!n&&1===o&&207===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(function(e){return 40===e||50===e||49===e||51===e}(t))return!1;if(38===t){var u=i?f(i):0;if(e.isLiteralKind(u)&&u===f(s))return!1}}var l=e.getExpressionAssociativity(s);return 0===l}}(t,r,n,i)?e.createParen(r):r},e.parenthesizeForConditionalHead=function(t){var r=e.getOperatorPrecedence(205,56),n=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(n);return-1===e.compareValues(i,r)?e.createParen(t):t},e.parenthesizeSubexpressionOfConditionalExpression=function(t){return b(e.skipPartiallyEmittedExpressions(t))?e.createParen(t):t},e.parenthesizeDefaultExpression=function(t){var r=e.skipPartiallyEmittedExpressions(t),n=b(r);if(!n)switch(v(r,!1).kind){case 209:case 196:n=!0}return n?e.createParen(t):t},e.parenthesizeForNew=function(t){var r=v(t,!0);switch(r.kind){case 191:return e.createParen(t);case 192:return r.arguments?t:e.createParen(t)}return m(t)},e.parenthesizeForAccess=m,e.parenthesizePostfixOperand=function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizePrefixOperand=function(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizeListElements=function(t){for(var r,n=0;ns-i)&&(a=s-i),(i>0||a0&&d<=147||178===d)return s;switch(d){case 72:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 148:return e.updateQualifiedName(s,r(s.left,c,e.isEntityName),r(s.right,c,e.isIdentifier));case 149:return e.updateComputedPropertyName(s,r(s.expression,c,e.isExpression));case 150:return e.updateTypeParameterDeclaration(s,r(s.name,c,e.isIdentifier),r(s.constraint,c,e.isTypeNode),r(s.default,c,e.isTypeNode));case 151:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.dotDotDotToken,_,e.isToken),r(s.name,c,e.isBindingName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 152:return e.updateDecorator(s,r(s.expression,c,e.isExpression));case 153:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 154:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 155:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken));case 156:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 157:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 158:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 159:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 160:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 161:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 162:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 163:return e.updateTypePredicateNode(s,r(s.parameterName,c),r(s.type,c,e.isTypeNode));case 164:return e.updateTypeReferenceNode(s,r(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 165:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 166:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 167:return e.updateTypeQueryNode(s,r(s.exprName,c,e.isEntityName));case 168:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 169:return e.updateArrayTypeNode(s,r(s.elementType,c,e.isTypeNode));case 170:return e.updateTupleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 171:return e.updateOptionalTypeNode(s,r(s.type,c,e.isTypeNode));case 172:return e.updateRestTypeNode(s,r(s.type,c,e.isTypeNode));case 173:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 174:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 175:return e.updateConditionalTypeNode(s,r(s.checkType,c,e.isTypeNode),r(s.extendsType,c,e.isTypeNode),r(s.trueType,c,e.isTypeNode),r(s.falseType,c,e.isTypeNode));case 176:return e.updateInferTypeNode(s,r(s.typeParameter,c,e.isTypeParameterDeclaration));case 183:return e.updateImportTypeNode(s,r(s.argument,c,e.isTypeNode),r(s.qualifier,c,e.isEntityName),n(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 177:return e.updateParenthesizedType(s,r(s.type,c,e.isTypeNode));case 179:return e.updateTypeOperatorNode(s,r(s.type,c,e.isTypeNode));case 180:return e.updateIndexedAccessTypeNode(s,r(s.objectType,c,e.isTypeNode),r(s.indexType,c,e.isTypeNode));case 181:return e.updateMappedTypeNode(s,r(s.readonlyToken,_,e.isToken),r(s.typeParameter,c,e.isTypeParameterDeclaration),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode));case 182:return e.updateLiteralTypeNode(s,r(s.literal,c,e.isExpression));case 184:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 185:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 186:return e.updateBindingElement(s,r(s.dotDotDotToken,_,e.isToken),r(s.propertyName,c,e.isPropertyName),r(s.name,c,e.isBindingName),r(s.initializer,c,e.isExpression));case 187:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 188:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 189:return e.updatePropertyAccess(s,r(s.expression,c,e.isExpression),r(s.name,c,e.isIdentifier));case 190:return e.updateElementAccess(s,r(s.expression,c,e.isExpression),r(s.argumentExpression,c,e.isExpression));case 191:return e.updateCall(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 192:return e.updateNew(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 193:return e.updateTaggedTemplate(s,r(s.tag,c,e.isExpression),n(s.typeArguments,c,e.isExpression),r(s.template,c,e.isTemplateLiteral));case 194:return e.updateTypeAssertion(s,r(s.type,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 195:return e.updateParen(s,r(s.expression,c,e.isExpression));case 196:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 197:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),r(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 198:return e.updateDelete(s,r(s.expression,c,e.isExpression));case 199:return e.updateTypeOf(s,r(s.expression,c,e.isExpression));case 200:return e.updateVoid(s,r(s.expression,c,e.isExpression));case 201:return e.updateAwait(s,r(s.expression,c,e.isExpression));case 202:return e.updatePrefix(s,r(s.operand,c,e.isExpression));case 203:return e.updatePostfix(s,r(s.operand,c,e.isExpression));case 204:return e.updateBinary(s,r(s.left,c,e.isExpression),r(s.right,c,e.isExpression),r(s.operatorToken,c,e.isToken));case 205:return e.updateConditional(s,r(s.condition,c,e.isExpression),r(s.questionToken,c,e.isToken),r(s.whenTrue,c,e.isExpression),r(s.colonToken,c,e.isToken),r(s.whenFalse,c,e.isExpression));case 206:return e.updateTemplateExpression(s,r(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 207:return e.updateYield(s,r(s.asteriskToken,_,e.isToken),r(s.expression,c,e.isExpression));case 208:return e.updateSpread(s,r(s.expression,c,e.isExpression));case 209:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 211:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 212:return e.updateAsExpression(s,r(s.expression,c,e.isExpression),r(s.type,c,e.isTypeNode));case 213:return e.updateNonNullExpression(s,r(s.expression,c,e.isExpression));case 214:return e.updateMetaProperty(s,r(s.name,c,e.isIdentifier));case 216:return e.updateTemplateSpan(s,r(s.expression,c,e.isExpression),r(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 218:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 219:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),r(s.declarationList,c,e.isVariableDeclarationList));case 221:return e.updateExpressionStatement(s,r(s.expression,c,e.isExpression));case 222:return e.updateIf(s,r(s.expression,c,e.isExpression),r(s.thenStatement,c,e.isStatement,e.liftToBlock),r(s.elseStatement,c,e.isStatement,e.liftToBlock));case 223:return e.updateDo(s,r(s.statement,c,e.isStatement,e.liftToBlock),r(s.expression,c,e.isExpression));case 224:return e.updateWhile(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateFor(s,r(s.initializer,c,e.isForInitializer),r(s.condition,c,e.isExpression),r(s.incrementor,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 226:return e.updateForIn(s,r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 227:return e.updateForOf(s,r(s.awaitModifier,c,e.isToken),r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 228:return e.updateContinue(s,r(s.label,c,e.isIdentifier));case 229:return e.updateBreak(s,r(s.label,c,e.isIdentifier));case 230:return e.updateReturn(s,r(s.expression,c,e.isExpression));case 231:return e.updateWith(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateSwitch(s,r(s.expression,c,e.isExpression),r(s.caseBlock,c,e.isCaseBlock));case 233:return e.updateLabel(s,r(s.label,c,e.isIdentifier),r(s.statement,c,e.isStatement,e.liftToBlock));case 234:return e.updateThrow(s,r(s.expression,c,e.isExpression));case 235:return e.updateTry(s,r(s.tryBlock,c,e.isBlock),r(s.catchClause,c,e.isCatchClause),r(s.finallyBlock,c,e.isBlock));case 237:return e.updateVariableDeclaration(s,r(s.name,c,e.isBindingName),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 238:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 239:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 240:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 241:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 242:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),r(s.type,c,e.isTypeNode));case 243:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 244:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.body,c,e.isModuleBody));case 245:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 246:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 247:return e.updateNamespaceExportDeclaration(s,r(s.name,c,e.isIdentifier));case 248:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.moduleReference,c,e.isModuleReference));case 249:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.importClause,c,e.isImportClause),r(s.moduleSpecifier,c,e.isExpression));case 250:return e.updateImportClause(s,r(s.name,c,e.isIdentifier),r(s.namedBindings,c,e.isNamedImportBindings));case 251:return e.updateNamespaceImport(s,r(s.name,c,e.isIdentifier));case 252:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 253:return e.updateImportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 254:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.expression,c,e.isExpression));case 255:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.exportClause,c,e.isNamedExports),r(s.moduleSpecifier,c,e.isExpression));case 256:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 257:return e.updateExportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 259:return e.updateExternalModuleReference(s,r(s.expression,c,e.isExpression));case 260:return e.updateJsxElement(s,r(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),r(s.closingElement,c,e.isJsxClosingElement));case 261:return e.updateJsxSelfClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 262:return e.updateJsxOpeningElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 263:return e.updateJsxClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression));case 264:return e.updateJsxFragment(s,r(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),r(s.closingFragment,c,e.isJsxClosingFragment));case 267:return e.updateJsxAttribute(s,r(s.name,c,e.isIdentifier),r(s.initializer,c,e.isStringLiteralOrJsxExpression));case 268:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 269:return e.updateJsxSpreadAttribute(s,r(s.expression,c,e.isExpression));case 270:return e.updateJsxExpression(s,r(s.expression,c,e.isExpression));case 271:return e.updateCaseClause(s,r(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 272:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 273:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 274:return e.updateCatchClause(s,r(s.variableDeclaration,c,e.isVariableDeclaration),r(s.block,c,e.isBlock));case 275:return e.updatePropertyAssignment(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 276:return e.updateShorthandPropertyAssignment(s,r(s.name,c,e.isIdentifier),r(s.objectAssignmentInitializer,c,e.isExpression));case 277:return e.updateSpreadAssignment(s,r(s.expression,c,e.isExpression));case 278:return e.updateEnumMember(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 284:return e.updateSourceFileNode(s,i(s.statements,c,u));case 313:return e.updatePartiallyEmittedExpression(s,r(s.expression,c,e.isExpression));case 314:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(c||(c={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=147)return i;if(u>=163&&u<=182)return i;var l=i;switch(n.kind){case 217:case 220:case 210:case 236:case 312:break;case 148:l=t(n.left,a,l),l=t(n.right,a,l);break;case 149:l=t(n.expression,a,l);break;case 151:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 152:l=t(n.expression,a,l);break;case 153:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 154:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 157:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 158:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 159:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 184:case 185:l=s(n.elements,c,l);break;case 186:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 187:l=s(n.elements,c,l);break;case 188:l=s(n.properties,c,l);break;case 189:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 190:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 191:case 192:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 193:l=t(n.tag,a,l),l=s(n.typeArguments,c,l),l=t(n.template,a,l);break;case 194:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 196:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 197:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 195:case 198:case 199:case 200:case 201:case 207:case 208:case 213:l=t(n.expression,a,l);break;case 202:case 203:l=t(n.operand,a,l);break;case 204:l=t(n.left,a,l),l=t(n.right,a,l);break;case 205:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 206:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 209:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 211:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 212:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 216:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 218:l=s(n.statements,c,l);break;case 219:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 221:l=t(n.expression,a,l);break;case 222:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 223:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 224:case 231:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 225:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 226:case 227:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 230:case 234:l=t(n.expression,a,l);break;case 232:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 233:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 235:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 237:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 238:l=s(n.declarations,c,l);break;case 239:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 240:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 243:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 244:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 245:l=s(n.statements,c,l);break;case 246:l=s(n.clauses,c,l);break;case 248:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 249:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 250:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 251:l=t(n.name,a,l);break;case 252:case 256:l=s(n.elements,c,l);break;case 253:case 257:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 254:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 255:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 259:l=t(n.expression,a,l);break;case 260:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 264:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 261:case 262:l=t(n.tagName,a,l),l=s(n.typeArguments,a,l),l=t(n.attributes,a,l);break;case 268:l=s(n.properties,c,l);break;case 263:l=t(n.tagName,a,l);break;case 267:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 269:case 270:l=t(n.expression,a,l);break;case 271:l=t(n.expression,a,l);case 272:l=s(n.statements,c,l);break;case 273:l=s(n.types,c,l);break;case 274:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 275:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 276:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 277:l=t(n.expression,a,l);break;case 278:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 284:l=s(n.statements,c,l);break;case 313:l=t(n.expression,a,l);break;case 314:l=s(n.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=function(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&211!==t.kind)return 0;return n(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,r)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),_();for(var u,l=[],p=a(n.mappings),f=p.next(),m=f.value,g=f.done;!(g||s&&(m.generatedLine>s.line||m.generatedLine===s.line&&m.generatedCharacter>s.character));c=p.next(),m=c.value,g=c.done,c)if(!o||!(m.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),_(),(function(e,t){return!P||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),C=t,E=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,A=a,w=!0,void 0!==o&&(F=o,I=!0)),d()}function B(){if(P&&(!T||h!==C||v!==E||b!==k||D!==N||x!==A||S!==F)){if(_(),h=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function _(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(e){for(var n=e.getLineCount()-1;n>=0;n--){var i=e.getLineText(n),a=t.exec(i);if(a)return a[1];if(!i.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,y=e.getNormalizedAbsolutePath(r.file,m),h=t.getSourceFileLike(y),v=r.sources.map(function(t){return e.getNormalizedAbsolutePath(t,g)}),b=e.createMapFromEntries(v.map(function(e,r){return[t.getCanonicalFileName(e),r]}));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&c(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:y,pos:o.generatedPosition}}};function D(n){var i,a,s=void 0!==h?e.getPositionOfLineAndCharacter(h,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function x(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,D);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=x();n0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i=1)||12288&g.transformFlags||12288&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(h)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=n(t,s,h);e.isComputedPropertyName(h)&&(l=e.append(l,y.argumentExpression)),r(t,g,y,g)}else u=e.append(u,g)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;if(t.level<1&&t.downlevelIteration)o=i(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s);else if(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression)){var d=!e.isDeclarationBindingElement(n)||0!==_;o=i(t,o,d,s)}for(var p=0;p<_;p++){var f=l[p];if(t.level>=1)if(8192&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(m))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){var g=e.createArraySlice(o,p);r(t,f,g,f)}}else{var g=e.createElementAccess(o,p);r(t,f,g,f)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a);if(u)for(var y=0,h=u;y0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,J)}(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Be(t)?n|=8:function(t){return je(t)&&e.hasModifier(t,512)}(t)?n|=32:Je(t)&&(n|=16),S<=1&&7&n&&(n|=128),n}(n,o);128&c&&t.startLexicalEnvironment();var u=n.name||(5&c?e.getGeneratedNameForNode(n):void 0),l=2&c?function(t,r,n){var i=e.moveRangePastDecorators(t),a=function(t){if(16777216&b.getNodeCheckFlags(t)){He();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return p[e.getOriginalNodeId(t)]=r,v(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),c=U(t,0!=(64&n)),u=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(n,u,c):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),U(t,0!=(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(n,u,c),_=[l];if(e.some(m)&&_.push(e.createExpressionStatement(e.inlineExpressions(m))),m=a,1&c&&X(_,o,128&c?e.getInternalName(n):e.getLocalName(n)),ne(_,n,!1),ne(_,n,!0),function(r,n){var a=function(r){var n=function(t){var r=t.decorators,n=ee(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(r),a=re(r,r,n);if(a){var o=p&&p[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=i(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}(n);a&&r.push(e.setOriginalNode(e.createExpressionStatement(a),n))}(_,n),128&c){var d=e.createTokenRange(e.skipTrivia(r.text,n.members.end),19),f=e.getInternalName(n),g=e.createPartiallyEmittedExpression(f);g.end=d.end,e.setEmitFlags(g,1536);var y=e.createReturn(g);y.pos=d.pos,e.setEmitFlags(y,1920),_.push(y),e.insertStatementsAfterStandardPrologue(_,t.endLexicalEnvironment());var h=e.createImmediatelyInvokedArrowFunction(_);e.setEmitFlags(h,33554432);var D=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,h)]));e.setOriginalNode(D,n),e.setCommentRange(D,n),e.setSourceMapRange(D,e.moveRangePastDecorators(n)),e.startOnNewLine(D),_=[D]}return 8&c?Ke(_,n):(128&c||2&c)&&(32&c?_.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&c&&_.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),_.length>1&&(_.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(l,4194304|e.getEmitFlags(l))),e.singleOrMany(_)}(n);case 209:return function(r){if(!K(r))return e.visitEachChild(r,A,t);var n=m;m=void 0;var i=W(r,!0),a=e.visitNodes(r.heritageClauses,A,e.isHeritageClause),o=U(r,e.some(a,function(e){return 86===e.token})),s=e.createClassExpression(void 0,r.name,void 0,a,o);if(e.setOriginalNode(s,r),e.setTextRange(s,r),e.some(i)||e.some(m)){var c=[],u=16777216&b.getNodeCheckFlags(r),l=e.createTempVariable(v,!!u);if(u){He();var _=e.getSynthesizedClone(l);_.autoGenerateFlags&=-9,p[e.getOriginalNodeId(r)]=_}return e.setEmitFlags(s,65536|e.getEmitFlags(s)),c.push(e.startOnNewLine(e.createAssignment(l,s))),e.addRange(c,e.map(m,e.startOnNewLine)),m=n,e.addRange(c,function(t,r){for(var n=[],i=0,a=t;i=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,P,t,0,n))}function J(e){return void 0!==e.decorators&&e.decorators.length>0}function z(e){return!!(1024&e.transformFlags)}function K(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,z)||e.some(t.members,z)}function U(r,n){var i=[],a=function(r,n){var i=e.getFirstConstructorWithBody(r),a=e.forEach(r.members,G),o=i&&1024&i.transformFlags&&e.forEach(i.parameters,V);if(!a&&!o)return e.visitEachChild(i,A,t);var s=function(r){return e.visitParameterList(r&&r.parameters,A,t)||[]}(i),c=function(t,r,n){var i=[],a=0;if(y(),r){a=function(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,A);if(i===n.length)return i;var a=n[i];return 221===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,A,e.isStatement)),i+1):i}return 0}(r,i);var o=function(t){return e.filter(t.parameters,V)}(r);e.addRange(i,e.map(o,q))}else n&&i.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=W(t,!1);return X(i,s,e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,A,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,h()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}(r,i,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),i||r),i))}(r,n);return a&&i.push(a),e.addRange(i,e.visitNodes(r.members,M,e.isClassElement)),e.setTextRange(e.createNodeArray(i),r.members)}function V(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function q(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function W(t,r){return e.filter(t.members,r?H:G)}function H(e){return Y(e,!0)}function G(e){return Y(e,!1)}function Y(t,r){return 154===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function X(t,r,n){for(var i=0,a=r;i0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s0?154===n.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(n));return e.setEmitFlags(u,1536),u}}function ae(t){return e.visitNode(t.expression,A,e.isExpression)}function oe(r,n){var i;if(r){i=[];for(var a=0,s=r;a= 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 };'},e.metadataHelper={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 };'},e.paramHelper={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(c||(c={})),function(e){var t;function r(t,r,n){var i=0!=(4096&t.getNodeCheckFlags(r)),a=[];return n.forEach(function(t,r){var n=e.unescapeLeadingUnderscores(r),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),n),4)))),i&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),n),4),e.createIdentifier("v"))))),a.push(e.createPropertyAssignment(n,e.createObjectLiteral(o)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(a,!0)]))],2))}function n(t,r,n,i){t.requestEmitHelper(e.awaiterHelper);var a=e.createFunctionExpression(void 0,e.createToken(40),void 0,void 0,[],void 0,i);return(a.emitNode||(a.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),n?e.createExpressionFromEntityName(n):e.createVoidZero(),a])}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var i,a,o,s,c=t.resumeLexicalEnvironment,u=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,_=t.getEmitResolver(),d=t.getCompilerOptions(),p=e.getEmitScriptTarget(d),f=0,m=[],g=t.onEmitNode,y=t.onSubstituteNode;return t.onEmitNode=function(t,r,n){if(1&i&&function(e){var t=e.kind;return 240===t||157===t||156===t||158===t||159===t}(r)){var a=6144&_.getNodeCheckFlags(r);if(a!==f){var o=f;return f=a,g(t,r,n),void(f=o)}}else if(i&&m[e.getNodeId(r)]){var o=f;return f=0,g(t,r,n),void(f=o)}g(t,r,n)},t.onSubstituteNode=function(t,r){return r=y(t,r),1===t&&f?function(t){switch(t.kind){case 189:return N(t);case 190:return A(t);case 191:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?N(r):A(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r},e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,h,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function h(r){if(0==(32&r.transformFlags))return r;switch(r.kind){case 121:return;case 201:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,h,e.isExpression)),t),t)}(r);case 156:return function(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,h,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,h,t),void 0,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 239:return function(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,h,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,h,t),void 0,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 196:return function(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,h,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,h,t),void 0,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 197:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,h,e.isModifier),void 0,e.visitParameterList(r.parameters,h,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?E(r):e.visitFunctionBody(r.body,h,t))}(r);case 189:return o&&e.isPropertyAccessExpression(r)&&98===r.expression.kind&&o.set(r.name.escapedText,!0),e.visitEachChild(r,h,t);case 190:return o&&98===r.expression.kind&&(s=!0),e.visitEachChild(r,h,t);default:return e.visitEachChild(r,h,t)}}function v(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 219:return function(r){if(D(r.declarationList)){var n=x(r.declarationList,!1);return n?e.createExpressionStatement(n):void 0}return e.visitEachChild(r,h,t)}(r);case 225:return function(t){var r=t.initializer;return e.updateFor(t,D(r)?x(r,!1):e.visitNode(t.initializer,h,e.isForInitializer),e.visitNode(t.condition,h,e.isExpression),e.visitNode(t.incrementor,h,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 226:return function(t){return e.updateForIn(t,D(t.initializer)?x(t.initializer,!0):e.visitNode(t.initializer,h,e.isForInitializer),e.visitNode(t.expression,h,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 227:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,h,e.isToken),D(t.initializer)?x(t.initializer,!0):e.visitNode(t.initializer,h,e.isForInitializer),e.visitNode(t.expression,h,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 274:return function(r){var n,i=e.createUnderscoreEscapedMap();if(b(r.variableDeclaration,i),i.forEach(function(t,r){a.has(r)&&(n||(n=e.cloneMap(a)),n.delete(r))}),n){var o=a;a=n;var s=e.visitEachChild(r,v,t);return a=o,s}return e.visitEachChild(r,v,t)}(r);case 218:case 232:case 246:case 271:case 272:case 235:case 223:case 224:case 222:case 231:case 233:return e.visitEachChild(r,v,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return h(r)}function b(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);else for(var i=0,a=n.elements;i=2&&6144&_.getNodeCheckFlags(l);if(P&&(0==(1&i)&&(i|=1,t.enableSubstitution(191),t.enableSubstitution(189),t.enableSubstitution(190),t.enableEmitNotification(240),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(157),t.enableEmitNotification(219)),e.hasEntries(o))){var w=r(_,l,o);m[e.getNodeId(w)]=!0,e.insertStatementsAfterStandardPrologue(A,[w])}var I=e.createBlock(A,!0);e.setTextRange(I,l.body),P&&s&&(4096&_.getNodeCheckFlags(l)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(l)&&e.addEmitHelper(I,e.asyncSuperHelper)),S=I}return a=v,g||(o=T,s=C),S}function k(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,v,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,v,e.isConciseBody))}function N(t){return 98===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function A(t){return 98===t.expression.kind?(r=t.argumentExpression,n=t,4096&f?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),"value"),n):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=r,e.awaiterHelper={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:e.helperString(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(o(["\n const "," = (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 const "," = (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);"]),"_superIndex")}}(c||(c={})),function(e){var t;function r(t,r){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(e.assignHelper),e.createCall(e.getHelperName("__assign"),void 0,r))}function n(t,r){return t.requestEmitHelper(e.awaitHelper),e.createCall(e.getHelperName("__await"),void 0,[r])}function i(t,r,n){return t.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2018=function(t){var a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&d&&function(e){var t=e.kind;return 240===t||157===t||156===t||158===t||159===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==y){var a=y;return y=i,_(t,r,n),void(y=a)}}else if(d&&h[e.getNodeId(r)]){var a=y;return y=0,_(t,r,n),void(y=a)}_(t,r,n)};var d,p,f=t.onSubstituteNode;t.onSubstituteNode=function(t,r){return r=f(t,r),1===t&&y?function(t){switch(t.kind){case 189:return N(t);case 190:return A(t);case 191:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?N(r):A(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r};var m,g,y=0,h=[];return e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,v,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function v(e){return x(e,!1)}function b(e){return x(e,!0)}function D(e){if(121!==e.kind)return e}function x(a,o){if(0==(16&a.transformFlags))return a;switch(a.kind){case 201:return function(r){return 2&p&&1&p?e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.visitNode(r.expression,v,e.isExpression))),r),r):e.visitEachChild(r,v,t)}(a);case 207:return function(r){if(2&p&&1&p){if(r.asteriskToken){var a=e.visitNode(r.expression,v,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.updateYield(r,r.asteriskToken,function(t,r,n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}(t,i(t,a,a),a)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(T(r.expression?e.visitNode(r.expression,v,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,v,t)}(a);case 230:return function(r){return 2&p&&1&p?e.updateReturn(r,T(r.expression?e.visitNode(r.expression,v,e.isExpression):e.createVoidZero())):e.visitEachChild(r,v,t)}(a);case 233:return function(r){if(2&p){var n=e.unwrapInnermostStatementOfLabel(r);return 227===n.kind&&n.awaitModifier?S(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,v,t),r)}return e.visitEachChild(r,v,t)}(a);case 188:return function(n){if(8192&n.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i=2&&6144&c.getNodeCheckFlags(r);if(p){0==(1&d)&&(d|=1,t.enableSubstitution(191),t.enableSubstitution(189),t.enableSubstitution(190),t.enableEmitNotification(240),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(157),t.enableEmitNotification(219));var f=e.createSuperAccessVariableStatement(c,r,m);h[e.getNodeId(f)]=!0,e.insertStatementsAfterStandardPrologue(n,[f])}n.push(_),e.insertStatementsAfterStandardPrologue(n,o());var y=e.updateBlock(r.body,n);return p&&g&&(4096&c.getNodeCheckFlags(r)?e.addEmitHelper(y,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(r)&&e.addEmitHelper(y,e.asyncSuperHelper)),m=s,g=u,y}function E(t){a();var r=0,n=[],i=e.visitNode(t.body,v,e.isConciseBody);e.isBlock(i)&&(r=e.addPrologue(n,i.statements,!1,v)),e.addRange(n,k(void 0,t));var s=o();if(r>0||e.some(n)||e.some(s)){var c=e.convertToFunctionBody(i,!0);return e.insertStatementsAfterStandardPrologue(n,s),e.addRange(n,c.statements.slice(r)),e.updateBlock(c,e.setTextRange(e.createNodeArray(n),c.statements))}return i}function k(r,n){for(var i=0,a=n.parameters;i 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 };'},e.asyncDelegator={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) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'}}(c||(c={})),function(e){e.transformES2019=function(t){return e.chainBundle(function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)});function r(n){if(0==(8&n.transformFlags))return n;switch(n.kind){case 274:return function(n){return n.variableDeclaration?e.visitEachChild(n,r,t):e.updateCatchClause(n,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(n.block,r,e.isBlock))}(n);default:return e.visitEachChild(n,r,t)}}}}(c||(c={})),function(e){e.transformESNext=function(t){return e.chainBundle(function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)});function r(n){return 0==(4&n.transformFlags)?n:(n.kind,e.visitEachChild(n,r,t))}}}(c||(c={})),function(e){e.transformJsx=function(r){var n,i=r.getCompilerOptions();return e.chainBundle(function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,a,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i});function a(t){return 2&t.transformFlags?function(t){switch(t.kind){case 260:return s(t,!1);case 261:return c(t,!1);case 264:return u(t,!1);case 270:return m(t);default:return e.visitEachChild(t,a,r)}}(t):t}function o(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 100:return function(t){return 1&s&&16&i?e.setTextRange(e.createFileLevelUniqueName("_this"),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&s&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 186:case 240:case 243:case 237:return e.parent.name===e&&p.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=g(3968,64),n=[],i=[];c();var o=e.addStandardPrologue(n,t.statements,!1);return o=e.addCustomPrologue(n,t.statements,o,v),e.addRange(i,e.visitNodes(t.statements,v,e.isStatement,o)),a&&i.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.mergeLexicalEnvironment(n,l()),F(n,t),y(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(e.concatenate(n,i)),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s});function g(e,t){var r=i;return i=8191&(i&~e|t),r}function y(e,t,r){i=-8192&(i&~t|r)|e}function h(e){return 0!=(4096&i)&&230===e.kind&&!e.expression}function v(n){return function(t){return 0!=(128&t.transformFlags)||void 0!==o||4096&i&&(e.isStatement(t)||218===t.kind)||e.isIterationStatement(t,!1)&&ne(t)||0!=(33554432&e.getEmitFlags(t))}(n)?function(n){switch(n.kind){case 116:return;case 240:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,x(t));e.setOriginalNode(r,t);var n=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 209:return function(e){return x(e)}(n);case 151:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 239:return function(r){var n=o;o=void 0;var a=g(8094,65),s=e.visitParameterList(r.parameters,v,t),c=B(r),u=8192&i?e.getLocalName(r):r.name;return y(a,24576,0),o=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,v,e.isModifier),r.asteriskToken,u,void 0,s,void 0,c)}(n);case 197:return function(r){2048&r.transformFlags&&(i|=16384);var n=o;o=void 0;var a=g(8064,66),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,v,t),void 0,B(r));return e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),16384&i&&Ce(),y(a,0,0),o=n,s}(n);case 196:return function(r){var n=262144&e.getEmitFlags(r)?g(8086,69):g(8094,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,v,t),c=B(r),u=8192&i?e.getLocalName(r):r.name;return y(n,24576,0),o=a,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,s,void 0,c)}(n);case 237:return K(n);case 72:return function(t){return o?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&p.isArgumentsLocalBinding(t)?o.argumentsName||(o.argumentsName=e.createUniqueName("arguments")):t:t}(n);case 238:return function(r){if(3&r.flags||65536&r.transformFlags){3&r.flags&&Te();var n=e.flatMap(r.declarations,1&r.flags?z:K),i=e.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),65536&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,v,t,0,e.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(n),e.visitNode(a,v,e.isExpression))),1048576)),!0)}function N(t,r,n,i){i=e.visitNode(i,v,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function A(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=72===o.name.kind?e.getMutableClone(o.name):e.createTempVariable(void 0);e.setEmitFlags(s,48);var c=72===o.name.kind?e.getSynthesizedClone(o.name):s,u=n.parameters.length-1,l=e.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(s,void 0,e.createArrayLiteral([]))])),o),1048576));var _=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(l,void 0,e.createLiteral(u))]),o),e.setTextRange(e.createLessThan(l,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),o),e.setTextRange(e.createPostfixIncrement(l),o),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(c,0===u?l:e.createSubtract(l,e.createLiteral(u))),e.createElementAccess(e.createIdentifier("arguments"),l))),o))]));return e.setEmitFlags(_,1048576),e.startOnNewLine(_),a.push(_),72!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(o,v,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function F(t,r){return!!(16384&i&&197!==r.kind)&&(P(t,r,e.createThis()),!0)}function P(t,r,n){Ce();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function w(t,r,n){if(8192&i){var a=void 0;switch(r.kind){case 197:return t;case 156:case 158:case 159:a=e.createVoidZero();break;case 157:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 239:case 196:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),94,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function I(t){return e.setTextRange(e.createEmptyStatement(),t)}function O(t,r,n){var i=e.getCommentRange(r),a=e.getSourceMapRange(r),o=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,v,e.isPropertyName),r.name),s=R(r,r,void 0,n);e.setEmitFlags(s,1536),e.setSourceMapRange(s,a);var c=e.setTextRange(e.createExpressionStatement(e.createAssignment(o,s)),r);return e.setOriginalNode(c,r),e.setCommentRange(c,i),e.setEmitFlags(c,48),c}function M(t,r,n){var i=e.createExpressionStatement(L(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function L(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.getMutableClone(t);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.createExpressionForPropertyName(e.visitNode(a.name,v,e.isPropertyName));e.setEmitFlags(u,1552),e.setSourceMapRange(u,a.name);var l=[];if(o){var _=R(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var d=e.createPropertyAssignment("get",_);e.setCommentRange(d,e.getCommentRange(o)),l.push(d)}if(s){var p=R(s,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("set",p);e.setCommentRange(f,e.getCommentRange(s)),l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var m=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[c,u,e.createObjectLiteral(l,!0)]);return i&&e.startOnNewLine(m),m}function R(r,n,a,s){var c=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.hasModifier(r,32)?g(8094,73):g(8094,65),l=e.visitParameterList(r.parameters,v,t),_=B(r);return 8192&i&&!a&&(239===r.kind||196===r.kind)&&(a=e.getGeneratedNameForNode(r)),y(u,24576,0),o=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,a,void 0,l,void 0,_),n),r)}function B(t){var n,i,a,o=!1,s=!1,c=[],_=[],d=t.body;if(u(),e.isBlock(d)&&(a=e.addStandardPrologue(c,d.statements,!1)),o=E(_,t)||o,o=A(_,t,!1)||o,e.isBlock(d))a=e.addCustomPrologue(_,d.statements,a,v),n=d.statements,e.addRange(_,e.visitNodes(d.statements,v,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(197===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var f=e.visitNode(d,v,e.isExpression),m=e.createReturn(f);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),_.push(m),i=d}if(e.mergeLexicalEnvironment(c,l()),w(c,t,!1),F(c,t),e.some(c)&&(o=!0),_.unshift.apply(_,c),e.isBlock(d)&&e.arrayIsEqualTo(_,d.statements))return d;var g=e.createBlock(e.setTextRange(e.createNodeArray(_),n),o);return e.setTextRange(g,t.body),!o&&s&&e.setEmitFlags(g,1),i&&e.setTokenSourceMapRange(g,19,i),e.setOriginalNode(g,t.body),g}function j(r,n){if(!n)switch(r.expression.kind){case 195:return e.updateParen(r,j(r.expression,!1));case 204:return e.updateParen(r,J(r.expression,!1))}return e.visitEachChild(r,v,t)}function J(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,v,t,0,n):e.visitEachChild(r,v,t)}function z(r){var n=r.name;if(e.isBindingPattern(n))return K(r);if(!r.initializer&&function(e){var t=p.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(2048&i)&&(!p.isDeclarationWithCollidingName(e)||n&&!r&&0==(3072&i))}(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,v,t)}function K(r){var n,i=g(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,v,t,0,void 0,0!=(32&i)):e.visitEachChild(r,v,t),y(i,0,0),n}function U(t){o.labels.set(e.idText(t.label),!0)}function V(t){o.labels.set(e.idText(t.label),!1)}function q(r,n,a,s,u){var _=g(r,n),d=function(r,n,a){if(!ne(r)){var s=void 0;o&&(s=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var u=a?a(r,n,void 0):e.restoreEnclosingLabel(e.visitEachChild(r,v,t),n,o&&V);return o&&(o.allowedNonLabeledJumps=s),u}var _=function(t){var r;switch(t.kind){case 225:case 226:case 227:var n=t.initializer;n&&238===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=te(t),c=0,u=r.declarations;c=73&&r<=108)return e.setTextRange(e.createLiteral(t),t)}}}(c||(c={})),function(e){var t,r,n,i,a;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(a||(a={})),e.transformGenerators=function(t){var r,n,i,a,o,s,c,u,l,_,d=t.resumeLexicalEnvironment,p=t.endLexicalEnvironment,f=t.hoistFunctionDeclaration,m=t.hoistVariableDeclaration,g=t.getCompilerOptions(),y=e.getEmitScriptTarget(g),h=t.getEmitResolver(),v=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=v(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=h.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var b,D,x,S,T,C,E,k,N,A,F,P,w=1,I=0,O=0;return e.chainBundle(function(r){if(r.isDeclarationFile||0==(256&r.transformFlags))return r;var n=e.visitEachChild(r,M,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function M(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 223:case 224:return function(r){return a?(re(),r=e.visitEachChild(r,M,t),ie(),r):e.visitEachChild(r,M,t)}(r);case 232:return function(r){return a&&$({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,M,t),a&&ae(),r}(r);case 233:return function(r){return a&&$({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,M,t),a&&oe(),r}(r);default:return L(r)}}(r):i?L(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 239:return R(t);case 196:return B(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):256&n?e.visitEachChild(r,M,t):r}function L(r){switch(r.kind){case 239:return R(r);case 196:return B(r);case 158:case 159:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,M,t),i=n,a=o,r}(r);case 219:return function(t){if(131072&t.transformFlags)V(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?e.inlineExpressions(e.map(c,q)):void 0,e.visitNode(r.condition,M,e.isExpression),e.visitNode(r.incrementor,M,e.isExpression),e.visitNode(r.statement,M,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,M,t);return a&&ie(),r}(r);case 226:return function(r){a&&re();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i0)return me(n,r)}return e.visitEachChild(r,M,t)}(r);case 228:return function(r){if(a){var n=de(r.label&&e.idText(r.label));if(n>0)return me(n,r)}return e.visitEachChild(r,M,t)}(r);case 230:return function(t){return r=e.visitNode(t.expression,M,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[fe(2),r]:[fe(2)])),n);var r,n}(r);default:return 131072&r.transformFlags?function(r){switch(r.kind){case 204:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(W(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return function(t){var r=X(),n=Y();return he(n,e.visitNode(t.left,M,e.isExpression),t.left),54===t.operatorToken.kind?De(r,n,t.left):be(r,n,t.left),he(n,e.visitNode(t.right,M,e.isExpression),t.right),Q(r),n}(r);if(27===r.operatorToken.kind)return function(t){var r=[];return n(t.left),n(t.right),e.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(W(t)&&r.length>0&&(xe(1,[e.createExpressionStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,M,e.isExpression)))}}(r);var n=e.getMutableClone(r);return n.left=G(e.visitNode(r.left,M,e.isExpression)),n.right=e.visitNode(r.right,M,e.isExpression),n}return e.visitEachChild(r,M,t)}(r);case 1:return function(r){var n,i=r.left,a=r.right;if(W(a)){var o=void 0;switch(i.kind){case 189:o=e.updatePropertyAccess(i,G(e.visitNode(i.expression,M,e.isLeftHandSideExpression)),i.name);break;case 190:o=e.updateElementAccess(i,G(e.visitNode(i.expression,M,e.isLeftHandSideExpression)),G(e.visitNode(i.argumentExpression,M,e.isExpression)));break;default:o=e.visitNode(i,M,e.isExpression)}var s=r.operatorToken.kind;return(n=s)>=60&&n<=71?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(G(o),function(e){switch(e){case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 43;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50;case 71:return 51}}(s),e.visitNode(a,M,e.isExpression)),r)),r):e.updateBinary(r,o,e.visitNode(a,M,e.isExpression))}return e.visitEachChild(r,M,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 205:return function(r){if(W(r.whenTrue)||W(r.whenFalse)){var n=X(),i=X(),a=Y();return De(n,e.visitNode(r.condition,M,e.isExpression),r.condition),he(a,e.visitNode(r.whenTrue,M,e.isExpression),r.whenTrue),ve(i),Q(n),he(a,e.visitNode(r.whenFalse,M,e.isExpression),r.whenFalse),Q(i),a}return e.visitEachChild(r,M,t)}(r);case 207:return function(r){var n,i=X(),a=e.visitNode(r.expression,M,e.isExpression);if(r.asteriskToken){var o=0==(8388608&e.getEmitFlags(r.expression))?e.createValuesHelper(t,a,r):a;!function(e,t){xe(7,[e],t)}(o,r)}else!function(e,t){xe(6,[e],t)}(a,r);return Q(i),n=r,e.setTextRange(e.createCall(e.createPropertyAccess(S,"sent"),void 0,[]),n)}(r);case 187:return function(e){return J(e.elements,void 0,void 0,e.multiLine)}(r);case 188:return function(t){var r=t.properties,n=t.multiLine,i=H(r),a=Y();he(a,e.createObjectLiteral(e.visitNodes(r,M,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,function(r,i){W(i)&&r.length>0&&(ye(e.createExpressionStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,M,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r},[],i);return o.push(n?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(r);case 190:return function(r){if(W(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=G(e.visitNode(r.expression,M,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,M,e.isExpression),n}return e.visitEachChild(r,M,t)}(r);case 191:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,W)){var n=e.createCallBinding(r.expression,m,y,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(G(e.visitNode(i,M,e.isLeftHandSideExpression)),a,J(r.arguments),r),r)}return e.visitEachChild(r,M,t)}(r);case 192:return function(r){if(e.forEach(r.arguments,W)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),m),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(G(e.visitNode(i,M,e.isExpression)),a,J(r.arguments,e.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,M,t)}(r);default:return e.visitEachChild(r,M,t)}}(r):262400&r.transformFlags?e.visitEachChild(r,M,t):r}}function R(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,M,t),void 0,j(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,M,t),i=n,a=o}return i?void f(r):r}function B(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,M,t),void 0,j(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,M,t),i=n,a=o}return r}function j(t){var r=[],n=i,f=a,m=o,g=s,y=c,h=u,v=l,T=_,C=w,E=b,k=D,N=x,A=S;i=!0,a=!1,o=void 0,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,w=1,b=void 0,D=void 0,x=void 0,S=e.createTempVariable(void 0),d();var F=e.addPrologue(r,t.statements,!1,M);z(t.statements,F);var P=Se();return e.insertStatementsAfterStandardPrologue(r,p()),r.push(e.createReturn(P)),i=n,a=f,o=m,s=g,c=y,u=h,l=v,_=T,w=C,b=E,D=k,x=N,S=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function J(t,r,n,i){var a,o=H(t);if(o>0){a=Y();var s=e.visitNodes(t,M,e.isExpression,0,o);he(a,e.createArrayLiteral(r?[r].concat(s):s)),r=void 0}var c=e.reduceLeft(t,function(t,n){if(W(n)&&t.length>0){var o=void 0!==a;a||(a=Y()),he(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,M,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(c):c,i),n)}function z(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?ve(r,t):ye(t)}(i);case 229:return function(t){var r=_e(t.label?e.idText(t.label):void 0);r>0?ve(r,t):ye(t)}(i);case 230:return function(t){xe(8,[e.visitNode(t.expression,M,e.isExpression)],t)}(i);case 231:return function(t){var r,n,i;W(t)?(r=G(e.visitNode(t.expression,M,e.isExpression)),n=X(),i=X(),Q(n),$({kind:1,expression:r,startLabel:n,endLabel:i}),K(t.statement),e.Debug.assert(1===te()),Q(Z().endLabel)):ye(e.visitNode(t,M,e.isStatement))}(i);case 232:return function(t){if(W(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=($({kind:2,isScript:!1,breakLabel:p=X()}),p),a=G(e.visitNode(t.expression,M,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(e.createCaseClause(e.visitNode(u.expression,M,e.isExpression),[me(o[c],u.expression)]))}else d++}_.length&&(ye(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}ve(s>=0?o[s]:i);for(var c=0;c0);l++)u.push(q(i));u.length&&(ye(e.createExpressionStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function q(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,M,e.isExpression)),t)}function W(e){return!!e&&0!=(131072&e.transformFlags)}function H(e){for(var t=e.length,r=0;r=0;r--){var n=u[r];if(!ce(n))break;if(n.labelText===e)return!0}return!1}function _e(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(ce(r=u[t])&&r.labelText===e)return r.breakLabel;if(se(r)&&le(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(se(r=u[t]))return r.breakLabel}return 0}function de(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(ue(r=u[t])&&le(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(ue(r=u[t]))return r.continueLabel}return 0}function pe(t){if(void 0!==t&&t>0){void 0===_&&(_=[]);var r=e.createLiteral(-1);return void 0===_[t]?_[t]=[r]:_[t].push(r),r}return e.createOmittedExpression()}function fe(t){var r=e.createLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function me(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([fe(3),pe(t)])),r)}function ge(){xe(0)}function ye(e){e?xe(1,[e]):ge()}function he(e,t,r){xe(2,[e,t],r)}function ve(e,t){xe(3,[e],t)}function be(e,t,r){xe(4,[e,t],r)}function De(e,t,r){xe(5,[e,t],r)}function xe(e,t,r){void 0===b&&(b=[],D=[],x=[]),void 0===l&&Q(X());var n=b.length;b[n]=e,D[n]=t,x[n]=r}function Se(){I=0,O=0,T=void 0,C=!1,E=!1,k=void 0,N=void 0,A=void 0,F=void 0,P=void 0;var r=function(){if(b){for(var t=0;t0)),524288))}function Te(e){(function(e){if(!E)return!0;if(!l||!_)return!1;for(var t=0;t=0;r--){var n=P[r];N=[e.createWith(n.expression,e.createBlock(N))]}if(F){var i=F.startLabel,a=F.catchLabel,o=F.finallyLabel,s=F.endLabel;N.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(S,"trys"),"push"),void 0,[e.createArrayLiteral([pe(i),pe(a),pe(o),pe(s)])]))),F=void 0}t&&N.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(S,"label"),e.createLiteral(O+1))))}k.push(e.createCaseClause(e.createLiteral(O),N||[])),N=void 0}function Ee(e){if(l)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 };'}}(c||(c={})),function(e){e.transformModule=function(n){var i=n.startLexicalEnvironment,a=n.endLexicalEnvironment,o=n.hoistVariableDeclaration,s=n.getCompilerOptions(),c=n.getEmitResolver(),u=n.getEmitHost(),l=e.getEmitScriptTarget(s),_=e.getEmitModuleKind(s),d=n.onSubstituteNode,p=n.onEmitNode;n.onSubstituteNode=function(t,r){return(r=d(t,r)).id&&g[r.id]?r:1===t?function(t){switch(t.kind){case 72:return H(t);case 204:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=G(t.left);if(r){for(var n=t,i=0,a=r;i=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t),t)],l>=2?2:0))));if(L(t)){var a=e.getOriginalNodeId(t);v[a]=R(v[a],t)}else r=R(r,t);return e.singleOrMany(r)}(t);case 248:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),_!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(t.name,I(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,I(t))],l>=2?2:0)),t),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(e.getExportName(t),e.getLocalName(t))),t),t))),L(t)){var n=e.getOriginalNodeId(t);v[n]=B(v[n],t)}else r=B(r,t);return e.singleOrMany(r)}(t);case 255:return function(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var i=[];_!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,I(t))])),t),t));for(var a=0,o=t.exportClause.elements;a(e.isExportName(r)?1:0);return!1}(t.left)?e.flattenDestructuringAssignment(t,A,n,0,!1,O):e.visitEachChild(t,A,n)}(t):e.visitEachChild(t,A,n):t}function F(t,r){var i,a=e.createUniqueName("resolve"),o=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,a),e.createParameter(void 0,void 0,void 0,o)],u=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),a,o]))]);l>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var _=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return s.esModuleInterop?(n.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(_,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):_}function P(t,r){var i,a=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),o=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return s.esModuleInterop&&(n.requestEmitHelper(e.importStarHelper),o=e.createCall(e.getHelperName("__importStar"),void 0,[o])),l>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,o):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(o)])),r&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(a,"then"),void 0,[i])}function w(t,r){return!s.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?(n.requestEmitHelper(e.importStarHelper),e.createCall(e.getHelperName("__importStar"),void 0,[r])):e.getImportNeedsImportDefaultHelper(t)?(n.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getHelperName("__importDefault"),void 0,[r])):r}function I(t){var r=e.getExternalModuleNameLiteral(t,f,u,c,s),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function O(t,r,n){var i=G(t);if(i){for(var a=e.isExportName(t)?r:e.createAssignment(t,r),o=0,s=i;o0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,function(e){return t(e,n)})}e.getDeclarationDiagnostics=function(t,r,n){if(n&&e.isSourceFileJS(n))return[];var a=t.getCompilerOptions();return e.transformNodes(r,t,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJS),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,c,u,l,_,d,p,f,m,g,y=function(){return e.Debug.fail("Diagnostic emitted without context")},h=y,v=!0,b=!1,D=!1,x=!1,S=!1,T=t.getEmitHost(),C={trackSymbol:function(e,t,r){if(262144&e.flags)return;w(E.isSymbolAccessible(e,t,r,!0)),P(E.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"this"))},reportInaccessibleUniqueSymbolError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(p),r))},moduleResolverHost:T,trackReferencedAmbientModule:function(t,r){var n=E.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return P(n);var i=e.getSourceFileOfNode(t);m.set(""+e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){b||(d||(d=[])).push(e)}},E=t.getEmitResolver(),k=t.getCompilerOptions(),N=e.getNewLineCharacter(k),A=k.noResolve,F=k.stripInternal;return function(r){if(284===r.kind&&(r.isDeclarationFile||e.isSourceFileJS(r)))return r;if(285===r.kind){b=!0,m=e.createMap(),g=e.createMap();var n=!1,a=e.createBundle(e.map(r.sourceFiles,function(r){if(!r.isDeclarationFile&&!e.isSourceFileJS(r)){if(n=n||r.hasNoDefaultLib,f=r,i=r,u=void 0,_=!1,l=e.createMap(),h=y,x=!1,S=!1,I(r,m),O(r,g),e.isExternalModule(r)){D=!1,v=!1;var a=e.visitNodes(r.statements,Q),o=e.updateSourceFileNode(r,[e.createModuleDeclaration([],[e.createModifier(125)],e.createLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),e.createModuleBlock(e.setTextRange(e.createNodeArray(H(a)),r.statements)))],!0,[],[],!1,[]);return o}v=!0;var s=e.visitNodes(r.statements,Q);return e.updateSourceFileNode(r,H(s),!0,[],[],!1,[])}}),e.mapDefined(r.prepends,function(t){if(287===t.kind){var r=e.createUnparsedSourceFile(t,"dts",F);return n=n||!!r.hasNoDefaultLib,I(r,m),P(r.typeReferenceDirectives),O(r,g),r}return t}));a.syntheticFileReferences=[],a.syntheticTypeReferences=L(),a.syntheticLibReferences=M(),a.hasNoDefaultLib=n;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,T,!0).declarationFilePath)),s=B(a.syntheticFileReferences,o);return m.forEach(s),a}v=!0,x=!1,S=!1,i=r,f=r,h=y,b=!1,D=!1,_=!1,u=void 0,l=e.createMap(),c=void 0,m=I(f,e.createMap()),g=O(f,e.createMap());var p=[],C=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,T,!0).declarationFilePath)),E=B(p,C),k=e.visitNodes(r.statements,Q),N=e.setTextRange(e.createNodeArray(H(k)),r.statements);m.forEach(E);var A=e.filter(N,e.isAnyImportSyntax);e.isExternalModule(r)&&(!D||x&&!S)&&(N=e.setTextRange(e.createNodeArray(N.concat([e.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0)])),N));var w=e.updateSourceFileNode(r,N,!0,p,L(),r.hasNoDefaultLib,M());return w.exportedModulesFromDeclarationEmit=d,w;function M(){return e.map(e.arrayFrom(g.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function L(){return c?e.mapDefined(e.arrayFrom(c.keys()),R):[]}function R(t){if(A)for(var r=0,n=A;r1){var a=n.slice(1),o=e.guessIndentation(a);r=[n[0]].concat(e.map(a,function(e){return e.slice(o)})).join(N)}e.addSyntheticLeadingComment(i,t.kind,r,t.hasTrailingNewLine)}},u=0,l=o;u0?e.parameters[0].type:void 0}e.transformDeclarations=i}(c||(c={})),function(e){var t,r;function n(e,t){return t}function i(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.getTransformers=function(t,r){var n=t.jsx,i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&r.before),o.push(e.transformTypeScript),2===n&&o.push(e.transformJsx),i<7&&o.push(e.transformESNext),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&r.after),o},e.noEmitSubstitution=n,e.noEmitNotification=i,e.transformNodes=function(t,r,a,o,s,c){for(var u,l,_,d=new Array(317),p=[],f=[],m=0,g=!1,y=n,h=i,v=0,b=[],D={getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),p[m]=u,f[m]=l,m++,u=void 0,l=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is already suspended."),g=!0},resumeLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(g,"Lexical environment is not suspended."),g=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),(u||l)&&(l&&(t=l.slice()),u)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));t?t.push(r):t=[r]}return u=p[--m],l=f[m],0===m&&(p=[],f=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);u?u.push(r):u=[r]},hoistFunctionDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),l?l.push(t):l=[t]},requestEmitHelper:function(t){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),_=e.append(_,t)},readEmitHelpers:function(){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed.");var t=_;return _=void 0,t},enableSubstitution:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=1},enableEmitNotification:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=2},isSubstitutionEnabled:k,isEmitNotificationEnabled:N,get onSubstituteNode(){return y},set onSubstituteNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),y=t},get onEmitNode(){return h},set onEmitNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),h=t},addDiagnostic:function(e){b.push(e)}},x=0,S=o;x"],e[8192]=["[","]"],e}(),i={pos:-1,end:-1};function a(t,r,n,i,a,s){void 0===i&&(i=!1);var u=e.isArray(n)?n:e.getSourceFilesToEmit(t,n),l=t.getCompilerOptions();if(l.outFile||l.out){var _=t.getPrependNodes();if(u.length||_.length){var d=e.createBundle(u,_);if(m=r(c(d,t,i),d))return m}}else{if(!a)for(var p=0,f=u;p"),St(),de(e.type),qt(e)}(n);case 294:return function(e){vt("function"),lt(e,e.parameters),yt(":"),de(e.type)}(n);case 166:return function(e){Vt(e),vt("new"),St(),ut(e,e.typeParameters),lt(e,e.parameters),St(),yt("=>"),St(),de(e.type),qt(e)}(n);case 167:return function(e){vt("typeof"),St(),de(e.exprName)}(n);case 168:return function(t){yt("{");var r=1&e.getEmitFlags(t)?768:32897;dt(t,t.members,524288|r),yt("}")}(n);case 169:return function(e){de(e.elementType),yt("["),yt("]")}(n);case 170:return function(e){yt("["),dt(e,e.elementTypes,528),yt("]")}(n);case 171:return function(e){de(e.type),yt("?")}(n);case 173:return function(e){dt(e,e.types,516)}(n);case 174:return function(e){dt(e,e.types,520)}(n);case 175:return function(e){de(e.checkType),St(),vt("extends"),St(),de(e.extendsType),St(),yt("?"),St(),de(e.trueType),St(),yt(":"),St(),de(e.falseType)}(n);case 176:return function(e){vt("infer"),St(),de(e.typeParameter)}(n);case 177:return function(e){yt("("),de(e.type),yt(")")}(n);case 211:return function(e){fe(e.expression),ct(e,e.typeArguments)}(n);case 178:return void vt("this");case 179:return function(e){Ft(e.operator,vt),St(),de(e.type)}(n);case 180:return function(e){de(e.objectType),yt("["),de(e.indexType),yt("]")}(n);case 181:return function(t){var r=e.getEmitFlags(t);yt("{"),1&r?St():(Ct(),Et());t.readonlyToken&&(de(t.readonlyToken),133!==t.readonlyToken.kind&&vt("readonly"),St());yt("["),me(0,t.typeParameter)(3,t.typeParameter),yt("]"),t.questionToken&&(de(t.questionToken),56!==t.questionToken.kind&&yt("?"));yt(":"),St(),de(t.type),ht(),1&r?St():(Ct(),kt());yt("}")}(n);case 182:return function(e){fe(e.literal)}(n);case 183:return function(e){e.isTypeOf&&(vt("typeof"),St());vt("import"),yt("("),de(e.argument),yt(")"),e.qualifier&&(yt("."),de(e.qualifier));ct(e,e.typeArguments)}(n);case 289:return void yt("*");case 290:return void yt("?");case 291:return function(e){yt("?"),de(e.type)}(n);case 292:return function(e){yt("!"),de(e.type)}(n);case 293:return function(e){de(e.type),yt("=")}(n);case 172:case 295:return function(e){yt("..."),de(e.type)}(n);case 184:return function(e){yt("{"),dt(e,e.elements,525136),yt("}")}(n);case 185:return function(e){yt("["),dt(e,e.elements,524880),yt("]")}(n);case 186:return function(e){de(e.dotDotDotToken),e.propertyName&&(de(e.propertyName),yt(":"),St());de(e.name),nt(e.initializer,e.name.end,e)}(n);case 216:return function(e){fe(e.expression),de(e.literal)}(n);case 217:return void ht();case 218:return function(e){Ee(e,!e.multiLine&&Jt(e))}(n);case 219:return function(e){tt(e,e.modifiers),de(e.declarationList),ht()}(n);case 220:return ke(!1);case 221:return function(t){fe(t.expression),(!e.isJsonSourceFile(a)||e.nodeIsSynthesized(t.expression))&&ht()}(n);case 222:return function(e){var t=Fe(91,e.pos,vt,e);St(),Fe(20,t,yt,e),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.thenStatement),e.elseStatement&&(Pt(e),Fe(83,e.thenStatement.end,vt,e),222===e.elseStatement.kind?(St(),de(e.elseStatement)):ot(e,e.elseStatement))}(n);case 223:return function(t){Fe(82,t.pos,vt,t),ot(t,t.statement),e.isBlock(t.statement)?St():Pt(t);Ne(t,t.statement.end),yt(";")}(n);case 224:return function(e){Ne(e,e.pos),ot(e,e.statement)}(n);case 225:return function(e){var t=Fe(89,e.pos,vt,e);St();var r=Fe(20,t,yt,e);Ae(e.initializer),r=Fe(26,e.initializer?e.initializer.end:r,yt,e),at(e.condition),r=Fe(26,e.condition?e.condition.end:r,yt,e),at(e.incrementor),Fe(21,e.incrementor?e.incrementor.end:r,yt,e),ot(e,e.statement)}(n);case 226:return function(e){var t=Fe(89,e.pos,vt,e);St(),Fe(20,t,yt,e),Ae(e.initializer),St(),Fe(93,e.initializer.end,vt,e),St(),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.statement)}(n);case 227:return function(e){var t=Fe(89,e.pos,vt,e);St(),function(e){e&&(de(e),St())}(e.awaitModifier),Fe(20,t,yt,e),Ae(e.initializer),St(),Fe(147,e.initializer.end,vt,e),St(),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.statement)}(n);case 228:return function(e){Fe(78,e.pos,vt,e),it(e.label),ht()}(n);case 229:return function(e){Fe(73,e.pos,vt,e),it(e.label),ht()}(n);case 230:return function(e){Fe(97,e.pos,vt,e),at(e.expression),ht()}(n);case 231:return function(e){var t=Fe(108,e.pos,vt,e);St(),Fe(20,t,yt,e),fe(e.expression),Fe(21,e.expression.end,yt,e),ot(e,e.statement)}(n);case 232:return function(e){var t=Fe(99,e.pos,vt,e);St(),Fe(20,t,yt,e),fe(e.expression),Fe(21,e.expression.end,yt,e),St(),de(e.caseBlock)}(n);case 233:return function(e){de(e.label),Fe(57,e.label.end,yt,e),St(),de(e.statement)}(n);case 234:return function(e){Fe(101,e.pos,vt,e),at(e.expression),ht()}(n);case 235:return function(e){Fe(103,e.pos,vt,e),St(),de(e.tryBlock),e.catchClause&&(Pt(e),de(e.catchClause));e.finallyBlock&&(Pt(e),Fe(88,(e.catchClause||e.tryBlock).end,vt,e),St(),de(e.finallyBlock))}(n);case 236:return function(e){Nt(79,e.pos,vt),ht()}(n);case 237:return function(e){de(e.name),rt(e.type),nt(e.initializer,e.type?e.type.end:e.name.end,e)}(n);case 238:return function(t){vt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),St(),dt(t,t.declarations,528)}(n);case 239:return function(e){Pe(e)}(n);case 240:return function(e){Be(e)}(n);case 241:return function(e){st(e,e.decorators),tt(e,e.modifiers),vt("interface"),St(),de(e.name),ut(e,e.typeParameters),dt(e,e.heritageClauses,512),St(),yt("{"),dt(e,e.members,129),yt("}")}(n);case 242:return function(e){st(e,e.decorators),tt(e,e.modifiers),vt("type"),St(),de(e.name),ut(e,e.typeParameters),St(),yt("="),St(),de(e.type),ht()}(n);case 243:return function(e){tt(e,e.modifiers),vt("enum"),St(),de(e.name),St(),yt("{"),dt(e,e.members,145),yt("}")}(n);case 244:return function(e){tt(e,e.modifiers),512&~e.flags&&(vt(16&e.flags?"namespace":"module"),St());de(e.name);var t=e.body;if(!t)return ht();for(;244===t.kind;)yt("."),de(t.name),t=t.body;St(),de(t)}(n);case 245:return function(t){Vt(t),e.forEach(t.statements,Ht),Ee(t,Jt(t)),qt(t)}(n);case 246:return function(e){Fe(18,e.pos,yt,e),dt(e,e.clauses,129),Fe(19,e.clauses.end,yt,e,!0)}(n);case 247:return function(e){var t=Fe(85,e.pos,vt,e);St(),t=Fe(119,t,vt,e),St(),t=Fe(131,t,vt,e),St(),de(e.name),ht()}(n);case 248:return function(e){tt(e,e.modifiers),Fe(92,e.modifiers?e.modifiers.end:e.pos,vt,e),St(),de(e.name),St(),Fe(59,e.name.end,yt,e),St(),function(e){72===e.kind?fe(e):de(e)}(e.moduleReference),ht()}(n);case 249:return function(e){tt(e,e.modifiers),Fe(92,e.modifiers?e.modifiers.end:e.pos,vt,e),St(),e.importClause&&(de(e.importClause),St(),Fe(144,e.importClause.end,vt,e),St());fe(e.moduleSpecifier),ht()}(n);case 250:return function(e){de(e.name),e.name&&e.namedBindings&&(Fe(27,e.name.end,yt,e),St());de(e.namedBindings)}(n);case 251:return function(e){var t=Fe(40,e.pos,yt,e);St(),Fe(119,t,vt,e),St(),de(e.name)}(n);case 252:return function(e){je(e)}(n);case 253:return function(e){Je(e)}(n);case 254:return function(e){var t=Fe(85,e.pos,vt,e);St(),e.isExportEquals?Fe(59,t,bt,e):Fe(80,t,vt,e);St(),fe(e.expression),ht()}(n);case 255:return function(e){var t=Fe(85,e.pos,vt,e);St(),e.exportClause?de(e.exportClause):t=Fe(40,t,yt,e);if(e.moduleSpecifier){St();var r=e.exportClause?e.exportClause.end:t;Fe(144,r,vt,e),St(),fe(e.moduleSpecifier)}ht()}(n);case 256:return function(e){je(e)}(n);case 257:return function(e){Je(e)}(n);case 258:return;case 259:return function(e){vt("require"),yt("("),fe(e.expression),yt(")")}(n);case 11:return function(e){p.writeLiteral(e.text)}(n);case 262:case 265:return function(t){yt("<"),e.isJsxOpeningElement(t)&&(ze(t.tagName),ct(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&St(),de(t.attributes));yt(">")}(n);case 263:case 266:return function(t){yt("")}(n);case 267:return function(e){de(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",yt,e.initializer,de)}(n);case 268:return function(e){dt(e,e.properties,262656)}(n);case 269:return function(e){yt("{..."),fe(e.expression),yt("}")}(n);case 270:return function(e){e.expression&&(yt("{"),de(e.dotDotDotToken),fe(e.expression),yt("}"))}(n);case 271:return function(e){Fe(74,e.pos,vt,e),St(),fe(e.expression),Ke(e,e.statements,e.expression.end)}(n);case 272:return function(e){var t=Fe(80,e.pos,vt,e);Ke(e,e.statements,t)}(n);case 273:return function(e){St(),Ft(e.token,vt),St(),dt(e,e.types,528)}(n);case 274:return function(e){var t=Fe(75,e.pos,vt,e);St(),e.variableDeclaration&&(Fe(20,t,yt,e),de(e.variableDeclaration),Fe(21,e.variableDeclaration.end,yt,e),St());de(e.block)}(n);case 275:return function(t){de(t.name),yt(":"),St();var r=t.initializer;if(fr&&0==(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);fr(n.pos)}fe(r)}(n);case 276:return function(e){de(e.name),e.objectAssignmentInitializer&&(St(),yt("="),St(),fe(e.objectAssignmentInitializer))}(n);case 277:return function(e){e.expression&&(Fe(25,e.pos,yt,e),fe(e.expression))}(n);case 278:return function(e){de(e.name),nt(e.initializer,e.name.end,e)}(n);case 304:case 310:return function(e){qe(e.tagName),He(e.typeExpression),St(),e.isBracketed&&yt("[");de(e.name),e.isBracketed&&yt("]");We(e.comment)}(n);case 305:case 307:case 306:case 303:return qe((i=n).tagName),He(i.typeExpression),void We(i.comment);case 300:return function(e){qe(e.tagName),St(),yt("{"),de(e.class),yt("}"),We(e.comment)}(n);case 308:return function(e){qe(e.tagName),He(e.constraint),St(),dt(e,e.typeParameters,528),We(e.comment)}(n);case 309:return function(e){qe(e.tagName),e.typeExpression&&(288===e.typeExpression.kind?He(e.typeExpression):(St(),yt("{"),I("Object"),e.typeExpression.isArrayType&&(yt("["),yt("]")),yt("}")));e.fullName&&(St(),de(e.fullName));We(e.comment),e.typeExpression&&297===e.typeExpression.kind&&Ue(e.typeExpression)}(n);case 302:return function(e){qe(e.tagName),e.name&&(St(),de(e.name));We(e.comment),Ve(e.typeExpression)}(n);case 298:return Ve(n);case 297:return Ue(n);case 301:case 299:return function(e){qe(e.tagName),We(e.comment)}(n);case 296:return function(e){if(I("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r=1&&!e.isJsonSourceFile(a)?64:0;dt(t,t.properties,526226|i|n),r&&kt()}(n);case 189:return function(r){var n=!1,i=!1,o=e.skipTrivia(a.text,r.expression.end,!1,!0),s=e.skipTrivia(a.text,o),c=s+1;if(!(131072&e.getEmitFlags(r))){var u=e.createToken(24);u.pos=r.expression.end,u.end=c,n=jt(r,r.expression,u),i=jt(r,u,r.name)}fe(r.expression),It(n,!1);var l=o!==s;!n&&function(r,n){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var i=Ut(r,!0);return!r.numericLiteralFlags&&!e.stringContains(i,e.tokenToString(24))&&(!n||t.removeComments)}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var a=e.getConstantValue(r);return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a&&t.removeComments}}(r.expression,l)&&yt(".");Fe(24,r.expression.end,yt,r),It(i,!1),de(r.name),Ot(n,i)}(n);case 190:return function(e){fe(e.expression),Fe(22,e.expression.end,yt,e),fe(e.argumentExpression),Fe(23,e.argumentExpression.end,yt,e)}(n);case 191:return function(e){fe(e.expression),ct(e,e.typeArguments),pt(e,e.arguments,2576)}(n);case 192:return function(e){Fe(95,e.pos,vt,e),St(),fe(e.expression),ct(e,e.typeArguments),pt(e,e.arguments,18960)}(n);case 193:return function(e){fe(e.tag),ct(e,e.typeArguments),St(),fe(e.template)}(n);case 194:return function(e){yt("<"),de(e.type),yt(">"),fe(e.expression)}(n);case 195:return function(e){var t=Fe(20,e.pos,yt,e);fe(e.expression),Fe(21,e.expression?e.expression.end:t,yt,e)}(n);case 196:return function(e){Yt(e.name),Pe(e)}(n);case 197:return function(e){st(e,e.decorators),tt(e,e.modifiers),Ie(e,Ce)}(n);case 198:return function(e){Fe(81,e.pos,vt,e),St(),fe(e.expression)}(n);case 199:return function(e){Fe(104,e.pos,vt,e),St(),fe(e.expression)}(n);case 200:return function(e){Fe(106,e.pos,vt,e),St(),fe(e.expression)}(n);case 201:return function(e){Fe(122,e.pos,vt,e),St(),fe(e.expression)}(n);case 202:return function(e){Ft(e.operator,bt),function(e){var t=e.operand;return 202===t.kind&&(38===e.operator&&(38===t.operator||44===t.operator)||39===e.operator&&(39===t.operator||45===t.operator))}(e)&&St();fe(e.operand)}(n);case 203:return function(e){fe(e.operand),Ft(e.operator,bt)}(n);case 204:return function(e){var t=27!==e.operatorToken.kind,r=jt(e,e.left,e.operatorToken),n=jt(e,e.operatorToken,e.right);fe(e.left),It(r,t),dr(e.operatorToken.pos),At(e.operatorToken,93===e.operatorToken.kind?vt:bt),fr(e.operatorToken.end,!0),It(n,!0),fe(e.right),Ot(r,n)}(n);case 205:return function(e){var t=jt(e,e.condition,e.questionToken),r=jt(e,e.questionToken,e.whenTrue),n=jt(e,e.whenTrue,e.colonToken),i=jt(e,e.colonToken,e.whenFalse);fe(e.condition),It(t,!0),de(e.questionToken),It(r,!0),fe(e.whenTrue),Ot(t,r),It(n,!0),de(e.colonToken),It(i,!0),fe(e.whenFalse),Ot(n,i)}(n);case 206:return function(e){de(e.head),dt(e,e.templateSpans,262144)}(n);case 207:return function(e){Fe(117,e.pos,vt,e),de(e.asteriskToken),at(e.expression)}(n);case 208:return function(e){Fe(25,e.pos,yt,e),fe(e.expression)}(n);case 209:return function(e){Yt(e.name),Be(e)}(n);case 210:return;case 212:return function(e){fe(e.expression),e.type&&(St(),vt("as"),St(),de(e.type))}(n);case 213:return function(e){fe(e.expression),bt("!")}(n);case 214:return function(e){Nt(e.keywordToken,e.pos,yt),yt("."),de(e.name)}(n);case 260:return function(e){de(e.openingElement),dt(e,e.children,262144),de(e.closingElement)}(n);case 261:return function(e){yt("<"),ze(e.tagName),ct(e,e.typeArguments),St(),de(e.attributes),yt("/>")}(n);case 264:return function(e){de(e.openingFragment),dt(e,e.children,262144),de(e.closingFragment)}(n);case 313:return function(e){fe(e.expression)}(n);case 314:return function(e){pt(e,e.elements,528)}(n)}}function ve(e,t){ge(1,t)(e,T(e,t))}function be(r){var n=!1,i=285===r.kind?r:void 0;if(!i||P!==e.ModuleKind.None){for(var o=i?i.prepends.length:0,s=i?i.sourceFiles.length+o:1,c=0;c'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"no-default-lib"}),Ct()}if(a&&a.moduleName&&(xt('/// '),Ct()),a&&a.amdDependencies)for(var o=0,s=a.amdDependencies;o'):xt('/// '),Ct()}for(var u=0,l=t;u'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"reference",data:_.fileName}),Ct()}for(var d=0,f=r;d'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"type",data:_.fileName}),Ct()}for(var m=0,g=n;m'),O&&O.sections.push({pos:i,end:p.getTextPos(),kind:"lib",data:_.fileName}),Ct()}}function Ye(t){var r=t.statements;Vt(t),e.forEach(t.statements,Ht),be(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&Ge(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),dt(t,r,1,-1===n?r.length:n),qt(t)}function Xe(t,r,n,i){for(var a=!!r,o=0;o=i.length||0===s;if(u&&32768&a)return C&&C(i),void(E&&E(i));if(15360&a&&(yt(function(e){return n[15360&e][0]}(a)),u&&!c&&fr(i.pos,!0)),C&&C(i),u)1&a?Ct():256&a&&!(524288&a)&&St();else{var l=0==(262144&a),_=l;Mt(r,i,a)?(Ct(),_=!1):256&a&&St(),128&a&&Et();for(var d=void 0,p=void 0,f=!1,m=0;m=0&&xr(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&xr(u,i);return i}(i,t,n,r,Ft)}function At(t,r){k&&k(t),r(e.tokenToString(t.kind)),N&&N(t)}function Ft(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Pt(t){1&e.getEmitFlags(t)?St():Ct()}function wt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i0||o>0)&&a!==o&&(c||cr(a,s),(!c||a>=0&&0!=(512&n))&&(J=a),(!u||o>=0&&0!=(1024&n))&&(z=o,238===r.kind&&(K=o))),e.forEach(e.getSyntheticLeadingComments(r),ir),H();var p=ge(2,r);2048&n?(V=!0,p(t,r),V=!1):p(t,r),W(),e.forEach(e.getSyntheticTrailingComments(r),ar),(a>0||o>0)&&a!==o&&(J=l,z=_,K=d,!u&&s&&function(e){yr(e,pr)}(o)),H()}function ir(e){2===e.kind&&p.writeLine(),or(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function ar(e){p.isAtStartOfLine()||p.writeSpace(" "),or(e),e.hasTrailingNewLine&&p.writeLine()}function or(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,p,0,r.length,F)}function sr(t,r,n){W();var i,o,s=r.pos,c=r.end,u=e.getEmitFlags(t),l=V||c<0||0!=(1024&u);s<0||0!=(512&u)||(i=r,(o=e.emitDetachedComments(a.text,_e(),p,hr,i,F,V))&&(v?v.push(o):v=[o])),H(),2048&u&&!V?(V=!0,n(t),V=!1):n(t),W(),l||(cr(r.end,!0),U&&!p.isAtStartOfLine()&&p.writeLine()),H()}function cr(e,t){U=!1,t?gr(e,_r):0===e&&gr(e,ur)}function ur(t,r,n,i,o){(function(t,r){return e.isRecognizedTripleSlashComment(a.text,t,r)})(t,r)&&_r(t,r,n,i,o)}function lr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function _r(t,r,n,i,o){lr(a.text,t)&&(U||(e.emitNewLineBeforeLeadingCommentOfPosition(_e(),p,o,t),U=!0),Dr(t),e.writeCommentRange(a.text,_e(),p,t,r,F),Dr(r),i?p.writeLine():3===n&&p.writeSpace(" "))}function dr(e){V||-1===e||cr(e,!0)}function pr(t,r,n,i){lr(a.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Dr(t),e.writeCommentRange(a.text,_e(),p,t,r,F),Dr(r),i&&p.writeLine())}function fr(e,t){V||(W(),yr(e,t?pr:mr),H())}function mr(t,r,n,i){Dr(t),e.writeCommentRange(a.text,_e(),p,t,r,F),Dr(r),i?p.writeLine():p.writeSpace(" ")}function gr(t,r){!a||-1!==J&&t===J||(function(t){return void 0!==v&&e.last(v).nodePos===t}(t)?function(t){var r=e.last(v).detachedCommentEndPos;v.length-1?v.pop():v=void 0;e.forEachLeadingCommentRange(a.text,r,t,r)}(r):e.forEachLeadingCommentRange(a.text,t,r,t))}function yr(t,r){a&&(-1===z||t!==z&&t!==K)&&e.forEachTrailingCommentRange(a.text,t,r)}function hr(t,r,n,i,o,s){lr(a.text,i)&&(Dr(i),e.writeCommentRange(t,r,n,i,o,s),Dr(o))}function vr(t,r){var n=ge(3,r);if(e.isUnparsedSource(r)||e.isUnparsedPrepend(r))n(t,r);else if(e.isUnparsedNode(r)){var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(r.parent);i&&g&&g.appendSourceMap(p.getLine(),p.getColumn(),i,r.parent.sourceMapPath,r.parent.getLineAndCharacterOfPosition(r.pos),r.parent.getLineAndCharacterOfPosition(r.end)),n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=void 0===c?y:c,l=e.getEmitFlags(r);312!==r.kind&&0==(16&l)&&o>=0&&xr(u,br(u,o)),64&l?(B=!0,n(t,r),B=!1):n(t,r),312!==r.kind&&0==(32&l)&&s>=0&&xr(u,s)}}function br(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Dr(t){if(!(B||e.positionIsSynthesized(t)||Tr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;g.addMapping(p.getLine(),p.getColumn(),j,n,i,void 0)}}function xr(e,t){if(e!==y){var r=y;Sr(e),Dr(t),Sr(r)}else Dr(t)}function Sr(e){B||(y=e,Tr(e)||(j=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(j,e.text)))}function Tr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getOutputPathForBuildInfo=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=l,e.getOutputDeclarationFileName=d,e.getAllProjectOutputs=function(t,r){var n,i=function(e){return e&&(n||(n=[])).push(e)};if(t.options.outFile||t.options.out){var a=s(t.options,!1),c=a.jsFilePath,u=a.sourceMapFilePath,l=a.declarationFilePath,_=a.declarationMapPath,f=a.buildInfoPath;i(c),i(u),i(l),i(_),i(f)}else{for(var m=0,g=t.fileNames;me.getRootLength(t)&&!function(e){return!!a.has(e)||!!n.directoryExists(e)&&(a.set(e,!0),!0)}(t)&&(s(e.getDirectoryPath(t)),_.createDirectory?_.createDirectory(t):n.createDirectory(t))}function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var u=e.getNewLineCharacter(t,function(){return n.newLine}),l=n.realpath&&function(e){return n.realpath(e)},_={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=_.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(t){return e.combinePaths(c(),e.getDefaultLibFileName(t))},writeFile:function(r,a,o,c){try{e.performance.mark("beforeIOWrite"),s(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&n.createHash&&n.getModifiedTime?function(t,r,a){i||(i=e.createMap());var o=n.createHash(r),s=n.getModifiedTime(t);if(s){var c=i.get(t);if(c&&c.byteOrderMark===a&&c.hash===o&&c.mtime.getTime()===s.getTime())return}n.writeFile(t,r,a);var u=n.getModifiedTime(t)||e.missingFileModifiedTime;i.set(t,{hash:o,byteOrderMark:a,mtime:u})}(r,a,o):n.writeFile(r,a,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){c&&c(e.message)}},getCurrentDirectory:e.memoize(function(){return n.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return u},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+u)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:l,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)}};return _}function c(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+D(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+n}return n}e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0})},e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=a,e.createCompilerHost=o,e.createCompilerHostWorker=s,e.changeCompilerHostLikeToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,u=e.createMap(),l=e.createMap(),_=e.createMap(),d=e.createMap(),p=function(e,r){var n=i.call(t,r);return u.set(e,void 0!==n&&n),n};t.readFile=function(n){var a=r(n),o=u.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?p(a,n):i.call(t,n)};var f=n?function(t,i,a,o){var s=r(t),c=d.get(s);if(c)return c;var u=n(t,i,a,o);return u&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&d.set(s,u),u}:void 0;return t.fileExists=function(e){var n=r(e),i=l.get(n);if(void 0!==i)return i;var o=a.call(t,e);return l.set(n,!!o),o},c&&(t.writeFile=function(e,n,i,a,o){var s=r(e);l.delete(s);var _=u.get(s);if(void 0!==_&&_!==n)u.delete(s),d.delete(s);else if(f){var p=d.get(s);p&&p.text!==n&&d.delete(s)}c.call(t,e,n,i,a,o)}),o&&s&&(t.directoryExists=function(e){var n=r(e),i=_.get(n);if(void 0!==i)return i;var a=o.call(t,e);return _.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);_.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:f,readFileWithCache:function(e){var t=r(e),n=u.get(t);return void 0!==n?!1!==n?n:void 0:p(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return e.getEmitDeclarations(t.getCompilerOptions())&&e.addRange(i,t.getDeclarationDiagnostics(r,n)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n=4,D=(m+1+"").length;b&&(D=Math.max(d.length,D));for(var x="",S=c;S<=m;S++){x+=o.getNewLine(),b&&c+10||s.length>0)return{diagnostics:e.concatenate(c,s),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var u=Je().getEmitResolver(A.outFile||A.out?void 0:r,i);e.performance.mark("beforeEmit");var l=a?[]:e.getTransformers(A,o),_=e.emitFiles(u,Re(n),r,a,l,o&&o.afterDeclarations);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),_}(_,t,r,n,i,a)})},getCurrentDirectory:function(){return $},getNodeCount:function(){return Je().getNodeCount()},getIdentifierCount:function(){return Je().getIdentifierCount()},getSymbolCount:function(){return Je().getSymbolCount()},getTypeCount:function(){return Je().getTypeCount()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return L},isSourceFileFromExternalLibrary:je,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!A.noLib)return!1;var r=W.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return A.lib?e.some(A.lib,function(n){return r(t.fileName,e.combinePaths(X,n))}):r(t.fileName,Y())},dropDiagnosticsProducingTypeChecker:function(){y=void 0},getSourceFileFromReference:function(e,t){return at(n(t.fileName,e.fileName),function(e){return de.get(Oe(e))||void 0})},getLibFileFromReference:function(t){var r=t.fileName.toLocaleLowerCase(),n=e.libMap.get(r);if(n)return Ue(e.combinePaths(X,n))},sourceFileToPackageName:le,redirectTargetsMap:_e,isEmittedFile:function(t){if(A.noEmit)return!1;var r=Oe(t);if(Ve(r))return!1;var n=A.outFile||A.out;if(n)return Ot(r,n)||Ot(r,e.removeFileExtension(n)+".d.ts");if(A.declarationDir&&e.containsPath(A.declarationDir,r,$,!W.useCaseSensitiveFileNames()))return!0;if(A.outDir)return e.containsPath(A.outDir,r,$,!W.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!Ve(i+".ts")||!!Ve(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return F||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return U&&e.resolveModuleNameFromCache(t,r,U)},getProjectReferences:function(){return P},getResolvedProjectReferences:function(){return oe},getProjectReferenceRedirect:lt,getResolvedProjectReferenceToRedirect:_t,getResolvedProjectReferenceByPath:ft,forEachResolvedProjectReference:dt,emitBuildInfo:function(t){e.Debug.assert(!A.out&&!A.outFile),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,Re(t),void 0,!1,void 0,void 0,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),r}},function(){if(A.strictPropertyInitialization&&!e.getStrictOptionValue(A,"strictNullChecks")&&kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),A.isolatedModules&&(e.getEmitDeclarations(A)&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,E(A),"isolatedModules"),A.noEmitOnError&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),A.out&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),A.outFile&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),A.inlineSourceMap&&(A.sourceMap&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),A.mapRoot&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),A.paths&&void 0===A.baseUrl&&kt(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),A.composite&&(!1===A.declaration&&kt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===A.incremental&&kt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration")),A.tsBuildInfoFile&&(e.isIncrementalCompilation(A)||kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite")),a=A.noEmit||A.suppressOutputPathCheck?void 0:e.getOutputPathForBuildInfo(A),pt(P,oe,function(t,r,n){var i=(n?n.commandLine.projectReferences:P)[r],o=n&&n.sourceFile;if(t){var s=t.commandLine.options;if(!s.composite){var c=n?n.commandLine.fileNames:D;c.length&&At(o,r,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path)}if(i.prepend){var u=s.outFile||s.out;u?W.fileExists(u)||At(o,r,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,u,i.path):At(o,r,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!n&&a&&a===e.getOutputPathForBuildInfo(s)&&(At(o,r,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,a,i.path),te.set(Oe(a),!0))}else At(o,r,e.Diagnostics.File_0_not_found,i.path)}),A.composite)for(var t=D.map(Oe),r=0,n=m;r1})&&kt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!A.noEmit&&A.allowJs&&e.getEmitDeclarations(A)&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",E(A)),A.checkJs&&!A.allowJs&&Q.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),A.emitDeclarationOnly&&(e.getEmitDeclarations(A)||kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),A.noEmit&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),A.emitDecoratorMetadata&&!A.experimentalDecorators&&kt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),A.jsxFactory?(A.reactNamespace&&kt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(A.jsxFactory,_)||Nt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,A.jsxFactory)):A.reactNamespace&&!e.isIdentifierText(A.reactNamespace,_)&&Nt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,A.reactNamespace),!A.noEmit&&!A.suppressOutputPathCheck){var v=Re(),b=e.createMap();e.forEachEmittedFile(v,function(e){A.emitDeclarationOnly||x(e.jsFilePath,b),x(e.declarationFilePath,b)})}function x(t,r){if(t){var n,i=Oe(t);de.has(i)&&(A.configFilePath||(n=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),n=e.chainDiagnosticMessages(n,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),It(t,e.createCompilerDiagnosticFromMessageChain(n)));var a=W.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();r.has(a)?It(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),_;function Ie(t){if(e.containsPath(X,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Oe(t){return e.toPath(t,$,bt)}function Me(){if(void 0===g){var t=e.filter(m,function(t){return e.sourceFileMayBeEmitted(t,A,je,_t)});A.rootDir&&xt(t,A.rootDir)?g=e.getNormalizedAbsolutePath(A.rootDir,$):A.composite&&A.configFilePath?xt(t,g=e.getDirectoryPath(e.normalizeSlashes(A.configFilePath))):(r=t,g=a(e.mapDefined(r,function(e){return e.isDeclarationFile?void 0:e.fileName}),$,bt)),g&&g[g.length-1]!==e.directorySeparator&&(g+=e.directorySeparator)}var r;return g}function Le(t,r,n){if(0===me&&!n.ambientModuleNames.length)return V(t,r,void 0,_t(n.originalFileName));var i,a,o,s=w&&w.getSourceFile(r);if(s!==n&&n.resolvedModules){for(var c=[],u=0,l=t;u0;){var s=n.text.slice(a[o-1],a[o]),c=r.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function Qe(e,t){return Ze(e,t,M,$e)}function $e(t,r){return He(function(){var n=Je().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Re(e.noop),n,t)})}function Ze(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a)return a;var o=i(t,r)||e.emptyArray;return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function et(e,t){return e.isDeclarationFile?[]:Qe(e,t)}function tt(t,r,n){ot(e.normalizePath(t),r,n,void 0)}function rt(e,t){return e.fileName===t.fileName}function nt(e,t){return 72===e.kind?72===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function it(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(A.importHelpers&&(A.isolatedModules||o)&&!t.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),s.parent=c,c.parent=t,r=[s]}for(var u=0,l=t.statements;u0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(v,y,t,r,Oe(t),l);return _e.add(v.path,t),ut(b,r,u),le.set(r,c.name),p.push(b),b}y&&(ue.set(h,y),le.set(r,c.name))}if(ut(y,r,u),y){if(z.set(r,j>0),y.path=r,y.resolvedPath=Oe(t),y.originalFileName=l,W.useCaseSensitiveFileNames()){var D=r.toLowerCase(),x=pe.get(D);x?st(t,x.fileName,a,o,s):pe.set(D,y)}G=G||y.hasNoDefaultLib&&!i,A.noResolve||(mt(y,n),gt(y)),A.noLib||ht(y),Dt(y),n?d.push(y):p.push(y)}return y}function ut(e,t,r){r?(de.set(r,e),de.set(t,e||!1)):de.set(t,e)}function lt(t){if(oe&&oe.length&&!e.fileExtensionIs(t,".d.ts")&&e.fileExtensionIsOneOf(t,e.supportedTSExtensions)){var r=_t(t);if(r){var n=r.commandLine.options.outFile||r.commandLine.options.out;return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(t,r.commandLine,!W.useCaseSensitiveFileNames())}}}function _t(t){void 0===ce&&(ce=e.createMap(),dt(function(e,t){e&&Oe(A.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return ce.set(Oe(e),t)})}));var r=ce.get(Oe(t));return r&&ft(r)}function dt(e){return pt(P,oe,function(t,r,n){var i=Oe(C((n?n.commandLine.projectReferences:P)[r]));return e(t,i)})}function pt(t,r,n,i){var a;return function t(r,n,i,o,s){if(s){var c=s(r,i);if(c)return c}return e.forEach(n,function(r,n){if(!e.contains(a,r)){var c=o(r,n,i);if(c)return c;if(r)return(a||(a=[])).push(r),t(r.commandLine.projectReferences,r.references,r,o,s)}})}(t,r,void 0,n,i)}function ft(e){if(se)return se.get(e)||void 0}function mt(t,r){e.forEach(t.referencedFiles,function(e){ot(n(e.fileName,t.originalFileName),r,!1,void 0,t,e.pos,e.end)})}function gt(t){var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(r)for(var n=q(r,t.originalFileName,_t(t.originalFileName)),i=0;iB,_=u&&!k(A,a)&&!A.noResolve&&ir&&(Q.add(e.createDiagnosticForNodeInSourceFile(A.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&Q.add(e.createCompilerDiagnostic(n,i,a,o))}function Ct(t,r,n,i){for(var a=!0,o=0,s=Et();or?Q.add(e.createDiagnosticForNodeInSourceFile(t||A.configFile,o.elements[r],n,i,a)):Q.add(e.createCompilerDiagnostic(n,i,a))}function Ft(t,r,n,i,a,o,s){var c=Pt();(!c||!wt(c,t,r,n,i,a,o,s))&&Q.add(e.createCompilerDiagnostic(i,a,o,s))}function Pt(){if(void 0===K){K=null;var t=e.getTsConfigObjectLiteralExpression(A.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c0)for(var d=0,p=r.referencedFiles;d1&&x(D)}return o;function x(t){for(var n=0,i=t.declarations;n0?(l=s(p.outputFiles[0].text),c&&l!==_&&function(t,n,i){if(!n)return void i.set(t.path,!1);var a;n.forEach(function(t){var n;(n=r(t))&&(a||(a=e.createMap()),a.set(n,!0))}),i.set(t.path,a||!1)}(i,p.exportedModulesFromDeclarationEmit,c)):l=_}return a.set(i.path,l),!_||l!==_}function l(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function _(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function d(t){return function(t){return e.some(t.moduleAugmentations,function(t){return e.isGlobalScopeAugmentation(t.parent)})}(t)||!e.isExternalModule(t)&&!function(t){for(var r=0,n=t.statements;r0;){var m=f.pop();if(!l.has(m)){var g=r.getSourceFileByPath(m);l.set(m,g),g&&u(t,r,g,i,a,o,s)&&f.push.apply(f,_(t,g.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:p(e,t,r)})(t,r,f,l,i,a,s);return o||c(t,l),m},t.updateSignaturesFromCache=c,t.updateExportedFilesMapFromCache=function(t,r){r&&(e.Debug.assert(!!t.exportedModulesMap),r.forEach(function(e,r){e?t.exportedModulesMap.set(r,e):t.exportedModulesMap.delete(r)}))},t.getAllDependencies=function(t,r,n){var i,a=r.getCompilerOptions();if(a.outFile||a.out)return l(t,r);if(!t.referencedMap||d(n))return l(t,r);for(var o=e.createMap(),s=[n.path];s.length;){var c=s.pop();if(!o.has(c)){o.set(c,!0);var u=t.referencedMap.get(c);if(u)for(var _=u.keys(),p=_.next(),f=p.value,m=p.done;!m;f=(i=_.next()).value,m=i.done,i)s.push(f)}}return e.arrayFrom(e.mapDefinedIterator(o.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(c||(c={})),function(e){function t(t,n,i){var a=e.BuilderState.create(t,n,i);a.program=t;var o=t.getCompilerOptions();a.compilerOptions=o,o.outFile||o.out||o.isolatedModules||(a.semanticDiagnosticsPerFile=e.createMap()),a.changedFilesSet=e.createMap();var s=e.BuilderState.canReuseOldState(a.referencedMap,i),c=s?i.compilerOptions:void 0,u=s&&i.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(o,c);if(s){if(!i.currentChangedFilePath){var l=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||l&&l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var _=i.changedFilesSet;u&&e.Debug.assert(!_||!e.forEachKey(_,function(e){return i.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),_&&e.copyEntries(_,a.changedFilesSet),o.outFile||o.out||!i.affectedFilesPendingEmit||(a.affectedFilesPendingEmit=i.affectedFilesPendingEmit,a.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex)}var d=a.referencedMap,p=s?i.referencedMap:void 0,f=u&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;return a.fileInfos.forEach(function(n,o){var c,l,_,g;if(!s||!(c=i.fileInfos.get(o))||c.version!==n.version||(_=l=d&&d.get(o),g=p&&p.get(o),_!==g&&(void 0===_||void 0===g||_.size!==g.size||e.forEachKey(_,function(e){return!g.has(e)})))||l&&e.forEachKey(l,function(e){return!a.fileInfos.has(e)&&i.fileInfos.has(e)}))a.changedFilesSet.set(o,!0);else if(u){var y=t.getSourceFileByPath(o);if(y.isDeclarationFile&&!f)return;if(y.hasNoDefaultLib&&!m)return;var h=i.semanticDiagnosticsPerFile.get(o);h&&(a.semanticDiagnosticsPerFile.set(o,i.hasReusableDiagnostic?function(t,n){return t.length?t.map(function(t){var i=r(t,n);i.reportsUnnecessary=t.reportsUnnecessary,i.source=t.source;var a=t.relatedInformation;return i.relatedInformation=a?a.length?a.map(function(e){return r(e,n)}):e.emptyArray:void 0,i}):e.emptyArray}(h,t):h),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=e.createMap()),a.semanticDiagnosticsFromOldState.set(o,!0))}}),!c||c.outDir===o.outDir&&c.declarationDir===o.declarationDir&&(c.outFile||c.out)===(o.outFile||o.out)||(a.affectedFilesPendingEmit=e.concatenate(a.affectedFilesPendingEmit,t.getSourceFiles().map(function(e){return e.path})),void 0===a.affectedFilesPendingEmitIndex&&(a.affectedFilesPendingEmitIndex=0),e.Debug.assert(void 0===a.seenAffectedFiles),a.seenAffectedFiles=e.createMap()),a}function r(t,r){var n=t.file,a=t.messageText;return i({},t,{file:n&&r.getSourceFileByPath(n),messageText:void 0===a||e.isString(a)?a:function e(t,r){return i({},t,{next:t.next&&e(t.next,r)})}(a,r)})}function n(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function a(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,s=t.affectedFilesIndex;s0;a--)if(0===(i=t.indexOf(e.directorySeparator,i)+1))return!1;return!0}function O(t,r){if(E(x,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,l()),e.Debug.assert(t.length===r.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r);var n=r.indexOf(e.directorySeparator,x.length+1);return-1!==n?{dir:t.substr(0,n),dirPath:r.substr(0,n)}:{dir:D,dirPath:x,nonRecursive:!1}}return M(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,l())),e.getDirectoryPath(r))}function M(t,r){for(;e.pathContainsNodeModules(r);)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(P(r))return I(e.getDirectoryPath(r))?{dir:t,dirPath:r}:void 0;var n,i,a=!0;if(void 0!==x)for(;!E(r,x);){var o=e.getDirectoryPath(r);if(o===r)break;a=!1,n=r,i=t,r=o,t=e.getDirectoryPath(t)}return I(r)?{dir:i||t,dirPath:n||r,nonRecursive:a}:void 0}function L(t){return e.fileExtensionIsOneOf(t,h)}function R(t,r){r.failedLookupLocations&&r.failedLookupLocations.length&&(r.refCount?r.refCount++:(r.refCount=1,e.isExternalModuleNameRelative(t)?B(r):u.add(t,r)))}function B(t){e.Debug.assert(!!t.refCount);for(var n=!1,i=0,a=t.failedLookupLocations;i1),v.set(s,l-1))),u===x?n=!0:U(u)}}n&&U(x)}}function U(e){b.get(e).refCount--}function V(e,t){var r=e.get(t);r&&(r.forEach(K),e.delete(t))}function q(e){V(d,e),V(g,e)}function W(t,r,n){var i=e.createMap();t.forEach(function(t,a){var s=e.getDirectoryPath(a),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&r(t,n)&&(t.isInvalidated=!0,(o||(o=e.createMap())).set(a,!0)))})})}function H(t){var n;n=r.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,d.size>n||g.size>n?c=!0:(W(d,t,T),W(g,t,C))}function G(n,i){var a;if(i)a=function(e){return E(n,r.toPath(e))};else{if(t(n))return!1;var s=e.getDirectoryPath(n);if(w(n)||P(n)||w(s)||P(s))a=function(t){return r.toPath(t)===n||e.startsWith(r.toPath(t),n)};else{if(!L(n)&&!v.has(n))return!1;if(e.isEmittedFileOfProgram(r.getCurrentProgram(),n))return!1;a=function(e){return r.toPath(e)===n}}}var u=o&&o.size;return H(function(t){return e.some(t.failedLookupLocations,a)}),c||o&&o.size!==u}function Y(){e.clearMap(S,e.closeFileWatcher)}function X(e,t){return r.watchTypeRootsDirectory(t,function(n){var i=r.toPath(n);_&&_.addOrDeleteFileOrDirectory(n,i),r.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!c){if(E(x,t))return x;var r=M(e,t);return r&&b.has(r.dirPath)?r.dirPath:void 0}}(t,e);a&&G(i,a===i)&&r.onInvalidatedResolution()},1)}function Q(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),i=r.toPath(n);return i===x||I(i)}}}(c||(c={})),function(e){!function(t){var r,n;function i(t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return t=n.imports,e.firstDefined(t,function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSOrJsonFileExtension(r):void 0})?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}var t}()}}function a(t,r,n,i,a,c,u){var l=o(r,i),_=d(a,r,n,l.getCanonicalFileName,i,c);return e.firstDefined(_,function(e){return f(e,l,i,t)})||s(n,l,t,u)}function o(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(t)}}function s(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory,s=i.ending,u=i.relativePreference,l=n.baseUrl,_=n.paths,d=n.rootDirs,f=d&&function(t,r,n,i){var a=m(r,t,i);if(void 0===a)return;var o=m(n,t,i),s=void 0!==o?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,a,i)):a;return e.removeFileExtension(s)}(d,t,o,a)||g(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!l||0===u)return f;var v=y(t,l,a);if(!v)return f;var b=g(v,s,n),D=_&&p(e.removeFileExtension(v),b,_),x=void 0===D?b:D;return 1===u?x:(2!==u&&e.Debug.assertNever(u),h(x)||c(f)=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function f(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory;if(n.fileExists&&n.readFile){var s=function(t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var o=0,s=0,c=0;for(;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(t);if(s){var c=t.substring(0,s.packageRootIndex),u=e.combinePaths(c,"package.json"),l=n.fileExists(u)?JSON.parse(n.readFile(u)):void 0,_=l&&l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(_){var d=t.slice(s.packageRootIndex+1),f=p(e.removeFileExtension(d),g(d,0,i),_.paths);void 0!==f&&(t=e.combinePaths(t.slice(0,s.packageRootIndex),f))}var m=function(t){if(l){var r=l.typings||l.types||l.main;if(r){var i=e.toPath(r,c,a);if(e.removeFileExtension(i)===e.removeFileExtension(a(t)))return c}}var o=e.removeFileExtension(t);if("/index"===a(o.substring(s.fileNameIndex))&&!function(t,r){if(!t.fileExists)return;for(var n=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);n0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:s.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(t){return f(e.sys,i,t)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,o},e.getErrorCountForSummary=a,e.getWatchErrorSummaryDiagnosticMessage=o,e.getErrorSummaryText=s,e.emitFilesAndReportErrors=c;var u={close:e.noop};function l(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||i(t),watchFile:e.maybeBind(t,t.watchFile)||function(){return u},watchDirectory:e.maybeBind(t,t.watchDirectory)||function(){return u},setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function _(t,r){var n=t.getSourceFile,i=r.createHash||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],a=0;ae.getRootLength(n)&&!t.directoryExists(n)){var i=e.getDirectoryPath(n);r(i),t.createDirectory&&t.createDirectory(n)}}(e.getDirectoryPath(e.normalizePath(r))),t.writeFile(r,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory)}},e.setGetSourceFileAsHashVersioned=_,e.createProgramHost=d,e.createWatchCompilerHostOfConfigFile=function(e,t,n,i,a,o){var s=a||r(n),c=p(n,i,s,o);return c.onUnRecoverableConfigFileDiagnostic=function(e){return f(n,s,e)},c.configFileName=e,c.optionsToExtend=t,c},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,n,i,a,o,s){var c=p(n,i,a||r(n),o);return c.rootFiles=e,c.options=t,c.projectReferences=s,c},e.readBuilderProgram=m,e.createIncrementalCompilerHost=g,e.performIncrementalCompilation=function(t){var n=t.system||e.sys,i=t.host||(t.host=g(t.options,n)),a=function(t){var r=t.rootNames,n=t.options,i=t.configFileParsingDiagnostics,a=t.projectReferences,o=t.host,s=t.createProgram;o=o||g(n),s=s||e.createEmitAndSemanticDiagnosticsBuilderProgram;var c=m(n,function(e){return o.readFile(e)});return s(r,n,o,c,i,a)}(t),o=c(a,t.reportDiagnostic||r(n),function(e){return i.trace&&i.trace(e)},t.reportErrorSummary||t.options.pretty?function(e){return n.write(s(e,n.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(c||(c={})),function(e){e.createWatchCompilerHost=function(t,r,n,i,a,o,s){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions(t,r,n,i,a,o,s):e.createWatchCompilerHostOfConfigFile(t,r,n,i,a,o)},e.createWatchProgram=function(t){var r,n,i,a,o,s,c,u,l=e.createMap(),_=!1,d=!1,p=t.useCaseSensitiveFileNames(),f=t.getCurrentDirectory(),m=t.configFileName,g=t.optionsToExtend,y=void 0===g?{}:g,h=t.createProgram,v=t.rootFiles,b=t.options,D=t.projectReferences,x=!1,S=!1,T=void 0===m?void 0:e.createCachedDirectoryStructureHost(t,f,p);T&&t.onCachedDirectoryStructureHostCreate&&t.onCachedDirectoryStructureHostCreate(T);var C=T||t,E=e.parseConfigHostFromCompilerHostLike(t,C),k=U();m&&t.configFileParsingResult&&(ee(t.configFileParsingResult),k=U()),X(e.Diagnostics.Starting_compilation_in_watch_mode),m&&!t.configFileParsingResult&&(k=e.getNewLineCharacter(y,function(){return t.getNewLine()}),e.Debug.assert(!v),Z(),k=U());var N,A=e.createWatchFactory(t,b),F=A.watchFile,P=A.watchFilePath,w=A.watchDirectory,I=A.writeLog,O=e.createGetCanonicalFileName(p);I("Current directory: "+f+" CaseSensitiveFileNames: "+p),m&&(N=F(t,m,function(){e.Debug.assert(!!m),n=e.ConfigFileProgramReloadLevel.Full,Q()},e.PollingInterval.High,"Config file"));var M=e.createCompilerHostFromProgramHost(t,function(){return b},C);e.setGetSourceFileAsHashVersioned(M,t);var L=M.getSourceFile;M.getSourceFile=function(e){for(var t=[],r=1;re?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(t,r){return function(n){var i=r?"["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function _(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||l(t),a}function d(t){var r={};return e.commonOptionsWithBuild.forEach(function(e){r[e.name]=t[e.name]}),r}function p(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}function f(t,n,i,a){switch(n.type){case r.OutOfDateWithSelf:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,i(t),i(n.outOfDateOutputFileName),i(n.newerInputFileName));case r.OutOfDateWithUpstream:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,i(t),i(n.outOfDateOutputFileName),i(n.newerProjectName));case r.OutputMissing:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,i(t),i(n.missingOutputFileName));case r.UpToDate:if(void 0!==n.newestInputFileTime)return a(e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,i(t),i(n.newestInputFileName||""),i(n.oldestOutputFileName||""));break;case r.OutOfDateWithPrepend:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,i(t),i(n.newerProjectName));case r.UpToDateWithUpstreamTypes:return a(e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,i(t));case r.UpstreamOutOfDate:return a(e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,i(t),i(n.upstreamProjectName));case r.UpstreamBlocked:return a(e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,i(t),i(n.upstreamProjectName));case r.Unbuildable:return a(e.Diagnostics.Failed_to_parse_file_0_Colon_1,i(t),n.reason);case r.TsVersionOutputOfDate:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,i(t),n.version,e.version);case r.ContainerOnly:case r.ComputingUpstream:break;default:e.assertType(n)}}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(t||(t={})),function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly"}(r=e.UpToDateStatusType||(e.UpToDateStatusType={})),e.createBuilderStatusReporter=l,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=_(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=_(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(l,_,m){var g,y=l,h=l.getCurrentDirectory(),v=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),b=e.parseConfigHostFromCompilerHostLike(l),D=m,x=d(D),S=a(G),T=a(G),C=a(G),E=e.createMap(),k=function(e){return l.trace&&l.trace(e)},N=function(e){return l.readFile(e)},A=x,F=e.createCompilerHostFromProgramHost(l,function(){return A});e.setGetSourceFileAsHashVersioned(F,l);var P,w=a(G),I=a(G),O=a(G),M=a(G),L=a(G),R=[],B=0,j=!1,J=e.createWatchFactory(l,D),z=J.watchFile,K=J.watchFilePath,U=J.watchDirectory,V=J.writeLog,q=a(G),W=a(G),H=a(G);return{buildAllProjects:function(){D.watch&&Q(e.Diagnostics.Starting_compilation_in_watch_mode);var n=N,i=F.getSourceFile,a=e.changeCompilerHostLikeToUseCache(l,G,function(){for(var e=[],t=0;to&&(a=d,o=p)}if(!t.fileNames.length&&!e.canJsonReportNoInutFiles(t.raw))return{type:r.ContainerOnly};for(var f,m=e.getAllProjectOutputs(t,!l.useCaseSensitiveFileNames()),g="(none)",y=i,h="(none)",v=n,b=n,D=!1,x=0,S=m;xv&&(v=k,h=E),u(E)){var A=T.getValue(E);if(void 0!==A)b=c(A,b);else{var F=l.getModifiedTime(E)||e.missingFileModifiedTime;b=c(b,F)}}}var P,I=!1,O=!1;if(t.projectReferences){C.setValue(t.options.configFilePath,{type:r.ComputingUpstream});for(var M=0,L=t.projectReferences;M4)return a(-1!==r.indexOf(e),n);r.push(e),n.push(t);var o=i();return n.pop(),r.pop(),o}));var r,n}function i(t,r,n){return n(r,t,function(){if("function"==typeof r)return function(t,r,n){var a=function(t,r){var n=t.prototype;return"object"!==f(n)||null===n?e.emptyArray:e.mapDefined(c(n),function(e){var t=e.key,n=e.value;return"constructor"===t?void 0:i(t,n,r)})}(t,n),o=e.flatMap(c(t),function(e){var t=e.key,r=e.value;return i(t,r,n)}),s=e.cast(Function.prototype.toString.call(t),e.isString),l=e.stringContains(s,"{ [native code] }")?function(t){return e.tryCast(u(t,"length"),e.isNumber)||0}(t):s;return{kind:2,name:r,source:l,namespaceMembers:o,prototypeMembers:a}}(r,t,n);if("object"===f(r)){var o=function(t,r,n){return e.isArray(r)?{name:t,kind:1,inner:r.length&&i("element",e.first(r),n)||_(t)}:e.forEachEntry(a(),function(e,n){return r instanceof e?{kind:0,name:t,typeName:n}:void 0})}(t,r,n);if(void 0!==o)return o;var s=c(r),d=Object.getPrototypeOf(r)!==Object.prototype,p=e.flatMap(s,function(e){return i(e.key,e.value,n)});return{kind:3,name:t,hasNontrivialPrototype:d,members:p}}return{kind:0,name:t,typeName:l(r)?"any":f(r)}},function(e,r){return _(t," "+(e?"Circular reference":"Too-deep object hierarchy")+" from "+r.join("."))})}!function(e){e[e.Const=0]="Const",e[e.Array=1]="Array",e[e.FunctionOrClass=2]="FunctionOrClass",e[e.Object=3]="Object"}(e.ValueKind||(e.ValueKind={})),e.inspectModule=function(r){return t(e.removeFileExtension(e.getBaseFileName(r)),function(e){try{return n()}catch(e){return}}())},e.inspectValue=t;var a=e.memoize(function(){for(var t=e.createMap(),n=0,i=c(r);n=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&rn?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty";case 3:return"Package name '"+r+"' should be less than "+n+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(c||(c={})),function(e){var t;function r(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.emptyOptions={},function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),e.getDefaultFormatCodeSettings=r,e.testFormatSettings=r("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(c||(c={})),function(e){function t(t){switch(t.kind){case 237:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 151:case 186:case 154:case 153:case 275:case 276:case 156:case 155:case 157:case 158:case 159:case 239:case 196:case 197:case 274:case 267:return 1;case 150:case 241:case 242:case 168:return 2;case 309:return void 0===t.name?3:2;case 278:case 240:return 3;case 244:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 243:case 252:case 253:case 248:case 249:case 254:case 255:return 7;case 284:return 5}return 7}function r(t){for(;148===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e,t){var r=i(e);return!!r&&!!r.parent&&t(r.parent)&&r.parent.expression===r}function i(e){return s(e)?e.parent:e}function a(t){return 72===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 72===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&189===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(7,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){return 284===n.kind?1:254===n.parent.kind||259===n.parent.kind?7:r(n)?function(t){var r=148===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&248===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 100:return!e.isExpressionNode(t);case 178:return!0}switch(t.parent.kind){case 164:return!0;case 183:return!t.parent.isTypeOf;case 211:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(148===t.parent.kind){for(;t.parent&&148===t.parent.kind;)t=t.parent;r=t.right===e}return 164===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(189===t.parent.kind){for(;t.parent&&189===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&211===t.parent.kind&&273===t.parent.parent.kind){var n=t.parent.parent.parent;return 240===n.kind&&109===t.parent.parent.token||241===n.kind&&86===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):e.isLiteralTypeNode(n.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t){return n(t,e.isCallExpression)},e.isNewExpressionTarget=function(t){return n(t,e.isNewExpression)},e.isCallOrNewExpressionTarget=function(t){return n(t,e.isCallOrNewExpression)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(233===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isTagName=function(t){return e.isJSDocTag(t.parent)&&t.parent.tagName===t},e.isRightSideOfQualifiedName=function(e){return 148===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 244===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 72===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 154:case 153:case 275:case 278:case 156:case 155:case 158:case 159:case 244:return e.getNameOfDeclaration(t.parent)===t;case 190:return t.parent.argumentExpression===t;case 149:return!0;case 182:return 180===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 284:case 156:case 155:case 239:case 196:case 158:case 159:case 240:case 241:case 243:case 244:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 284:return e.isExternalModule(r)?"module":"script";case 244:return"module";case 240:case 209:return"class";case 241:return"interface";case 242:case 302:case 309:return"type";case 243:return"enum";case 237:return o(r);case 186:return o(e.getRootDeclaration(r));case 197:case 239:case 196:return"function";case 158:return"getter";case 159:return"setter";case 156:case 155:return"method";case 154:case 153:return"property";case 162:return"index";case 161:return"construct";case 160:return"call";case 157:return"constructor";case 150:return"type parameter";case 278:return"enum member";case 151:return e.hasModifier(r,92)?"property":"parameter";case 248:case 253:case 257:case 251:return"alias";case 204:var n=e.getAssignmentDeclarationKind(r),i=r.right;switch(n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=t(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertType(n),""}case 72:return e.isImportClause(r.parent)?"alias":"";default:return""}function o(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 100:return!0;case 72:return e.identifierIsThisKeyword(t)&&151===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*=r.end}function d(e,t,r,n){return Math.max(e,r)t)break;var u=c.getEnd();if(t=t||!A(u,r)||T(u);if(_){var d=S(s,c,r);return d&&x(d,r)}return a(u)}}e.Debug.assert(void 0!==n||284===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var p=S(s,s.length,r);return p&&x(p,r)}(n||r);return e.Debug.assert(!(a&&T(a))),a}function D(t){return e.isToken(t)&&!T(t)}function x(e,t){if(D(e))return e;var r=e.getChildren(t),n=S(r,r.length,t);return n&&x(n,t)}function S(t,r,n){for(var i=r-1;i>=0;i--){if(T(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(A(t[i],n))return t[i]}}function T(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function C(e,t,r){for(var n=e.kind,i=0;;){var a=b(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function E(t,r,n){var i=n.getTypeAtLocation(t);return(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=r})}function k(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 28:if(!(n=b(n.getFullStart(),r))||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 48:i=3;break;case 47:i=2;break;case 30:i++;break;case 19:if(!(n=C(n,18,r)))return;break;case 21:if(!(n=C(n,20,r)))return;break;case 23:if(!(n=C(n,22,r)))return;break;case 27:a++;break;case 37:case 72:case 10:case 8:case 9:case 102:case 87:case 104:case 86:case 129:case 24:case 50:case 56:case 57:break;default:if(e.isTypeNode(n))break;return}n=b(n.getFullStart(),r)}}function N(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function A(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function F(e,t,r){var n=N(e,t,void 0);return!!n&&r===c.test(e.text.substring(n.pos,n.end))}function P(e,t){return{span:e,newText:t}}function w(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function I(t,r,n,i){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0):void 0,"string"==typeof n?O(n,i):n)}function O(t,r){return e.createLiteral(t,0===r)}function M(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function L(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&72===r.kind?r.escapedText:void 0})}function R(t,r,n,i){var a=e.createMap();return function t(o){if(!(96&o.flags&&e.addToSeen(a,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))})})}(t)}function B(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function j(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.rangeContainsRangeExclusive=function(e,t){return l(e,t.pos)&&l(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=l,e.startEndContainsRange=_,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return d(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return d(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=d,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rt.end||e.pos===t.end;return i&&A(e,n)?r(e):void 0})}(r)},e.findPrecedingToken=b,e.isInString=function(t,r,n){if(void 0===n&&(n=b(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(in.getStart(t)},e.isInJSXText=function(t,r){var n=h(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(28!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.findPrecedingMatchingToken=C,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=k(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==E(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=E,e.getPossibleTypeArgumentsInfo=k,e.isInComment=N,e.hasDocComment=function(t,r){var n=h(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedModifierFlags(t):0,n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),4194304&t.flags&&n.push("declare"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 164===t.kind||191===t.kind?t.typeArguments:e.isFunctionLike(t)||240===t.kind||241===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=71},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!e.noEmit},e.hostUsesCaseSensitiveFileNames=w,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(w(t))},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?I(e,t,r,n):void 0},e.makeImport=I,e.makeStringLiteral=O,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=M,e.getQuotePreference=function(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?M(n,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=L(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=L,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getPropertySymbolsFromBaseTypes=R,e.isMemberSymbolInBaseType=function(e,t){return R(e.parent,e.name,t,function(e){return!0})||!1},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!B(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})},e.insertImport=function(t,r,n){var i=e.findLast(r.statements,e.isAnyImportSyntax);i?t.insertNodeAfter(r,i,n):t.insertNodeAtTopOfFile(r,n,!0)},e.textSpansEqual=j,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&j(e.textSpan,t.textSpan)}}(c||(c={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&151===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var r=function(){var t,r,a,o,s=10*e.defaultMaximumTruncationLength;d();var u=function(t){return _(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return o>s&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(i(" ",e.SymbolDisplayPartKind.space)),t.push(i("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return _(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return _(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return _(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return _(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return _(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return _(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return _(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(o>s)return;l(),o+=e.length,t.push(n(e,r))},writeLine:function(){if(o>s)return;o+=1,t.push(c()),r=!0},write:u,writeComment:u,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:d,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function l(){if(!(o>s)&&r){var n=e.getIndentString(a);n&&(o+=n.length,t.push(i(n,e.SymbolDisplayPartKind.space))),r=!1}}function _(e,r){o>s||(l(),o+=e.length,t.push(i(e,r)))}function d(){t=[],r=!0,a=0,o=0}}();function n(r,n){return i(r,function(r){var n=r.flags;if(3&n)return t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&n)return e.SymbolDisplayPartKind.propertyName;if(32768&n)return e.SymbolDisplayPartKind.propertyName;if(65536&n)return e.SymbolDisplayPartKind.propertyName;if(8&n)return e.SymbolDisplayPartKind.enumMemberName;if(16&n)return e.SymbolDisplayPartKind.functionName;if(32&n)return e.SymbolDisplayPartKind.className;if(64&n)return e.SymbolDisplayPartKind.interfaceName;if(384&n)return e.SymbolDisplayPartKind.enumName;if(1536&n)return e.SymbolDisplayPartKind.moduleName;if(8192&n)return e.SymbolDisplayPartKind.methodName;if(262144&n)return e.SymbolDisplayPartKind.typeParameterName;if(524288&n)return e.SymbolDisplayPartKind.aliasName;if(2097152&n)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(n))}function i(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}e.symbolPart=n,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?o(t):a(r)},e.textPart=o;var s="\r\n";function c(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function u(e){try{return e(r),r.displayParts()}finally{r.clear()}}function l(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&_(e)?e.substring(1,t-1):e}function _(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function d(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function p(e){return 0!=(33554432&e.flags)}function f(e,t){void 0===t&&(t=!0);var r=e&&g(e);return r&&!t&&y(r),r}function m(t,r,n,i,a){var o;if(void 0===r&&(r=!0),e.isIdentifier(t)&&n&&i){var s=i.getSymbolAtLocation(t),c=s&&n.get(String(e.getSymbolId(s)));c&&(o=e.createIdentifier(c.text))}return o||(o=g(t,n,i,a)),o&&!r&&y(o),a&&o&&a(t,o),o}function g(t,r,n,i){var a=r||n||i?e.visitEachChild(t,function(e){return m(e,!0,r,n,i)},e.nullTransformationContext):e.visitEachChild(t,f,e.nullTransformationContext);if(a===t){var o=e.getSynthesizedClone(t);return e.isStringLiteral(o)?o.textSourceNode=t:e.isNumericLiteral(o)&&(o.numericLiteralFlags=t.numericLiteralFlags),e.setTextRange(o,t)}return a.parent=void 0,a}function y(e){h(e),v(e)}function h(e){b(e,512,D)}function v(t){b(t,1024,e.getLastChild)}function b(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&b(i,r,n)}function D(e){return e.forEachChild(function(e){return e})}function x(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function S(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function T(e){switch(e){case 35:case 33:case 36:case 34:return!0;default:return!1}}function C(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=c,e.mapToDisplayParts=u,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),u(function(i){e.writeType(t,r,17408|n,i)})},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),u(function(a){e.writeSymbol(t,r,n,8|i,a)})},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,u(function(i){e.writeSignature(t,r,n,void 0,i)})},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.stripQuotes=l,e.startsWithQuote=_,e.scriptKindIs=function(t,r){for(var n=[],i=2;i-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=f,e.getSynthesizedDeepCloneWithRenames=m,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.createNodeArray(t.map(function(e){return f(e,r)}),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=y,e.suppressLeadingTrivia=h,e.suppressTrailingTrivia=v,e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n=t+"_"+i;return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s=0),o},e.copyLeadingComments=function(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,x(r,n,i,a,e.addSyntheticLeadingComment))},e.copyTrailingComments=function(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,x(r,n,i,a,e.addSyntheticTrailingComment))},e.copyTrailingAsLeadingComments=function(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,x(r,n,i,a,e.addSyntheticLeadingComment))},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 192:return t.getContextualType(r);case 204:var n=r,i=n.left,a=n.operatorToken,o=n.right;return T(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 271:return r.expression===e?C(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){if(/^\d+$/.test(t))return t;var n=r.quotePreference||"auto",i=JSON.stringify(t);switch(n){case"auto":case"double":return i;case"single":return"'"+l(i).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(n)}},e.isEqualityOperatorKind=T,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 206:case 193:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=C,e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:{readFile:n.readFile,fileExists:n.fileExists,directoryExists:n.directoryExists,getSourceFiles:r.getSourceFiles,getCurrentDirectory:r.getCurrentDirectory,getCommonSourceDirectory:r.getCommonSourceDirectory}});return a?s:void 0}}(c||(c={})),function(e){e.createClassifier=function(){var o=e.createScanner(7,!1);function s(i,s,c){var u=0,l=0,_=[],d=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),p=d.prefix,f=d.pushTemplate;i=p+i;var m=p.length;f&&_.push(15),o.setText(i);var g=0,y=[],h=0;do{u=o.scan(),e.isTrivia(u)||(D(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(u),y),v>=i.length){var b=r(o,u,e.lastOrUndefined(_));void 0!==b&&(g=b)}}while(1!==u);function D(){switch(u){case 42:case 64:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 28:72===l&&h++;break;case 30:h>0&&h--;break;case 120:case 138:case 135:case 123:case 139:h>0&&!c&&(u=72);break;case 15:_.push(u);break;case 18:_.length>0&&_.push(u);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(u=o.reScanTemplateToken())?_.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;24===l?u=72:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 126:case 137:case 124:case 116:return!0;default:return!1}}(l,u)&&(u=72)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([72,10,8,9,13,100,44,45,21,23,19,102,87],function(e){return e},function(){return!0});function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 40:case 42:case 43:case 38:case 39:case 46:case 47:case 48:case 28:case 30:case 31:case 32:case 94:case 93:case 119:case 33:case 34:case 35:case 36:case 49:case 51:case 50:case 54:case 55:case 70:case 69:case 71:case 66:case 67:case 68:case 60:case 61:case 62:case 64:case 65:case 59:case 27:return!0;default:return!1}}(t)||function(e){switch(e){case 38:case 39:case 53:case 52:case 44:case 45:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=71)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 72:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 244:case 240:case 241:case 239:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(r,n,i){var a=r.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&function(e,t,r){s.push(e),s.push(t-e),s.push(r)}(u.getStart(n),u.getEnd(),_)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((28===t||30===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(59===t&&(237===n.kind||154===n.kind||151===n.kind||267===n.kind))return 5;if(204===n.kind||202===n.kind||203===n.kind||205===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return 267===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(72===t){if(r)switch(r.parent.kind){case 240:return r.parent.name===r?11:void 0;case 150:return r.parent.name===r?15:void 0;case 241:return r.parent.name===r?13:void 0;case 243:return r.parent.name===r?12:void 0;case 244:return r.parent.name===r?14:void 0;case 151:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function h(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);se.parameters.length)){var a=r.getParameterType(e,t.argumentIndex);return n=n||!!(4&a.flags),c(a,i)}}),isNewIdentifier:n}}(y,i):h()}case 249:case 255:case 259:return{kind:0,paths:d(t,r,a,o,i)};default:return h()}function h(){return{kind:2,types:c(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function s(t){return t&&{kind:1,symbols:t.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(t)}}function c(t,r){return void 0===r&&(r=e.createMap()),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return c(e,r)}):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function u(e,t,r){return{name:e,kind:t,extension:r}}function l(e){return u(e,"directory",void 0)}function _(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),7)?void 0:e.createTextSpan(r+i,a)}(t,r);return n.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}})}function d(t,r,n,i,a){return _(r.text,r.getStart(t)+1,function(t,r,n,i,a){var o=e.normalizeSlashes(r.text),s=t.path,c=e.getDirectoryPath(s);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(o)||!n.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?function(t,r,n,i,a){var o=p(n);return n.rootDirs?function(t,r,n,i,a,o,s){var c=a.project||o.getCurrentDirectory(),u=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),l=function(t,r,n,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}).concat([n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,c,n,u);return e.flatMap(l,function(e){return m(r,e,i,o,s)})}(n.rootDirs,t,r,o,n,i,a):m(t,r,o,i,a)}(o,c,n,i,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],l=p(n);if(o){var _=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(_,o));m(t,d,l,i,void 0,c),s&&g(c,t,d,l.extensions,s,i)}for(var f=y(t),h=0,D=function(t,r,n){var i=n.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(r){return e.startsWith(r,t)});if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,f,a);h=e.pos&&r<=e.end});if(s){var c=t.text.slice(s.pos,r),u=D.exec(c);if(u){var l=u[1],d=u[2],f=u[3],g=e.getDirectoryPath(t.path),h="path"===d?m(f,g,p(n,!0),i,t.path):"types"===d?v(i,n,g,y(f),p(n)):e.Debug.fail();return _(f,s.pos+l.length,h)}}}(r,i,c,u);return f&&n(f)}if(e.isInString(r,i,a))return a&&e.isStringLiteralLike(a)?function(r,i,a,o,s){if(void 0!==r)switch(r.kind){case 0:return n(r.paths);case 1:var c=[];return t.getCompletionEntriesFromSymbols(r.symbols,c,i,i,a,7,o,4,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,entries:c};case 2:var c=r.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,entries:c};default:return e.Debug.assertNever(r)}}(o(r,a,i,s,c,u),r,s,l,d):void 0},r.getStringLiteralCompletionDetails=function(r,n,a,s,c,u,l,_){if(s&&e.isStringLiteralLike(s)){var d=o(n,s,a,c,u,l);return d&&function(r,n,a,o,s,c){switch(a.kind){case 0:var u=e.find(a.paths,function(e){return e.name===r});return u&&t.createCompletionDetails(r,i(u.extension),u.kind,[e.textPart(r)]);case 1:var u=e.find(a.symbols,function(e){return e.name===r});return u&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(a.types,function(e){return e.value===r})?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(a)}}(r,s,d,n,c,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(a||(a={}));var D=/^(\/\/\/\s*"),kind:"class",kindModifiers:void 0,sortText:"0"};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[C]}}var k=[];if(s(t,n)){var N=m(c,k,p,t,r,n.target,i,u,o,f,b,v,h);!function(t,r,n,i,a){e.getNameTable(t).forEach(function(t,o){if(t!==r){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(n,s)&&e.isIdentifierText(s,i)&&a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(t,p.pos,N,n.target,k)}else{if(!(d||c&&0!==c.length||0!==g))return;m(c,k,p,t,r,n.target,i,u,o,f,b,v,h)}if(0!==g)for(var A=e.arrayToSet(k,function(e){return e.name}),F=0,P=function(t,r){if(!r)return E(t);var n=t+6+1;return T[n]||(T[n]=E(t).filter(function(t){return!function(e){switch(e){case 118:case 120:case 146:case 123:case 125:case 84:case 145:case 109:case 127:case 110:case 128:case 129:case 130:case 131:case 132:case 135:case 136:case 113:case 114:case 115:case 133:case 138:case 139:case 140:case 142:case 143:return!0;default:return!1}}(e.stringToToken(t.name))}))}(g,!D&&e.isSourceFileJS(t));F=t.pos;case 24:return 185===n;case 57:return 186===n;case 22:return 185===n;case 20:return 274===n||re(n);case 18:return 243===n;case 28:return 240===n||209===n||241===n||242===n||e.isFunctionLikeKind(n);case 116:return 154===n&&!e.isClassLike(r.parent);case 25:return 151===n||!!r.parent&&185===r.parent.kind;case 115:case 113:case 114:return 151===n&&!e.isConstructorDeclaration(r.parent);case 119:return 253===n||257===n||251===n;case 126:case 137:return!w(t);case 76:case 84:case 110:case 90:case 105:case 92:case 111:case 77:case 117:case 140:return!0;case 40:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(N(A(t))&&w(t))return!1;if(te(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(A(t))||ne(t)))return!1;switch(A(t)){case 118:case 76:case 77:case 125:case 84:case 90:case 110:case 111:case 113:case 114:case 115:case 116:case 105:case 117:return!0;case 121:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==g||a>g.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(30===e.kind&&e.parent){if(262===e.parent.kind)return!0;if(263===e.parent.kind||261===e.parent.kind)return!!e.parent.parent&&260===e.parent.parent.kind}return!1}(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),i}(h))return void r("Returning an empty list because completion was requested in an invalid position.");var M=h.parent;if(24===h.kind)switch(S=!0,M.kind){case 189:if((x=(b=M).expression).end===h.pos&&e.isCallExpression(x)&&x.getChildCount(n)&&21!==e.last(x.getChildren(n)).kind)return;break;case 148:x=M.left;break;case 244:x=M.name;break;case 183:case 214:x=M;break;default:return}else if(1===n.languageVariant){if(M&&189===M.kind&&(h=M,M=M.parent),l.parent===O)switch(l.kind){case 30:260!==l.parent.kind&&262!==l.parent.kind||(O=l);break;case 42:261===l.parent.kind&&(O=l)}switch(M.kind){case 263:42===h.kind&&(C=!0,O=h);break;case 204:if(!I(M))break;case 261:case 260:case 262:28===h.kind&&(T=!0,O=h);break;case 267:switch(g.kind){case 59:E=!0;break;case 72:M!==g.parent&&!M.initializer&&e.findChildOfKind(M,59,n)&&(E=g)}}}}var L=e.timestamp(),R=5,B=!1,j=0,J=[],z=[];if(S)!function(){R=2;var t=e.isLiteralImportTypeNode(x),r=d||t&&!x.isTypeOf||e.isPartOfTypeNode(x.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(x)||!r&&e.isPossiblyTypeArgumentPosition(h,n,c);if(e.isEntityName(x)||t){var a=e.isModuleDeclaration(x.parent);a&&(B=!0);var o=c.getSymbolAtLocation(x);if(o&&1920&(o=e.skipAlias(o,c)).flags){for(var s=e.Debug.assertEachDefined(c.getExportsOfModule(o),"getExportsOfModule() should all be defined"),u=function(e){return c.isValidPropertyAccess(t?x:x.parent,e.name)},l=function(e){return Z(e)},_=a?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===x.parent})}:i?function(e){return l(e)||u(e)}:r?l:u,p=0,f=s;p0&&(J=function(t,r){if(0===r.length)return t;for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i=0&&!c(r,n[a],107);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(r,e.getFirstToken(),73,78)}),r}function l(e){var t=s(e);if(t)switch(t.kind){case 225:case 226:case 227:case 223:case 224:return u(t);case 232:return _(t)}}function _(t){var r=[];return c(r,t.getFirstToken(),99),e.forEach(t.caseBlock.clauses,function(n){c(r,n.getFirstToken(),74,80),e.forEach(i(n),function(e){o(t,e)&&c(r,e.getFirstToken(),73)})}),r}function d(t,r){var n=[];(c(n,t.getFirstToken(),103),t.catchClause&&c(n,t.catchClause.getFirstToken(),75),t.finallyBlock)&&c(n,e.findChildOfKind(t,88,r),88);return n}function p(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||284===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),function(t){a.push(e.findChildOfKind(t,101,r))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,97,r))}),a}}function f(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,97,r))}),e.forEach(n(i.body),function(t){a.push(e.findChildOfKind(t,101,r))}),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach(function(e){c(n,e,121)}),e.forEachChild(r,function(t){g(t,function(t){e.isAwaitExpression(t)&&c(n,t.getFirstToken(),122)})}),n}}function g(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return g(e,r)})}t.getDocumentHighlights=function(t,n,i,a,o){var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,h=[y.openingElement,y.closingElement].map(function(e){return r(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}}(a,s,t,n,o)||function(t,n){var i=function(t,n){switch(t.kind){case 91:case 83:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],91);for(var a=i.length-1;a>=0&&!c(n,i[a],83);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),u.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 97:return y(t.parent,e.isReturnStatement,f);case 101:return y(t.parent,e.isThrowStatement,p);case 103:case 75:case 88:var i=75===t.kind?t.parent.parent:t.parent;return y(i,e.isTryStatement,d);case 99:return y(t.parent,e.isSwitchStatement,_);case 74:case 80:return y(t.parent.parent.parent,e.isSwitchStatement,_);case 73:case 78:return y(t.parent,e.isBreakOrContinueStatement,l);case 89:case 107:case 82:return y(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 124:return s(e.isConstructorDeclaration,[124]);case 126:case 137:return s(e.isAccessor,[126,137]);case 122:return y(t.parent,e.isAwaitExpression,m);case 121:return h(m(t));case 117:return h(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,function(t){g(t,function(t){e.isYieldExpression(t)&&c(n,t.getFirstToken(),117)})}),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 245:case 284:case 218:case 271:case 272:return 128&r&&e.isClassDeclaration(t)?t.members.concat([t]):n.statements;case 157:case 156:case 239:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 240:case 209:var i=n.members;if(28&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&r)return i.concat([n]);return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),function(t){return e.findModifier(t,a)}))):void 0}var a,o;function s(r,i){return y(t.parent,r,function(t){return e.mapDefined(t.symbol.declarations,function(t){return r(t)?e.find(t.getChildren(n),function(t){return e.contains(i,t.kind)}):void 0})})}function y(e,t,r){return t(e)?h(r(e,n)):void 0}function h(e){return e&&e.map(function(e){return r(e,n)})}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(s,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(c||(c={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=e.createMap(),o=e.createGetCanonicalFileName(!!t);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,o,s,c,u,l){var _=e.getOrUpdate(a,o,e.createMap),d=_.get(r),p=6===l?100:n.target||1;!d&&i&&((f=i.getDocument(o,r))&&(e.Debug.assert(u),d={sourceFile:f,languageServiceRefCount:0},_.set(r,d)));if(d)d.sourceFile.version!==c&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,s,c,s.getChangeRange(d.sourceFile.scriptSnapshot)),i&&i.setDocument(o,r,d.sourceFile)),u&&d.languageServiceRefCount++;else{var f=e.createLanguageServiceSourceFile(t,s,p,c,!1,l);i&&i.setDocument(o,r,f),d={sourceFile:f,languageServiceRefCount:1},_.set(r,d)}return e.Debug.assert(0!==d.languageServiceRefCount),d.sourceFile}function l(t,r){var n=e.Debug.assertDefined(a.get(r)),i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,n,o),i,r(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,n,o),i,r(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,n,o),r(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]})},reportStats:function(){var t=e.arrayFrom(a.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return a.get(e).forEach(function(e,r){t.push({name:r,refCount:e.languageServiceRefCount})}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(t){return e.sourceFileAffectingCompilerOptions.map(function(r){return e.getCompilerOptionValue(t,r)}).join("|")}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(c||(c={})),function(e){!function(t){function r(t,r){return e.forEach(284===t.kind?t.statements:t.body.statements,function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)})}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),7)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),7)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function v(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(y(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0});return[{definition:{type:1,node:n},references:o}]}function b(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),D(e,e,t,r,n)}function D(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=h(t,r.text,e);a0)return n}switch(t.kind){case 284:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 197:case 239:case 196:case 240:case 209:return 512&e.getModifierFlags(t)?"default":I(t);case 157:return"constructor";case 161:return"new()";case 160:return"()";case 162:return"[]";default:return""}}function E(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:w(t.node),spans:N(t),nameSpan:t.name&&P(t.name),childItems:e.map(t.children,E)}}function k(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:w(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[P(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return e.declarationNameToString(t.name);if(e.isVariableDeclaration(r))return e.declarationNameToString(r.name);if(e.isBinaryExpression(r)&&59===r.operatorToken.kind)return u(r.left).replace(a,"");if(e.isPropertyAssignment(r))return u(r.name);if(512&e.getModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var i=function t(r){if(e.isIdentifier(r))return r.text;if(e.isPropertyAccessExpression(r)){var n=t(r.expression),i=r.name.text;return void 0===n?i:n+"."+i}return}(r.expression);if(void 0!==i)return i+"("+e.mapDefined(r.arguments,function(t){return e.isStringLiteralLike(t)?t.getText(n):void 0}).join(", ")+") callback"}return""}t.getNavigationBarItems=function(t,i){r=i,n=t;try{return e.map((a=d(t),o=[],function t(r){if(function(t){switch(l(t)){case 240:case 209:case 243:case 241:case 244:case 284:case 242:case 309:case 302:return!0;case 157:case 156:case 158:case 159:case 237:return r(t);case 197:case 239:case 196:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 245:case 284:case 156:case 157:return!0;default:return r(e)}}(t);default:return!1}function r(t){return e.some(t.children,function(e){var t=l(e);return 237!==t&&186!==t})}}(r)&&(o.push(r),r.children))for(var n=0,i=r.children;n0?i[0]:u[0],D=0===v.length?d?void 0:e.createNamedImports(e.emptyArray):0===u.length?e.createNamedImports(v):e.updateNamedImports(u[0].importClause.namedBindings,v);return l.push(a(b,d,D)),l}function i(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=0,i=e;n...");case 261:case 262:return function(e){if(0!==e.properties.length)return a(e.getStart(r),e.getEnd(),"code")}(t.attributes)}var i,s,c;function u(t,r){return void 0===r&&(r=18),l(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function l(n,i,a,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===s&&(s=18);var c=e.findChildOfKind(t,s,r),u=18===s?19:23,l=e.findChildOfKind(t,u,r);if(c&&l){var _=e.createTextSpanFromBounds(a?c.getFullStart():c.getStart(r),l.getEnd());return o(_,"code",e.createTextSpanFromNode(n,r),i)}}}(c,t);u&&n.push(u),s--,e.isIfStatement(c)&&c.elseStatement&&e.isIfStatement(c.elseStatement)?(p(c.expression),p(c.thenStatement),s++,p(c.elseStatement),s--):c.forEachChild(p),s++}}}(t,r,s),function(t,r){for(var i=[],a=t.getLineStarts(),s=0;s1&&o.push(a(c,u,"comment"))}}function a(t,r,n){return o(e.createTextSpanFromBounds(t,r),n)}function o(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(c||(c={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,function(t,n){return d(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"===f(a))return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,p=n(i,o);_0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),y=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==y)return r(t.camelCase,y)}}}function a(e,t,r){if(C(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,7))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,7))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function m(e){return l(e)||_(e)||p(e)||95===e||36===e}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return v(e,!1)}function h(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a0&&(t.push(g(e.substr(r,n))),n=0)}return n>0&&t.push(g(e.substr(r,n))),t}(t)};var t});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=h}(c||(c={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function m(){var t=e.scanner.getToken();return 125===t&&(130===(t=_())&&10===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(92===t){if(20===(t=_())){if(10===(t=_()))return p(),!0}else{if(10===t)return p(),!0;if(72===t||e.isKeyword(t))if(144===(t=_())){if(10===(t=_()))return p(),!0}else if(59===t){if(h(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&144===(t=_())&&10===(t=_())&&p()}else 40===t&&119===(t=_())&&(72===(t=_())||e.isKeyword(t))&&144===(t=_())&&10===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(85===t){if(f(),18===(t=_())){for(t=_();19!==t&&1!==t;)t=_();19===t&&144===(t=_())&&10===(t=_())&&p()}else if(40===t)144===(t=_())&&10===(t=_())&&p();else if(92===t&&(72===(t=_())||e.isKeyword(t))&&59===(t=_())&&h(!0))return!0;return!0}return!1}function h(t){var r=t?_():e.scanner.getToken();return 134===r&&(20===(r=_())&&10===(r=_())&&p(),!0)}function v(){var t=e.scanner.getToken();if(72===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10===t&&p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)m()||g()||y()||n&&(h(!1)||v())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,D=i;b=0&&i.length>a+1),i[a+1]}(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:function(e,t){for(var r=0,n=0,i=e.getChildren();n0&&27===e.last(r).kind&&n++;return n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,n);if(!s)return;var u=s.list,l=s.argumentIndex,_=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===u.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:l,argumentCount:_}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?c(i,0,n):void 0;if(e.isTemplateHead(t)&&193===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(206===p.kind),c(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return c(f,l=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.left)?s(t.left)+1:2}function c(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:function(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();if(206===n.kind){var o=e.last(n.templateSpans);0===o.literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1))}return e.createTextSpan(i,a-i)}(t,n),argumentIndex:r,argumentCount:i}}function u(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function l(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,c,_){var g=t.getTypeChecker(),y=e.findTokenOnLeftOfPosition(r,n);if(y){var h=!!c&&"characterTyped"===c.kind;if(!h||!e.isInString(r,n,y)&&!e.isInComment(r,n)){var v=!!c&&"invoked"===c.kind,b=function(t,r,n,i,c){for(var u=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.showSyntaxKind(t)+", parent: "+e.Debug.showSyntaxKind(t.parent)});var c=function(t,r,n,i){return function(t,r,n,i){var o=function(t,r,n){if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 195:case 156:case 196:case 197:var o=a(t,r);if(!o)return;var c=o.argumentIndex,u=o.argumentCount,l=o.argumentsSpan,_=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return _&&{contextualType:_,argumentIndex:c,argumentCount:u,argumentsSpan:l};case 204:var d=function t(r){return e.isBinaryExpression(r.parent)?t(r.parent):r}(i),p=n.getContextualType(d),f=20===t.kind?0:s(i)-1,m=s(d);return p&&{contextualType:p,argumentIndex:f,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,n,i);if(o){var c,u=o.contextualType,l=o.argumentIndex,_=o.argumentCount,d=o.argumentsSpan,p=u.getCallSignatures();return 1!==p.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(p),node:t,symbol:(c=u.symbol,"__type"===c.name&&e.firstDefined(c.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0})||c)},argumentsSpan:d,argumentIndex:l,argumentCount:_}}}(t,0,n,i)||o(t,r,n)}(t,r,n,i);if(c)return{value:c}},l=t;!e.isSourceFile(l)&&(c||!e.isBlock(l));l=l.parent){var _=u(l);if("object"===f(_))return _.value}}(y,n,r,g,v);if(b){_.throwIfCancellationRequested();var D=function(t,r,n,a,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 28:return i(t,n,r.expression);default:return!1}}(a,s.node,n))return;var u=[],l=r.getResolvedSignatureForSignatureHelp(s.node,u,c);return 0===u.length?void 0:{kind:0,candidates:u,resolvedSignature:l};case 1:var _=s.called;if(o&&!i(a,n,e.isIdentifier(_)?_.parent:_))return;var u=e.getPossibleGenericSignatures(_,c,r);if(0!==u.length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,g,r,y,h);return _.throwIfCancellationRequested(),D?g.runWithCancellationToken(_,function(t){return 0===D.kind?d(D.candidates,D.resolvedSignature,b,r,t):function(t,r,n,i){var a=r.argumentCount,o=r.argumentsSpan,s=r.invocation,c=r.argumentIndex,u=i.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t);return u?{items:[function(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map(function(e){return m(e,n,i,a,s)}),u=t.getDocumentationComment(n),l=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:o.concat([e.punctuationPart(28)]),suffixDisplayParts:[e.punctuationPart(30)],separatorDisplayParts:p,parameters:c,documentation:u,tags:l}}(t,u,i,l(s),n)],applicableSpan:o,selectedItemIndex:0,argumentIndex:c,argumentCount:a}:void 0}(D.symbol,b,r,t)}):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=u(t.invocation),a=e.isIdentifier(i)?i.text:e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),function(r){return e.firstDefined(r.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,function(e){return d(a,a[0],t,r,e)})})})}}(b,t,_):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var _=70246400;function d(t,r,n,i,a){var o=n.isTypeParameterList,s=n.argumentCount,c=n.argumentsSpan,d=n.invocation,f=n.argumentIndex,g=l(d),y=2===d.kind?d.symbol:a.getSymbolAtLocation(u(d)),h=y?e.symbolToDisplayParts(a,y,void 0,void 0):e.emptyArray,v=t.map(function(t){return function(t,r,n,i,a,o){var s=(n?function(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map(function(e){return m(e,r,n,i,o)}),c=e.mapToDisplayParts(function(a){var s=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,_)]:[],c=e.createNodeArray(s.concat(r.getExpandedParameters(t).map(function(e){return r.symbolToParameterDeclaration(e,n,_)})));o.writeList(2576,c,i,a)});return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(28)],suffix:[e.punctuationPart(30)].concat(c)}}:function(t,r,n,i){var a=r.hasEffectiveRestParameter(t),o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts(function(a){if(t.typeParameters&&t.typeParameters.length){var s=e.createNodeArray(t.typeParameters.map(function(e){return r.typeParameterToDeclaration(e,n)}));o.writeList(53776,s,i,a)}}),c=r.getExpandedParameters(t).map(function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.symbolToParameterDeclaration(t,n,_);a.writeNode(4,o,i,e)}),s=r.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s}}(t,r,n,i,o)});return{isVariadic:a,parameters:c,prefix:s.concat([e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}})(t,i,a,o),c=s.isVariadic,u=s.parameters,l=s.prefix,d=s.suffix,f=r.concat(l),g=d.concat(function(t,r,n){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)})}(t,a,i)),y=t.getDocumentationComment(i),h=t.getJsDocTags();return{isVariadic:c,prefixDisplayParts:f,suffixDisplayParts:g,separatorDisplayParts:p,parameters:u,documentation:y,tags:h}}(t,h,o,a,g,i)});0!==f&&e.Debug.assertLessThan(f,s);var b=t.indexOf(r);return e.Debug.assert(-1!==b),{items:v,applicableSpan:c,selectedItemIndex:b,argumentIndex:f,argumentCount:s}}var p=[e.punctuationPart(27),e.spacePart()];function m(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.typeParameterToDeclaration(t,n);a.writeNode(4,o,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(c||(c={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings)return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=e.createMap(),a=e.createMap();return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)){var n=c(r.fileName);if(n){var i=s(r.fileName).getSourcePosition(r);return i&&i!==r?t(i)||i:void 0}}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)&&c(i.fileName)){var a=t.getProgram(),o=a.getCompilerOptions(),u=o.outFile||o.out,l=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,a.getCompilerOptions(),n,a.getCommonSourceDirectory(),r);if(void 0!==l){var _=s(l,i.fileName).getGeneratedPosition(i);return _===i?void 0:_}}},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var _=l(n);s=_&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(_.text,e.getLineStarts(_)),function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0})}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function u(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}function l(e){return t.getSourceFileLike?t.getSourceFileLike(e):c(e)||u(e)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var u=c[1];return r(n,e.base64decode(e.sys,u),i)}s=void 0}}var l=[];s&&l.push(s),l.push(i+".map");for(var _=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),d=0,p=l;d0&&u.push(e.createDiagnosticForNode(e.isVariableDeclaration(a.parent)?a.parent.name:a,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{if(e.isVariableStatement(a)&&a.parent===i&&2&a.declarationList.flags&&1===a.declarationList.declarations.length){var p=a.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&u.push(e.createDiagnosticForNode(p,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(a)&&u.push(e.createDiagnosticForNode(a.name||a,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(a)&&function(r,i,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&(i=t.body,!!e.forEachReturnStatement(i,n))&&function(e,t){var r=t.getTypeAtLocation(e),n=t.getSignaturesOfType(r,0),i=n.length?t.getReturnTypeOfSignature(n[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,r);var i})(r,i)&&!t.has(s(r))&&a.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(a,l,u),a.forEachChild(r)}(i),e.getAllowSyntheticDefaultImports(a.getCompilerOptions()))for(var d=0,p=i.imports;d0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?n(i,a,c):"",b=!1,D=100===c.kind&&e.isInExpressionContext(c);if(100===c.kind&&!D)return{displayParts:[e.keywordPart(100)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var x=void 0;if(p=D?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&189===c.parent.kind){var S=c.parent.name;(S===c||S&&0===S.getFullWidth())&&(c=c.parent)}var T=void 0;if(e.isCallOrNewExpression(c)?T=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?T=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(T=c.parent),T){x=i.getResolvedSignature(T,[]);var C=192===T.kind||e.isCallExpression(T)&&98===T.expression.kind,E=C?p.getConstructSignatures():p.getCallSignatures();if(e.contains(E,x.target)||e.contains(E,x)||(x=E.length?E[0]:void 0),x){switch(C&&32&h?(v="constructor",H(p.symbol,v)):2097152&h?(G(v="alias"),y.push(e.spacePart()),C&&(y.push(e.keywordPart(95)),y.push(e.spacePart())),W(a)):H(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(57)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(i,p.symbol,s,void 0,5)),y.push(e.lineBreakPart())),C&&(y.push(e.keywordPart(95)),y.push(e.spacePart())),Y(x,E,262144);break;default:Y(x,E)}b=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||124===c.kind&&157===c.parent.kind){var k=c.parent;e.find(a.declarations,function(e){return e===(124===c.kind?k.parent:k)})&&(E=157===k.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures(),x=i.isImplementationOfOverload(k)?E[0]:i.getSignatureFromDeclaration(k),157===k.kind?(v="constructor",H(p.symbol,v)):H(160!==k.kind||2048&p.symbol.flags||4096&p.symbol.flags?a:p.symbol,v),Y(x,E),b=!0)}}if(32&h&&!b&&!D&&(V(),e.getDeclarationOfKind(a,209)?G("local class"):y.push(e.keywordPart(76)),y.push(e.spacePart()),W(a),X(a,o)),64&h&&2&u&&(U(),y.push(e.keywordPart(110)),y.push(e.spacePart()),W(a),X(a,o)),524288&h&&2&u&&(U(),y.push(e.keywordPart(140)),y.push(e.spacePart()),W(a),X(a,o),y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(U(),e.some(a.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(y.push(e.keywordPart(77)),y.push(e.spacePart())),y.push(e.keywordPart(84)),y.push(e.spacePart()),W(a)),1536&h&&!D){U();var N=(J=e.getDeclarationOfKind(a,244))&&J.name&&72===J.name.kind;y.push(e.keywordPart(N?131:130)),y.push(e.spacePart()),W(a)}if(262144&h&&2&u)if(U(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),W(a),a.parent)q(),W(a.parent,s),X(a.parent,s);else{var A=e.getDeclarationOfKind(a,150);if(void 0===A)return e.Debug.fail();(J=A.parent)&&(e.isFunctionLikeKind(J.kind)?(q(),x=i.getSignatureFromDeclaration(J),161===J.kind?(y.push(e.keywordPart(95)),y.push(e.spacePart())):160!==J.kind&&J.name&&W(J.symbol),e.addRange(y,e.signatureToDisplayParts(i,x,o,32))):242===J.kind&&(q(),y.push(e.keywordPart(140)),y.push(e.spacePart()),W(J.symbol),X(J.symbol,o)))}if(8&h&&(v="enum member",H(a,"enum member"),278===(J=a.declarations[0]).kind)){var F=i.getConstantValue(J);void 0!==F&&(y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(U(),!b){var P=i.getAliasedSymbol(a);if(P!==a&&P.declarations&&P.declarations.length>0){var w=P.declarations[0],I=e.getNameOfDeclaration(w);if(I){var O=e.isModuleWithStringLiteralName(w)&&e.hasModifier(w,2),M="default"!==a.name&&!O,L=t(i,P,e.getSourceFileOfNode(w),w,I,u,M?a:P);y.push.apply(y,L.displayParts),y.push(e.lineBreakPart()),m=L.documentation,g=L.tags}}}switch(a.declarations[0].kind){case 247:y.push(e.keywordPart(85)),y.push(e.spacePart()),y.push(e.keywordPart(131));break;case 254:y.push(e.keywordPart(85)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?59:80));break;case 257:y.push(e.keywordPart(85));break;default:y.push(e.keywordPart(92))}y.push(e.spacePart()),W(a),e.forEach(a.declarations,function(t){if(248===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),y.push(e.keywordPart(134)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(59)),y.push(e.spacePart()),W(n,s))}return!0}})}if(!b)if(""!==v){if(p)if(D?(U(),y.push(e.keywordPart(100))):H(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||D)if(y.push(e.punctuationPart(57)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var R=e.mapToDisplayParts(function(t){var r=i.typeParameterToDeclaration(p,s);K().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(y,R)}else e.addRange(y,e.typeToDisplayParts(i,p,s));else(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v)&&(E=p.getNonNullableType().getCallSignatures()).length&&Y(E[0],E)}else v=r(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,function(e){return 284===e.kind})))for(var B=0,j=a.declarations;B0))break}}return 0===_.length&&m&&(_=m),0===d.length&&g&&(d=g),{displayParts:y,documentation:_,symbolKind:v,tags:0===d.length?void 0:d};function K(){return f||(f=e.createPrinter({removeComments:!0})),f}function U(){y.length&&y.push(e.lineBreakPart()),V()}function V(){l&&(G("alias"),y.push(e.spacePart()))}function q(){y.push(e.spacePart()),y.push(e.keywordPart(93)),y.push(e.spacePart())}function W(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(y,n),16777216&a.flags&&y.push(e.punctuationPart(56))}function H(t,r){U(),r&&(G(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(y.push(e.spacePart()),W(t)))}function G(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function Y(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(38)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(21)));var a=t.getDocumentationComment(i);_=0===a.length?void 0:a,d=t.getJsDocTags()}function X(t,r){var n=e.mapToDisplayParts(function(n){var a=i.symbolToTypeParameterDeclarations(t,r);K().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)});e.addRange(y,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(c||(c={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.composite=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=r):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return r.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===c?e.Debug.fail("Output generation failed"):{outputText:c,diagnostics:i,sourceMapText:u}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,function(t){return"object"===f(t.type)&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,function(e){return e===i})||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a>=a;return r}(f,p),0,n),c[u]=(d=1+((l=f)>>(_=p)&o),e.Debug.assert((d&o)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(o<<_)|d<<_)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*a]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*a]="ContextRulesSpecific",e[e.ContextRulesAny=3*a]="ContextRulesAny",e[e.NoContextRulesSpecific=4*a]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*a]="NoContextRulesAny"}(i||(i={}))}(e.formatting||(e.formatting={}))}(c||(c={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 240:case 241:return e.rangeContainsRange(t.members,r);case 244:var n=t.body;return!!n&&245===n.kind&&e.rangeContainsRange(n.statements,r);case 284:case 218:case 245:return e.rangeContainsRange(t.statements,r);case 274:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function _(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)})}function d(r,n,i,a,o,s,c,u,l){var _,d,f,m,g=s.options,y=s.getRule,h=new t.FormattingContext(l,c,g),v=-1,b=[];if(o.advance(),o.isOnToken()){var D=l.getLineAndCharacterOfPosition(n.getStart(l)).line,x=D;n.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,d,p){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var f=T(i,s,d,p);var y=a;e.forEachChild(i,function(e){b(e,-1,i,f,s,c,!1)},function(r){!function(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 157:case 239:case 196:case 156:case 155:case 197:if(e.typeParameters===t)return 28;if(e.parameters===t)return 20;break;case 191:case 192:if(e.typeArguments===t)return 28;if(e.arguments===t)return 20;break;case 164:if(e.typeArguments===t)return 28;break;case 168:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken();){var d=o.readTokenInfo(n);if(d.token.end>r.pos)break;if(d.token.kind===c){_=l.getLineAndCharacterOfPosition(d.token.pos).line,D(d,n,s,n);var p=void 0;if(-1!==v)p=v;else{var f=e.getLineStartPositionForPosition(d.token.pos,l);p=t.SmartIndenter.findFirstNonWhitespaceColumn(f,d.token.pos,l,g)}u=T(n,a,p,g.indentSize)}else D(d,n,s,n)}for(var m=-1,y=0;yi.end)break;D(h,i,f,i)}function b(a,s,c,u,_,d,p,f){var h=a.getStart(l),b=l.getLineAndCharacterOfPosition(h).line,x=b;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var S=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(S=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,g);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(g);return _>u?_:u}}return-1}(h,a.end,_,r,s))&&(s=S),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endh)break;D(T,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)&&11!==a.kind){var T=o.readTokenInfo(a);return e.Debug.assert(T.token.end===a.end,"Token end is child end"),D(T,i,u,a),s}var C=152===a.kind?b:d,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===r?{indentation:r===m?v:a.getIndentation(),delta:Math.min(g.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===m?{indentation:v,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,b,S,i,u,C);if(n(a,y,b,x,E.indentation,E.delta),11===a.kind){var k={pos:a.getStart(),end:a.getEnd()};A(k,E.indentation,!0,!1)}return y=i,f&&187===c.kind&&-1===s&&(s=E.indentation),s}function D(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&E(t.leadingTrivia,n,y,i);var p=0,f=e.rangeContainsRange(r,t.token),g=l.getLineAndCharacterOfPosition(t.token.pos);if(f){var h=u(t.token),b=_;if(p=k(t.token,g,n,y,i),!h)if(0===p){var D=b&&l.getLineAndCharacterOfPosition(b.end).line;d=c&&g.line!==D}else d=1===p}if(t.trailingTrivia&&E(t.trailingTrivia,n,y,i),d){var x=f&&!u(t.token)?i.getIndentationForToken(g.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,x,a);S=C(t.leadingTrivia,T,S,function(e){return N(e.pos,T,!1)})}-1!==x&&S&&(N(t.token.pos,x,1===p),m=g.line,v=x)}o.advance(),y=n}}(n,n,D,x,i,a)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(C(S,i,!1,function(e){return k(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}),function(){var e=_?_.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;F(t,n+1,_)}())}return b;function T(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 83:case 107:case 58:return!1;case 42:case 30:switch(a.kind){case 262:case 263:case 261:return!1}break;case 22:case 23:if(181!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 240:return 76;case 241:return 110;case 239:return 90;case 243:return 243;case 158:return 126;case 159:return 137;case 156:if(t.asteriskToken)return 40;case 154:case 151:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){r.parent&&t.SmartIndenter.shouldIndentChildNode(g,r.parent,r,l)&&(i+=e?g.indentSize:-g.indentSize,a=t.SmartIndenter.shouldIndentChildNode(g,r)?g.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(g,r,e,l,!0)?a:0}}function C(t,n,i,a){for(var o=0,s=t;o0){var S=p(x,g);I(b,D.character,S)}else w(b,D.character)}}}}else i||N(r.pos,n,!1)}function F(t,r,n){for(var i=t;io)){var s=P(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),w(s,o+1-s))}}}function P(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function w(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function I(t,r,n){(r||n)&&b.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},r)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}var m=s(l,e,i),y=m.line===t.line||d(l,e,t.line,i);if(p){var h=g(e,i,u,!y);if(-1!==h)return h+n;if(-1!==(h=c(e,l,t,y,i,u)))return h+n}x(u,l,e,i,o)&&!y&&(n+=u.indentSize);var v=_(l,e,t.line,i);l=(e=l).parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):m}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(284===r.kind||!i)?h(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(222===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,83,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 164:return a(n.typeArguments);case 188:return a(n.properties);case 187:return a(n.elements);case 168:return a(n.members);case 239:case 196:case 197:case 156:case 155:case 160:case 157:case 166:case 161:return a(n.typeParameters)||a(n.parameters);case 240:case 209:case 241:case 242:case 308:return a(n.typeParameters);case 192:case 191:return a(n.typeArguments)||a(n.arguments);case 238:return a(n.declarations);case 252:case 256:return a(n.elements);case 184:case 185:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,n,i);a=l(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&204!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var h=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return h&&!e.rangeContainsRange(h,c)?m(h,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&x(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t),m=0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0;return o(d,p,void 0,m,t,!0,c)}var y=g(d,t,c,!0);if(-1!==y)return y;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){return o(e,r.getLineAndCharacterOfPosition(e.getStart(r)),t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=D,r.shouldIndentChildNode=x}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(c||(c={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function a(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function o(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var s,c;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll"}(s=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(c=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var l,_={leadingTriviaOption:s.Exclude,trailingTriviaOption:c.Exclude};function d(e,t,r,n){return{pos:p(e,t,n),end:f(e,r,n)}}function p(t,r,n){var i=n.leadingTriviaOption;if(i===s.Exclude)return r.getStart(t);var a=r.getFullStart(),o=r.getStart(t);if(a===o)return o;var c=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(o,t)===c)return i===s.IncludeAll?a:o;var l=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+l,t);return _=u(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function f(t,r,n){var i=r.end,a=n.trailingTriviaOption;if(a===c.Exclude||e.isExpression(r)&&a!==c.Include)return i;var o=e.skipTrivia(t.text,i,!0);return o===i||a!==c.Include&&!e.isLineBreak(t.text.charCodeAt(o-1))?i:o}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&188===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(l||(l={}));var g,y=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.deleteRange=function(e,t){this.changes.push({kind:l.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:s.IncludeAll});var i=p(e,t,n),a=f(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:s.IncludeAll});var i=p(e,t,n),a=void 0===r?e.text.length:p(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=_),this.replaceRange(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=_),this.replaceRange(e,d(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=_),this.replaceRangeWithNodes(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,d(e,t,t,_),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=_),this.replaceRangeWithNodes(e,d(e,t,r,i),n,i)},t.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n"})},t.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,[n].concat(r.body.statements))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,r.body.statements.concat([n]))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=p(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(t,r,n){var a=r.getStart(t),o=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(a,t),a,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,b(r).pos,n,i({indentation:o},this.getInsertNodeAtStartPrefixSuffix(t,r)))},t.prototype.getInsertNodeAtStartPrefixSuffix=function(t,r){var n=e.isObjectLiteralExpression(r)?",":"";if(0===b(r).length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t})){var i=e.positionsAreOnSameLine.apply(void 0,v(r,t).concat([t]));return{prefix:this.newLineCharacter,suffix:n+(i?this.newLineCharacter:"")}}return{prefix:"",suffix:n+this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:n}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&149===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.createToken(26)),f(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return i({},n,{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 240:case 244:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 237:case 10:case 72:return{prefix:", "};case 275:return{suffix:","+this.newLineCharacter};case 85:return{prefix:" "};case 151:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),197===r.kind){var i=e.findChildOfKind(r,37,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(90),e.createIdentifier(n)],{joiner:" "}),k(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(21))),218!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(18),e.createToken(97)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,196===r.kind?90:76,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&m(r,s)){var c=e.getLineAndCharacterOfPosition(t,u(t.text,i[a+1].getFullStart())),l=e.getLineAndCharacterOfPosition(t,s.end),_=void 0,d=void 0;l.line===c.line?(d=s.end,_=function(e){for(var t="",r=0;r=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function x(t){var n=e.visitEachChild(t,x,e.nullTransformationContext,S,x),i=e.nodeIsSynthesized(n)?n:Object.create(n);return i.pos=r(t),i.end=a(t),i}function S(t,n,i,o,s){var c=e.visitNodes(t,n,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=a(t),u}t.ChangeTracker=y,t.getNewFileText=function(e,t,r,n){return g.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map(function(e){return n(e,t,a).text}).join(a),c=e.createSourceFile("any file name",s,7,!0,r);return D(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=new C(n),a="\n"===n?1:0;return e.createPrinter({newLine:a,neverAsciiEscape:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:x(t)}}t.getTextChangesFromChanges=function(t,r,i,a){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),c=function(t){e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(s[t].range)+" and "+JSON.stringify(s[t+1].range)})},u=0;u-1,"Parameter not found in parent parameter list.");var s=e.createParameter(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||237===t.kind||153===t.kind||154===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.createToken(20));for(var o=0,s=n.parameters;ot&&(n?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return n?i.createArrayType(u):u}}function c(t,r){for(var n=[],i=0;i0)return T;var C=f(s.checker.getTypeAtLocation(t),s.checker).getReturnType(),E=e.getSynthesizedDeepClone(h),k=s.checker.getPromisedTypeOfPromise(C)?e.createAwait(E):E;if(c)return[e.createReturn(k)];var N=d(r,k,s);return r&&r.types.push(C),N;default:i=!1}return e.emptyArray}function f(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function m(t,r,n){for(var i=[],a=0,o=r;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)})}return i}function g(t,r){var n,i=0,a=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=o(t.parameters[0].name)):e.isIdentifier(t)&&(n=o(t));if(n&&"undefined"!==n.identifier.text)return n;function o(t){var n,o=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return o&&r.synthNamesMap.get(e.getSymbolId(o).toString())||{identifier:t,types:a,numberOfAssignmentsOriginal:i}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){i=!0;var o=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n)});return i?[t.createCodeFixAction(r,o,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,r.file,r.start,e.program.getTypeChecker(),e)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(l.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),l.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,r.right),d([e.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.createToken(85),e.createToken(77)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(85),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,s);var f,m;return!1}(r,i,h,p,g)}default:return!1}}function a(e){return d(void 0,e)}function o(t){return d([e.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function c(t,r,n){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function u(t,r,n,i){return"default"===r?e.makeImport(e.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[l(r,t)],n,i)}function l(t,r){return e.createImportSpecifier(void 0!==t&&t!==r?e.createIdentifier(t):void 0,e.createIdentifier(r))}function _(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,n)],2))}function d(t,r){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===r?void 0:e.createLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,c=a.program,u=a.preferences,l=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,r,a,o,c){var u={original:(_=t,d=e.createMultiMap(),function t(r,n){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 189:return t.name!==e;case 186:case 253:return t.propertyName!==e;default:return!0}}(r)&&n(r),r.forEachChild(function(e){return t(e,n)})}(_,function(e){return d.add(e.text,e)}),d),additional:e.createMap()},l=function(t,r,i){var a=e.createMap();return n(t,function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(t.name.text,t,67220415,!0))&&a.set(o,s("_"+o,i))}),a}(t,r,u);var _,d;!function(t,r,i){n(t,function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.createIdentifier(r.get(o)||o))}})}(t,l,a);for(var p=!1,f=0,m=t.statements;f0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach(function(e){t.deleteModifier(r,e)}):(t.delete(r,n),function(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,function(e){var i=n.parent.parameters.indexOf(n);e.arguments.length>i&&t.delete(r,e.arguments[i])})}(t,r,n,a,i)))}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,g=i.program,y=g.getTypeChecker(),h=g.getSourceFiles(),v=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(v))return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,v)}),e.Diagnostics.Remove_template_tag)];if(28===v.kind)return[c(T=e.textChanges.ChangeTracker.with(i,function(e){return u(e,m,v)}),e.Diagnostics.Remove_type_parameters)];var b=l(v);if(b)return[c(T=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b)}),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var D=e.textChanges.ChangeTracker.with(i,function(e){return _(v,e,m,y,h,!1)});if(D.length)return[c(D,e.Diagnostics.Remove_destructuring)];var x=e.textChanges.ChangeTracker.with(i,function(e){return d(m,v,e)});if(x.length)return[c(x,e.Diagnostics.Remove_variable_statement)];var S=[];if(127===v.kind){var T=e.textChanges.ChangeTracker.with(i,function(e){return s(e,m,v)}),C=e.cast(v.parent,e.isInferTypeNode).typeParameter.name.text;S.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,C],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var E=e.textChanges.ChangeTracker.with(i,function(e){return f(m,v,e,y,h,!1)});if(E.length){C=e.isComputedPropertyName(v.parent)?v.parent:v;S.push(c(E,[e.Diagnostics.Remove_declaration_for_Colon_0,C.getText(m)]))}}var k=e.textChanges.ChangeTracker.with(i,function(e){return p(e,o,m,v)});return k.length&&S.push(t.createCodeFixAction(r,k,[e.Diagnostics.Prefix_0_with_an_underscore,v.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,g=m.getTypeChecker(),y=m.getSourceFiles();return t.codeFixAll(r,o,function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:p(t,o.code,c,m);break;case i:if(127===m.kind)break;var h=l(m);h?t.delete(c,h):e.isJSDocTemplateTag(m)?t.delete(c,m):28===m.kind?u(t,c,m):_(m,t,c,g,y,!0)||d(c,m,t)||f(c,m,t,g,y,!0);break;case a:127===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isStatement);e.Debug.assert(o.getStart(r)===a.getStart(r));var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements))switch(s.kind){case 222:if(s.elseStatement){if(e.isBlock(o.parent))break;return void t.replaceNode(r,o,e.createBlock(e.emptyArray))}case 224:case 225:return void t.delete(r,s)}if(e.isBlock(o.parent)){var c=n+i,u=e.Debug.assertDefined(function(e,t){for(var r,n=0,i=e;nh.length)D(l.getSignatureFromDeclaration(u[u.length-1]),f,d,a(s));else e.Debug.assert(u.length===h.length),c(function(t,r,n,o,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_=c.parameters.length&&(!p.hasRestParameter||c.hasRestParameter)&&(c=p)}var f=c.parameters.length-(c.hasRestParameter?1:0),m=c.parameters.map(function(e){return e.name}),g=i(f,m,void 0,u,!1);if(l){var y=e.createArrayTypeNode(e.createKeywordTypeNode(120)),h=e.createParameter(void 0,void 0,e.createToken(25),m[f]||"rest",f>=u?e.createToken(56):void 0,y,void 0);g.push(h)}return function(t,r,n,i,o,s,c){return e.createMethod(void 0,t,void 0,r,n?e.createToken(56):void 0,i,o,s,a(c))}(o,r,n,void 0,g,void 0,s)}(h,d,g,f,s))}}function D(t,i,a,s){var u=function(t,n,i,a,o,s,c){var u=t.program.getTypeChecker().signatureToSignatureDeclaration(n,156,i,257,r(t));if(!u)return;return u.decorators=void 0,u.modifiers=a,u.name=o,u.questionToken=s?e.createToken(56):void 0,u.body=c,u}(o,t,n,i,a,g,s);u&&c(u)}}function i(t,r,n,i,a){for(var o=[],s=0;s=i?e.createToken(56):void 0,a?void 0:n&&n[s]||e.createKeywordTypeNode(120),void 0);o.push(c)}return o}function a(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}function o(t,r){return e.createPropertyAssignment(e.createStringLiteral(t),r)}function s(t,r){return e.find(t.properties,function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r})}t.createMissingMemberNodes=function(e,t,r,i,a){for(var o=e.symbol.members,s=0,c=t;s0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&230===a.kind&&s){var u=f(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===u.length?e.createReturn(u[0].name):e.createReturn(e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=f(r,n);1===_.length?l.push(e.createReturn(_[0].name)):l.push(e.createReturn(e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),A=N.body,F=N.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(A),e.isClassLike(r)){var P=v?[]:[e.createToken(113)];o.facts&i.InStaticRegion&&P.push(e.createToken(116)),o.facts&i.IsAsyncFunction&&P.push(e.createToken(121)),k=e.createMethod(void 0,P.length?P:void 0,o.facts&i.IsGenerator?e.createToken(40):void 0,b,void 0,T,D,c,A)}else k=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(121)]:void 0,o.facts&i.IsGenerator?e.createToken(40):void 0,b,T,D,c,A);var w=e.textChanges.ChangeTracker.fromContext(s),I=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}((m(o.range)?e.last(o.range):o.range).end,r);I?w.insertNodeBefore(s.file,I,k,!0):w.insertNodeAtEndOfScope(s.file,r,k);var O=[],M=function(t,r,n){var a=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(r,o,h),L=e.createCall(M,C,x);if(o.facts&i.IsGenerator&&(L=e.createYield(e.createToken(40),L)),o.facts&i.IsAsyncFunction&&(L=e.createAwait(L)),a.length&&!u)if(e.Debug.assert(!F),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length){var R=a[0];O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(R.name),e.getSynthesizedDeepClone(R.type),L)],R.parent.flags)))}else{for(var B=[],j=[],J=a[0].parent.flags,z=!1,K=0,U=a;K0);for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(b,r);m.insertNodeBefore(o.file,D,h,!0),m.replaceNode(o.file,t,v)}else{var x=e.createVariableDeclaration(l,p,f),S=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(S){m.insertNodeBefore(o.file,S,x);var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}else if(221===t.parent.kind&&r===e.findAncestor(t,_)){var T=e.createVariableStatement(void 0,e.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,T)}else{var T=e.createVariableStatement(void 0,e.createVariableDeclarationList([x],2)),D=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(var i=(n||t).parent;;i=i.parent){if(g(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):e.Debug.assertDefined(a)}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r);if(0===D.pos?m.insertNodeAtTopOfFile(o.file,T,!1):m.insertNodeBefore(o.file,D,T,!1),221===t.parent.kind)m.delete(o.file,t.parent);else{var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}}}var C=m.getChanges(),E=t.getSourceFile().fileName,k=e.getRenameLocation(C,E,l,!0);return{renameFilename:E,renameLocation:k,edits:C}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function l(t,r){var a=r.length;if(0===a)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(t,r.start),t,r),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o!==s){if(!g(o.parent))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};for(var l=[],_=0,d=o.parent.statements;_=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else u|=i.UsesThis}if(e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 239:case 240:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope))}return!1}var p=_;switch(a.kind){case 222:case 235:_=0;break;case 218:a.parent&&235===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 271:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 178:case 100:u|=i.UsesThis;break;case 233:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 229:case 228:var f=a.label;f?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(229===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 201:u|=i.IsAsyncFunction;break;case 207:u|=i.IsGenerator;break;case 230:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=p}(t),o}}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,r){var a=r.file,o=function(t){var r=m(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(151===(r=r.parent).kind&&(r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(r)&&(o.push(r),284===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],g=[],y=[],h=e.createMap(),v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var D=t.range,x=e.first(D).getStart(),S=e.last(D).end;l=e.createFileDiagnostic(o,x,S-x,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var T=0,C=r;T=u)return m;if(N.set(m,u),y){for(var h=0,v=d;h0){for(var O=e.createMap(),M=0,L=F;void 0!==L&&M=0)return;var i=e.isIdentifier(n)?q(n):s.getSymbolAtLocation(n);if(i){var a=e.find(y,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(n,r)})}for(var K=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(m(t.range)||0===v.length),s&&!m(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else if(o&&r>0){var c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),g[r].push(c)}else if(u){var c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),g[r].push(c)}},U=0;Un.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,function(e){return e.end>n.end},a);if(-1===s||!(0===s||i[s].getStart(r)=i&&e.every(t,function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)})}(t.parameters,r))return!1;switch(t.kind){case 239:case 156:return!!t.name&&!!t.body&&!r.isImplementationOfOverload(t);case 157:return e.isClassDeclaration(t.parent)?!!t.body&&!!t.parent.name&&!r.isImplementationOfOverload(t):_(t.parent.parent)&&!!t.body&&!r.isImplementationOfOverload(t);case 196:case 197:return _(t.parent)}return!1}(o,n)&&e.rangeContainsRange(o,a))||o.body&&e.rangeContainsRange(o.body,a)?void 0:o}function _(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function d(t){return t.length>0&&e.isThis(t[0].name)}function p(t){return d(t)&&(t=e.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function f(t,r){var n=p(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,function(t,r){var i,a,o=g(n[r]),s=(i=o,a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.createShorthandPropertyAssignment(i):e.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),m(t,s),s});if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.createPropertyAssignment(g(e.last(n)),e.createArrayLiteral(s));o.push(c)}return e.createObjectLiteral(o,!1)}function m(t,r){var n=t.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i310});return n.kind<148?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<148?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 239:case 196:case 156:case 155:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 240:case 209:case 241:case 242:case 243:case 244:case 248:case 257:case 253:case 250:case 251:case 158:case 159:case 168:r(a),e.forEachChild(a,i);break;case 151:if(!e.hasModifier(a,92))break;case 237:case 186:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 278:case 154:case 153:r(a);break;case 255:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 249:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(251===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 204:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}}),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),g=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function y(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!h(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[h(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function h(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function v(){return{target:1,jsx:1}}e.toEditorSettings=y,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=v,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var b=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function k(t){var r=function(t){switch(t.kind){case 10:case 8:if(149===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 72:return!e.isObjectLiteralElement(t.parent)||188!==t.parent.parent.kind&&268!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function N(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,function(n){return e.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)});if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,function(e){return e.getProperty(a)}):s}e.ThrottledCancellationToken=E,e.createLanguageService=function(t,r,n){var a;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),void 0===n&&(n=!1);var o,s,c=new D(t),u=0,l=new C(t.getCancellationToken&&t.getCancellationToken()),_=t.getCurrentDirectory();function d(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var p=e.hostUsesCaseSensitiveFileNames(t),f=e.createGetCanonicalFileName(p),m=e.getSourceMapper({useCaseSensitiveFileNames:function(){return p},getCurrentDirectory:function(){return _},getProgram:v,fileExists:t.fileExists&&function(e){return t.fileExists(e)},readFile:t.readFile&&function(e,r){return t.readFile(e,r)},getDocumentPositionMapper:t.getDocumentPositionMapper&&function(e,r){return t.getDocumentPositionMapper(e,r)},getSourceFileLike:t.getSourceFileLike&&function(e){return t.getSourceFileLike(e)},log:d});function g(e){var t=o.getSourceFile(e);if(!t)throw new Error("Could not find sourceFile: '"+e+"' in "+(o&&JSON.stringify(o.getSourceFiles().map(function(e){return e.fileName})))+".");return t}function h(){if(e.Debug.assert(!n),t.getProjectVersion){var i=t.getProjectVersion();if(i){if(s===i&&!t.hasChangedAutomaticTypeDirectiveNames)return;s=i}}var a=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==a&&(d("TypeRoots version has changed; provide new program"),o=void 0,u=a);var c=new b(t,f),g=c.getRootFileNames(),y=t.hasInvalidatedResolution||e.returnFalse,h=c.getProjectReferences();if(!e.isProgramUptoDate(o,g,c.compilationSettings(),function(e){return c.getVersion(e)},T,y,!!t.hasChangedAutomaticTypeDirectiveNames,h)){var v=c.compilationSettings(),D={getSourceFile:function(t,r,n,i){return C(t,e.toPath(t,_,f),0,0,i)},getSourceFileByPath:C,getCancellationToken:function(){return l},getCanonicalFileName:f,useCaseSensitiveFileNames:function(){return p},getNewLine:function(){return e.getNewLineCharacter(v,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return _},fileExists:T,readFile:function(r){var n=e.toPath(r,_,f),i=c&&c.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.assertDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n)},hasInvalidatedResolution:y,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(D.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(D.resolveModuleNames=function(e,r,n,i){return t.resolveModuleNames(e,r,n,i)}),t.resolveTypeReferenceDirectives&&(D.resolveTypeReferenceDirectives=function(e,r,n){return t.resolveTypeReferenceDirectives(e,r,n)});var x=r.getKeyForCompilationSettings(v),S={rootNames:g,options:v,host:D,oldProgram:o,projectReferences:h};return o=e.createProgram(S),c=void 0,m.clearCache(),void o.getTypeChecker()}function T(r){var n=e.toPath(r,_,f),i=c&&c.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function C(t,n,i,a,s){e.Debug.assert(void 0!==c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var u=c&&c.getOrCreateEntryByPath(t,n);if(u){if(!s){var l=o&&o.getSourceFileByPath(n);if(l)return e.Debug.assertEqual(u.scriptKind,l.scriptKind,"Registered script kind should match new script kind.",n),r.updateDocumentWithKey(t,n,v,x,u.scriptSnapshot,u.version,u.scriptKind)}return r.acquireDocumentWithKey(t,n,v,x,u.scriptSnapshot,u.version,u.scriptKind)}}}function v(){if(!n)return h(),o;e.Debug.assert(void 0===o)}function x(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i})),h();var a=n.map(g),s=g(t);return e.DocumentHighlights.getDocumentHighlights(o,l,s,r,a)}function S(t,r,n,i){h();var a=n&&n.isForRename?o.getSourceFiles().filter(function(e){return!o.isSourceFileDefaultLibrary(e)}):o.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(o,l,a,t,r,n,i)}function T(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var E=e.createMapFromTemplate(((a={})[18]=19,a[20]=21,a[22]=23,a[30]=28,a));function A(r,n){var i=function(t){return e.toPath(t,_,f)};switch(r.type){case"install package":return t.installPackage?t.installPackage({fileName:i(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`");case"generate types":var a=r.fileToGenerateTypesFor,o=r.outputFileName;return t.inspectValue?t.inspectValue({fileNameToRequire:a}).then(function(r){var a=i(o);return t.writeFile(a,e.valueInfoToDeclarationFileText(r,n||e.testFormatSettings)),{successMessage:"Wrote types to '"+a+"'"}}):Promise.reject("Host does not implement `installPackage`");default:return e.Debug.assertNever(r)}}function F(r,n,i,a){var o="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:o[0],endPosition:o[1],program:v(),host:t,formatContext:e.formatting.getFormatContext(a),cancellationToken:l,preferences:i}}return E.forEach(function(e,t){return E.set(e.toString(),Number(t))}),{dispose:function(){o&&(e.forEach(o.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,o.getCompilerOptions())}),o=void 0),t=void 0},cleanupSemanticCache:function(){o=void 0},getSyntacticDiagnostics:function(e){return h(),o.getSyntacticDiagnostics(g(e),l).slice()},getSemanticDiagnostics:function(t){h();var r=g(t),n=o.getSemanticDiagnostics(r,l);if(!e.getEmitDeclarations(o.getCompilerOptions()))return n.slice();var i=o.getDeclarationDiagnostics(r,l);return n.concat(i)},getSuggestionDiagnostics:function(t){return h(),e.computeSuggestionDiagnostics(g(t),o,l)},getCompilerOptionsDiagnostics:function(){return h(),o.getOptionsDiagnostics(l).concat(o.getGlobalDiagnostics(l))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return T(t)?(h(),e.getSemanticClassifications(o.getTypeChecker(),l,g(t),o.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return T(t)?(h(),e.getEncodedSemanticClassifications(o.getTypeChecker(),l,g(t),o.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,n,a){void 0===a&&(a=e.emptyOptions);var s=i({},e.identity(a),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return h(),e.Completions.getCompletionsAtPosition(t,o,d,g(r),n,s,a.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,s,c){return void 0===c&&(c=e.emptyOptions),h(),e.Completions.getCompletionEntryDetails(o,d,g(r),n,{name:i,source:s},t,a&&e.formatting.getFormatContext(a),c,l)},getCompletionEntrySymbol:function(t,r,n,i){return h(),e.Completions.getCompletionEntrySymbol(o,d,g(t),r,{name:n,source:i})},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;h();var a=g(t);return e.SignatureHelp.getSignatureHelpItems(o,a,r,i,l)},getQuickInfoAtPosition:function(t,r){h();var n=g(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=o.getTypeChecker(),s=function(t,r){var n=k(t);if(n){var i=r.getContextualType(n.parent),a=i&&N(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(i,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 72:return!e.isLabelName(r)&&!e.isTagName(r);case 189:case 148:return!e.isInComment(t,n);case 100:case 178:case 98:return!0;default:return!1}}(n,i,r)?a.getTypeAtLocation(i):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,n),displayParts:a.runWithCancellationToken(l,function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(i))}),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags():void 0}}var u=a.runWithCancellationToken(l,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(i),i)}),_=u.symbolKind,d=u.displayParts,p=u.documentation,f=u.tags;return{kind:_,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(i,n),displayParts:d,documentation:p,tags:f}}},getDefinitionAtPosition:function(t,r){return h(),e.GoToDefinition.getDefinitionAtPosition(o,g(t),r)},getDefinitionAndBoundSpan:function(t,r){return h(),e.GoToDefinition.getDefinitionAndBoundSpan(o,g(t),r)},getImplementationAtPosition:function(t,r){return h(),e.FindAllReferences.getImplementationsAtPosition(o,l,o.getSourceFiles(),g(t),r)},getTypeDefinitionAtPosition:function(t,r){return h(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),g(t),r)},getReferencesAtPosition:function(t,r){return h(),S(e.getTouchingPropertyName(g(t),r),r,{},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return h(),e.FindAllReferences.findReferencedSymbols(o,l,o.getSourceFiles(),g(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(x(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return{fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1,isInString:t.isInString}})})},getDocumentHighlights:x,getNameOrDottedNameSpan:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 189:case 148:case 10:case 87:case 102:case 96:case 98:case 100:case 178:case 72:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(244!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),h();var a=n?[g(n)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,o.getTypeChecker(),l,t,r,i)},getRenameInfo:function(t,r,n){return h(),e.Rename.getRenameInfo(o,g(t),r,n)},findRenameLocations:function(t,r,n,i,a){h();var o=g(t),s=e.getTouchingPropertyName(o,r);if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map(function(t){return{fileName:o.fileName,textSpan:e.createTextSpanFromNode(t.tagName,o)}})}return S(s,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,isForRename:!0},function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,a||!1)})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),l)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),l)},getOutliningSpans:function(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)},getTodoComments:function(t,r){h();var n=g(t);l.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested(),e.Debug.assert(u.length===r.length+3);var _=u[1],d=u.index+_.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=u[2];s.push({descriptor:p,message:m,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?E.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=y(n),o=c.getCurrentSourceFile(t);d("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return d("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,n,i){var a=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(y(i)))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(y(r)))},getFormattingEditsAfterKeystroke:function(t,r,n,i){var a=c.getCurrentSourceFile(t),o=e.formatting.getFormatContext(y(i));if(!e.isInComment(a,r))switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,o);case"}":return e.formatting.formatOnClosingCurly(r,a,o);case";":return e.formatting.formatOnSemicolon(r,a,o);case"\n":return e.formatting.formatOnEnter(r,a,o)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=30===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&function t(r){var n=r.openingElement,i=r.closingElement,a=r.parent;return!e.tagNamesAreEquivalent(n.tagName,i.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(n.tagName,a.openingElement.tagName)&&t(a)}(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,s,c){void 0===c&&(c=e.emptyOptions),h();var u=g(r),_=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(r){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:_,program:o,host:t,cancellationToken:l,formatContext:d,preferences:c})})},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),h(),e.Debug.assert("file"===r.type);var s=g(r.fileName),c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:o,host:t,cancellationToken:l,formatContext:c,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t,i="string"!=typeof t?r:void 0;return e.isArray(n)?Promise.all(n.map(function(e){return A(e,i)})):A(n,i)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),h(),e.Debug.assert("file"===r.type);var a=g(r.fileName),s=e.formatting.getFormatContext(n);return e.OrganizeImports.organizeImports(a,s,t,o,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(v(),r,n,t,e.formatting.getFormatContext(i),a,m)},getEmitOutput:function(r,n){void 0===n&&(n=!1),h();var i=g(r),a=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(o,i,n,l,a)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:v,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.emptyOptions),h();var i=g(t);return e.refactor.getApplicableRefactors(F(i,r,n))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),h();var s=g(t);return e.refactor.getEditsForRefactor(F(s,n,o,r),i,a)},toLineColumnOffset:m.toLineColumnOffset,getSourceMapper:function(){return m}}},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||259===t.parent.kind||function(e){return e&&e.parent&&190===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(4194304&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function u(r){return _(e.findPrecedingToken(r.pos,t))}function l(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 219:return D(r.declarationList.declarations[0]);case 237:case 154:case 153:return D(r);case 151:return function t(r){if(e.isBindingPattern(r.name))return C(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 239:case 156:case 155:case 158:case 159:case 157:case 196:case 197:return function(e){if(e.body)return x(e)?o(e):_(e.body)}(r);case 218:if(e.isFunctionBlock(r))return h=(y=r).statements.length?y.statements[0]:y.getLastToken(),x(y.parent)?c(y.parent,h):_(h);case 245:return S(r);case 274:return S(r.block);case 221:return o(r.expression);case 230:return o(r.getChildAt(0),r.expression);case 224:return s(r,r.expression);case 223:return _(r.statement);case 236:return o(r.getChildAt(0));case 222:return s(r,r.expression);case 233:return _(r.statement);case 229:case 228:return o(r.getChildAt(0),r.label);case 225:return(g=r).initializer?T(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 226:return s(r,r.expression);case 227:return T(r);case 232:return s(r,r.expression);case 271:case 272:return _(r.statements[0]);case 235:return S(r.tryBlock);case 234:case 254:return o(r,r.expression);case 248:return o(r,r.moduleReference);case 249:case 255:return o(r,r.moduleSpecifier);case 244:if(1!==e.getModuleInstanceState(r))return;case 240:case 243:case 278:case 186:return o(r);case 231:return _(r.statement);case 152:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 184:case 185:return C(r);case 241:case 242:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 243:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 240:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 246:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 245:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 243:case 240:return o(t);case 218:if(e.isFunctionBlock(t.parent))return o(t);case 274:return _(e.lastOrUndefined(t.parent.statements));case 246:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 184:var i=t.parent;return _(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return _(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 185:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}}(r);case 20:return function(e){return 223===e.parent.kind||191===e.parent.kind||192===e.parent.kind?u(e):195===e.parent.kind?l(e):_(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 196:case 239:case 197:case 156:case 155:case 158:case 159:case 157:case 224:case 223:case 225:case 227:case 191:case 192:case 195:return u(e);default:return _(e.parent)}}(r);case 57:return function(t){return e.isFunctionLike(t.parent)||275===t.parent.kind||151===t.parent.kind?u(t):_(t.parent)}(r);case 30:case 28:return function(e){return 194===e.parent.kind?l(e):_(e.parent)}(r);case 107:return function(e){return 223===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(r);case 83:case 75:case 88:return l(r);case 147:return function(e){return 227===e.parent.kind?l(e):_(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return E(r);if((72===r.kind||208===r.kind||275===r.kind||276===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(204===r.kind){var i=r,a=i.left,d=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return E(a);if(59===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===d.kind)return _(a)}if(e.isExpressionNode(r))switch(n.kind){case 223:return u(r);case 152:return _(r.parent);case 225:case 227:return o(r);case 204:if(27===r.parent.operatorToken.kind)return o(r);break;case 197:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 275:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 194:if(r.parent.type===r)return l(r.parent.type);break;case 237:case 151:var p=r.parent,f=p.initializer,m=p.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return u(r);break;case 204:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return _(r.parent)}}var g,y,h,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function D(r){if(226===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?C(r.name):r.initializer||e.hasModifier(r,1)||227===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function x(t){return e.hasModifier(t,1)||240===t.parent.kind&&157!==t.kind}function S(r){switch(r.parent.kind){case 244:if(1!==e.getModuleInstanceState(r.parent))return;case 224:case 222:case 226:return c(r.parent,r.statements[0]);case 225:case 227:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function T(e){if(238!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function C(t){var r=e.forEach(t.elements,function(e){return 210!==e.kind?e:void 0});return r?_(r):186===t.parent.kind?o(t.parent):b(t.parent)}function E(t){e.Debug.assert(185!==t.kind&&184!==t.kind);var r=187===t.kind?t.elements:t.properties,n=e.forEach(r,function(e){return 210!==e.kind?e:void 0});return n?_(n):o(204===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(c||(c={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(c||(c={}));var c,u,l=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=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 r=e,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),i=function(){function e(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return t.map(e,function(e){return t.getProperty(i,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 JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(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,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},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=i;var a=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)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();function o(e,t,r,n){return c(e,t,!0,r,n)}function c(e,n,i,a,o){try{var s=function(e,r,n,i){var a;i&&(e.log(r),a=t.timestamp());var o=n();if(i){var s=t.timestamp();if(e.log(r+" completed in "+(s-a)+" msec"),t.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(e,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}t.CoreServicesShimHostAdapter=a;var u=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(e,r){return e.map(function(e){return function(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.diagnosticCategoryName(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary}}(e,r)})}t.realizeDiagnostics=_;var d=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return s(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,l&&l.CollectGarbage&&(l.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(e){return _(e,t.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t,r)})},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,r,n,i)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(e,r,JSON.parse(n)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return c(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(u);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=function(e){function r(r,n){var i=e.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return s(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),o(this.logger,"getEncodedLexicalClassifications",function(){return p(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a0&&_(t[0])},u.watchFile=function(e,t){var r=i.default.normalize(e);return c.set(r,t),{close:function(){c.delete(r)}}},u.watchDirectory=function(){return d};var f=u.onCachedDirectoryStructureHostCreate;u.onCachedDirectoryStructureHostCreate=function(e){var t=e.readDirectory;e.readDirectory=function(e,n,i,a,o){return t(e,n?n.concat(r.extraFileExtensions):void 0,i,a,o)},f(e)};var m=a.default.createWatchProgram(u),g=m.getProgram().getProgram();s.set(e,m),n.push(g)},v=r.projects[Symbol.iterator]();!(f=(y=v.next()).done);f=!0)h()}catch(e){m=!0,g=e}finally{try{f||null==v.return||v.return()}finally{if(m)throw g}}return u.add(t),n},t.createProgram=function(e,t,r){if(r.projects&&1===r.projects.length){var n=r.projects[0];i.default.isAbsolute(n)||(n=i.default.join(r.tsconfigRootDir,n));var s=a.default.getParsedCommandLineOfConfigFile(n,o,Object.assign({},a.default.sys,{onUnRecoverableConfigFileDiagnostic:function(){}}));if(s){var c=a.default.createCompilerHost(s.options,!0),u=c.readFile;return c.readFile=function(r){return i.default.normalize(r)===i.default.normalize(t)?e:u(r)},a.default.createProgram([t],s.options,c)}}}});i(mr);var gr=a(function(e,t){var r;t=e.exports=G,r="object"===f(ve)&&ve.env&&ve.env.NODE_DEBUG&&/\bsemver\b/i.test(ve.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 n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],o=t.src=[],s=0,c=s++;o[c]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var l=s++;o[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var _=s++;o[_]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var p=s++;o[p]="(?:"+o[c]+"|"+o[l]+")";var m=s++;o[m]="(?:"+o[u]+"|"+o[l]+")";var g=s++;o[g]="(?:-("+o[p]+"(?:\\."+o[p]+")*))";var y=s++;o[y]="(?:-?("+o[m]+"(?:\\."+o[m]+")*))";var h=s++;o[h]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[h]+"(?:\\."+o[h]+")*))";var b=s++,D="v?"+o[_]+o[g]+"?"+o[v]+"?";o[b]="^"+D+"$";var x="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",S=s++;o[S]="^"+x+"$";var T=s++;o[T]="((?:<|>)?=?)";var C=s++;o[C]=o[u]+"|x|X|\\*";var E=s++;o[E]=o[c]+"|x|X|\\*";var k=s++;o[k]="[v=\\s]*("+o[E]+")(?:\\.("+o[E]+")(?:\\.("+o[E]+")(?:"+o[g]+")?"+o[v]+"?)?)?";var N=s++;o[N]="[v=\\s]*("+o[C]+")(?:\\.("+o[C]+")(?:\\.("+o[C]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var A=s++;o[A]="^"+o[T]+"\\s*"+o[k]+"$";var F=s++;o[F]="^"+o[T]+"\\s*"+o[N]+"$";var P=s++;o[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var w=s++;o[w]="(?:~>?)";var I=s++;o[I]="(\\s*)"+o[w]+"\\s+",a[I]=new RegExp(o[I],"g");var O=s++;o[O]="^"+o[w]+o[k]+"$";var M=s++;o[M]="^"+o[w]+o[N]+"$";var L=s++;o[L]="(?:\\^)";var R=s++;o[R]="(\\s*)"+o[L]+"\\s+",a[R]=new RegExp(o[R],"g");var B=s++;o[B]="^"+o[L]+o[k]+"$";var j=s++;o[j]="^"+o[L]+o[N]+"$";var J=s++;o[J]="^"+o[T]+"\\s*("+x+")$|^$";var z=s++;o[z]="^"+o[T]+"\\s*("+D+")$|^$";var K=s++;o[K]="(\\s*)"+o[T]+"\\s*("+x+"|"+o[k]+")",a[K]=new RegExp(o[K],"g");var U=s++;o[U]="^\\s*("+o[k]+")\\s+-\\s+("+o[k]+")\\s*$";var V=s++;o[V]="^\\s*("+o[N]+")\\s+-\\s+("+o[N]+")\\s*$";var q=s++;o[q]="(<|>)?=?\\s*\\*";for(var W=0;Wn)return null;if(!(t?a[S]:a[b]).test(e))return null;try{return new G(e,t)}catch(e){return null}}function G(e,t){if(e instanceof G){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof G))return new G(e,t);r("SemVer",e,t),this.loose=t;var o=e.trim().match(t?a[S]:a[b]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&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=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new G(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var r=H(e),n=H(t);if(r.prerelease.length||n.prerelease.length){for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return"pre"+i;return"prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return i},t.compareIdentifiers=X;var Y=/^[0-9]+$/;function X(e,t){var r=Y.test(e),n=Y.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function Q(e,t,r){return new G(e,r).compare(new G(t,r))}function $(e,t,r){return Q(e,t,r)>0}function Z(e,t,r){return Q(e,t,r)<0}function ee(e,t,r){return 0===Q(e,t,r)}function te(e,t,r){return 0!==Q(e,t,r)}function re(e,t,r){return Q(e,t,r)>=0}function ne(e,t,r){return Q(e,t,r)<=0}function ie(e,t,r,n){var i;switch(t){case"===":"object"===f(e)&&(e=e.version),"object"===f(r)&&(r=r.version),i=e===r;break;case"!==":"object"===f(e)&&(e=e.version),"object"===f(r)&&(r=r.version),i=e!==r;break;case"":case"=":case"==":i=ee(e,r,n);break;case"!=":i=te(e,r,n);break;case">":i=$(e,r,n);break;case">=":i=re(e,r,n);break;case"<":i=Z(e,r,n);break;case"<=":i=ne(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return i}function ae(e,t){if(e instanceof ae){if(e.loose===t)return e;e=e.value}if(!(this instanceof ae))return new ae(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return X(t,e)},t.major=function(e,t){return new G(e,t).major},t.minor=function(e,t){return new G(e,t).minor},t.patch=function(e,t){return new G(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,r){return Q(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=$,t.lt=Z,t.eq=ee,t.neq=te,t.gte=re,t.lte=ne,t.cmp=ie,t.Comparator=ae;var oe={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof ae)return new se(e.value,t);if(!(this instanceof se))return new se(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 ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,r,n,i,a,o,s,c,u,l,_,d){return((t=ce(r)?"":ce(n)?">="+r+".0.0":ce(i)?">="+r+"."+n+".0":">="+t)+" "+(s=ce(c)?"":ce(u)?"<"+(+c+1)+".0.0":ce(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s)).trim()}function le(e,t){for(var n=0;n0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _e(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function de(e,t,r,n){var i,a,o,s,c;switch(e=new G(e,n),t=new se(t,n),r){case">":i=$,a=ne,o=Z,s=">",c=">=";break;case"<":i=Z,a=re,o=$,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_e(e,t,n))return!1;for(var u=0;u=0.0.0")),l=l||e,_=_||e,i(e.semver,l.semver,n)?l=e:o(e.semver,_.semver,n)&&(_=e)}),l.operator===s||l.operator===c)return!1;if((!_.operator||_.operator===s)&&a(e,_.semver))return!1;if(_.operator===c&&o(e,_.semver))return!1}return!0}ae.prototype.parse=function(e){var t=this.loose?a[J]:a[z],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new G(r[2],this.loose):this.semver=oe},ae.prototype.toString=function(){return this.value},ae.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===oe||("string"==typeof e&&(e=new G(e,this.loose)),ie(e,this.operator,this.semver,this.loose))},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new se(e.value,t),_e(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),_e(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&o||s||c},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?a[V]:a[U];e=e.replace(n,ue),r("hyphen replace",e),e=e.replace(a[K],"$1$2$3"),r("comparator trim",e,a[K]),e=(e=(e=e.replace(a[I],"$1~")).replace(a[R],"$1^")).split(/\s+/).join(" ");var i=t?a[J]:a[z],o=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?a[j]:a[B];return e.replace(n,function(t,n,i,a,o){var s;return r("caret",e,t,n,i,a,o),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(a)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":o?(r("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),s="0"===n?"0"===i?">="+n+"."+i+"."+a+o+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+o+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",s),s})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?a[M]:a[O];return e.replace(n,function(t,n,i,a,o){var s;return r("tilde",e,t,n,i,a,o),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(a)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":o?(r("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),s=">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?a[F]:a[A];return e.replace(n,function(t,n,i,a,o,s){r("xRange",e,t,n,i,a,o,s);var c=ce(i),u=c||ce(a),l=u||ce(o),_=l;return"="===n&&_&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&_?(u&&(a=0),l&&(o=0),">"===n?(n=">=",u?(i=+i+1,a=0,o=0):l&&(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),t=n+i+"."+a+"."+o):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[q],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(o=o.filter(function(e){return!!e.match(i)})),o=o.map(function(e){return new ae(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new G(e,this.loose));for(var t=0;t",r)},t.outside=de,t.prerelease=function(e,t){var r=H(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof G)return e;if("string"!=typeof e)return null;var t=e.match(a[P]);return null==t?null:H((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}}),yr=1/0,hr="[object Symbol]",vr=/&(?:amp|lt|gt|quot|#39|#96);/g,br=RegExp(vr.source),Dr="object"==f(r)&&r&&r.Object===Object&&r,xr="object"==("undefined"==typeof self?"undefined":f(self))&&self&&self.Object===Object&&self,Sr=Dr||xr||Function("return this")();var Tr,Cr=(Tr={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(e){return null==Tr?void 0:Tr[e]}),Er=Object.prototype.toString,kr=Sr.Symbol,Nr=kr?kr.prototype:void 0,Ar=Nr?Nr.toString:void 0;function Fr(e){if("string"==typeof e)return e;if(function(e){return"symbol"==f(e)||function(e){return!!e&&"object"==f(e)}(e)&&Er.call(e)==hr}(e))return Ar?Ar.call(e):"";var t=e+"";return"0"==t&&1/e==-yr?"-0":t}var Pr=function(e){var t;return(e=null==(t=e)?"":Fr(t))&&br.test(e)?e.replace(vr,Cr):e},wr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0})});i(wr);var Ir=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BigIntLiteral="BigIntLiteral",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassBody="ClassBody",e.ClassDeclaration="ClassDeclaration",e.ClassExpression="ClassExpression",e.ClassProperty="ClassProperty",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.DebuggerStatement="DebuggerStatement",e.Decorator="Decorator",e.DoWhileStatement="DoWhileStatement",e.EmptyStatement="EmptyStatement",e.ExportAllDeclaration="ExportAllDeclaration",e.ExportDefaultDeclaration="ExportDefaultDeclaration",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ExpressionStatement="ExpressionStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.ForStatement="ForStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.Import="Import",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.JSXAttribute="JSXAttribute",e.JSXClosingElement="JSXClosingElement",e.JSXClosingFragment="JSXClosingFragment",e.JSXElement="JSXElement",e.JSXEmptyExpression="JSXEmptyExpression",e.JSXExpressionContainer="JSXExpressionContainer",e.JSXFragment="JSXFragment",e.JSXIdentifier="JSXIdentifier",e.JSXMemberExpression="JSXMemberExpression",e.JSXNamespacedName="JSXNamespacedName",e.JSXOpeningElement="JSXOpeningElement",e.JSXOpeningFragment="JSXOpeningFragment",e.JSXSpreadAttribute="JSXSpreadAttribute",e.JSXSpreadChild="JSXSpreadChild",e.JSXText="JSXText",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MetaProperty="MetaProperty",e.MethodDefinition="MethodDefinition",e.NewExpression="NewExpression",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractClassProperty="TSAbstractClassProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.TSBooleanKeyword="TSBooleanKeyword",e.TSBigIntKeyword="TSBigIntKeyword",e.TSConditionalType="TSConditionalType",e.TSConstructorType="TSConstructorType",e.TSCallSignatureDeclaration="TSCallSignatureDeclaration",e.TSClassImplements="TSClassImplements",e.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",e.TSDeclareKeyword="TSDeclareKeyword",e.TSDeclareFunction="TSDeclareFunction",e.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",e.TSEnumDeclaration="TSEnumDeclaration",e.TSEnumMember="TSEnumMember",e.TSExportAssignment="TSExportAssignment",e.TSExportKeyword="TSExportKeyword",e.TSExternalModuleReference="TSExternalModuleReference",e.TSImportType="TSImportType",e.TSInferType="TSInferType",e.TSLiteralType="TSLiteralType",e.TSIndexedAccessType="TSIndexedAccessType",e.TSIndexSignature="TSIndexSignature",e.TSInterfaceBody="TSInterfaceBody",e.TSInterfaceDeclaration="TSInterfaceDeclaration",e.TSInterfaceHeritage="TSInterfaceHeritage",e.TSImportEqualsDeclaration="TSImportEqualsDeclaration",e.TSFunctionType="TSFunctionType",e.TSMethodSignature="TSMethodSignature",e.TSModuleBlock="TSModuleBlock",e.TSModuleDeclaration="TSModuleDeclaration",e.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",e.TSNonNullExpression="TSNonNullExpression",e.TSNeverKeyword="TSNeverKeyword",e.TSNullKeyword="TSNullKeyword",e.TSNumberKeyword="TSNumberKeyword",e.TSMappedType="TSMappedType",e.TSObjectKeyword="TSObjectKeyword",e.TSParameterProperty="TSParameterProperty",e.TSPrivateKeyword="TSPrivateKeyword",e.TSPropertySignature="TSPropertySignature",e.TSProtectedKeyword="TSProtectedKeyword",e.TSPublicKeyword="TSPublicKeyword",e.TSQualifiedName="TSQualifiedName",e.TSQuestionToken="TSQuestionToken",e.TSReadonlyKeyword="TSReadonlyKeyword",e.TSRestType="TSRestType",e.TSStaticKeyword="TSStaticKeyword",e.TSStringKeyword="TSStringKeyword",e.TSSymbolKeyword="TSSymbolKeyword",e.TSThisType="TSThisType",e.TSTypeAnnotation="TSTypeAnnotation",e.TSTypeAliasDeclaration="TSTypeAliasDeclaration",e.TSTypeAssertion="TSTypeAssertion",e.TSTypeLiteral="TSTypeLiteral",e.TSTypeOperator="TSTypeOperator",e.TSTypeParameter="TSTypeParameter",e.TSTypeParameterDeclaration="TSTypeParameterDeclaration",e.TSTypeParameterInstantiation="TSTypeParameterInstantiation",e.TSTypePredicate="TSTypePredicate",e.TSTypeReference="TSTypeReference",e.TSTypeQuery="TSTypeQuery",e.TSIntersectionType="TSIntersectionType",e.TSTupleType="TSTupleType",e.TSOptionalType="TSOptionalType",e.TSParenthesizedType="TSParenthesizedType",e.TSUnionType="TSUnionType",e.TSUndefinedKeyword="TSUndefinedKeyword",e.TSUnknownKeyword="TSUnknownKeyword",e.TSVoidKeyword="TSVoidKeyword"}(t.AST_NODE_TYPES||(t.AST_NODE_TYPES={})),function(e){e.Boolean="Boolean",e.Identifier="Identifier",e.JSXIdentifier="JSXIdentifier",e.JSXText="JSXText",e.Keyword="Keyword",e.Null="Null",e.Numeric="Numeric",e.Punctuator="Punctuator",e.RegularExpression="RegularExpression",e.String="String",e.Template="Template"}(t.AST_TOKEN_TYPES||(t.AST_TOKEN_TYPES={}))});i(Ir);var Or=a(function(e,t){var n=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(wr);t.TSESTree=i,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(Ir)});i(Or);var Mr=a(function(e,t){var n,i=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(fr),o=i(Pr),s=a.default.SyntaxKind,c=[s.EqualsToken,s.PlusEqualsToken,s.MinusEqualsToken,s.AsteriskEqualsToken,s.AsteriskAsteriskEqualsToken,s.SlashEqualsToken,s.PercentEqualsToken,s.LessThanLessThanEqualsToken,s.GreaterThanGreaterThanEqualsToken,s.GreaterThanGreaterThanGreaterThanEqualsToken,s.AmpersandEqualsToken,s.BarEqualsToken,s.CaretEqualsToken],u=[s.BarBarToken,s.AmpersandAmpersandToken],l=(g(n={},s.OpenBraceToken,"{"),g(n,s.CloseBraceToken,"}"),g(n,s.OpenParenToken,"("),g(n,s.CloseParenToken,")"),g(n,s.OpenBracketToken,"["),g(n,s.CloseBracketToken,"]"),g(n,s.DotToken,"."),g(n,s.DotDotDotToken,"..."),g(n,s.SemicolonToken,","),g(n,s.CommaToken,","),g(n,s.LessThanToken,"<"),g(n,s.GreaterThanToken,">"),g(n,s.LessThanEqualsToken,"<="),g(n,s.GreaterThanEqualsToken,">="),g(n,s.EqualsEqualsToken,"=="),g(n,s.ExclamationEqualsToken,"!="),g(n,s.EqualsEqualsEqualsToken,"==="),g(n,s.InstanceOfKeyword,"instanceof"),g(n,s.ExclamationEqualsEqualsToken,"!=="),g(n,s.EqualsGreaterThanToken,"=>"),g(n,s.PlusToken,"+"),g(n,s.MinusToken,"-"),g(n,s.AsteriskToken,"*"),g(n,s.AsteriskAsteriskToken,"**"),g(n,s.SlashToken,"/"),g(n,s.PercentToken,"%"),g(n,s.PlusPlusToken,"++"),g(n,s.MinusMinusToken,"--"),g(n,s.LessThanLessThanToken,"<<"),g(n,s.LessThanSlashToken,">"),g(n,s.GreaterThanGreaterThanGreaterThanToken,">>>"),g(n,s.AmpersandToken,"&"),g(n,s.BarToken,"|"),g(n,s.CaretToken,"^"),g(n,s.ExclamationToken,"!"),g(n,s.TildeToken,"~"),g(n,s.AmpersandAmpersandToken,"&&"),g(n,s.BarBarToken,"||"),g(n,s.QuestionToken,"?"),g(n,s.ColonToken,":"),g(n,s.EqualsToken,"="),g(n,s.PlusEqualsToken,"+="),g(n,s.MinusEqualsToken,"-="),g(n,s.AsteriskEqualsToken,"*="),g(n,s.AsteriskAsteriskEqualsToken,"**="),g(n,s.SlashEqualsToken,"/="),g(n,s.PercentEqualsToken,"%="),g(n,s.LessThanLessThanEqualsToken,"<<="),g(n,s.GreaterThanGreaterThanEqualsToken,">>="),g(n,s.GreaterThanGreaterThanGreaterThanEqualsToken,">>>="),g(n,s.AmpersandEqualsToken,"&="),g(n,s.BarEqualsToken,"|="),g(n,s.CaretEqualsToken,"^="),g(n,s.AtToken,"@"),g(n,s.InKeyword,"in"),g(n,s.UniqueKeyword,"unique"),g(n,s.KeyOfKeyword,"keyof"),g(n,s.NewKeyword,"new"),g(n,s.ImportKeyword,"import"),g(n,s.ReadonlyKeyword,"readonly"),n);function _(e){return c.indexOf(e.kind)>-1}function d(e){return u.indexOf(e.kind)>-1}function p(e){return e.kind===s.SingleLineCommentTrivia||e.kind===s.MultiLineCommentTrivia}function f(e){return e.kind===s.JSDocComment}function m(e,t){var r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}function y(e,t,r){return{start:m(e,r),end:m(t,r)}}function h(e){return e.kind>=s.FirstToken&&e.kind<=s.LastToken}function v(e){return e.kind>=s.JsxElement&&e.kind<=s.JsxAttribute}function b(e,t){for(;e;){if(t(e))return e;e=e.parent}}function D(e){return!!b(e,v)}function x(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case s.NullKeyword:return Or.AST_TOKEN_TYPES.Null;case s.GetKeyword:case s.SetKeyword:case s.TypeKeyword:case s.ModuleKeyword:return Or.AST_TOKEN_TYPES.Identifier;default:return Or.AST_TOKEN_TYPES.Keyword}if(e.kind>=s.FirstKeyword&&e.kind<=s.LastFutureReservedWord)return e.kind===s.FalseKeyword||e.kind===s.TrueKeyword?Or.AST_TOKEN_TYPES.Boolean:Or.AST_TOKEN_TYPES.Keyword;if(e.kind>=s.FirstPunctuation&&e.kind<=s.LastBinaryOperator)return Or.AST_TOKEN_TYPES.Punctuator;if(e.kind>=s.NoSubstitutionTemplateLiteral&&e.kind<=s.TemplateTail)return Or.AST_TOKEN_TYPES.Template;switch(e.kind){case s.NumericLiteral:return Or.AST_TOKEN_TYPES.Numeric;case s.JsxText:return Or.AST_TOKEN_TYPES.JSXText;case s.StringLiteral:return!e.parent||e.parent.kind!==s.JsxAttribute&&e.parent.kind!==s.JsxElement?Or.AST_TOKEN_TYPES.String:Or.AST_TOKEN_TYPES.JSXText;case s.RegularExpressionLiteral:return Or.AST_TOKEN_TYPES.RegularExpression;case s.Identifier:case s.ConstructorKeyword:case s.GetKeyword:case s.SetKeyword:}if(e.parent&&e.kind===s.Identifier){if(v(e.parent))return Or.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===s.PropertyAccessExpression&&D(e))return Or.AST_TOKEN_TYPES.JSXIdentifier}return Or.AST_TOKEN_TYPES.Identifier}function S(e,t){var r=e.kind===s.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a={type:x(e),value:i,range:[r,n],loc:y(r,n,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function T(e,t){return e.kind===s.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function C(e,t){if(void 0!==e)for(var r=0;re.end||n.pos===e.end;return i&&T(n,r)?t(n):void 0})}(t)},t.findFirstMatchingAncestor=b,t.hasJSXAncestor=D,t.unescapeStringLiteralText=function(e){return o.default(e)},t.isComputedProperty=function(e){return e.kind===s.ComputedPropertyName},t.isOptional=function(e){return!!e.questionToken&&e.questionToken.kind===s.QuestionToken},t.getTokenType=x,t.convertToken=S,t.convertTokens=function(e){var t=[];return function r(n){if(!p(n)&&!f(n))if(h(n)&&n.kind!==s.EndOfFileToken){var i=S(n,e);i&&t.push(i)}else n.getChildren(e).forEach(r)}(e),t},t.getNodeContainer=function(e,t,r){var n=null;return function e(i){var a=i.pos,o=i.end;t>=a&&r<=o&&(h(i)?n=i:i.getChildren().forEach(e))}(e),n},t.createError=function(e,t,r){var n=e.getLineAndCharacterOfPosition(t);return{index:t,lineNumber:n.line+1,column:n.character,message:r}},t.nodeHasTokens=T,t.firstDefined=C});i(Mr);var Lr=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(fr),a=i.default.SyntaxKind;t.convertError=function(e){return Mr.createError(e.file,e.start,e.message||e.messageText)};var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=t,this.options=r}var t,r,n;return t=e,(r=[{key:"getASTMaps",value:function(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}},{key:"convertProgram",value:function(){return this.converter(this.ast)}},{key:"converter",value:function(e,t,r,n){if(!e)return null;var i=this.inTypeMode,a=this.allowPattern;void 0!==r&&(this.inTypeMode=r),void 0!==n&&(this.allowPattern=n);var o=this.convertNode(e,t||e.parent);return this.registerTSNodeInNodeMap(e,o),this.inTypeMode=i,this.allowPattern=a,o}},{key:"fixExports",value:function(e,t){if(e.modifiers&&e.modifiers[0].kind===a.ExportKeyword){this.registerTSNodeInNodeMap(e,t);var r=e.modifiers[0],n=e.modifiers[1],i=n&&n.kind===a.DefaultKeyword,o=i?Mr.findNextToken(n,this.ast,this.ast):Mr.findNextToken(r,this.ast,this.ast);return t.range[0]=o.getStart(this.ast),t.loc=Mr.getLocFor(t.range[0],t.range[1],this.ast),i?this.createNode(e,{type:Or.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[r.getStart(this.ast),t.range[1]]}):this.createNode(e,{type:Or.AST_NODE_TYPES.ExportNamedDeclaration,declaration:t,specifiers:[],source:null,range:[r.getStart(this.ast),t.range[1]]})}return t}},{key:"registerTSNodeInNodeMap",value:function(e,t){t&&this.options.shouldProvideParserServices&&(this.tsNodeToESTreeNodeMap.has(e)||this.tsNodeToESTreeNodeMap.set(e,t))}},{key:"convertPattern",value:function(e,t){return this.converter(e,t,this.inTypeMode,!0)}},{key:"convertChild",value:function(e,t){return this.converter(e,t,this.inTypeMode,!1)}},{key:"convertType",value:function(e,t){return this.converter(e,t,!0,!1)}},{key:"createNode",value:function(e,t){var r=t;return r.range||(r.range=Mr.getRange(e,this.ast)),r.loc||(r.loc=Mr.getLocFor(r.range[0],r.range[1],this.ast)),r&&this.options.shouldProvideParserServices&&this.esTreeNodeToTSNodeMap.set(r,e),r}},{key:"convertTypeAnnotation",value:function(e,t){var r=t.kind===a.FunctionType||t.kind===a.ConstructorType?2:1,n=e.getFullStart()-r,i=Mr.getLocFor(n,e.end,this.ast);return{type:Or.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}},{key:"convertBodyExpressions",value:function(e,t){var r=this,n=Mr.canContainDirective(t);return e.map(function(e){var t=r.convertChild(e);if(n){if(t&&t.expression&&i.default.isExpressionStatement(e)&&i.default.isStringLiteral(e.expression)){var a=t.expression.raw;return t.directive=a.slice(1,-1),t}n=!1}return t}).filter(function(e){return e})}},{key:"convertTypeArgumentsToTypeParameters",value:function(e){var t=this,r=Mr.findNextToken(e,this.ast,this.ast);return{type:Or.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],loc:Mr.getLocFor(e.pos-1,r.end,this.ast),params:e.map(function(e){return t.convertType(e)})}}},{key:"convertTSTypeParametersToTypeParametersDeclaration",value:function(e){var t=this,r=Mr.findNextToken(e,this.ast,this.ast);return{type:Or.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,r.end],loc:Mr.getLocFor(e.pos-1,r.end,this.ast),params:e.map(function(e){return t.convertType(e)})}}},{key:"convertParameters",value:function(e){var t=this;return e&&e.length?e.map(function(e){var r=t.convertChild(e);return e.decorators&&e.decorators.length&&(r.decorators=e.decorators.map(function(e){return t.convertChild(e)})),r}):[]}},{key:"deeplyCopy",value:function(e){var t=this,r="TS".concat(a[e.kind]);if(this.options.errorOnUnknownASTType&&!Or.AST_NODE_TYPES[r])throw new Error('Unknown AST_NODE_TYPE: "'.concat(r,'"'));var n=this.createNode(e,{type:r});return Object.keys(e).filter(function(e){return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)}).forEach(function(r){"type"===r?n.typeAnnotation=e.type?t.convertTypeAnnotation(e.type,e):null:"typeArguments"===r?n.typeParameters=e.typeArguments?t.convertTypeArgumentsToTypeParameters(e.typeArguments):null:"typeParameters"===r?n.typeParameters=e.typeParameters?t.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null:"decorators"===r?e.decorators&&e.decorators.length&&(n.decorators=e.decorators.map(function(e){return t.convertChild(e)})):Array.isArray(e[r])?n[r]=e[r].map(function(e){return t.convertChild(e)}):e[r]&&"object"===f(e[r])&&e[r].kind?n[r]=t.convertChild(e[r]):n[r]=e[r]}),n}},{key:"convertJSXTagName",value:function(e,t){var r;switch(e.kind){case a.PropertyAccessExpression:r=this.createNode(e,{type:Or.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXTagName(e.name,t)});break;case a.ThisKeyword:r=this.createNode(e,{type:Or.AST_NODE_TYPES.JSXIdentifier,name:"this"});break;case a.Identifier:default:r=this.createNode(e,{type:Or.AST_NODE_TYPES.JSXIdentifier,name:e.text})}return this.registerTSNodeInNodeMap(e,r),r}},{key:"applyModifiersToResult",value:function(e,t){var r=this;if(t&&t.length){for(var n={},i=0;ie.range[1]&&(e.range[1]=t[1],e.loc.end=Mr.getLineAndCharacterFor(e.range[1],this.ast))}},{key:"convertNode",value:function(e,t){var r=this;switch(e.kind){case a.SourceFile:return this.createNode(e,{type:Or.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]});case a.Block:return this.createNode(e,{type:Or.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case a.Identifier:return this.createNode(e,{type:Or.AST_NODE_TYPES.Identifier,name:e.text});case a.WithStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ReturnStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case a.LabeledStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case a.ContinueStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case a.BreakStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case a.IfStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case a.SwitchStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map(function(e){return r.convertChild(e)})});case a.CaseClause:case a.DefaultClause:return this.createNode(e,{type:Or.AST_NODE_TYPES.SwitchCase,test:e.kind===a.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map(function(e){return r.convertChild(e)})});case a.ThrowStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case a.TryStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case a.CatchClause:return this.createNode(e,{type:Or.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertChild(e.variableDeclaration.name):null,body:this.convertChild(e.block)});case a.WhileStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.DoStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ForStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ForStatement,init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor),body:this.convertChild(e.statement)});case a.ForInStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case a.ForOfStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement),await:Boolean(e.awaitModifier&&e.awaitModifier.kind===a.AwaitKeyword)});case a.FunctionDeclaration:var n=Mr.hasModifier(a.DeclareKeyword,e),o=this.createNode(e,{type:n||!e.body?Or.AST_NODE_TYPES.TSDeclareFunction:Or.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:Mr.hasModifier(a.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||void 0});return e.type&&(o.returnType=this.convertTypeAnnotation(e.type,e)),n&&(o.declare=!0),e.typeParameters&&(o.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),e.decorators&&(o.decorators=e.decorators.map(function(e){return r.convertChild(e)})),this.fixExports(e,o);case a.VariableDeclaration:var s=this.createNode(e,{type:Or.AST_NODE_TYPES.VariableDeclarator,id:this.convertPattern(e.name),init:this.convertChild(e.initializer)});return e.exclamationToken&&(s.definite=!0),e.type&&(s.id.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(s.id,s.id.typeAnnotation.range)),s;case a.VariableStatement:var c=this.createNode(e,{type:Or.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map(function(e){return r.convertChild(e)}),kind:Mr.getDeclarationKind(e.declarationList)});return e.decorators&&(c.decorators=e.decorators.map(function(e){return r.convertChild(e)})),Mr.hasModifier(a.DeclareKeyword,e)&&(c.declare=!0),this.fixExports(e,c);case a.VariableDeclarationList:return this.createNode(e,{type:Or.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map(function(e){return r.convertChild(e)}),kind:Mr.getDeclarationKind(e)});case a.ExpressionStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case a.ThisKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.ThisExpression});case a.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:Or.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map(function(e){return r.convertPattern(e)})}):this.createNode(e,{type:Or.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map(function(e){return r.convertChild(e)})});case a.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:Or.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map(function(e){return r.convertPattern(e)})}):this.createNode(e,{type:Or.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map(function(e){return r.convertChild(e)})});case a.PropertyAssignment:return this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:Mr.isComputedProperty(e.name),method:!1,shorthand:!1,kind:"init"});case a.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.name),right:this.convertChild(e.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case a.ComputedPropertyName:return this.convertChild(e.expression);case a.PropertyDeclaration:var u=Mr.hasModifier(a.AbstractKeyword,e),l=this.createNode(e,{type:u?Or.AST_NODE_TYPES.TSAbstractClassProperty:Or.AST_NODE_TYPES.ClassProperty,key:this.convertChild(e.name),value:this.convertChild(e.initializer),computed:Mr.isComputedProperty(e.name),static:Mr.hasModifier(a.StaticKeyword,e),readonly:Mr.hasModifier(a.ReadonlyKeyword,e)||void 0});e.type&&(l.typeAnnotation=this.convertTypeAnnotation(e.type,e)),e.decorators&&(l.decorators=e.decorators.map(function(e){return r.convertChild(e)}));var _=Mr.getTSNodeAccessibility(e);return _&&(l.accessibility=_),e.name.kind===a.Identifier&&e.questionToken&&(l.optional=!0),e.exclamationToken&&(l.definite=!0),l.key.type===Or.AST_NODE_TYPES.Literal&&e.questionToken&&(l.optional=!0),l;case a.GetAccessor:case a.SetAccessor:case a.MethodDeclaration:var d,p=this.createNode(e,{type:Or.AST_NODE_TYPES.FunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:Mr.hasModifier(a.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});if(e.type&&(p.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(p,p.typeParameters.range)),t.kind===a.ObjectLiteralExpression)p.params=e.parameters.map(function(e){return r.convertChild(e)}),d=this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:p,computed:Mr.isComputedProperty(e.name),method:e.kind===a.MethodDeclaration,shorthand:!1,kind:"init"});else{p.params=this.convertParameters(e.parameters);var f=Mr.hasModifier(a.AbstractKeyword,e)?Or.AST_NODE_TYPES.TSAbstractMethodDefinition:Or.AST_NODE_TYPES.MethodDefinition;d=this.createNode(e,{type:f,key:this.convertChild(e.name),value:p,computed:Mr.isComputedProperty(e.name),static:Mr.hasModifier(a.StaticKeyword,e),kind:"method"}),e.decorators&&(d.decorators=e.decorators.map(function(e){return r.convertChild(e)}));var m=Mr.getTSNodeAccessibility(e);m&&(d.accessibility=m)}return d.key.type===Or.AST_NODE_TYPES.Identifier&&e.questionToken&&(d.key.optional=!0),e.kind===a.GetAccessor?d.kind="get":e.kind===a.SetAccessor?d.kind="set":d.static||e.name.kind!==a.StringLiteral||"constructor"!==e.name.text||d.type===Or.AST_NODE_TYPES.Property||(d.kind="constructor"),d;case a.Constructor:var g=Mr.getLastModifier(e),y=g&&Mr.findNextToken(g,e,this.ast)||e.getFirstToken(),h=this.createNode(e,{type:Or.AST_NODE_TYPES.FunctionExpression,id:null,params:this.convertParameters(e.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end]});e.typeParameters&&(h.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(h,h.typeParameters.range)),e.type&&(h.returnType=this.convertTypeAnnotation(e.type,e));var v=this.createNode(e,{type:Or.AST_NODE_TYPES.Identifier,name:"constructor",range:[y.getStart(this.ast),y.end]}),b=Mr.hasModifier(a.StaticKeyword,e),D=this.createNode(e,{type:Mr.hasModifier(a.AbstractKeyword,e)?Or.AST_NODE_TYPES.TSAbstractMethodDefinition:Or.AST_NODE_TYPES.MethodDefinition,key:v,value:h,computed:!1,static:b,kind:b?"method":"constructor"}),x=Mr.getTSNodeAccessibility(e);return x&&(D.accessibility=x),D;case a.FunctionExpression:var S=this.createNode(e,{type:Or.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Mr.hasModifier(a.AsyncKeyword,e),expression:!1});return e.type&&(S.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(S.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),S;case a.SuperKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Super});case a.ArrayBindingPattern:return this.createNode(e,{type:Or.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map(function(e){return r.convertPattern(e)})});case a.OmittedExpression:return null;case a.ObjectBindingPattern:return this.createNode(e,{type:Or.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map(function(e){return r.convertPattern(e)})});case a.BindingElement:if(t.kind===a.ArrayBindingPattern){var T=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:T,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:T}):T}var C;return C=e.dotDotDotToken?this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.propertyName||e.name)}):this.createNode(e,{type:Or.AST_NODE_TYPES.Property,key:this.convertChild(e.propertyName||e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===a.ComputedPropertyName),method:!1,shorthand:!e.propertyName,kind:"init"}),e.initializer&&(C.value=this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})),C;case a.ArrowFunction:var E=this.createNode(e,{type:Or.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Mr.hasModifier(a.AsyncKeyword,e),expression:e.body.kind!==a.Block});return e.type&&(E.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(E.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),E;case a.YieldExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case a.AwaitExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case a.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1),cooked:e.text},tail:!0})],expressions:[]});case a.TemplateExpression:var k=this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});return e.templateSpans.forEach(function(e){k.expressions.push(r.convertChild(e.expression)),k.quasis.push(r.convertChild(e.literal))}),k;case a.TaggedTemplateExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case a.TemplateHead:case a.TemplateMiddle:case a.TemplateTail:var N=e.kind===a.TemplateTail;return this.createNode(e,{type:Or.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(N?1:2)),cooked:e.text},tail:N});case a.SpreadAssignment:case a.SpreadElement:return this.allowPattern?this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:Or.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case a.Parameter:var A,F;return e.dotDotDotToken?A=F=this.createNode(e,{type:Or.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(A=this.convertChild(e.name),F=this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:A,right:this.convertChild(e.initializer)}),e.modifiers&&(F.range[0]=A.range[0],F.loc=Mr.getLocFor(F.range[0],F.range[1],this.ast))):A=F=this.convertChild(e.name,t),e.type&&(A.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(A,A.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>A.range[1]&&(A.range[1]=e.questionToken.end,A.loc.end=Mr.getLineAndCharacterFor(A.range[1],this.ast)),A.optional=!0),e.modifiers?this.createNode(e,{type:Or.AST_NODE_TYPES.TSParameterProperty,accessibility:Mr.getTSNodeAccessibility(e)||void 0,readonly:Mr.hasModifier(a.ReadonlyKeyword,e)||void 0,static:Mr.hasModifier(a.StaticKeyword,e)||void 0,export:Mr.hasModifier(a.ExportKeyword,e)||void 0,parameter:F}):F;case a.ClassDeclaration:case a.ClassExpression:var P=e.heritageClauses||[],w=e.kind===a.ClassDeclaration?Or.AST_NODE_TYPES.ClassDeclaration:Or.AST_NODE_TYPES.ClassExpression,I=P.find(function(e){return e.token===a.ExtendsKeyword}),O=P.find(function(e){return e.token===a.ImplementsKeyword}),M=this.createNode(e,{type:w,id:this.convertChild(e.name),body:this.createNode(e,{type:Or.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:I&&I.types[0]?this.convertChild(I.types[0].expression):null});if(I){if(I.types.length>1)throw Mr.createError(this.ast,I.types[1].pos,"Classes can only extend a single class.");I.types[0]&&I.types[0].typeArguments&&(M.superTypeParameters=this.convertTypeArgumentsToTypeParameters(I.types[0].typeArguments))}e.typeParameters&&(M.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),O&&(M.implements=O.types.map(function(e){return r.convertChild(e)})),Mr.hasModifier(a.AbstractKeyword,e)&&(M.abstract=!0),Mr.hasModifier(a.DeclareKeyword,e)&&(M.declare=!0),e.decorators&&(M.decorators=e.decorators.map(function(e){return r.convertChild(e)}));var L=e.members.filter(Mr.isESTreeClassMember);return L.length&&(M.body.body=L.map(function(e){return r.convertChild(e)})),this.fixExports(e,M);case a.ModuleBlock:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case a.ImportDeclaration:var R=this.createNode(e,{type:Or.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[]});if(e.importClause&&(e.importClause.name&&R.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case a.NamespaceImport:R.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case a.NamedImports:R.specifiers=R.specifiers.concat(e.importClause.namedBindings.elements.map(function(e){return r.convertChild(e)}))}return R;case a.NamespaceImport:return this.createNode(e,{type:Or.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case a.ImportSpecifier:return this.createNode(e,{type:Or.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild(e.propertyName||e.name)});case a.ImportClause:return this.createNode(e,{type:Or.AST_NODE_TYPES.ImportDefaultSpecifier,local:this.convertChild(e.name),range:[e.getStart(this.ast),e.name.end]});case a.ExportDeclaration:return e.exportClause?this.createNode(e,{type:Or.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map(function(e){return r.convertChild(e)}),declaration:null}):this.createNode(e,{type:Or.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier)});case a.ExportSpecifier:return this.createNode(e,{type:Or.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(e.propertyName||e.name),exported:this.convertChild(e.name)});case a.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:Or.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:Or.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression)});case a.PrefixUnaryExpression:case a.PostfixUnaryExpression:var B=Mr.getTextForTokenKind(e.operator)||"";return/^(?:\+\+|--)$/.test(B)?this.createNode(e,{type:Or.AST_NODE_TYPES.UpdateExpression,operator:B,prefix:e.kind===a.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:B,prefix:e.kind===a.PrefixUnaryExpression,argument:this.convertChild(e.operand)});case a.DeleteExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case a.VoidExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case a.TypeOfExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case a.TypeOperator:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeOperator,operator:Mr.getTextForTokenKind(e.operator),typeAnnotation:this.convertChild(e.type)});case a.BinaryExpression:if(Mr.isComma(e.operatorToken)){var j=this.createNode(e,{type:Or.AST_NODE_TYPES.SequenceExpression,expressions:[]}),J=this.convertChild(e.left);return J.type===Or.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==a.ParenthesizedExpression?j.expressions=j.expressions.concat(J.expressions):j.expressions.push(J),j.expressions.push(this.convertChild(e.right)),j}var z=Mr.getBinaryExpressionType(e.operatorToken);return this.allowPattern&&z===Or.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:Or.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:z,operator:Mr.getTextForTokenKind(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,z===Or.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)});case a.PropertyAccessExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.MemberExpression,object:this.convertChild(e.expression),property:this.convertChild(e.name),computed:!1});case a.ElementAccessExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.MemberExpression,object:this.convertChild(e.expression),property:this.convertChild(e.argumentExpression),computed:!0});case a.ConditionalExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case a.CallExpression:var K=this.createNode(e,{type:Or.AST_NODE_TYPES.CallExpression,callee:this.convertChild(e.expression),arguments:e.arguments.map(function(e){return r.convertChild(e)})});return e.typeArguments&&(K.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),K;case a.NewExpression:var U=this.createNode(e,{type:Or.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map(function(e){return r.convertChild(e)}):[]});return e.typeArguments&&(U.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),U;case a.MetaProperty:return this.createNode(e,{type:Or.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:Or.AST_NODE_TYPES.Identifier,name:Mr.getTextForTokenKind(e.keywordToken)}),property:this.convertChild(e.name)});case a.Decorator:return this.createNode(e,{type:Or.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case a.StringLiteral:var V=this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,raw:"",value:""});return V.raw=this.ast.text.slice(V.range[0],V.range[1]),t.name&&t.name===e?V.value=e.text:V.value=Mr.unescapeStringLiteralText(e.text),V;case a.NumericLiteral:return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case a.BigIntLiteral:var q=this.createNode(e,{type:Or.AST_NODE_TYPES.BigIntLiteral,raw:"",value:""});return q.raw=this.ast.text.slice(q.range[0],q.range[1]),q.value=q.raw.slice(0,-1),q;case a.RegularExpressionLiteral:var W=e.text.slice(1,e.text.lastIndexOf("/")),H=e.text.slice(e.text.lastIndexOf("/")+1),G=null;try{G=new RegExp(W,H)}catch(e){G=null}return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:G,raw:e.text,regex:{pattern:W,flags:H}});case a.TrueKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case a.FalseKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case a.NullKeyword:return this.inTypeMode?this.createNode(e,{type:Or.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:null,raw:"null"});case a.ImportKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.Import});case a.EmptyStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.EmptyStatement});case a.DebuggerStatement:return this.createNode(e,{type:Or.AST_NODE_TYPES.DebuggerStatement});case a.JsxElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map(function(e){return r.convertChild(e)})});case a.JsxFragment:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map(function(e){return r.convertChild(e)})});case a.JsxSelfClosingElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:Or.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,selfClosing:!0,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map(function(e){return r.convertChild(e)}),range:Mr.getRange(e,this.ast)}),closingElement:null,children:[]});case a.JsxOpeningElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0,selfClosing:!1,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map(function(e){return r.convertChild(e)})});case a.JsxClosingElement:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case a.JsxOpeningFragment:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXOpeningFragment});case a.JsxClosingFragment:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXClosingFragment});case a.JsxExpression:var Y=e.expression?this.convertChild(e.expression):this.createNode(e,{type:Or.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:Or.AST_NODE_TYPES.JSXSpreadChild,expression:Y}):this.createNode(e,{type:Or.AST_NODE_TYPES.JSXExpressionContainer,expression:Y});case a.JsxAttribute:var X=this.convertChild(e.name);return X.type=Or.AST_NODE_TYPES.JSXIdentifier,this.createNode(e,{type:Or.AST_NODE_TYPES.JSXAttribute,name:X,value:this.convertChild(e.initializer)});case a.JsxText:var Q=e.getFullStart(),$=e.getEnd();return this.options.useJSXTextNode?this.createNode(e,{type:Or.AST_NODE_TYPES.JSXText,value:this.ast.text.slice(Q,$),raw:this.ast.text.slice(Q,$),range:[Q,$]}):this.createNode(e,{type:Or.AST_NODE_TYPES.Literal,value:this.ast.text.slice(Q,$),raw:this.ast.text.slice(Q,$),range:[Q,$]});case a.JsxSpreadAttribute:return this.createNode(e,{type:Or.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case a.QualifiedName:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case a.TypeReference:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):void 0});case a.TypeParameter:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(e.name),constraint:e.constraint?this.convertType(e.constraint):void 0,default:e.default?this.convertType(e.default):void 0});case a.ThisType:case a.AnyKeyword:case a.BigIntKeyword:case a.BooleanKeyword:case a.NeverKeyword:case a.NumberKeyword:case a.ObjectKeyword:case a.StringKeyword:case a.SymbolKeyword:case a.UnknownKeyword:case a.VoidKeyword:case a.UndefinedKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES["TS".concat(a[e.kind])]});case a.NonNullExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});case a.TypeLiteral:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map(function(e){return r.convertChild(e)})});case a.ArrayType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case a.IndexedAccessType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case a.ConditionalType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(e.checkType),extendsType:this.convertType(e.extendsType),trueType:this.convertType(e.trueType),falseType:this.convertType(e.falseType)});case a.TypeQuery:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case a.MappedType:var Z=this.createNode(e,{type:Or.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter)});return e.readonlyToken&&(e.readonlyToken.kind===a.ReadonlyKeyword?Z.readonly=!0:Z.readonly=Mr.getTextForTokenKind(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===a.QuestionToken?Z.optional=!0:Z.optional=Mr.getTextForTokenKind(e.questionToken.kind)),e.type&&(Z.typeAnnotation=this.convertType(e.type)),Z;case a.ParenthesizedExpression:return this.convertChild(e.expression,t);case a.TypeAliasDeclaration:var ee=this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return Mr.hasModifier(a.DeclareKeyword,e)&&(ee.declare=!0),e.typeParameters&&(ee.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,ee);case a.MethodSignature:var te=this.createNode(e,{type:Or.AST_NODE_TYPES.TSMethodSignature,computed:Mr.isComputedProperty(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters)});Mr.isOptional(e)&&(te.optional=!0),e.type&&(te.returnType=this.convertTypeAnnotation(e.type,e)),Mr.hasModifier(a.ReadonlyKeyword,e)&&(te.readonly=!0),e.typeParameters&&(te.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));var re=Mr.getTSNodeAccessibility(e);return re&&(te.accessibility=re),Mr.hasModifier(a.ExportKeyword,e)&&(te.export=!0),Mr.hasModifier(a.StaticKeyword,e)&&(te.static=!0),te;case a.PropertySignature:var ne=this.createNode(e,{type:Or.AST_NODE_TYPES.TSPropertySignature,optional:Mr.isOptional(e)||void 0,computed:Mr.isComputedProperty(e.name),key:this.convertChild(e.name),typeAnnotation:e.type?this.convertTypeAnnotation(e.type,e):void 0,initializer:this.convertChild(e.initializer)||void 0,readonly:Mr.hasModifier(a.ReadonlyKeyword,e)||void 0,static:Mr.hasModifier(a.StaticKeyword,e)||void 0,export:Mr.hasModifier(a.ExportKeyword,e)||void 0}),ie=Mr.getTSNodeAccessibility(e);return ie&&(ne.accessibility=ie),ne;case a.IndexSignature:var ae=this.createNode(e,{type:Or.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map(function(e){return r.convertChild(e)})});e.type&&(ae.typeAnnotation=this.convertTypeAnnotation(e.type,e)),Mr.hasModifier(a.ReadonlyKeyword,e)&&(ae.readonly=!0);var oe=Mr.getTSNodeAccessibility(e);return oe&&(ae.accessibility=oe),Mr.hasModifier(a.ExportKeyword,e)&&(ae.export=!0),Mr.hasModifier(a.StaticKeyword,e)&&(ae.static=!0),ae;case a.ConstructorType:case a.FunctionType:case a.ConstructSignature:case a.CallSignature:var se;switch(e.kind){case a.ConstructSignature:se=Or.AST_NODE_TYPES.TSConstructSignatureDeclaration;break;case a.CallSignature:se=Or.AST_NODE_TYPES.TSCallSignatureDeclaration;break;case a.FunctionType:se=Or.AST_NODE_TYPES.TSFunctionType;break;case a.ConstructorType:default:se=Or.AST_NODE_TYPES.TSConstructorType}var ce=this.createNode(e,{type:se,params:this.convertParameters(e.parameters)});return e.type&&(ce.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(ce.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),ce;case a.ExpressionWithTypeArguments:var ue=this.createNode(e,{type:t&&t.kind===a.InterfaceDeclaration?Or.AST_NODE_TYPES.TSInterfaceHeritage:Or.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(e.expression)});return e.typeArguments&&(ue.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments)),ue;case a.InterfaceDeclaration:var le=e.heritageClauses||[],_e=this.createNode(e,{type:Or.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:Or.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map(function(e){return r.convertChild(e)}),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters&&(_e.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),le.length>0){var de=[],pe=[],fe=!0,me=!1,ge=void 0;try{for(var ye,he=le[Symbol.iterator]();!(fe=(ye=he.next()).done);fe=!0){var ve=ye.value;if(ve.token===a.ExtendsKeyword){var be=!0,De=!1,xe=void 0;try{for(var Se,Te=ve.types[Symbol.iterator]();!(be=(Se=Te.next()).done);be=!0){var Ce=Se.value;de.push(this.convertChild(Ce,e))}}catch(e){De=!0,xe=e}finally{try{be||null==Te.return||Te.return()}finally{if(De)throw xe}}}else if(ve.token===a.ImplementsKeyword){var Ee=!0,ke=!1,Ne=void 0;try{for(var Ae,Fe=ve.types[Symbol.iterator]();!(Ee=(Ae=Fe.next()).done);Ee=!0){var Pe=Ae.value;pe.push(this.convertChild(Pe,e))}}catch(e){ke=!0,Ne=e}finally{try{Ee||null==Fe.return||Fe.return()}finally{if(ke)throw Ne}}}}}catch(e){me=!0,ge=e}finally{try{fe||null==he.return||he.return()}finally{if(me)throw ge}}de.length&&(_e.extends=de),pe.length&&(_e.implements=pe)}return e.decorators&&(_e.decorators=e.decorators.map(function(e){return r.convertChild(e)})),Mr.hasModifier(a.AbstractKeyword,e)&&(_e.abstract=!0),Mr.hasModifier(a.DeclareKeyword,e)&&(_e.declare=!0),this.fixExports(e,_e);case a.TypePredicate:var we=this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypePredicate,parameterName:this.convertChild(e.parameterName),typeAnnotation:this.convertTypeAnnotation(e.type,e)});return we.typeAnnotation.loc=we.typeAnnotation.typeAnnotation.loc,we.typeAnnotation.range=we.typeAnnotation.typeAnnotation.range,we;case a.ImportType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments):null});case a.EnumDeclaration:var Ie=this.createNode(e,{type:Or.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map(function(e){return r.convertChild(e)})});return this.applyModifiersToResult(Ie,e.modifiers),e.decorators&&(Ie.decorators=e.decorators.map(function(e){return r.convertChild(e)})),this.fixExports(e,Ie);case a.EnumMember:var Oe=this.createNode(e,{type:Or.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});return e.initializer&&(Oe.initializer=this.convertChild(e.initializer)),Oe;case a.ModuleDeclaration:var Me=this.createNode(e,{type:Or.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(e.name)});return e.body&&(Me.body=this.convertChild(e.body)),this.applyModifiersToResult(Me,e.modifiers),e.flags&i.default.NodeFlags.GlobalAugmentation&&(Me.global=!0),this.fixExports(e,Me);case a.OptionalType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case a.ParenthesizedType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSParenthesizedType,typeAnnotation:this.convertType(e.type)});case a.TupleType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTupleType,elementTypes:e.elementTypes.map(function(e){return r.convertType(e)})});case a.UnionType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSUnionType,types:e.types.map(function(e){return r.convertType(e)})});case a.IntersectionType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSIntersectionType,types:e.types.map(function(e){return r.convertType(e)})});case a.RestType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});case a.AsExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case a.InferType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case a.LiteralType:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case a.TypeAssertionExpression:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case a.ImportEqualsDeclaration:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),isExport:Mr.hasModifier(a.ExportKeyword,e)});case a.ExternalModuleReference:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case a.NamespaceExportDeclaration:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case a.AbstractKeyword:return this.createNode(e,{type:Or.AST_NODE_TYPES.TSAbstractKeyword});default:return this.deeplyCopy(e)}}}])&&m(t.prototype,r),n&&m(t,n),e}();t.Converter=o});i(Lr);var Rr=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(fr);function a(e,t,r){var n=e.getToken()===i.default.SyntaxKind.MultiLineCommentTrivia,a={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},o=r.substring(a.pos,a.end),s=n?o.replace(/^\/\*/,"").replace(/\*\/$/,""):o.replace(/^\/\//,""),c=Mr.getLocFor(a.pos,a.end,t);return function(e,t,r,n,i,a){var o={type:e?"Block":"Line",value:t};return"number"==typeof r&&(o.range=[r,n]),"object"===f(i)&&(o.loc={start:i,end:a}),o}(n,s,a.pos,a.end,c.start,c.end)}t.convertComments=function(e,t){for(var r=[],n=i.default.createScanner(e.languageVersion,!1,e.languageVariant,t),o=n.scan();o!==i.default.SyntaxKind.EndOfFileToken;){var s=n.getTokenPos(),c=n.getTextPos(),u=null;switch(o){case i.default.SyntaxKind.SingleLineCommentTrivia:case i.default.SyntaxKind.MultiLineCommentTrivia:var l=a(n,e,t);r.push(l);break;case i.default.SyntaxKind.GreaterThanToken:if((u=Mr.getNodeContainer(e,s,c))&&u.parent&&u.parent.kind===i.default.SyntaxKind.JsxOpeningElement&&u.parent.parent&&u.parent.parent.kind===i.default.SyntaxKind.JsxElement){o=n.reScanJsxToken();continue}break;case i.default.SyntaxKind.CloseBraceToken:if((u=Mr.getNodeContainer(e,s,c)).kind===i.default.SyntaxKind.TemplateMiddle||u.kind===i.default.SyntaxKind.TemplateTail){o=n.reScanTemplateToken();continue}break;case i.default.SyntaxKind.SlashToken:case i.default.SyntaxKind.SlashEqualsToken:if((u=Mr.getNodeContainer(e,s,c)).kind===i.default.SyntaxKind.RegularExpressionLiteral){o=n.reScanSlashToken();continue}}o=n.scan()}return r}});i(Rr);var Br=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(e.parseDiagnostics.length)throw Lr.convertError(e.parseDiagnostics[0]);var n=new Lr.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1,shouldProvideParserServices:r}),i=n.convertProgram();return t.tokens&&(i.tokens=Mr.convertTokens(e)),t.comment&&(i.comments=Rr.convertComments(e,t.code)),{estree:i,astMaps:r?n.getASTMaps():void 0}}});i(Br);var jr=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(fr);function a(e){return e.filter(function(e){switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1172:case 1173:case 1175:case 1176:case 1190:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 2364:case 2369:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function o(e){return Object.assign({},e,{message:i.default.flattenDiagnosticMessageText(e.messageText,i.default.sys.newLine)})}t.getFirstSemanticOrSyntacticError=function(e,t){try{var r=a(e.getSyntacticDiagnostics(t));if(r.length)return o(r[0]);var n=a(e.getSemanticDiagnostics(t));return n.length?o(n[0]):void 0}catch(e){return void console.warn('Warning From TSC: "'.concat(e.message))}}});i(jr);var Jr="@typescript-eslint/typescript-estree",zr="A parser that converts TypeScript source code into an ESTree compatible form",Kr="dist/parser.js",Ur="dist/parser.d.ts",Vr=["dist","README.md","LICENSE"],qr={node:">=6.14.0"},Wr="typescript-eslint/typescript-eslint",Hr={url:"https://github.com/typescript-eslint/typescript-eslint/issues"},Gr=["ast","estree","ecmascript","javascript","typescript","parser","syntax"],Yr={prebuild:"npm run clean",build:"tsc -p tsconfig.build.json",clean:"rimraf dist/",test:"jest --coverage","unit-tests":'jest "./tests/lib/.*"',"ast-alignment-tests":"jest spec.ts",typecheck:"tsc --noEmit"},Xr={"lodash.unescape":"4.0.1",semver:"5.5.0"},Qr={typescript:"*"},$r={"@babel/types":"^7.3.2","@typescript-eslint/shared-fixtures":"1.6.0"},Zr="ab3c1a1613a9b0a064d634822d7eff14bd94f5a5",en={name:Jr,version:"1.6.0",description:zr,main:Kr,types:Ur,files:Vr,engines:qr,repository:Wr,bugs:Hr,license:"BSD-2-Clause",keywords:Gr,scripts:Yr,dependencies:Xr,peerDependencies:Qr,devDependencies:$r,gitHead:Zr},tn=Object.freeze({name:Jr,version:"1.6.0",description:zr,main:Kr,types:Ur,files:Vr,engines:qr,repository:Wr,bugs:Hr,license:"BSD-2-Clause",keywords:Gr,scripts:Yr,dependencies:Xr,peerDependencies:Qr,devDependencies:$r,gitHead:Zr,default:en}),rn=tn&&en||tn,nn=a(function(e,t){var n=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(gr),o=n(fr),s=n(Br),c=">=3.2.1 <3.5.0",u=o.default.version,l=a.default.satisfies(u,c),_=!1;function d(e){return e.jsx?"estree.tsx":"estree.ts"}function p(){i={tokens:null,range:!1,loc:!1,comment:!1,comments:[],strict:!1,jsx:!1,useJSXTextNode:!1,log:console.log,projects:[],errorOnUnknownASTType:!1,errorOnTypeScriptSyntacticAndSemanticIssues:!1,code:"",tsconfigRootDir:ve.cwd(),extraFileExtensions:[]}}function f(e,t,r){return r&&function(e,t){return Mr.firstDefined(mr.calculateProjectParserOptions(e,t.filePath||d(t),i),function(e){var r=e.getSourceFile(t.filePath||d(t));return r&&{ast:r,program:e}})}(e,t)||r&&function(e,t){var r=t.filePath||d(t),n=mr.createProgram(e,r,i),a=n&&n.getSourceFile(r);return a&&{ast:a,program:n}}(e,t)||function(e){var t=d(i),r={fileExists:function(){return!0},getCanonicalFileName:function(){return t},getCurrentDirectory:function(){return""},getDirectories:function(){return[]},getDefaultLibFileName:function(){return"lib.d.ts"},getNewLine:function(){return"\n"},getSourceFile:function(t){return o.default.createSourceFile(t,e,o.default.ScriptTarget.Latest,!0)},readFile:function(){},useCaseSensitiveFileNames:function(){return!0},writeFile:function(){return null}},n=o.default.createProgram([t],{noResolve:!0,target:o.default.ScriptTarget.Latest,jsx:i.jsx?o.default.JsxEmit.Preserve:void 0},r);return{ast:n.getSourceFile(t),program:n}}(e)}function m(e){i.range="boolean"==typeof e.range&&e.range,i.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(i.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(i.comment=!0,i.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(i.jsx=!0),"boolean"==typeof e.useJSXTextNode&&e.useJSXTextNode&&(i.useJSXTextNode=!0),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(i.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?i.log=e.loggerFn:!1===e.loggerFn&&(i.log=Function.prototype),"string"==typeof e.project?i.projects=[e.project]:Array.isArray(e.project)&&e.project.every(function(e){return"string"==typeof e})&&(i.projects=e.project),"string"==typeof e.tsconfigRootDir&&(i.tsconfigRootDir=e.tsconfigRootDir),Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every(function(e){return"string"==typeof e})&&(i.extraFileExtensions=e.extraFileExtensions)}function g(){if(!l&&!_){var e=["=============","WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(c),"YOUR TYPESCRIPT VERSION: ".concat(u),"Please only submit bug reports when using the officially supported version.","============="];i.log(e.join("\n\n")),_=!0}}t.version=rn.version,t.parse=function(e,t){if(p(),t&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');"string"==typeof e||e instanceof String||(e=String(e)),i.code=e,void 0!==t&&m(t),g();var r=o.default.createSourceFile(d(i),e,o.default.ScriptTarget.Latest,!0);return s.default(r,i,!1).estree},t.parseAndGenerateServices=function(e,t){p(),"string"==typeof e||e instanceof String||(e=String(e)),i.code=e,void 0!==t&&(m(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(i.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),g();var r=i.projects&&i.projects.length>0,n=f(e,t,r),a=n.ast,o=n.program,c=s.default(a,i,r),u=c.estree,l=c.astMaps;if(o&&i.errorOnTypeScriptSyntacticAndSemanticIssues){var _=jr.getFirstSemanticOrSyntacticError(o,a);if(_)throw Lr.convertError(_)}return{ast:u,services:{program:r?o:void 0,esTreeNodeToTSNodeMap:r&&l?l.esTreeNodeToTSNodeMap:void 0,tsNodeToESTreeNodeMap:r&&l?l.tsNodeToESTreeNodeMap:void 0}}},t.AST_NODE_TYPES=Or.AST_NODE_TYPES,t.AST_TOKEN_TYPES=Or.AST_TOKEN_TYPES,t.TSESTree=Or.TSESTree});i(nn);var an=_;function on(e,t){return nn.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,jsx:t,loggerFn:function(){}})}return{parsers:{typescript:Object.assign({parse:function(r,n,i){var a,o=function(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}(r);try{a=on(r,o)}catch(t){try{a=on(r,!o)}catch(r){var s=t;if(void 0===s.lineNumber)throw s;throw e(s.message,{start:{line:s.lineNumber,column:s.column+1}})}}return delete a.tokens,t(r,a),H(a,Object.assign({},i,{originalText:r}))},astFormat:"estree",hasPragma:an},p)}}}); diff --git a/prettier/vendor/standalone.js b/prettier/vendor/standalone.js index d83fb2656b..ebada0fe2e 100644 --- a/prettier/vendor/standalone.js +++ b/prettier/vendor/standalone.js @@ -1,4 +1,4 @@ -// This file is copied from prettier@1.17.1 +// This file is copied from prettier@1.18.2 /** * Copyright © James Long and contributors * @@ -15,7 +15,7 @@ }(globalThis, (function () { 'use strict'; var name = "prettier"; -var version$1 = "1.17.1"; +var version$1 = "1.18.2"; var description = "Prettier is an opinionated code formatter"; var bin = { "prettier": "./bin/prettier.js" @@ -32,8 +32,8 @@ var dependencies = { "@angular/compiler": "7.2.9", "@babel/code-frame": "7.0.0", "@babel/parser": "7.2.0", - "@glimmer/syntax": "0.30.3", - "@iarna/toml": "2.0.0", + "@glimmer/syntax": "0.38.4", + "@iarna/toml": "2.2.3", "@typescript-eslint/typescript-estree": "1.6.0", "angular-estree-parser": "1.1.5", "angular-html-parser": "1.2.0", @@ -111,7 +111,7 @@ var devDependencies = { "jest-snapshot-serializer-raw": "1.1.0", "jest-watch-typeahead": "0.1.0", "mkdirp": "0.5.1", - "prettier": "1.17.0", + "prettier": "1.18.0", "prettylint": "1.0.0", "rimraf": "2.6.2", "rollup": "0.47.6", @@ -13898,7 +13898,7 @@ function printString(raw, options, isDirectiveLiteral) { // sure that we consistently output the minimum amount of escaped quotes. - return makeString(rawContent, enclosingQuote, !(options.parser === "css" || options.parser === "less" || options.parser === "scss" || options.parentParser === "html" || options.parentParser === "vue" || options.parentParser === "angular" || options.parentParser === "lwc")); + return makeString(rawContent, enclosingQuote, !(options.parser === "css" || options.parser === "less" || options.parser === "scss" || options.embeddedInHtml)); } function makeString(rawContent, enclosingQuote, unescapeUnnecessaryEscapes) { @@ -13954,6 +13954,53 @@ function getMaxContinuousCount(str, target) { }, 0); } +function getMinNotPresentContinuousCount(str, target) { + var matches = str.match(new RegExp("(".concat(escapeStringRegexp(target), ")+"), "g")); + + if (matches === null) { + return 0; + } + + var countPresent = new Map(); + var max = 0; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var match = _step.value; + var count = match.length / target.length; + countPresent.set(count, true); + + if (count > max) { + max = count; + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + for (var i = 1; i < max; i++) { + if (!countPresent.get(i)) { + return i; + } + } + + return max + 1; +} + function getStringWidth$1(text) { if (!text) { return 0; @@ -14044,13 +14091,13 @@ function isWithinParentArrayProperty(path, propertyName) { function replaceEndOfLineWith(text, replacement) { var parts = []; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; try { - for (var _iterator = text.split("\n")[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var part = _step.value; + for (var _iterator2 = text.split("\n")[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var part = _step2.value; if (parts.length !== 0) { parts.push(replacement); @@ -14059,16 +14106,16 @@ function replaceEndOfLineWith(text, replacement) { parts.push(part); } } catch (err) { - _didIteratorError = true; - _iteratorError = err; + _didIteratorError2 = true; + _iteratorError2 = err; } finally { try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); + if (!_iteratorNormalCompletion2 && _iterator2.return != null) { + _iterator2.return(); } } finally { - if (_didIteratorError) { - throw _iteratorError; + if (_didIteratorError2) { + throw _iteratorError2; } } } @@ -14080,6 +14127,7 @@ var util = { replaceEndOfLineWith: replaceEndOfLineWith, getStringWidth: getStringWidth$1, getMaxContinuousCount: getMaxContinuousCount, + getMinNotPresentContinuousCount: getMinNotPresentContinuousCount, getPrecedence: getPrecedence, shouldFlatten: shouldFlatten, isBitwiseOperator: isBitwiseOperator, @@ -14970,6 +15018,7 @@ var docUtils = { willBreak: willBreak, isLineNext: isLineNext, traverseDoc: traverseDoc, + findInDoc: findInDoc, mapDoc: mapDoc$1, propagateBreaks: propagateBreaks, removeLines: removeLines, @@ -15783,6 +15832,7 @@ function printSubtree(path, print, options$$1, printAstToDoc) { function textToDoc(text, partialNextOptions, parentOptions, printAstToDoc) { var nextOptions = normalize$3(Object.assign({}, parentOptions, partialNextOptions, { parentParser: parentOptions.parser, + embeddedInHtml: !!(parentOptions.embeddedInHtml || parentOptions.parser === "html" || parentOptions.parser === "vue" || parentOptions.parser === "angular" || parentOptions.parser === "lwc"), originalText: text }), { passThrough: true @@ -15850,7 +15900,7 @@ function printAstToDoc(ast, options) { var res; - if (printer.willPrintOwnComments && printer.willPrintOwnComments(path)) { + if (printer.willPrintOwnComments && printer.willPrintOwnComments(path, options)) { res = callPluginPrintFunction(path, options, printGenerically, args); } else { // printComments will call the plugin print function and check for @@ -18527,26 +18577,14 @@ function print(path, options, print) { var isGlimmerComponent = tagFirstChar.toUpperCase() === tagFirstChar || isLocal; var hasChildren = n.children.length > 0; var isVoid = isGlimmerComponent && !hasChildren || voidTags.indexOf(n.tag) !== -1; - var closeTag = isVoid ? concat$7([" />", softline$3]) : ">"; + var closeTagForNoBreak = isVoid ? concat$7([" />", softline$3]) : ">"; + var closeTagForBreak = isVoid ? "/>" : ">"; var _getParams = function _getParams(path, print) { return indent$4(concat$7([n.attributes.length ? line$5 : "", join$4(line$5, path.map(print, "attributes")), n.modifiers.length ? line$5 : "", join$4(line$5, path.map(print, "modifiers")), n.comments.length ? line$5 : "", join$4(line$5, path.map(print, "comments"))])); - }; // The problem here is that I want to not break at all if the children - // would not break but I need to force an indent, so I use a hardline. + }; - /** - * What happens now: - *
- * Hello - *
- * ==> - *
Hello
- * This is due to me using hasChildren to decide to put the hardline in. - * I would rather use a {DOES THE WHOLE THING NEED TO BREAK} - */ - - - return concat$7([group$6(concat$7(["<", n.tag, _getParams(path, print), n.blockParams.length ? " as |".concat(n.blockParams.join(" "), "|") : "", ifBreak$3(softline$3, ""), closeTag])), group$6(concat$7([indent$4(join$4(softline$3, [""].concat(path.map(print, "children")))), ifBreak$3(hasChildren ? hardline$6 : "", ""), !isVoid ? concat$7([""]) : ""]))]); + return concat$7([group$6(concat$7(["<", n.tag, _getParams(path, print), n.blockParams.length ? " as |".concat(n.blockParams.join(" "), "|") : "", ifBreak$3(softline$3, ""), ifBreak$3(closeTagForBreak, closeTagForNoBreak)])), group$6(concat$7([indent$4(join$4(softline$3, [""].concat(path.map(print, "children")))), ifBreak$3(hasChildren ? hardline$6 : "", ""), !isVoid ? concat$7([""]) : ""]))]); } case "BlockStatement": @@ -20667,7 +20705,7 @@ function embed$2(path, print, textToDoc, options) { } // lit-html: html`` - if (/^PRETTIER_HTML_PLACEHOLDER_\d+_IN_JS$/.test(options.originalText.slice(node.valueSpan.start.offset, node.valueSpan.end.offset))) { + if (/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(options.originalText.slice(node.valueSpan.start.offset, node.valueSpan.end.offset))) { return concat$8([node.rawName, "=", node.value]); } // lwc: html`` @@ -21765,7 +21803,7 @@ function handleCommentInEmptyParens(text, enclosingNode, comment, options) { // i.e. a function without any argument. - if (enclosingNode && ((enclosingNode.type === "FunctionDeclaration" || enclosingNode.type === "FunctionExpression" || enclosingNode.type === "ArrowFunctionExpression" && (enclosingNode.body.type !== "CallExpression" || enclosingNode.body.arguments.length === 0) || enclosingNode.type === "ClassMethod" || enclosingNode.type === "ObjectMethod") && enclosingNode.params.length === 0 || (enclosingNode.type === "CallExpression" || enclosingNode.type === "NewExpression") && enclosingNode.arguments.length === 0)) { + if (enclosingNode && ((enclosingNode.type === "FunctionDeclaration" || enclosingNode.type === "FunctionExpression" || enclosingNode.type === "ArrowFunctionExpression" || enclosingNode.type === "ClassMethod" || enclosingNode.type === "ObjectMethod") && enclosingNode.params.length === 0 || (enclosingNode.type === "CallExpression" || enclosingNode.type === "NewExpression") && enclosingNode.arguments.length === 0)) { addDanglingComment$2(enclosingNode, comment); return true; } @@ -21995,9 +22033,7 @@ var _require$$1$utils = doc.utils; var mapDoc$5 = _require$$1$utils.mapDoc; var stripTrailingHardline$2 = _require$$1$utils.stripTrailingHardline; -function embed$4(path, print, textToDoc -/*, options */ -) { +function embed$4(path, print, textToDoc, options) { var node = path.getValue(); var parent = path.getParentNode(); var parentParent = path.getParentNode(1); @@ -22103,12 +22139,10 @@ function embed$4(path, print, textToDoc return concat$12(["`", indent$7(concat$12([hardline$9, join$8(hardline$9, parts)])), hardline$9, "`"]); } - if (isHtml(path)) { - return printHtmlTemplateLiteral(path, print, textToDoc, "html"); - } + var htmlParser = isHtml(path) ? "html" : isAngularComponentTemplate(path) ? "angular" : undefined; - if (isAngularComponentTemplate(path)) { - return printHtmlTemplateLiteral(path, print, textToDoc, "angular"); + if (htmlParser) { + return printHtmlTemplateLiteral(path, print, textToDoc, htmlParser, options.embeddedInHtml); } break; @@ -22148,6 +22182,10 @@ function getIndentation(str) { return firstMatchedIndent === null ? "" : firstMatchedIndent[1]; } +function uncook(cookedValue) { + return cookedValue.replace(/([\\`]|\$\{)/g, "\\$1"); +} + function escapeTemplateCharacters(doc$$2, raw) { return mapDoc$5(doc$$2, function (currentDoc) { if (!currentDoc.parts) { @@ -22157,7 +22195,7 @@ function escapeTemplateCharacters(doc$$2, raw) { var parts = []; currentDoc.parts.forEach(function (part) { if (typeof part === "string") { - parts.push(raw ? part.replace(/(\\*)`/g, "$1$1\\`") : part.replace(/([\\`]|\$\{)/g, "\\$1")); + parts.push(raw ? part.replace(/(\\*)`/g, "$1$1\\`") : uncook(part)); } else { parts.push(part); } @@ -22268,8 +22306,11 @@ function printGraphqlComments(lines) { return parts.length === 0 ? null : join$8(hardline$9, parts); } /** - * Template literal in this context: + * Template literal in these contexts: * + * css`` + * css.global`` + * css.resolve`` */ @@ -22279,7 +22320,7 @@ function isStyledJsx(path) { var parentParent = path.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"; - }); + }) || parent && parent.type === "TaggedTemplateExpression" && parent.tag.type === "Identifier" && parent.tag.name === "css" || parent && parent.type === "TaggedTemplateExpression" && parent.tag.type === "MemberExpression" && parent.tag.object.name === "css" && (parent.tag.property.name === "global" || parent.tag.property.name === "resolve"); } /** * Angular Components can have: @@ -22347,9 +22388,9 @@ function isStyledComponents(path) { case "CallExpression": return (// styled(Component)`` - isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.attr({})`` - isStyledIdentifier(tag.callee.object.object) || // Component.extend.attr({)`` - isStyledExtend(tag.callee.object)) || // styled(Component).attr({})`` + isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.attrs({})`` + isStyledIdentifier(tag.callee.object.object) || // Component.extend.attrs({})`` + isStyledExtend(tag.callee.object)) || // styled(Component).attrs({})`` tag.callee.object.type === "CallExpression" && isStyledIdentifier(tag.callee.object.callee)) ); @@ -22467,16 +22508,22 @@ function isHtml(path) { }, function (node, name) { return node.type === "TaggedTemplateExpression" && node.tag.type === "Identifier" && node.tag.name === "html" && name === "quasi"; }]); -} +} // The counter is needed to distinguish nested embeds. -function printHtmlTemplateLiteral(path, print, textToDoc, parser) { + +var htmlTemplateLiteralCounter = 0; + +function printHtmlTemplateLiteral(path, print, textToDoc, parser, escapeClosingScriptTag) { var node = path.getValue(); - var placeholderPattern = "PRETTIER_HTML_PLACEHOLDER_(\\d+)_IN_JS"; - var placeholders = node.expressions.map(function (_, i) { - return "PRETTIER_HTML_PLACEHOLDER_".concat(i, "_IN_JS"); - }); + var counter = htmlTemplateLiteralCounter; + htmlTemplateLiteralCounter = htmlTemplateLiteralCounter + 1 >>> 0; + + var composePlaceholder = function composePlaceholder(index) { + return "PRETTIER_HTML_PLACEHOLDER_".concat(index, "_").concat(counter, "_IN_JS"); + }; + var text = node.quasis.map(function (quasi, index, quasis) { - return index === quasis.length - 1 ? quasi.value.raw : quasi.value.raw + placeholders[index]; + return index === quasis.length - 1 ? quasi.value.cooked : quasi.value.cooked + composePlaceholder(index); }).join(""); var expressionDocs = path.map(print, "expressions"); @@ -22484,13 +22531,11 @@ function printHtmlTemplateLiteral(path, print, textToDoc, parser) { return "``"; } + var placeholderRegex = RegExp(composePlaceholder("(\\d+)"), "g"); var contentDoc = mapDoc$5(stripTrailingHardline$2(textToDoc(text, { parser: parser })), function (doc$$2) { - var placeholderRegex = new RegExp(placeholderPattern, "g"); - var hasPlaceholder = typeof doc$$2 === "string" && placeholderRegex.test(doc$$2); - - if (!hasPlaceholder) { + if (typeof doc$$2 !== "string") { return doc$$2; } @@ -22502,6 +22547,12 @@ function printHtmlTemplateLiteral(path, print, textToDoc, parser) { if (i % 2 === 0) { if (component) { + component = uncook(component); + + if (escapeClosingScriptTag) { + component = component.replace(/<\/(script)\b/gi, "<\\/$1"); + } + parts.push(component); } @@ -22708,12 +22759,65 @@ function hasNode$1(node, fn) { }); } +function hasNakedLeftSide$2(node) { + return node.type === "AssignmentExpression" || node.type === "BinaryExpression" || node.type === "LogicalExpression" || node.type === "NGPipeExpression" || node.type === "ConditionalExpression" || node.type === "CallExpression" || node.type === "OptionalCallExpression" || node.type === "MemberExpression" || node.type === "OptionalMemberExpression" || node.type === "SequenceExpression" || node.type === "TaggedTemplateExpression" || node.type === "BindExpression" || node.type === "UpdateExpression" && !node.prefix || node.type === "TSAsExpression" || node.type === "TSNonNullExpression"; +} + +function getLeftSide$1(node) { + if (node.expressions) { + return node.expressions[0]; + } + + return node.left || node.test || node.callee || node.object || node.tag || node.argument || node.expression; +} + +function getLeftSidePathName$2(path, node) { + if (node.expressions) { + return ["expressions", 0]; + } + + if (node.left) { + return ["left"]; + } + + if (node.test) { + return ["test"]; + } + + if (node.object) { + return ["object"]; + } + + if (node.callee) { + return ["callee"]; + } + + if (node.tag) { + return ["tag"]; + } + + if (node.argument) { + return ["argument"]; + } + + if (node.expression) { + return ["expression"]; + } + + throw new Error("Unexpected node has no left side", node); +} + var utils$8 = { + getLeftSide: getLeftSide$1, + getLeftSidePathName: getLeftSidePathName$2, + hasNakedLeftSide: hasNakedLeftSide$2, hasNode: hasNode$1, hasFlowShorthandAnnotationComment: hasFlowShorthandAnnotationComment$2, hasFlowAnnotationComment: hasFlowAnnotationComment$1 }; +var getLeftSidePathName$1 = utils$8.getLeftSidePathName; +var hasNakedLeftSide$1 = utils$8.hasNakedLeftSide; var hasFlowShorthandAnnotationComment$1 = utils$8.hasFlowShorthandAnnotationComment; function hasClosureCompilerTypeCastComment(text, path) { @@ -22745,7 +22849,7 @@ function hasClosureCompilerTypeCastComment(text, path) { return line.replace(/^[\s*]+/, ""); }).join(" ").trim(); - if (!/^@type\s+\{[^]+\}$/.test(cleaned)) { + if (!/^@type\s*\{[^]+\}$/.test(cleaned)) { return false; } @@ -22837,6 +22941,15 @@ function needsParens(path, options) { if (node.type === "Identifier") { + // ...unless those identifiers are embed placeholders. They might be substituted by complex + // expressions, so the parens around them should not be dropped. Example (JS-in-HTML-in-JS): + // let tpl = html``; + // If the inner JS formatter removes the parens, the expression might change its meaning: + // f((a + b) / 2) vs f(a + b / 2) + if (node.extra && node.extra.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(node.name)) { + return true; + } + return false; } @@ -22848,6 +22961,13 @@ function needsParens(path, options) { if ((parent.type === "ClassDeclaration" || parent.type === "ClassExpression") && parent.superClass === node && (node.type === "ArrowFunctionExpression" || node.type === "AssignmentExpression" || node.type === "AwaitExpression" || node.type === "BinaryExpression" || node.type === "ConditionalExpression" || node.type === "LogicalExpression" || node.type === "NewExpression" || node.type === "ObjectExpression" || node.type === "ParenthesizedExpression" || node.type === "SequenceExpression" || node.type === "TaggedTemplateExpression" || node.type === "UnaryExpression" || node.type === "UpdateExpression" || node.type === "YieldExpression")) { return true; + } // `export default function` or `export default class` can't be followed by + // anything after. So an expression like `export default (function(){}).toString()` + // needs to be followed by a parentheses + + + if (parent.type === "ExportDefaultDeclaration") { + return shouldWrapFunctionForExportDefault(path, options); } if (parent.type === "Decorator" && parent.expression === node) { @@ -22899,9 +23019,11 @@ function needsParens(path, options) { case "CallExpression": { var firstParentNotMemberExpression = parent; - var i = 0; + var i = 0; // tagged templates are basically member expressions from a grammar perspective + // see https://tc39.github.io/ecma262/#prod-MemberExpression + // so are typescript's non-null assertions, though there's no grammar to point to - while (firstParentNotMemberExpression && firstParentNotMemberExpression.type === "MemberExpression") { + while (firstParentNotMemberExpression && (firstParentNotMemberExpression.type === "MemberExpression" && firstParentNotMemberExpression.object === path.getParentNode(i - 1) || firstParentNotMemberExpression.type === "TaggedTemplateExpression" || firstParentNotMemberExpression.type === "TSNonNullExpression")) { firstParentNotMemberExpression = path.getParentNode(++i); } @@ -23005,6 +23127,7 @@ function needsParens(path, options) { case "TSTypeAssertion": case "TaggedTemplateExpression": case "UnaryExpression": + case "JSXSpreadAttribute": case "SpreadElement": case "SpreadProperty": case "BindExpression": @@ -23084,7 +23207,7 @@ function needsParens(path, options) { } // Delegate to inner TSParenthesizedType - if (node.typeAnnotation.type === "TSParenthesizedType") { + if (node.typeAnnotation.type === "TSParenthesizedType" && parent.type !== "TSArrayType") { return false; } @@ -23258,9 +23381,6 @@ function needsParens(path, options) { return true; // This is basically a kind of IIFE. - case "ExportDefaultDeclaration": - return true; - default: return false; } @@ -23295,9 +23415,6 @@ function needsParens(path, options) { case "ClassExpression": switch (parent.type) { - case "ExportDefaultDeclaration": - return true; - case "NewExpression": return name === "callee" && parent.callee === node; @@ -23328,7 +23445,7 @@ function needsParens(path, options) { return false; case "BindExpression": - if (parent.type === "BindExpression" && name === "callee" && parent.callee === node || parent.type === "MemberExpression") { + if (parent.type === "BindExpression" && name === "callee" && parent.callee === node || parent.type === "MemberExpression" && name === "object" && parent.object === node || parent.type === "NewExpression" && name === "callee" && parent.callee === node) { return true; } @@ -23410,6 +23527,26 @@ function isFollowedByRightBracket(path) { return false; } +function shouldWrapFunctionForExportDefault(path, options) { + var node = path.getValue(); + var parent = path.getParentNode(); + + if (node.type === "FunctionExpression" || node.type === "ClassExpression") { + return parent.type === "ExportDefaultDeclaration" || // in some cases the function is already wrapped + // (e.g. `export default (function() {})();`) + // in this case we don't need to add extra parens + !needsParens(path, options); + } + + if (!hasNakedLeftSide$1(node) || parent.type !== "ExportDefaultDeclaration" && needsParens(path, options)) { + return false; + } + + return path.call.apply(path, [function (childPath) { + return shouldWrapFunctionForExportDefault(childPath, options); + }].concat(getLeftSidePathName$1(path, node))); +} + var needsParens_1 = needsParens; var _require$$0$builders$6 = doc.builders; @@ -23515,6 +23652,9 @@ var isIdentifierName = utils$2.keyword.isIdentifierNameES5; var insertPragma$7 = pragma$2.insertPragma; var printHtmlBinding = htmlBinding.printHtmlBinding; var isVueEventBindingExpression$2 = htmlBinding.isVueEventBindingExpression; +var getLeftSide = utils$8.getLeftSide; +var getLeftSidePathName = utils$8.getLeftSidePathName; +var hasNakedLeftSide = utils$8.hasNakedLeftSide; var hasNode = utils$8.hasNode; var hasFlowAnnotationComment = utils$8.hasFlowAnnotationComment; var hasFlowShorthandAnnotationComment = utils$8.hasFlowShorthandAnnotationComment; @@ -25089,87 +25229,25 @@ function printPathNoParens(path, options, print, args) { var expressions = path.map(print, "expressions"); var _parentNode = path.getParentNode(); - /** - * describe.each`table`(name, fn) - * describe.only.each`table`(name, fn) - * describe.skip.each`table`(name, fn) - * test.each`table`(name, fn) - * test.only.each`table`(name, fn) - * test.skip.each`table`(name, fn) - * - * Ref: https://github.com/facebook/jest/pull/6102 - */ + if (isJestEachTemplateLiteral(n, _parentNode)) { + var _printed2 = printJestEachTemplateLiteral(n, expressions, options); - var jestEachTriggerRegex = /^[xf]?(describe|it|test)$/; - - if (_parentNode.type === "TaggedTemplateExpression" && _parentNode.quasi === n && _parentNode.tag.type === "MemberExpression" && _parentNode.tag.property.type === "Identifier" && _parentNode.tag.property.name === "each" && (_parentNode.tag.object.type === "Identifier" && jestEachTriggerRegex.test(_parentNode.tag.object.name) || _parentNode.tag.object.type === "MemberExpression" && _parentNode.tag.object.property.type === "Identifier" && (_parentNode.tag.object.property.name === "only" || _parentNode.tag.object.property.name === "skip") && _parentNode.tag.object.object.type === "Identifier" && jestEachTriggerRegex.test(_parentNode.tag.object.object.name))) { - /** - * a | b | expected - * ${1} | ${1} | ${2} - * ${1} | ${2} | ${3} - * ${2} | ${1} | ${3} - */ - var headerNames = n.quasis[0].value.raw.trim().split(/\s*\|\s*/); - - if (headerNames.length > 1 || headerNames.some(function (headerName) { - return headerName.length !== 0; - })) { - var stringifiedExpressions = expressions.map(function (doc$$2) { - return "${" + printDocToString$1(doc$$2, Object.assign({}, options, { - printWidth: Infinity, - endOfLine: "lf" - })).formatted + "}"; - }); - var tableBody = [{ - hasLineBreak: false, - cells: [] - }]; - - for (var _i = 1; _i < n.quasis.length; _i++) { - var row = tableBody[tableBody.length - 1]; - var correspondingExpression = stringifiedExpressions[_i - 1]; - row.cells.push(correspondingExpression); - - if (correspondingExpression.indexOf("\n") !== -1) { - row.hasLineBreak = true; - } - - if (n.quasis[_i].value.raw.indexOf("\n") !== -1) { - tableBody.push({ - hasLineBreak: false, - cells: [] - }); - } - } - - var maxColumnCount = tableBody.reduce(function (maxColumnCount, row) { - return Math.max(maxColumnCount, row.cells.length); - }, headerNames.length); - var maxColumnWidths = Array.from(new Array(maxColumnCount), function () { - return 0; - }); - var table = [{ - cells: headerNames - }].concat(tableBody.filter(function (row) { - return row.cells.length !== 0; - })); - table.filter(function (row) { - return !row.hasLineBreak; - }).forEach(function (row) { - row.cells.forEach(function (cell, index) { - maxColumnWidths[index] = Math.max(maxColumnWidths[index], getStringWidth$2(cell)); - }); - }); - parts.push("`", indent$6(concat$11([hardline$8, join$7(hardline$8, table.map(function (row) { - return join$7(" | ", row.cells.map(function (cell, index) { - return row.hasLineBreak ? cell : cell + " ".repeat(maxColumnWidths[index] - getStringWidth$2(cell)); - })); - }))])), hardline$8, "`"); - return concat$11(parts); + if (_printed2) { + return _printed2; } } + var isSimple = isSimpleTemplateLiteral(n); + + if (isSimple) { + expressions = expressions.map(function (doc$$2) { + return printDocToString$1(doc$$2, Object.assign({}, options, { + printWidth: Infinity + })).formatted; + }); + } + parts.push("`"); path.each(function (childPath) { var i = childPath.getName(); @@ -25190,13 +25268,17 @@ function printPathNoParens(path, options, print, args) { var tabWidth = options.tabWidth; var quasi = childPath.getValue(); var indentSize = getIndentSize$1(quasi.value.raw, tabWidth); - var _printed2 = expressions[i]; + var _printed3 = expressions[i]; - if (n.expressions[i].comments && n.expressions[i].comments.length || n.expressions[i].type === "MemberExpression" || n.expressions[i].type === "OptionalMemberExpression" || n.expressions[i].type === "ConditionalExpression") { - _printed2 = concat$11([indent$6(concat$11([softline$5, _printed2])), softline$5]); + if (!isSimple) { + // Breaks at the template element boundaries (${ and }) are preferred to breaking + // in the middle of a MemberExpression + if (n.expressions[i].comments && n.expressions[i].comments.length || n.expressions[i].type === "MemberExpression" || n.expressions[i].type === "OptionalMemberExpression" || n.expressions[i].type === "ConditionalExpression") { + _printed3 = concat$11([indent$6(concat$11([softline$5, _printed3])), softline$5]); + } } - var aligned = indentSize === 0 && quasi.value.raw.endsWith("\n") ? align$1(-Infinity, _printed2) : addAlignmentToDoc$2(_printed2, indentSize, tabWidth); + var aligned = indentSize === 0 && quasi.value.raw.endsWith("\n") ? align$1(-Infinity, _printed3) : addAlignmentToDoc$2(_printed3, indentSize, tabWidth); parts.push(group$10(concat$11(["${", aligned, lineSuffixBoundary$1, "}"]))); } }, "quasis"); @@ -25243,8 +25325,7 @@ function printPathNoParens(path, options, print, args) { case "TupleTypeAnnotation": { var typesField = n.type === "TSTupleType" ? "elementTypes" : "types"; - return group$10(concat$11(["[", indent$6(concat$11([softline$5, printArrayItems(path, options, typesField, print)])), // TypeScript doesn't support trailing commas in tuple types - n.type === "TSTupleType" ? "" : ifBreak$6(shouldPrintComma$1(options) ? "," : ""), comments.printDanglingComments(path, options, + return group$10(concat$11(["[", indent$6(concat$11([softline$5, printArrayItems(path, options, typesField, print)])), ifBreak$6(shouldPrintComma$1(options, "all") ? "," : ""), comments.printDanglingComments(path, options, /* sameIndent */ true), softline$5, "]"])); } @@ -25412,22 +25493,22 @@ function printPathNoParens(path, options, print, args) { var result = []; var wasIndented = false; - for (var _i2 = 0; _i2 < types.length; ++_i2) { - if (_i2 === 0) { - result.push(types[_i2]); - } else if (isObjectType(n.types[_i2 - 1]) && isObjectType(n.types[_i2])) { + for (var _i = 0; _i < types.length; ++_i) { + if (_i === 0) { + result.push(types[_i]); + } else if (isObjectType(n.types[_i - 1]) && isObjectType(n.types[_i])) { // If both are objects, don't indent - result.push(concat$11([" & ", wasIndented ? indent$6(types[_i2]) : types[_i2]])); - } else if (!isObjectType(n.types[_i2 - 1]) && !isObjectType(n.types[_i2])) { + result.push(concat$11([" & ", wasIndented ? indent$6(types[_i]) : types[_i]])); + } else if (!isObjectType(n.types[_i - 1]) && !isObjectType(n.types[_i])) { // If no object is involved, go to the next line if it breaks - result.push(indent$6(concat$11([" &", line$8, types[_i2]]))); + result.push(indent$6(concat$11([" &", line$8, types[_i]]))); } else { // If you go from object to non-object or vis-versa, then inline it - if (_i2 > 1) { + if (_i > 1) { wasIndented = true; } - result.push(" & ", _i2 > 1 ? indent$6(types[_i2]) : types[_i2]); + result.push(" & ", _i > 1 ? indent$6(types[_i]) : types[_i]); } } @@ -25456,7 +25537,7 @@ function printPathNoParens(path, options, print, args) { // // comment // | child2 - var _printed3 = path.map(function (typePath) { + var _printed4 = path.map(function (typePath) { var printedType = typePath.call(print); if (!shouldHug) { @@ -25469,11 +25550,11 @@ function printPathNoParens(path, options, print, args) { }, "types"); if (shouldHug) { - return join$7(" | ", _printed3); + return join$7(" | ", _printed4); } var shouldAddStartLine = shouldIndent && !hasLeadingOwnLineComment(options.originalText, n, options); - var code = concat$11([ifBreak$6(concat$11([shouldAddStartLine ? line$8 : "", "| "])), join$7(concat$11([line$8, "| "]), _printed3)]); + var code = concat$11([ifBreak$6(concat$11([shouldAddStartLine ? line$8 : "", "| "])), join$7(concat$11([line$8, "| "]), _printed4)]); var hasParens; if (n.type === "TSUnionType") { @@ -25559,9 +25640,9 @@ function printPathNoParens(path, options, print, args) { parts.push("declare "); } - var _printed4 = printAssignmentRight(n.id, n.right, path.call(print, "right"), options); + var _printed5 = printAssignmentRight(n.id, n.right, path.call(print, "right"), options); - parts.push("type ", path.call(print, "id"), path.call(print, "typeParameters"), " =", _printed4, semi); + parts.push("type ", path.call(print, "id"), path.call(print, "typeParameters"), " =", _printed5, semi); return group$10(concat$11(parts)); } @@ -25638,6 +25719,15 @@ function printPathNoParens(path, options, print, args) { if (n["default"]) { parts.push(" = ", path.call(print, "default")); + } // Keep comma if the file extension is .tsx and + // has one type parameter that isn't extend with any types. + // Because, otherwise formatted result will be invalid as tsx. + + + var _grandParent = path.getNode(2); + + if (_parent9.params && _parent9.params.length === 1 && options.filepath && /\.tsx$/i.test(options.filepath) && !n.constraint && _grandParent.type === "ArrowFunctionExpression") { + parts.push(","); } return concat$11(parts); @@ -25852,9 +25942,15 @@ function printPathNoParens(path, options, print, args) { return concat$11([n.operator, " ", path.call(print, "typeAnnotation")]); case "TSMappedType": - return group$10(concat$11(["{", indent$6(concat$11([options.bracketSpacing ? line$8 : softline$5, n.readonly ? concat$11([getTypeScriptMappedTypeModifier(n.readonly, "readonly"), " "]) : "", printTypeScriptModifiers(path, options, print), path.call(print, "typeParameter"), n.optional ? getTypeScriptMappedTypeModifier(n.optional, "?") : "", ": ", path.call(print, "typeAnnotation")])), comments.printDanglingComments(path, options, - /* sameIndent */ - true), options.bracketSpacing ? line$8 : softline$5, "}"])); + { + var _shouldBreak2 = hasNewlineInRange$1(options.originalText, options.locStart(n), options.locEnd(n)); + + return group$10(concat$11(["{", indent$6(concat$11([options.bracketSpacing ? line$8 : softline$5, n.readonly ? concat$11([getTypeScriptMappedTypeModifier(n.readonly, "readonly"), " "]) : "", printTypeScriptModifiers(path, options, print), path.call(print, "typeParameter"), n.optional ? getTypeScriptMappedTypeModifier(n.optional, "?") : "", ": ", path.call(print, "typeAnnotation"), _shouldBreak2 && options.semi ? ";" : ""])), comments.printDanglingComments(path, options, + /* sameIndent */ + true), options.bracketSpacing ? line$8 : softline$5, "}"]), { + shouldBreak: _shouldBreak2 + }); + } case "TSMethodSignature": parts.push(n.accessibility ? concat$11([n.accessibility, " "]) : "", n.export ? "export " : "", n.static ? "static " : "", n.readonly ? "readonly " : "", n.computed ? "[" : "", path.call(print, "key"), n.computed ? "]" : "", printOptionalToken(path), printFunctionParams(path, print, options, @@ -26132,7 +26228,7 @@ function printPropertyKey(path, options, print) { if (options.quoteProps === "consistent" && !needsQuoteProps.has(parent)) { var objectHasStringProp = (parent.properties || parent.body || parent.members).some(function (prop) { - return prop.key && prop.key.type !== "Identifier" && !isStringPropSafeToCoerceToIdentifier(prop, options); + return !prop.computed && prop.key && isStringLiteral(prop.key) && !isStringPropSafeToCoerceToIdentifier(prop, options); }); needsQuoteProps.set(parent, objectHasStringProp); } @@ -26147,7 +26243,7 @@ function printPropertyKey(path, options, print) { }, "key"); } - if (isStringPropSafeToCoerceToIdentifier(node, options) && (options.quoteProps === "as-needed" || options.quoteProps === "consistent" && !needsQuoteProps.get(parent))) { + if (!node.computed && isStringPropSafeToCoerceToIdentifier(node, options) && (options.quoteProps === "as-needed" || options.quoteProps === "consistent" && !needsQuoteProps.get(parent))) { // 'a' -> a return path.call(function (keyPath) { return comments.printComments(keyPath, function () { @@ -26202,7 +26298,18 @@ function printMethod(path, options, print) { } function couldGroupArg(arg) { - return arg.type === "ObjectExpression" && (arg.properties.length > 0 || arg.comments) || arg.type === "ArrayExpression" && (arg.elements.length > 0 || arg.comments) || arg.type === "TSTypeAssertion" || arg.type === "TSAsExpression" || arg.type === "FunctionExpression" || arg.type === "ArrowFunctionExpression" && !arg.returnType && (arg.body.type === "BlockStatement" || arg.body.type === "ArrowFunctionExpression" || arg.body.type === "ObjectExpression" || arg.body.type === "ArrayExpression" || arg.body.type === "CallExpression" || arg.body.type === "OptionalCallExpression" || arg.body.type === "ConditionalExpression" || isJSXNode(arg.body)); + return arg.type === "ObjectExpression" && (arg.properties.length > 0 || arg.comments) || arg.type === "ArrayExpression" && (arg.elements.length > 0 || arg.comments) || arg.type === "TSTypeAssertion" || arg.type === "TSAsExpression" || arg.type === "FunctionExpression" || arg.type === "ArrowFunctionExpression" && ( // we want to avoid breaking inside composite return types but not simple keywords + // https://github.com/prettier/prettier/issues/4070 + // export class Thing implements OtherThing { + // do: (type: Type) => Provider = memoize( + // (type: ObjectType): Provider => {} + // ); + // } + // https://github.com/prettier/prettier/issues/6099 + // app.get("/", (req, res): void => { + // res.send("Hello World!"); + // }); + !arg.returnType || !arg.returnType.typeAnnotation || arg.returnType.typeAnnotation.type !== "TSTypeReference") && (arg.body.type === "BlockStatement" || arg.body.type === "ArrowFunctionExpression" || arg.body.type === "ObjectExpression" || arg.body.type === "ArrayExpression" || arg.body.type === "CallExpression" || arg.body.type === "OptionalCallExpression" || arg.body.type === "ConditionalExpression" || isJSXNode(arg.body)); } function shouldGroupLastArg(args) { @@ -26228,6 +26335,129 @@ function isSimpleFlowType(node) { return node && flowTypeAnnotations.indexOf(node.type) !== -1 && !(node.type === "GenericTypeAnnotation" && node.typeParameters); } +function isJestEachTemplateLiteral(node, parentNode) { + /** + * describe.each`table`(name, fn) + * describe.only.each`table`(name, fn) + * describe.skip.each`table`(name, fn) + * test.each`table`(name, fn) + * test.only.each`table`(name, fn) + * test.skip.each`table`(name, fn) + * + * Ref: https://github.com/facebook/jest/pull/6102 + */ + var jestEachTriggerRegex = /^[xf]?(describe|it|test)$/; + return parentNode.type === "TaggedTemplateExpression" && parentNode.quasi === node && parentNode.tag.type === "MemberExpression" && parentNode.tag.property.type === "Identifier" && parentNode.tag.property.name === "each" && (parentNode.tag.object.type === "Identifier" && jestEachTriggerRegex.test(parentNode.tag.object.name) || parentNode.tag.object.type === "MemberExpression" && parentNode.tag.object.property.type === "Identifier" && (parentNode.tag.object.property.name === "only" || parentNode.tag.object.property.name === "skip") && parentNode.tag.object.object.type === "Identifier" && jestEachTriggerRegex.test(parentNode.tag.object.object.name)); +} + +function printJestEachTemplateLiteral(node, expressions, options) { + /** + * a | b | expected + * ${1} | ${1} | ${2} + * ${1} | ${2} | ${3} + * ${2} | ${1} | ${3} + */ + var headerNames = node.quasis[0].value.raw.trim().split(/\s*\|\s*/); + + if (headerNames.length > 1 || headerNames.some(function (headerName) { + return headerName.length !== 0; + })) { + var parts = []; + var stringifiedExpressions = expressions.map(function (doc$$2) { + return "${" + printDocToString$1(doc$$2, Object.assign({}, options, { + printWidth: Infinity, + endOfLine: "lf" + })).formatted + "}"; + }); + var tableBody = [{ + hasLineBreak: false, + cells: [] + }]; + + for (var i = 1; i < node.quasis.length; i++) { + var row = tableBody[tableBody.length - 1]; + var correspondingExpression = stringifiedExpressions[i - 1]; + row.cells.push(correspondingExpression); + + if (correspondingExpression.indexOf("\n") !== -1) { + row.hasLineBreak = true; + } + + if (node.quasis[i].value.raw.indexOf("\n") !== -1) { + tableBody.push({ + hasLineBreak: false, + cells: [] + }); + } + } + + var maxColumnCount = tableBody.reduce(function (maxColumnCount, row) { + return Math.max(maxColumnCount, row.cells.length); + }, headerNames.length); + var maxColumnWidths = Array.from(new Array(maxColumnCount), function () { + return 0; + }); + var table = [{ + cells: headerNames + }].concat(tableBody.filter(function (row) { + return row.cells.length !== 0; + })); + table.filter(function (row) { + return !row.hasLineBreak; + }).forEach(function (row) { + row.cells.forEach(function (cell, index) { + maxColumnWidths[index] = Math.max(maxColumnWidths[index], getStringWidth$2(cell)); + }); + }); + parts.push("`", indent$6(concat$11([hardline$8, join$7(hardline$8, table.map(function (row) { + return join$7(" | ", row.cells.map(function (cell, index) { + return row.hasLineBreak ? cell : cell + " ".repeat(maxColumnWidths[index] - getStringWidth$2(cell)); + })); + }))])), hardline$8, "`"); + return concat$11(parts); + } +} + + +function isSimpleTemplateLiteral(node) { + if (node.expressions.length === 0) { + return false; + } + + return node.expressions.every(function (expr) { + // Disallow comments since printDocToString can't print them here + if (expr.comments) { + return false; + } // Allow `x` and `this` + + + if (expr.type === "Identifier" || expr.type === "ThisExpression") { + return true; + } // Allow `a.b.c`, `a.b[c]`, and `this.x.y` + + + if ((expr.type === "MemberExpression" || expr.type === "OptionalMemberExpression") && (expr.property.type === "Identifier" || expr.property.type === "Literal")) { + var ancestor = expr; + + while (ancestor.type === "MemberExpression" || ancestor.type === "OptionalMemberExpression") { + ancestor = ancestor.object; + + if (ancestor.comments) { + return false; + } + } + + if (ancestor.type === "Identifier" || ancestor.type === "ThisExpression") { + return true; + } + + return false; + } + + return false; + }); +} + var functionCompositionFunctionNames = new Set(["pipe", // RxJS, Ramda "pipeP", // Ramda "pipeK", // Ramda @@ -27363,11 +27593,10 @@ function printJSXChildren(path, options, print, jsxWhitespace, isFacebookTransla function printJSXElement(path, options, print) { - var n = path.getValue(); // Turn
into
+ var n = path.getValue(); if (n.type === "JSXElement" && isEmptyJSXElement(n)) { - n.openingElement.selfClosing = true; - return path.call(print, "openingElement"); + return concat$11([path.call(print, "openingElement"), path.call(print, "closingElement")]); } var openingLines = n.type === "JSXElement" ? path.call(print, "openingElement") : path.call(print, "openingFragment"); @@ -27609,7 +27838,7 @@ function printAssignmentRight(leftNode, rightNode, printedRight, options) { } var canBreak = isBinaryish(rightNode) && !shouldInlineLogicalExpression(rightNode) || rightNode.type === "ConditionalExpression" && isBinaryish(rightNode.test) && !shouldInlineLogicalExpression(rightNode.test) || rightNode.type === "StringLiteralTypeAnnotation" || rightNode.type === "ClassExpression" && rightNode.decorators && rightNode.decorators.length || (leftNode.type === "Identifier" || isStringLiteral(leftNode) || leftNode.type === "MemberExpression") && (isStringLiteral(rightNode) || isMemberExpressionChain(rightNode)) && // do not put values on a separate line from the key in json - options.parser !== "json" && options.parser !== "json5"; + options.parser !== "json" && options.parser !== "json5" || rightNode.type === "SequenceExpression"; if (canBreak) { return group$10(indent$6(concat$11([line$8, printedRight]))); @@ -27687,60 +27916,12 @@ function hasLeadingOwnLineComment(text, node, options) { return res; } -function hasNakedLeftSide(node) { - return node.type === "AssignmentExpression" || node.type === "BinaryExpression" || node.type === "LogicalExpression" || node.type === "NGPipeExpression" || node.type === "ConditionalExpression" || node.type === "CallExpression" || node.type === "OptionalCallExpression" || node.type === "MemberExpression" || node.type === "OptionalMemberExpression" || node.type === "SequenceExpression" || node.type === "TaggedTemplateExpression" || node.type === "BindExpression" || node.type === "UpdateExpression" && !node.prefix || node.type === "TSNonNullExpression"; -} - function isFlowAnnotationComment(text, typeAnnotation, options) { var start = options.locStart(typeAnnotation); var end = skipWhitespace$1(text, options.locEnd(typeAnnotation)); return text.substr(start, 2) === "/*" && text.substr(end, 2) === "*/"; } -function getLeftSide(node) { - if (node.expressions) { - return node.expressions[0]; - } - - return node.left || node.test || node.callee || node.object || node.tag || node.argument || node.expression; -} - -function getLeftSidePathName(path, node) { - if (node.expressions) { - return ["expressions", 0]; - } - - if (node.left) { - return ["left"]; - } - - if (node.test) { - return ["test"]; - } - - if (node.object) { - return ["object"]; - } - - if (node.callee) { - return ["callee"]; - } - - if (node.tag) { - return ["tag"]; - } - - if (node.argument) { - return ["argument"]; - } - - if (node.expression) { - return ["expression"]; - } - - throw new Error("Unexpected node has no left side", node); -} - function exprNeedsASIProtection(path, options) { var node = path.getValue(); var maybeASIProblem = needsParens_1(path, options) || node.type === "ParenthesizedExpression" || node.type === "TypeCastExpression" || node.type === "ArrowFunctionExpression" && !shouldPrintParamsWithoutParens(path, options) || node.type === "ArrayExpression" || node.type === "ArrayPattern" || node.type === "UnaryExpression" && node.prefix && (node.operator === "+" || node.operator === "-") || node.type === "TemplateLiteral" || node.type === "TemplateElement" || isJSXNode(node) || node.type === "BindExpression" && !node.object || node.type === "RegExpLiteral" || node.type === "Literal" && node.pattern || node.type === "Literal" && node.regex; @@ -27983,7 +28164,7 @@ function isLiteral(node) { } function isStringPropSafeToCoerceToIdentifier(node, options) { - return isStringLiteral(node.key) && isIdentifierName(node.key.value) && !node.computed && options.parser !== "json" && !(options.parser === "typescript" && node.type === "ClassProperty"); + return isStringLiteral(node.key) && isIdentifierName(node.key.value) && options.parser !== "json" && !(options.parser === "typescript" && node.type === "ClassProperty"); } function isNumericLiteral(node) { @@ -28069,7 +28250,9 @@ function isTheOnlyJSXElementInMarkdown(options, path) { return parent.type === "Program" && parent.body.length == 1; } -function willPrintOwnComments(path) { +function willPrintOwnComments(path +/*, options */ +) { var node = path.getValue(); var parent = path.getParentNode(); return (node && (isJSXNode(node) || hasFlowShorthandAnnotationComment(node) || parent && parent.type === "CallExpression" && (hasFlowAnnotationComment(node.leadingComments) || hasFlowAnnotationComment(node.trailingComments))) || parent && (parent.type === "JSXSpreadAttribute" || parent.type === "JSXSpreadChild" || parent.type === "UnionTypeAnnotation" || parent.type === "TSUnionType" || (parent.type === "ClassDeclaration" || parent.type === "ClassExpression") && parent.superClass === node)) && !hasIgnoreComment$3(path); @@ -29267,9 +29450,9 @@ function genericPrint$5(path, options, print) { case "inlineCode": { - var backtickCount = util.getMaxContinuousCount(node.value, "`"); + var backtickCount = util.getMinNotPresentContinuousCount(node.value, "`"); - var _style = backtickCount === 1 ? "``" : "`"; + var _style = "`".repeat(backtickCount || 1); var gap = backtickCount ? " " : ""; return concat$15([_style, gap, node.value, gap, _style]); diff --git a/testing/README.md b/testing/README.md index 3db9f58e23..88923c1c9c 100644 --- a/testing/README.md +++ b/testing/README.md @@ -89,11 +89,9 @@ Using `assertThrows()`: ```ts test(function doesThrow(): void { - assertThrows( - (): void => { - throw new TypeError("hello world!"); - } - ); + assertThrows((): void => { + throw new TypeError("hello world!"); + }); assertThrows((): void => { throw new TypeError("hello world!"); }, TypeError); @@ -108,11 +106,9 @@ test(function doesThrow(): void { // This test will not pass test(function fails(): void { - assertThrows( - (): void => { - console.log("Hello world"); - } - ); + assertThrows((): void => { + console.log("Hello world"); + }); }); ``` diff --git a/testing/asserts.ts b/testing/asserts.ts index adf77f3a7c..28dfa7911f 100644 --- a/testing/asserts.ts +++ b/testing/asserts.ts @@ -56,12 +56,10 @@ function buildMessage(diffResult: ReadonlyArray>): string[] { ); messages.push(""); messages.push(""); - diffResult.forEach( - (result: DiffResult): void => { - const c = createColor(result.type); - messages.push(c(`${createSign(result.type)}${result.value}`)); - } - ); + diffResult.forEach((result: DiffResult): void => { + const c = createColor(result.type); + messages.push(c(`${createSign(result.type)}${result.value}`)); + }); messages.push(""); return messages; diff --git a/testing/format.ts b/testing/format.ts index 7a0d8c1739..06c1b68186 100644 --- a/testing/format.ts +++ b/testing/format.ts @@ -360,13 +360,11 @@ const getKeysOfEnumerableProperties = (object: {}): Array => { const keys: Array = Object.keys(object).sort(); if (Object.getOwnPropertySymbols) { - Object.getOwnPropertySymbols(object).forEach( - (symbol): void => { - if (Object.getOwnPropertyDescriptor(object, symbol)!.enumerable) { - keys.push(symbol); - } + Object.getOwnPropertySymbols(object).forEach((symbol): void => { + if (Object.getOwnPropertyDescriptor(object, symbol)!.enumerable) { + keys.push(symbol); } - ); + }); } return keys; diff --git a/testing/mod.ts b/testing/mod.ts index c68528fbdd..c8577770bb 100644 --- a/testing/mod.ts +++ b/testing/mod.ts @@ -203,14 +203,12 @@ function report(result: TestResult): void { } function printFailedSummary(results: TestResults): void { - results.cases.forEach( - (v): void => { - if (!v.ok) { - console.error(`${RED_BG_FAIL} ${red(v.name)}`); - console.error(v.error); - } + results.cases.forEach((v): void => { + if (!v.ok) { + console.error(`${RED_BG_FAIL} ${red(v.name)}`); + console.error(v.error); } - ); + }); } function printResults( @@ -322,14 +320,12 @@ async function runTestsSerial( print( GREEN_OK + " " + name + " " + promptTestTime(end - start, true) ); - results.cases.forEach( - (v): void => { - if (v.name === name) { - v.ok = true; - v.printed = true; - } + results.cases.forEach((v): void => { + if (v.name === name) { + v.ok = true; + v.printed = true; } - ); + }); } catch (err) { if (disableLog) { print(CLEAR_LINE, false); @@ -337,15 +333,13 @@ async function runTestsSerial( print(`${RED_FAILED} ${name}`); print(err.stack); stats.failed++; - results.cases.forEach( - (v): void => { - if (v.name === name) { - v.error = err; - v.ok = false; - v.printed = true; - } + results.cases.forEach((v): void => { + if (v.name === name) { + v.error = err; + v.ok = false; + v.printed = true; } - ); + }); if (exitOnFail) { break; } diff --git a/testing/runner.ts b/testing/runner.ts index e0a06fee10..414fb1f567 100755 --- a/testing/runner.ts +++ b/testing/runner.ts @@ -85,13 +85,11 @@ export async function getMatchingUrls( ); const matchingRemoteUrls = includeRemote.filter( (candidateUrl: string): boolean => { - return !excludeRemotePatterns.some( - (pattern: RegExp): boolean => { - const r = pattern.test(candidateUrl); - pattern.lastIndex = 0; - return r; - } - ); + return !excludeRemotePatterns.some((pattern: RegExp): boolean => { + const r = pattern.test(candidateUrl); + pattern.lastIndex = 0; + return r; + }); } ); @@ -135,11 +133,9 @@ export async function main(root: string = cwd()): Promise { if (parsedArgs._.length) { includeFiles = (parsedArgs._ as string[]) - .map( - (fileGlob: string): string[] => { - return fileGlob.split(","); - } - ) + .map((fileGlob: string): string[] => { + return fileGlob.split(","); + }) .flat(); } else { includeFiles = DEFAULT_GLOBS; diff --git a/testing/test.ts b/testing/test.ts index 93233f7cc9..dd6d772f6d 100644 --- a/testing/test.ts +++ b/testing/test.ts @@ -51,12 +51,10 @@ test(function testingAssertNotStrictEqual(): void { test(function testingDoesThrow(): void { let count = 0; - assertThrows( - (): void => { - count++; - throw new Error(); - } - ); + assertThrows((): void => { + count++; + throw new Error(); + }); assert(count === 1); }); @@ -64,12 +62,10 @@ test(function testingDoesNotThrow(): void { let count = 0; let didThrow = false; try { - assertThrows( - (): void => { - count++; - console.log("Hello world"); - } - ); + assertThrows((): void => { + count++; + console.log("Hello world"); + }); } catch (e) { assert(e.message === "Expected function to throw."); didThrow = true; diff --git a/textproto/reader_test.ts b/textproto/reader_test.ts index adfb0c9622..fe842e0e2c 100644 --- a/textproto/reader_test.ts +++ b/textproto/reader_test.ts @@ -114,11 +114,9 @@ test({ assertEquals(m.get("SID"), "0"); assertEquals(m.get("Privilege"), "127"); // Not a legal http header - assertThrows( - (): void => { - assertEquals(m.get("Audio Mode"), "None"); - } - ); + assertThrows((): void => { + assertEquals(m.get("Audio Mode"), "None"); + }); } }); diff --git a/util/async.ts b/util/async.ts index 01df39cc8c..eaf97dd7b7 100644 --- a/util/async.ts +++ b/util/async.ts @@ -20,11 +20,9 @@ export interface Deferred extends Promise { */ export function deferred(): Deferred { let methods; - const promise = new Promise( - (resolve, reject): void => { - methods = { resolve, reject }; - } - ); + const promise = new Promise((resolve, reject): void => { + methods = { resolve, reject }; + }); return Object.assign(promise, methods)! as Deferred; } @@ -111,10 +109,9 @@ export async function collectUint8Arrays( // Delays the given milliseconds and resolves. export function delay(ms: number): Promise { - return new Promise( - (res): number => - setTimeout((): void => { - res(); - }, ms) + return new Promise((res): number => + setTimeout((): void => { + res(); + }, ms) ); } diff --git a/util/deep_assign.ts b/util/deep_assign.ts index 1dfc00a5be..b1c9f9ac99 100644 --- a/util/deep_assign.ts +++ b/util/deep_assign.ts @@ -8,26 +8,24 @@ export function deepAssign( if (!source || typeof source !== `object`) { return; } - Object.entries(source).forEach( - ([key, value]: [string, unknown]): void => { - if (value instanceof Date) { - target[key] = new Date(value); - return; - } - if (!value || typeof value !== `object`) { - target[key] = value; - return; - } - if (Array.isArray(value)) { - target[key] = []; - } - // value is an Object - if (typeof target[key] !== `object` || !target[key]) { - target[key] = {}; - } - deepAssign(target[key] as Record, value!); + Object.entries(source).forEach(([key, value]: [string, unknown]): void => { + if (value instanceof Date) { + target[key] = new Date(value); + return; } - ); + if (!value || typeof value !== `object`) { + target[key] = value; + return; + } + if (Array.isArray(value)) { + target[key] = []; + } + // value is an Object + if (typeof target[key] !== `object` || !target[key]) { + target[key] = {}; + } + deepAssign(target[key] as Record, value!); + }); } return target; } diff --git a/uuid/v4.ts b/uuid/v4.ts index 84ba28b0f5..5119334397 100644 --- a/uuid/v4.ts +++ b/uuid/v4.ts @@ -15,12 +15,10 @@ export default function generate(): string { rnds[6] = (rnds[6] & 0x0f) | 0x40; // Version 4 rnds[8] = (rnds[8] & 0x3f) | 0x80; // Variant 10 - const bits: string[] = [...rnds].map( - (bit): string => { - const s: string = bit.toString(16); - return bit < 0x10 ? "0" + s : s; - } - ); + const bits: string[] = [...rnds].map((bit): string => { + const s: string = bit.toString(16); + return bit < 0x10 ? "0" + s : s; + }); return [ ...bits.slice(0, 4), "-", diff --git a/ws/README.md b/ws/README.md index fe5bae9834..e00c469ffb 100644 --- a/ws/README.md +++ b/ws/README.md @@ -60,11 +60,9 @@ async function main(): Promise { } } ) - .catch( - (err: Error): void => { - console.error(`failed to accept websocket: ${err}`); - } - ); + .catch((err: Error): void => { + console.error(`failed to accept websocket: ${err}`); + }); } } diff --git a/ws/example_server.ts b/ws/example_server.ts index cd51ff94c7..0564439c96 100644 --- a/ws/example_server.ts +++ b/ws/example_server.ts @@ -53,11 +53,9 @@ async function main(): Promise { } } ) - .catch( - (err: Error): void => { - console.error(`failed to accept websocket: ${err}`); - } - ); + .catch((err: Error): void => { + console.error(`failed to accept websocket: ${err}`); + }); } }